Skip to content

Commit

Permalink
core: include metric name in error message (#2412)
Browse files Browse the repository at this point in the history
Change-Id: I8e7578fa4c5af6e8dcde04201ec7d6aa9c8f8762
  • Loading branch information
igorbernstein2 authored Nov 13, 2024
1 parent 160391e commit 158185f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ private ListTimeSeriesResponse verifyMetricsArePublished(

private void verifyMetricsWithMetricsReader(
ListTimeSeriesResponse response, MetricData dataFromReader) {

for (TimeSeries ts : response.getTimeSeriesList()) {
Map<String, String> attributesMap =
ImmutableMap.<String, String>builder()
Expand Down Expand Up @@ -399,7 +400,8 @@ private void verifyMetricsWithMetricsReader(
if (point.size() > 0) {
long actualValue = (long) point.get(0).getValue().getDistributionValue().getMean();
assertWithMessage(
"actual value does not match expected value, actual value "
ts.getMetric().getType()
+ " actual value does not match expected value, actual value "
+ actualValue
+ " expected value "
+ expectedValue
Expand Down

0 comments on commit 158185f

Please sign in to comment.