File tree 1 file changed +2
-2
lines changed
instrumentation/opentelemetry-instrumentation-flask/tests
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ def test_flask_metrics_new_semconv(self):
500
500
self .client .get ("/hello/123" )
501
501
self .client .get ("/hello/321" )
502
502
self .client .get ("/hello/756" )
503
- duration = max (round (( default_timer () - start ) * 1000 ) , 0 )
503
+ duration_s = max (default_timer () - start , 0 )
504
504
metrics_list = self .memory_metrics_reader .get_metrics_data ()
505
505
number_data_point_seen = False
506
506
histogram_data_point_seen = False
@@ -517,7 +517,7 @@ def test_flask_metrics_new_semconv(self):
517
517
if isinstance (point , HistogramDataPoint ):
518
518
self .assertEqual (point .count , 3 )
519
519
self .assertAlmostEqual (
520
- duration , point .sum , delta = 10
520
+ duration_s , point .sum , places = 2
521
521
)
522
522
histogram_data_point_seen = True
523
523
if isinstance (point , NumberDataPoint ):
You can’t perform that action at this time.
0 commit comments