update tonic, opentelemetry

This commit is contained in:
Conrad Ludgate
2024-05-09 11:51:53 +01:00
parent 39c712f2ca
commit 77bd346dad
7 changed files with 133 additions and 145 deletions

View File

@@ -210,7 +210,7 @@ fn startup_context_from_env() -> Option<opentelemetry::ContextGuard> {
}
if !startup_tracing_carrier.is_empty() {
use opentelemetry::propagation::TextMapPropagator;
use opentelemetry::sdk::propagation::TraceContextPropagator;
use opentelemetry_sdk::propagation::TraceContextPropagator;
let guard = TraceContextPropagator::new()
.extract(&startup_tracing_carrier)
.attach();