Documentation ¶
Index ¶
Constants ¶
View Source
const ( SubjectKey = attribute.Key("nats.subject") SubjectReplySub = attribute.Key("nats.request.subject") )
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
func Extract(ctx context.Context, msg *nats.Msg, opts ...Option) ([]attribute.KeyValue, baggage.Baggage, trace.SpanContext)
Extract returns the Attributes, Context Entries, and SpanContext that were encoded by Inject.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option allows configuration of the httptrace Extract() and Inject() functions.
func WithPropagators ¶
func WithPropagators(props propagation.TextMapPropagator) Option
WithPropagators sets the propagators to use for Extraction and Injection
Click to show internal directories.
Click to hide internal directories.