Skip to content

Commit 25bde21

Browse files
committed
Record the Delayed Job enqueue as a producer span
Enqueuing a Delayed Job now records an `enqueue.delayed_job` event on the active transaction, so enqueues made from a web request or another job show up in the event timeline. Delayed Job was the only background job backend still missing this. In collector mode that event also opens a producer span, matching the other job backends and OpenTelemetry's own Delayed Job instrumentation. Delayed Job has no envelope to carry trace context across the enqueue/perform boundary, so -- like OpenTelemetry -- nothing is injected and the producer and consumer spans are not linked. Test it against Delayed Job's in-memory test backend under a new `delayed_job` gemfile, driving the real enqueue and perform lifecycle in both agent and collector mode.
1 parent 9f4e455 commit 25bde21

5 files changed

Lines changed: 750 additions & 354 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
bump: minor
3+
type: add
4+
---
5+
6+
Instrument Delayed Job enqueues. Enqueuing a job now records an
7+
`enqueue.delayed_job` event on the active transaction, so enqueues made from
8+
within a web request or another job show up in the event timeline.

0 commit comments

Comments
 (0)