Skip to content

Commit bde869c

Browse files
committed
Remove the usage of round to allow a more precise value.
1 parent 7b4e50c commit bde869c

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ async def middleware(request, handler):
221221
set_status_code(span, ex.status_code)
222222
raise
223223
finally:
224-
duration = max(round((default_timer() - start) * 1000), 0)
224+
duration = max((default_timer() - start) * 1000, 0)
225225
duration_histogram.record(duration, duration_attrs)
226226
active_requests_counter.add(-1, active_requests_count_attrs)
227227
return resp

0 commit comments

Comments
 (0)