Skip to content

Commit

Permalink
Use TokioCurrentThread to make ctrl-c work
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest committed Sep 30, 2024
1 parent 85d0f74 commit 3af484e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion getting-started-guides/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ actix-web = "4.8.0"
actix-web-opentelemetry = "0.19.0"
opentelemetry = "0.24.0"
opentelemetry-otlp = { version = "0.17.0", features = ["tls-roots", "gzip-tonic"] }
opentelemetry_sdk = { version = "0.24.1", features = ["rt-tokio"] }
opentelemetry_sdk = { version = "0.24.1", features = ["rt-tokio-current-thread"] }
serde = { version = "1.0.205", features = ["derive"] }
tonic = "0.12.1"
2 changes: 1 addition & 1 deletion getting-started-guides/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async fn main() -> std::io::Result<()> {
.with_exporter(opentelemetry_otlp::new_exporter().tonic()
.with_tls_config(tonic::transport::ClientTlsConfig::new().with_native_roots()))
.with_trace_config(Config::default().with_resource(resource))
.install_batch(runtime::Tokio)
.install_batch(runtime::TokioCurrentThread)
.expect("failed to initialize the trace pipeline");

global::set_tracer_provider(tracer_provider);
Expand Down

0 comments on commit 3af484e

Please sign in to comment.