Skip to content

Commit

Permalink
show duplicated metric tags (#5542)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger authored Jun 16, 2023
1 parent b558a01 commit c42f3df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ private void recordPoint(T point) {
Level.WARNING,
"Instrument "
+ metricDescriptor.getSourceInstrument().getName()
+ " has recorded multiple values for the same attributes.");
+ " has recorded multiple values for the same attributes: "
+ attributes);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void record_DuplicateAttributes() {
point ->
point.hasValue(1).hasAttributes(attributeEntry("key1", "a")))));
logs.assertContains(
"Instrument long-counter has recorded multiple values for the same attributes");
"Instrument long-counter has recorded multiple values for the same attributes: {key1=\"a\"}");
}

@Test
Expand Down

0 comments on commit c42f3df

Please sign in to comment.