diff --git a/minitrace-opentelemetry/Cargo.toml b/minitrace-opentelemetry/Cargo.toml index dfe16b25..d7fe6021 100644 --- a/minitrace-opentelemetry/Cargo.toml +++ b/minitrace-opentelemetry/Cargo.toml @@ -16,10 +16,10 @@ keywords = ["tracing", "span", "datadog", "jaeger", "opentelemetry"] futures = { version = "0.3", features = ["executor"] } log = "0.4" minitrace = { version = "0.6.5", path = "../minitrace" } -opentelemetry = { version = "0.22", features = ["trace"] } -opentelemetry_sdk = { version = "0.22.1", features = ["trace"] } +opentelemetry = { version = "0.23", features = ["trace"] } +opentelemetry_sdk = { version = "0.23", features = ["trace"] } [dev-dependencies] -opentelemetry-otlp = { version = "0.15", features = ["trace"] } +opentelemetry-otlp = { version = "0.16", features = ["trace"] } rand = "0.8" tokio = { version = "1", features = ["rt-multi-thread"] } diff --git a/minitrace/Cargo.toml b/minitrace/Cargo.toml index 55a4aaa3..b16054c4 100644 --- a/minitrace/Cargo.toml +++ b/minitrace/Cargo.toml @@ -41,9 +41,9 @@ minitrace-jaeger = { version = "0.6.5", path = "../minitrace-jaeger" } minitrace-opentelemetry = { version = "0.6.5", path = "../minitrace-opentelemetry" } mockall = "0.11" once_cell = "1" -opentelemetry-otlp = { version = "0.15", features = ["trace"] } -opentelemetry = { version = "0.22", features = ["trace"] } -opentelemetry_sdk = { version = "0.22.1", features = ["trace"] } +opentelemetry-otlp = { version = "0.16", features = ["trace"] } +opentelemetry = { version = "0.23", features = ["trace"] } +opentelemetry_sdk = { version = "0.23", features = ["trace"] } rand = "0.8" rustracing = "0.6" @@ -52,7 +52,7 @@ test-harness = "0.1.1" tokio = { version = "1", features = ["rt", "time", "macros", "rt-multi-thread"] } tracing = "0.1" tracing-core = "0.1" -tracing-opentelemetry = "0.18" +tracing-opentelemetry = "0.24" tracing-subscriber = "0.3" [[bench]] diff --git a/minitrace/examples/asynchronous.rs b/minitrace/examples/asynchronous.rs index ecca53f2..a2b02e80 100644 --- a/minitrace/examples/asynchronous.rs +++ b/minitrace/examples/asynchronous.rs @@ -99,12 +99,9 @@ impl ReportAll { Cow::Owned(opentelemetry_sdk::Resource::new([ opentelemetry::KeyValue::new("service.name", "asynchronous(opentelemetry)"), ])), - opentelemetry::InstrumentationLibrary::new( - "example-crate", - Some(env!("CARGO_PKG_VERSION")), - None::<&'static str>, - None, - ), + opentelemetry::InstrumentationLibrary::builder("example-crate") + .with_version(env!("CARGO_PKG_VERSION")) + .build(), ), } } diff --git a/minitrace/examples/synchronous.rs b/minitrace/examples/synchronous.rs index 2650d690..032439aa 100644 --- a/minitrace/examples/synchronous.rs +++ b/minitrace/examples/synchronous.rs @@ -75,12 +75,9 @@ impl ReportAll { Cow::Owned(opentelemetry_sdk::Resource::new([ opentelemetry::KeyValue::new("service.name", "synchronous(opentelemetry)"), ])), - opentelemetry::InstrumentationLibrary::new( - "example-crate", - Some(env!("CARGO_PKG_VERSION")), - None::<&'static str>, - None, - ), + opentelemetry::InstrumentationLibrary::builder("example-crate") + .with_version(env!("CARGO_PKG_VERSION")) + .build(), ), } }