Skip to content

Commit

Permalink
update example also to new otel version
Browse files Browse the repository at this point in the history
  • Loading branch information
mellowagain committed Jul 25, 2024
1 parent f9c3785 commit 477d793
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions examples/exemplars-tracing-opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ autometrics = { path = "../../autometrics", features = [
] }
autometrics-example-util = { path = "../util" }
axum = { version = "0.7.2", features = ["json"] }
opentelemetry = "0.20"
opentelemetry-stdout = { version = "0.1", features = ["trace"] }
opentelemetry = "0.24"
opentelemetry_sdk = "0.24"
opentelemetry-stdout = { version = "0.5", features = ["trace"] }
reqwest = { version = "0.11", features = ["json"] }
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-opentelemetry = "0.21"
tracing-opentelemetry = "0.25"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
4 changes: 2 additions & 2 deletions examples/exemplars-tracing-opentelemetry/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use autometrics::{autometrics, prometheus_exporter};
use autometrics_example_util::run_prometheus;
use axum::{routing::get, Router, ServiceExt};
use opentelemetry::sdk::trace::TracerProvider;
use axum::{routing::get, Router};
use opentelemetry_sdk::trace::TracerProvider;
use opentelemetry::trace::TracerProvider as _;
use opentelemetry_stdout::SpanExporter;
use std::error::Error;
Expand Down
2 changes: 1 addition & 1 deletion examples/opentelemetry-push-custom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ autometrics-example-util = { path = "../util" }
opentelemetry = { version = "0.24", features = ["metrics"] }
opentelemetry_sdk = { version = "0.24", features = ["metrics", "rt-tokio"] }
opentelemetry-otlp = { version = "0.17", features = ["tonic", "metrics"] }
opentelemetry-semantic-conventions = { version = "0.13" }
opentelemetry-semantic-conventions = { version = "0.16.0" }
tokio = { version = "1", features = ["full"] }

0 comments on commit 477d793

Please sign in to comment.