Skip to content

Commit daa7a03

Browse files
Fix OTLP export (#1341)
opentelemetry_sdk needed tokio runtime feature enabled
1 parent 57fbe8b commit daa7a03

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

josh-proxy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ juniper = { workspace = true }
4848
git2 = { workspace = true }
4949
opentelemetry-semantic-conventions = "0.15.0"
5050
opentelemetry-otlp = "0.16.0"
51-
opentelemetry_sdk = "0.23.0"
51+
opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"] }

josh-proxy/src/bin/josh-proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ fn init_trace() {
20092009
.with_endpoint(endpoint),
20102010
)
20112011
.with_trace_config(opentelemetry_sdk::trace::config().with_resource(resource))
2012-
.install_simple()
2012+
.install_batch(opentelemetry_sdk::runtime::Tokio)
20132013
.expect("can't install opentelemetry pipeline");
20142014

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

0 commit comments

Comments
 (0)