Skip to content

Commit

Permalink
Merge pull request #84 from demoray/update-dependencies-2024-06-18
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
frigus02 authored Jun 19, 2024
2 parents 577d755 + e7b91ff commit 02d8ac4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ 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"] }
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" }
Expand Down
15 changes: 8 additions & 7 deletions examples/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ authors = ["Jan Kuehle <[email protected]>"]
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"
5 changes: 3 additions & 2 deletions examples/tracing/src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -48,7 +49,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
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");
Expand Down

0 comments on commit 02d8ac4

Please sign in to comment.