Reliability
Trace asynchronous handoffs across skill workers
Connect queued and resumed work using trace context and operation identifiers.
A workflow that queues background work can finish its first request long before a worker starts. Without a durable correlation link, observers see unrelated traces and cannot tell whether an acknowledged job ever reached the component responsible for producing the result.
Propagate context with the job
Store the permitted trace context alongside the application’s operation ID. When consuming the job, represent the relationship with a parent span or span link according to the instrumentation design. A single worker span may need links to several producers when it handles a batch.
Track the durable outcome separately
A trace can be sampled, expired, or unavailable during an incident. Keep the job status and confirmed effect in application state. Use tracing to explain the path, and record the operation ID so support can recover the correct record even when the full trace is missing.
Test resumed and duplicate jobs
Submit a controlled job and delay consumption, then replay it through a fresh worker. Verify operators can associate the distinct activities and see which was a retry. Ensure trace propagation carries approved metadata only and does not insert user content into cross-service headers.