Skip to content

Commit 72e34cd

Browse files
committed
Util -> Fix linter warning in openTelemetry configuration.
1 parent 95d9b19 commit 72e34cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opendut-util/src/telemetry/traces.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ pub(crate) fn init_tracer(
2121

2222
let provider = TracerProvider::builder()
2323
.with_batch_exporter(exporter, runtime::Tokio)
24-
.with_config(
25-
opentelemetry_sdk::trace::Config::default().with_resource(Resource::new(vec![
24+
.with_resource(
25+
Resource::new(vec![
2626
KeyValue::new(
2727
opentelemetry_semantic_conventions::resource::SERVICE_NAME,
2828
service_name.into()),
2929
KeyValue::new(
3030
opentelemetry_semantic_conventions::resource::SERVICE_INSTANCE_ID,
3131
service_instance_id.into()
3232
)
33-
])),
33+
])
3434
)
3535
.build();
3636

0 commit comments

Comments
 (0)