Skip to content

Commit

Permalink
Fix OTLP export (#1341)
Browse files Browse the repository at this point in the history
opentelemetry_sdk needed tokio runtime feature enabled
  • Loading branch information
vlad-ivanov-name authored Jun 20, 2024
1 parent 57fbe8b commit daa7a03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion josh-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ juniper = { workspace = true }
git2 = { workspace = true }
opentelemetry-semantic-conventions = "0.15.0"
opentelemetry-otlp = "0.16.0"
opentelemetry_sdk = "0.23.0"
opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"] }
2 changes: 1 addition & 1 deletion josh-proxy/src/bin/josh-proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ fn init_trace() {
.with_endpoint(endpoint),
)
.with_trace_config(opentelemetry_sdk::trace::config().with_resource(resource))
.install_simple()
.install_batch(opentelemetry_sdk::runtime::Tokio)
.expect("can't install opentelemetry pipeline");

let telemetry_layer = tracing_opentelemetry::layer().with_tracer(tracer);
Expand Down

0 comments on commit daa7a03

Please sign in to comment.