You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Added**`#[must_use]` attribute to `opentelemetry::metrics::AsyncInstrumentBuilder` to add compile time warning when `.build()` is not called on observable instrument builders, preventing silent failures where callbacks are never registered and metrics are never reported.
@@ -117,10 +118,10 @@ let counter = meter.u64_counter("my_counter").build();
117
118
- Replaced `global::meter_with_version` with `global::meter_with_scope`
118
119
- Added `global::tracer_with_scope`
119
120
- Refer to PR description for migration guide.
120
-
-**Breaking change**: replaced `InstrumentationScope` public attributes by getters [#2275](https://github.com/open-telemetry/opentelemetry-rust/pull/2275)
121
+
-**Breaking change**: replaced `InstrumentationScope` public attributes by getters [#2275](https://github.com/open-telemetry/opentelemetry-rust/pull/2275)
- Removed `global::set_error_handler` and `global::handle_error`.
124
+
- Removed `global::set_error_handler` and `global::handle_error`.
124
125
-`global::handle_error` usage inside the opentelemetry crates has been replaced with `global::otel_info`, `otel_warn`, `otel_debug` and `otel_error` macros based on the severity of the internal logs.
125
126
- The default behavior of `global::handle_error` was to log the error using `eprintln!`. With otel macros, the internal logs get emitted via `tracing` macros of matching severity. Users now need to configure a `tracing` layer/subscriber to capture these logs.
126
127
- Refer to PR description for migration guide. Also refer to [self-diagnostics](https://github.com/open-telemetry/opentelemetry-rust/tree/main/examples/self-diagnostics) example to learn how to view internal logs in stdout using `tracing::fmt` layer.
@@ -220,7 +221,7 @@ to learn how to provide Observable callbacks.
220
221
opaque string. Migration: Replace `.with_unit(Unit::new("myunit"))` with
221
222
`.with_unit("myunit")`.
222
223
223
-
-[1869](https://github.com/open-telemetry/opentelemetry-rust/pull/1869) Introduced the `LogRecord::set_target()` method in the log bridge API.
224
+
-[1869](https://github.com/open-telemetry/opentelemetry-rust/pull/1869) Introduced the `LogRecord::set_target()` method in the log bridge API.
224
225
This method allows appenders to set the target/component emitting the logs.
225
226
226
227
## v0.23.0
@@ -241,7 +242,7 @@ This method allows appenders to set the target/component emitting the logs.
241
242
- opentelemetry::global::shutdown_logger_provider
242
243
- opentelemetry::global::logger_provider
243
244
- opentelemetry::global::GlobalLoggerProvider
244
-
- opentelemetry::global::ObjectSafeLoggerProvider
245
+
- opentelemetry::global::ObjectSafeLoggerProvider
245
246
For creating appenders using Logging bridge API, refer to the opentelemetry-tracing-appender [example](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-appender-tracing/examples/basic.rs)
0 commit comments