The Wayback Machine - https://web.archive.org/web/20240920232225/https://github.com/docker/cli/pull/5457
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[27.x backport] telemetry: fix early meterprovider shutdown #5457

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

laurazard
Copy link
Member

Backports: #5456

In 4b5a196, we changed the CLI global
meter provider shutdown in order to handle any error returned by the
metric export.

Unfortunately, we dropped a `defer` during the fix, which
causes the meter provider to be immediately shutdown after being created
and metrics to not be collected/exporter.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
(cherry picked from commit 1355d7e)
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
@laurazard laurazard self-assigned this Sep 20, 2024
@laurazard laurazard changed the title telemetry: fix early meterprovider shutdown [27.x backport] telemetry: fix early meterprovider shutdown Sep 20, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 59.78%. Comparing base (e85edf8) to head (460f1be).
Report is 2 commits behind head on 27.x.

Additional details and impacted files
@@            Coverage Diff             @@
##             27.x    #5457      +/-   ##
==========================================
- Coverage   59.78%   59.78%   -0.01%     
==========================================
  Files         345      345              
  Lines       23441    23442       +1     
==========================================
  Hits        14015    14015              
- Misses       8452     8453       +1     
  Partials      974      974              

@thaJeztah thaJeztah added this to the 27.3.1 milestone Sep 20, 2024
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@laurazard laurazard merged commit f052003 into docker:27.x Sep 20, 2024
104 of 105 checks passed
@laurazard laurazard deleted the backport-dropped-defer branch September 20, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants