Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTraceContextFromMsg ¶
func GetTraceContextFromMsg(msg *nats.Msg) (spanContext trace.SpanContext, err error)
GetTraceContextFromMsg attempts to create a span context from the provided NATS message by reading the trace ID and the span ID from its headers.
func NewTraceMsg ¶
NewTraceMsg is a wrapper around nats.NewMsg() which essentially attempts to get the span context from the given context and adds the trace ID and span ID to the NATS message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.