Skip to content

Commit

Permalink
fix(requests): Fix wrong time unit for duration histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
stollero committed May 24, 2024
1 parent 66a107f commit cabd82e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ def get_or_create_headers():
exception = exc
result = getattr(exc, "response", None)
finally:
elapsed_time = max(
round((default_timer() - start_time) * 1000), 0
)
elapsed_time = max(default_timer() - start_time, 0)

if isinstance(result, Response):
span_attributes = {}
Expand Down

0 comments on commit cabd82e

Please sign in to comment.