mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 04:34:01 +08:00
Fix wrong unit in Flask new semconv test (#2645)
This commit is contained in:
@ -497,7 +497,7 @@ class TestProgrammatic(InstrumentationTest, WsgiTestBase):
|
||||
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
|
||||
@ -514,7 +514,7 @@ class TestProgrammatic(InstrumentationTest, WsgiTestBase):
|
||||
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):
|
||||
|
Reference in New Issue
Block a user