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();