kubernetes/vendor/go.opentelemetry.io/otel/propagation/propagation.go

type TextMapCarrier

type MapCarrier

var _

// Get returns the value associated with the passed key.
func (c MapCarrier) Get(key string) string {}

// Set stores the key-value pair.
func (c MapCarrier) Set(key, value string) {}

// Keys lists the keys stored in this carrier.
func (c MapCarrier) Keys() []string {}

type HeaderCarrier

// Get returns the value associated with the passed key.
func (hc HeaderCarrier) Get(key string) string {}

// Set stores the key-value pair.
func (hc HeaderCarrier) Set(key string, value string) {}

// Keys lists the keys stored in this carrier.
func (hc HeaderCarrier) Keys() []string {}

type TextMapPropagator

type compositeTextMapPropagator

func (p compositeTextMapPropagator) Inject(ctx context.Context, carrier TextMapCarrier) {}

func (p compositeTextMapPropagator) Extract(ctx context.Context, carrier TextMapCarrier) context.Context {}

func (p compositeTextMapPropagator) Fields() []string {}

// NewCompositeTextMapPropagator returns a unified TextMapPropagator from the
// group of passed TextMapPropagator. This allows different cross-cutting
// concerns to be propagates in a unified manner.
//
// The returned TextMapPropagator will inject and extract cross-cutting
// concerns in the order the TextMapPropagators were provided. Additionally,
// the Fields method will return a de-duplicated slice of the keys that are
// set with the Inject method.
func NewCompositeTextMapPropagator(p ...TextMapPropagator) TextMapPropagator {}