Skip to content

Commit

Permalink
Update meter_provider.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb authored Oct 24, 2024
1 parent 603ebca commit 39c453d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-sdk/src/metrics/meter_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 39c453d

Please sign in to comment.