Skip to content

Commit 7af7e45

Browse files
committed
Add data points dump when attribute matching failed.
1 parent b067c54 commit 7af7e45

File tree

1 file changed

+2
-2
lines changed
  • jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions

1 file changed

+2
-2
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions/MetricAssert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ public final MetricAssert hasDataPointsWithAttributes(AttributeMatcherGroup... m
249249
}
250250

251251
info.description(
252-
"data point attributes '%s' for metric '%s' must match exactly one of the attribute sets '%s'",
253-
dataPointAttributes, actual.getName(), Arrays.asList(matcherGroups));
252+
"data point attributes '%s' for metric '%s' must match exactly one of the attribute sets '%s'.\nActual data points: %s",
253+
dataPointAttributes, actual.getName(), Arrays.asList(matcherGroups), dataPoints);
254254
integers.assertEqual(info, matchCount, 1);
255255
}
256256

0 commit comments

Comments
 (0)