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 @@ -497,7 +497,7 @@ def test_flask_metrics_new_semconv(self):
497
497
self .client .get ("/hello/123" )
498
498
self .client .get ("/hello/321" )
499
499
self .client .get ("/hello/756" )
500
- duration = max (round (( default_timer () - start ) * 1000 ) , 0 )
500
+ duration_s = max (default_timer () - start , 0 )
501
501
metrics_list = self .memory_metrics_reader .get_metrics_data ()
502
502
number_data_point_seen = False
503
503
histogram_data_point_seen = False
@@ -514,7 +514,7 @@ def test_flask_metrics_new_semconv(self):
514
514
if isinstance (point , HistogramDataPoint ):
515
515
self .assertEqual (point .count , 3 )
516
516
self .assertAlmostEqual (
517
- duration , point .sum , delta = 10
517
+ duration_s , point .sum , places = 2
518
518
)
519
519
histogram_data_point_seen = True
520
520
if isinstance (point , NumberDataPoint ):
You can’t perform that action at this time.
0 commit comments