From 62bb25ac4497e609138007162799f1c21717fb69 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 8 Dec 2024 22:23:42 -0600 Subject: [PATCH] Remove use of deprecated tracing functions --- src/init_tracing.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/init_tracing.rs b/src/init_tracing.rs index 07eb2ab..1af4fbc 100644 --- a/src/init_tracing.rs +++ b/src/init_tracing.rs @@ -82,11 +82,10 @@ where .build()?; let tracer = opentelemetry_sdk::trace::TracerProvider::builder() - .with_config( - opentelemetry_sdk::trace::Config::default().with_resource(Resource::new(vec![ - KeyValue::new("service.name", otel.service_name.clone()), - ])), - ) + .with_resource(Resource::new(vec![KeyValue::new( + "service.name", + otel.service_name.clone(), + )])) .with_batch_exporter(exporter, opentelemetry_sdk::runtime::Tokio) .build();