You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opentelemetry-sdk/src/metrics/pipeline.rs
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,8 @@ use std::{
6
6
};
7
7
8
8
use opentelemetry::{
9
-
global,
10
9
metrics::{MetricError,MetricResult},
11
-
InstrumentationScope,KeyValue,
10
+
otel_debug,InstrumentationScope,KeyValue,
12
11
};
13
12
14
13
usecrate::{
@@ -413,15 +412,18 @@ where
413
412
if existing == id {
414
413
return;
415
414
}
416
-
417
-
global::handle_error(MetricError::Other(format!(
418
-
"duplicate metric stream definitions, names: ({} and {}), descriptions: ({} and {}), kinds: ({:?} and {:?}), units: ({:?} and {:?}), and numbers: ({} and {})",
415
+
// If an existing instrument with the same name but different attributes is found,
416
+
// log a warning with details about the conflicting metric stream definitions.
0 commit comments