cli icon indicating copy to clipboard operation
cli copied to clipboard

Add otel support

Open cpuguy83 opened this issue 3 years ago • 4 comments

This is broken into 2 commits:

  • Plumb contexts through commands
  • Add otel tracing as a persistent pre-run to all CLI commands.

cpuguy83 avatar Sep 09 '23 22:09 cpuguy83

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 is 62.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     

codecov-commenter avatar Sep 11 '23 16:09 codecov-commenter

/cc @milas as well (just a "FYI", but perhaps there's input from your side to make this align with compose's OTEL integration)

thaJeztah avatar Sep 11 '23 17:09 thaJeztah

Just a heads up, this is causing docker build to slow down quite a bit which I need to look into.

cpuguy83 avatar Sep 14 '23 20:09 cpuguy83

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

thaJeztah avatar Dec 06 '23 15:12 thaJeztah