mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Remove use of deprecated tracing functions
This commit is contained in:
parent
1e5d975b6f
commit
62bb25ac44
1 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue