Skip to content

Conversation

@asonix
Copy link
Contributor

@asonix asonix commented Feb 17, 2025

Closes #138


// Ensure all spans have been shipped to Jaeger.
opentelemetry::global::shutdown_tracer_provider();
provider.shutdown().expect("Failed to shut down provider");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shutting down providers now requires passing the provider around

opentelemetry-semantic-conventions = "0.27"
tracing-opentelemetry = "0.28"
opentelemetry = "0.28"
opentelemetry-otlp = { version = "0.28", features = ["grpc-tonic"] }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tonic is no longer enabled by default

use opentelemetry_otlp::WithExportConfig;
use opentelemetry_sdk::{
propagation::TraceContextPropagator, runtime::TokioCurrentThread, trace::Config, Resource,
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runtime arguments are no longer required (background threads get spawned or something)

@LukeMathWalker LukeMathWalker merged commit adb5534 into LukeMathWalker:main Feb 22, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for opentelemetry 0.28.0

2 participants