Skip to content

Commit

Permalink
Merge branch 'main' into confluent-kafka-close-consume-span
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx authored Jul 2, 2024
2 parents 93f23a7 + 529178d commit 4689cf2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def test_flask_metrics_new_semconv(self):
self.client.get("/hello/123")
self.client.get("/hello/321")
self.client.get("/hello/756")
duration = max(round((default_timer() - start) * 1000), 0)
duration_s = max(default_timer() - start, 0)
metrics_list = self.memory_metrics_reader.get_metrics_data()
number_data_point_seen = False
histogram_data_point_seen = False
Expand All @@ -514,7 +514,7 @@ def test_flask_metrics_new_semconv(self):
if isinstance(point, HistogramDataPoint):
self.assertEqual(point.count, 3)
self.assertAlmostEqual(
duration, point.sum, delta=10
duration_s, point.sum, places=2
)
histogram_data_point_seen = True
if isinstance(point, NumberDataPoint):
Expand Down

0 comments on commit 4689cf2

Please sign in to comment.