diff --git a/opentelemetry-appender-tracing/CHANGELOG.md b/opentelemetry-appender-tracing/CHANGELOG.md index 0bc132fb82..293da80f81 100644 --- a/opentelemetry-appender-tracing/CHANGELOG.md +++ b/opentelemetry-appender-tracing/CHANGELOG.md @@ -3,7 +3,7 @@ ## vNext - Bump msrv to 1.75.0. -- New experimental feature to use trace\_id & span\_id from spans created through the tracing crate (experimental-use-tracing-span-context) [#2438](https://github.com/open-telemetry/opentelemetry-rust/pull/2438) +- New experimental feature to use trace\_id & span\_id from spans created through the tracing crate (experimental_use_tracing_span_context) [#2438](https://github.com/open-telemetry/opentelemetry-rust/pull/2438) ## 0.27.0 diff --git a/opentelemetry-appender-tracing/Cargo.toml b/opentelemetry-appender-tracing/Cargo.toml index 34503b47c9..c93441b85a 100644 --- a/opentelemetry-appender-tracing/Cargo.toml +++ b/opentelemetry-appender-tracing/Cargo.toml @@ -35,7 +35,7 @@ pprof = { version = "0.13", features = ["flamegraph", "criterion"] } [features] experimental_metadata_attributes = ["dep:tracing-log"] spec_unstable_logs_enabled = ["opentelemetry/spec_unstable_logs_enabled"] -experimental-use-tracing-span-context = ["tracing-opentelemetry"] +experimental_use_tracing_span_context = ["tracing-opentelemetry"] [[bench]] diff --git a/opentelemetry-appender-tracing/src/layer.rs b/opentelemetry-appender-tracing/src/layer.rs index c08b3fd555..71d75ed2ad 100644 --- a/opentelemetry-appender-tracing/src/layer.rs +++ b/opentelemetry-appender-tracing/src/layer.rs @@ -180,7 +180,7 @@ where // Visit fields. event.record(&mut visitor); - #[cfg(feature = "experimental-use-tracing-span-context")] + #[cfg(feature = "experimental_use_tracing_span_context")] if let Some(span) = _ctx.event_span(event) { use tracing_opentelemetry::OtelData; let opt_span_id = span @@ -511,7 +511,7 @@ mod tests { } } - #[cfg(feature = "experimental-use-tracing-span-context")] + #[cfg(feature = "experimental_use_tracing_span_context")] #[test] fn tracing_appender_inside_tracing_crate_context() { use opentelemetry_sdk::testing::trace::InMemorySpanExporterBuilder;