diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml index 0086a9a..bb9fbc9 100644 --- a/reqwest-tracing/Cargo.toml +++ b/reqwest-tracing/Cargo.toml @@ -63,5 +63,7 @@ tracing_subscriber_0_3 = { package = "tracing-subscriber", version = "0.3.0" } wiremock = "0.5.0" opentelemetry_sdk_0_21 = { package = "opentelemetry_sdk", version = "0.21.0", features = ["trace"] } +opentelemetry_sdk_0_22 = { package = "opentelemetry_sdk", version = "0.22.0", features = ["trace"] } opentelemetry_stdout_0_1 = { package = "opentelemetry-stdout", version = "0.1.0", features = ["trace"] } opentelemetry_stdout_0_2 = { package = "opentelemetry-stdout", version = "0.2.0", features = ["trace"] } +opentelemetry_stdout_0_3 = { package = "opentelemetry-stdout", version = "0.3.0", features = ["trace"] } diff --git a/reqwest-tracing/src/otel.rs b/reqwest-tracing/src/otel.rs index 477be7c..82c2feb 100644 --- a/reqwest-tracing/src/otel.rs +++ b/reqwest-tracing/src/otel.rs @@ -152,8 +152,10 @@ mod test { use opentelemetry::trace::TracerProvider; #[cfg(feature = "opentelemetry_0_20")] use opentelemetry_stdout_0_1::SpanExporterBuilder; - #[cfg(any(feature = "opentelemetry_0_21", feature = "opentelemetry_0_22"))] + #[cfg(feature = "opentelemetry_0_21")] use opentelemetry_stdout_0_2::SpanExporterBuilder; + #[cfg(feature = "opentelemetry_0_22")] + use opentelemetry_stdout_0_3::SpanExporterBuilder; let exporter = SpanExporterBuilder::default() .with_writer(std::io::sink())