Documentation ¶
Index ¶
Constants ¶
View Source
const ( TraceIDKey = "B3-Trace-ID" SpanIDKey = "B3-Span-ID" SpanSampledKey = "B3-Span-Sampled" )
Message attribute keys
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
Attributes is a temporary store for message attributes for translating between SQS and SNS message attribute values
func MessageAttributeValueToAttributes ¶
func MessageAttributeValueToAttributes(v interface{}) Attributes
MessageAttributeValueToAttributes converts MessageAttributeValues to key value map
type Propagator ¶
type Propagator struct{}
Propagator implements the Propagator interface using B3 style formatting to propagate Span contexts on SNS / SQS messages
func (*Propagator) SpanContextFromMessageAttributes ¶
func (p *Propagator) SpanContextFromMessageAttributes(v interface{}) (trace.SpanContext, bool)
SpanContextFromMessageAttributes returns a trace.SpanContext based on a SQS message
func (*Propagator) SpanContextToMessageAttributes ¶
func (p *Propagator) SpanContextToMessageAttributes(sc trace.SpanContext, t interface{}) bool
SpanContextToMessageAttributes takes a trace.SpanContext and adds attributes to a given SQS / SNS message
Click to show internal directories.
Click to hide internal directories.