Skip to content

Commit

Permalink
s/experimental-use-tracing-span-context/experimental_use_tracing_span…
Browse files Browse the repository at this point in the history
…_context/
  • Loading branch information
dylanahsmith committed Dec 18, 2024
1 parent 12cf399 commit 750df51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion opentelemetry-appender-tracing/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-appender-tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry-appender-tracing/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 750df51

Please sign in to comment.