-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support opentelemetry 0.28 #139
Conversation
@@ -67,21 +65,24 @@ async fn main() -> io::Result<()> { | |||
.await?; | |||
|
|||
// Ensure all spans have been shipped to Jaeger. | |||
opentelemetry::global::shutdown_tracer_provider(); | |||
provider.shutdown().expect("Failed to shut down provider"); |
There was a problem hiding this comment.
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"] } |
There was a problem hiding this comment.
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
@@ -2,9 +2,7 @@ use actix_web::{web, App, HttpServer}; | |||
use opentelemetry::trace::TracerProvider; | |||
use opentelemetry::{global, KeyValue}; | |||
use opentelemetry_otlp::WithExportConfig; | |||
use opentelemetry_sdk::{ | |||
propagation::TraceContextPropagator, runtime::TokioCurrentThread, trace::Config, Resource, | |||
}; |
There was a problem hiding this comment.
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)
Closes #138