Skip to content

Commit

Permalink
fix view instrument match test case
Browse files Browse the repository at this point in the history
  • Loading branch information
czhang771 committed Sep 4, 2024
1 parent f6f6233 commit ecd03bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opentelemetry-sdk/tests/metrics/test_view_instrument_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,11 @@ def test_consume_measurement_with_exemplars(self):

# Verify that exemplars have been correctly stored and collected
# As the default reservoir as only one bucket, it will retain
# the last measurement as exemplar
# either one of the measurements based on random selection
self.assertEqual(len(data_points[0].exemplars), 1)

self.assertEqual(data_points[0].exemplars[0].value, 5.0)
self.assertIn(data_points[0].exemplars[0].value, [4.0, 5.0])



class TestAlignedHistogramBucketExemplarReservoir(TestCase):
Expand Down

0 comments on commit ecd03bc

Please sign in to comment.