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
When the API publishes a message to NATS and the Worker picks it up, the "trace" normally breaks. The Worker starts a new trace, making it impossible to see that the Worker's action was caused by a specific API call. This is known as a "Context Gap."
Proposed Solution
Use OpenTelemetry's TextMapPropagator to inject and extract trace headers.
Producer (API): Before publishing to NATS, "inject" the current span context into the NATS message headers.
Consumer (Worker): Upon receiving a message, "extract" the context from the headers and use it as the parent for the Worker's new span.
Alternatives Considered
Passing IDs in JSON payload: Rejected as it litters the business logic with telemetry data. Using NATS headers keeps the payload clean.
changed the title [-][feature] [Observability] Implement Trace Context Propagation over NATS[/-][+]Implement Trace Context Propagation over NATS[/+]on Apr 20, 2026
Activity
[-][feature] [Observability] Implement Trace Context Propagation over NATS[/-][+]Implement Trace Context Propagation over NATS[/+]feat(docs): hero panel rides the new upstream pipes (gh_summary, gh_a…
feat(docs): live-demo hero panel via @wavehouse/sdk (#290)
fix(docs): point the live demo at the new WaveHouse Cloud backend (#542)