Skip to content

Commit b93e711

Browse files
committed
chore: update CHANGELOG for tracer provider global shutdown removal
1 parent 0c4ab3e commit b93e711

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opentelemetry-sdk/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
transparent change.
1010
[#2338](https://github.com/open-telemetry/opentelemetry-rust/pull/2338)
1111
- `ResourceDetector.detect()` no longer supports timeout option.
12+
- `opentelemetry::global::shutdown_tracer_provider()` Removed from the API, should now use `tracer_provider.shutdown()` see [#2369](https://github.com/open-telemetry/opentelemetry-rust/pull/2369) for a migration example. "Tracer provider" is cheaply cloneable, so users are encouraged to set a clone of it as the global (ex: `global::set_tracer_provider(provider.clone()))`, so that instrumentations and other components can obtain tracers from `global::tracer()`. The tracer_provider must be kept around to call shutdown on it at the end of application (ex: `tracer_provider.shutdown()`)
1213

1314
## 0.27.1
1415

0 commit comments

Comments
 (0)