chore: fix deprecated method for opentelemetry

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-12-14 20:32:01 +01:00
parent 3a9d7cceb1
commit 7d764c34ff

View file

@ -129,7 +129,7 @@ pub fn setup_log() {
.unwrap(),
opentelemetry_sdk::runtime::Tokio,
)
.with_config(opentelemetry_sdk::trace::Config::default().with_resource(resource()))
.with_resource(resource())
.build();
global::set_tracer_provider(provider.clone());