Skip to content

Commit fd7dca4

Browse files
authored
fix(celery): Latency should be in milliseconds, not seconds (#4637)
Fixes #4636
1 parent fcace85 commit fd7dca4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/celery/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ def _inner(*args, **kwargs):
391391
)
392392

393393
if latency is not None:
394+
latency *= 1000 # milliseconds
394395
span.set_data(SPANDATA.MESSAGING_MESSAGE_RECEIVE_LATENCY, latency)
395396

396397
with capture_internal_exceptions():

0 commit comments

Comments
 (0)