From 39c453d51e8ab09ba2822716d90e69dd4f67041e Mon Sep 17 00:00:00 2001 From: Lalit Kumar Bhasin Date: Thu, 24 Oct 2024 10:12:41 -0700 Subject: [PATCH] Update meter_provider.rs --- opentelemetry-sdk/src/metrics/meter_provider.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentelemetry-sdk/src/metrics/meter_provider.rs b/opentelemetry-sdk/src/metrics/meter_provider.rs index d64e312924..2e3aa5d644 100644 --- a/opentelemetry-sdk/src/metrics/meter_provider.rs +++ b/opentelemetry-sdk/src/metrics/meter_provider.rs @@ -9,7 +9,7 @@ use std::{ use opentelemetry::{ metrics::{Meter, MeterProvider, MetricsError, Result}, - otel_debug, KeyValue, + otel_debug, otel_error, KeyValue }; use crate::{instrumentation::Scope, Resource}; @@ -142,7 +142,7 @@ impl Drop for SdkMeterProviderInner { message = "Meter provider was already shut down; drop will not attempt shutdown again." ); } else if let Err(err) = self.shutdown() { - otel_debug!( + otel_error!( name: "MeterProvider.ShutdownFailed", message = "Shutdown attempt failed during drop of MeterProvider.", reason = format!("{}", err)