diff --git a/Cargo.toml b/Cargo.toml index 2a60194..1f374f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,10 +52,10 @@ thiserror = "1" sysinfo = { version = "0.30", optional = true } [dev-dependencies] -async-std = { version = "1.10.0", features = ["attributes"] } +async-std = { version = "1.12.0", features = ["attributes"] } doc-comment = "0.3.3" -env_logger = "0.11.2" -insta = "1.13.0" +env_logger = "0.11.3" +insta = "1.39.0" isahc = "1.7.2" log = { version = "0.4", features = ["kv", "kv_sval"] } opentelemetry_sdk = { version = "0.23", features = ["rt-async-std", "rt-tokio", "rt-tokio-current-thread", "logs_level_enabled"] } @@ -63,11 +63,11 @@ opentelemetry-http = { version = "0.12", features = ["reqwest"] } opentelemetry-appender-log = { version = "0.4", features = ["with-serde"] } opentelemetry-application-insights = { path = ".", features = ["logs", "live-metrics"] } rand = "0.8.5" -regex = "1.5.5" +regex = "1.10.5" reqwest = { version = "0.11", features = ["blocking"] } -test-case = "3.0.0" -tokio = { version = "1.17.0", features = ["rt-multi-thread", "macros", "process", "time"] } -version-sync = { version = "0.9.4", default-features = false, features = ["html_root_url_updated", "contains_regex"] } +test-case = "3.3.1" +tokio = { version = "1.38.0", features = ["rt-multi-thread", "macros", "process", "time"] } +version-sync = { version = "0.9.5", default-features = false, features = ["html_root_url_updated", "contains_regex"] } [badges] github = { repository = "frigus02/opentelemetry-application-insights", workflow = "CI" } diff --git a/examples/tracing/Cargo.toml b/examples/tracing/Cargo.toml index f1fb95b..1f4f9c3 100644 --- a/examples/tracing/Cargo.toml +++ b/examples/tracing/Cargo.toml @@ -5,13 +5,14 @@ authors = ["Jan Kuehle "] edition = "2018" [dependencies] -opentelemetry = { version = "0.20.0", features = ["rt-tokio"] } -opentelemetry-http = { version = "0.9.0", features = ["reqwest"] } -opentelemetry-application-insights = { version = "0.27.0" } +opentelemetry = "0.23.0" +opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"] } +opentelemetry-http = { version = "0.12.0", features = ["reqwest"] } +opentelemetry-application-insights = { version = "0.33.0" } reqwest = "0.11" tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process", "time"] } -tracing = "0.1.37" -tracing-attributes = "0.1.26" +tracing = "0.1.40" +tracing-attributes = "0.1.27" tracing-futures = "0.2.5" -tracing-opentelemetry = "0.20.0" -tracing-subscriber = "0.3.17" +tracing-opentelemetry = "0.24.0" +tracing-subscriber = "0.3.18" diff --git a/examples/tracing/src/main.rs b/examples/tracing/src/main.rs index 54ff4a2..3545fe4 100644 --- a/examples/tracing/src/main.rs +++ b/examples/tracing/src/main.rs @@ -1,4 +1,5 @@ -use opentelemetry::{propagation::TextMapPropagator, sdk::propagation::TraceContextPropagator}; +use opentelemetry::propagation::TextMapPropagator; +use opentelemetry_sdk::propagation::TraceContextPropagator; use std::collections::HashMap; use std::env; use std::error::Error; @@ -48,7 +49,7 @@ async fn main() -> Result<(), Box> { let tracer = opentelemetry_application_insights::new_pipeline_from_env() .expect("env var APPLICATIONINSIGHTS_CONNECTION_STRING should exist") .with_client(reqwest::Client::new()) - .install_batch(opentelemetry::runtime::Tokio); + .install_batch(opentelemetry_sdk::runtime::Tokio); let telemetry = tracing_opentelemetry::layer().with_tracer(tracer); let subscriber = Registry::default().with(telemetry); tracing::subscriber::set_global_default(subscriber).expect("setting global default failed");