diff --git a/Cargo.toml b/Cargo.toml index f8bd67b..a7bc327 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ opentelemetry_0_16 = ["opentelemetry_0_16_pkg", "tracing-opentelemetry_0_16_pkg" opentelemetry_0_17 = ["opentelemetry_0_17_pkg", "tracing-opentelemetry_0_17_pkg"] opentelemetry_0_18 = ["opentelemetry_0_18_pkg", "tracing-opentelemetry_0_18_pkg"] opentelemetry_0_19 = ["opentelemetry_0_19_pkg", "tracing-opentelemetry_0_19_pkg"] -opentelemetry_0_20 = ["opentelemetry_0_20_pkg", "tracing-opentelemetry_0_20_pkg"] +opentelemetry_0_20 = ["opentelemetry_0_20_pkg", "tracing-opentelemetry_0_21_pkg"] emit_event_on_error = [] [dependencies] @@ -50,7 +50,7 @@ tracing-opentelemetry_0_16_pkg = { package = "tracing-opentelemetry",version = " tracing-opentelemetry_0_17_pkg = { package = "tracing-opentelemetry",version = "0.17", optional = true } tracing-opentelemetry_0_18_pkg = { package = "tracing-opentelemetry",version = "0.18", optional = true } tracing-opentelemetry_0_19_pkg = { package = "tracing-opentelemetry",version = "0.19", optional = true } -tracing-opentelemetry_0_20_pkg = { package = "tracing-opentelemetry",version = "0.20", optional = true } +tracing-opentelemetry_0_21_pkg = { package = "tracing-opentelemetry",version = "0.21", optional = true } [dev-dependencies] actix-web = { version = "4", default-features = false, features = ["macros"] } diff --git a/src/otel.rs b/src/otel.rs index ac9f3ba..4d7263e 100644 --- a/src/otel.rs +++ b/src/otel.rs @@ -32,7 +32,7 @@ use tracing_opentelemetry_0_18_pkg as tracing_opentelemetry; #[cfg(feature = "opentelemetry_0_19")] use tracing_opentelemetry_0_19_pkg as tracing_opentelemetry; #[cfg(feature = "opentelemetry_0_20")] -use tracing_opentelemetry_0_20_pkg as tracing_opentelemetry; +use tracing_opentelemetry_0_21_pkg as tracing_opentelemetry; use opentelemetry::propagation::Extractor;