Skip to content

Commit

Permalink
Merge branch 'main' into feature/http-route-in-metric
Browse files Browse the repository at this point in the history
  • Loading branch information
GonzaloGuasch authored Jul 1, 2024
2 parents 6633306 + 529178d commit 566023e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,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 @@ -517,7 +517,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 566023e

Please sign in to comment.