An asynchronous action spans processes
One web request may only save a command, while later workers dispatch, observe and copy the result. A single HTTP request ID cannot explain that whole lifetime. Correlation needs both durable business identity and appropriately scoped telemetry context.
What to do next
- 01
Separate identities
Use action and task IDs for durable business association, and trace/span IDs for diagnostic execution paths. Store their relationship where useful, but never depend on a sampled trace to recover the only copy of a remote job identity.
- 02
Propagate selectively
Carry reviewed trace context through your queue envelope and create spans or links appropriate to asynchronous work. Validate inbound context and avoid attaching free-text prompts or sensitive customer attributes merely to make traces searchable.
- 03
Test a cross-process path
Follow a synthetic action from frontend command receipt through dispatch and delivery. Confirm operators can join the relevant stages while unauthorized telemetry consumers cannot see private content or use identifiers as access credentials.
A concrete example
Illustrative example: action A17 creates one web span and later several worker spans. Operators find them by A17, while the task database retains recovery evidence even if some spans were sampled out.
Before you call it ready
- Business identities survive trace sampling.
- Propagated context contains no creative payload.
- Asynchronous stages remain correlatable.
When to stop or choose another method
Stop using trace retention as your recovery ledger or embedding secret-bearing URLs in diagnostic context.
