Add otel support
This is broken into 2 commits:
- Plumb contexts through commands
- Add otel tracing as a persistent pre-run to all CLI commands.
Codecov Report
Merging #4556 (d4511b0) into master (d4aca90) will decrease coverage by
0.10%. Report is 528 commits behind head on master. The diff coverage is62.20%.
Additional details and impacted files
@@ Coverage Diff @@
## master #4556 +/- ##
==========================================
- Coverage 59.66% 59.57% -0.10%
==========================================
Files 288 288
Lines 24785 24740 -45
==========================================
- Hits 14789 14739 -50
- Misses 9111 9112 +1
- Partials 885 889 +4
/cc @milas as well (just a "FYI", but perhaps there's input from your side to make this align with compose's OTEL integration)
Just a heads up, this is causing docker build to slow down quite a bit which I need to look into.
I did a rebase of this branch (and fixed some OTEL changes that were in the wrong commit :joy:). Looks like OTEL itself is still causing some headaches, so I split the changes in 2 PRs;
- https://github.com/docker/cli/pull/4698
- https://github.com/docker/cli/pull/4700