Skip to content
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

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

asonix
Copy link
Contributor

@asonix asonix commented Feb 17, 2025

Closes #138

@@ -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");
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

@@ -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,
};
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