baggagetrace

package module
v0.0.0-...-8c03dfa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package baggagetrace implements a baggage span processor.

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.

func (SpanProcessor) Shutdown

func (processor SpanProcessor) Shutdown(context.Context) error

Shutdown is called when the SDK shuts down and is a no-op for this processor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL