You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate a Celery queue via the Python SDK's Celery Integration
Schedule tasks ending up in this queue
Go to Insights -> Backend -> Queues
Open average duration graph
Look at average time in qeueue
Observe values
Expected Result
Latencies should match the actual time that tasks spent in the queue before being picked up by a worker
Actual Result
Graph shows 1/1000 of the actual values (e.g. instead of displaying seconds, it's displaying milliseconds)
Digging into the JSON raw data of relevant spans, the value messaging.message.receive.latency appears twice in the JSON (see attached screenshot), once without the milli unit and once with it. My hunch is that the unit is inserted erroneously downstream from the Celery integration, and picked up by the graph to show 'ms' on the y axis. The Celery integration definitely computes and writes the value in seconds (see second screenshot).