Skip to content

Replace global::shutdown_tracer_provider with tracer_provider.shutdown()#155

Merged
cijothomas merged 1 commit intoopen-telemetry:mainfrom
gruebel:replace-global-shutdown
Jan 22, 2025
Merged

Replace global::shutdown_tracer_provider with tracer_provider.shutdown()#155
cijothomas merged 1 commit intoopen-telemetry:mainfrom
gruebel:replace-global-shutdown

Conversation

@gruebel
Copy link
Member

@gruebel gruebel commented Jan 20, 2025

Changes

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@gruebel gruebel requested a review from a team as a code owner January 20, 2025 17:40
@codecov
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.1%. Comparing base (72a6d4b) to head (1f8b9f0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #155   +/-   ##
=====================================
  Coverage   54.1%   54.1%           
=====================================
  Files         42      42           
  Lines       6279    6282    +3     
=====================================
+ Hits        3397    3400    +3     
  Misses      2882    2882           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

let tracer = provider.tracer_with_scope(scope);
let _ = global::set_tracer_provider(provider);
Ok(tracer)
let _ = global::set_tracer_provider(provider.clone());
Copy link
Member

Choose a reason for hiding this comment

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

OTLP got rid of setting global here, and made it an explicit action user take separately, outside of install_simple/batch. Not a blocker for the PR, just something to consider in future.

@cijothomas cijothomas merged commit 4d9b52f into open-telemetry:main Jan 22, 2025
10 checks passed
@gruebel gruebel deleted the replace-global-shutdown branch January 23, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants