Skip to content

Commit a42d516

Browse files
committed
log both existing and new instrument values
1 parent ac61b79 commit a42d516

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

opentelemetry-sdk/src/metrics/pipeline.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,17 @@ where
413413
if existing == id {
414414
return;
415415
}
416-
otel_warn!(name: "InstrumentSync.AddSync.DuplicateMetricStreamDefinitions",
416+
otel_warn!(name: "Instrument.DuplicateMetricStreamDefinitions",
417417
name = id.name.clone(),
418418
description = id.description.clone(),
419419
kind = id.kind,
420420
unit = id.unit.clone(),
421421
number = id.number.clone(),
422+
existing_name = existing.name.clone(),
423+
existing_desc = existing.description.clone(),
424+
existing_kind = existing.kind,
425+
existing_unit = existing.unit,
426+
existing_number = existing.number
422427
);
423428
}
424429
}

0 commit comments

Comments
 (0)