Versions in this module Expand all Collapse all v0 v0.4.4 Sep 2, 2021 Changes in this version + func ContextWithGetHook(ctx context.Context, hook GetHookFunc) context.Context + func ContextWithMap(ctx context.Context, m Map) context.Context + func ContextWithNoHooks(ctx context.Context) (context.Context, SetHookFunc, GetHookFunc) + func ContextWithSetHook(ctx context.Context, hook SetHookFunc) context.Context + func DefaultHTTPPropagator() propagation.HTTPPropagator + func NewContext(ctx context.Context, keyvalues ...core.KeyValue) context.Context + type CorrelationContext struct + func (CorrelationContext) Extract(ctx context.Context, supplier propagation.HTTPSupplier) context.Context + func (CorrelationContext) GetAllKeys() []string + func (CorrelationContext) Inject(ctx context.Context, supplier propagation.HTTPSupplier) + type GetHookFunc func(context.Context, Map) Map + type Map struct + func MapFromContext(ctx context.Context) Map + func NewEmptyMap() Map + func NewMap(update MapUpdate) Map + func (m Map) Apply(update MapUpdate) Map + func (m Map) Foreach(f func(kv core.KeyValue) bool) + func (m Map) HasValue(k core.Key) bool + func (m Map) Len() int + func (m Map) Value(k core.Key) (core.Value, bool) + type MapUpdate struct + DropMultiK []core.Key + DropSingleK core.Key + MultiKV []core.KeyValue + SingleKV core.KeyValue + type SetHookFunc func(context.Context) context.Context