Documentation ¶
Overview ¶
Package baggagetrace implements a baggage span processor.
Deprecated: Use go.opentelemetry.io/contrib/processors/baggagecopy instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() trace.SpanProcessor
New returns a new SpanProcessor.
The Baggage span processor duplicates onto a span the attributes found in Baggage in the parent context at the moment the span is started.
Types ¶
type SpanProcessor ¶
type SpanProcessor struct{}
SpanProcessor is a processing pipeline for spans in the trace signal.
func (SpanProcessor) ForceFlush ¶
func (processor SpanProcessor) ForceFlush(context.Context) error
ForceFlush exports all ended spans to the configured Exporter that have not yet been exported and is a no-op for this processor.
func (SpanProcessor) OnEnd ¶
func (processor SpanProcessor) OnEnd(s trace.ReadOnlySpan)
OnEnd is called when span is finished and is a no-op for this processor.
func (SpanProcessor) OnStart ¶
func (processor SpanProcessor) OnStart(ctx context.Context, span trace.ReadWriteSpan)
OnStart is called when a span is started and adds span attributes for baggage contents.