Skip to content

Commit

Permalink
Improves logging when the target metrics is more than 1
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeboc committed Jul 9, 2024
1 parent d939628 commit 973ea8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _assert_metric_attributes(
if resource_scope_metric.metric.name.lower() == metric_name.lower():
target_metrics.append(resource_scope_metric.metric)

self.assertEqual(len(target_metrics), 1)
self.assertEqual(len(target_metrics), 1, f"target_metrics is {str(target_metrics)}, although only one walue was expected")
target_metric: Metric = target_metrics[0]
dp_list: List[ExponentialHistogramDataPoint] = target_metric.exponential_histogram.data_points

Expand Down

0 comments on commit 973ea8b

Please sign in to comment.