diff --git a/api/distributedcontext/context.go b/api/distributedcontext/context.go index 2cb7c88b64a..588ca30075a 100644 --- a/api/distributedcontext/context.go +++ b/api/distributedcontext/context.go @@ -18,14 +18,11 @@ import ( "context" ) -type ( - ctxCorrelationsType struct{} - ctxBaggageType struct{} -) +type ctxKey int -var ( - ctxCorrelationsKey = &ctxCorrelationsType{} - ctxBaggageKey = &ctxBaggageType{} +const ( + ctxCorrelationsKey ctxKey = iota + ctxBaggageKey ) func NewCorrelationsContextKV(ctx context.Context, correlations ...Correlation) context.Context {