2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 03:11:24 +00:00

Remove use of deprecated tracing functions

This commit is contained in:
asonix 2024-12-08 22:23:42 -06:00
parent 1e5d975b6f
commit 62bb25ac44

View file

@ -82,11 +82,10 @@ where
.build()?; .build()?;
let tracer = opentelemetry_sdk::trace::TracerProvider::builder() let tracer = opentelemetry_sdk::trace::TracerProvider::builder()
.with_config( .with_resource(Resource::new(vec![KeyValue::new(
opentelemetry_sdk::trace::Config::default().with_resource(Resource::new(vec![ "service.name",
KeyValue::new("service.name", otel.service_name.clone()), otel.service_name.clone(),
])), )]))
)
.with_batch_exporter(exporter, opentelemetry_sdk::runtime::Tokio) .with_batch_exporter(exporter, opentelemetry_sdk::runtime::Tokio)
.build(); .build();