We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f6233 commit ecd03bcCopy full SHA for ecd03bc
opentelemetry-sdk/tests/metrics/test_view_instrument_match.py
@@ -610,10 +610,11 @@ def test_consume_measurement_with_exemplars(self):
610
611
# Verify that exemplars have been correctly stored and collected
612
# As the default reservoir as only one bucket, it will retain
613
- # the last measurement as exemplar
+ # either one of the measurements based on random selection
614
self.assertEqual(len(data_points[0].exemplars), 1)
615
616
- self.assertEqual(data_points[0].exemplars[0].value, 5.0)
+ self.assertIn(data_points[0].exemplars[0].value, [4.0, 5.0])
617
+
618
619
620
class TestAlignedHistogramBucketExemplarReservoir(TestCase):
0 commit comments