kubernetes/vendor/go.opentelemetry.io/otel/internal/baggage/context.go

type baggageContextKeyType

const baggageKey

type SetHookFunc

type GetHookFunc

type baggageState

// ContextWithSetHook returns a copy of parent with hook configured to be
// invoked every time ContextWithBaggage is called.
//
// Passing nil SetHookFunc creates a context with no set hook to call.
func ContextWithSetHook(parent context.Context, hook SetHookFunc) context.Context {}

// ContextWithGetHook returns a copy of parent with hook configured to be
// invoked every time FromContext is called.
//
// Passing nil GetHookFunc creates a context with no get hook to call.
func ContextWithGetHook(parent context.Context, hook GetHookFunc) context.Context {}

// ContextWithList returns a copy of parent with baggage. Passing nil list
// returns a context without any baggage.
func ContextWithList(parent context.Context, list List) context.Context {}

// ListFromContext returns the baggage contained in ctx.
func ListFromContext(ctx context.Context) List {}