Documentation
¶
Overview ¶
Package otel carries W3C trace context across fabriq's async hop: the command executor stamps the active traceparent into the event envelope, and consumers (relay, projections) restore it so ONE trace spans command -> outbox -> relay -> projection apply.
Wire it as fabriq.WithTraceparent(otel.TraceparentFromContext).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithTraceparent ¶
ContextWithTraceparent restores a traceparent (from an event envelope) onto a context, so consumer-side spans join the original trace. Invalid values are ignored.
func TraceparentFromContext ¶
TraceparentFromContext renders the active span as a W3C traceparent header value, or "" when no span is recording.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.