From 1606a92c6e85f1306099dc0f5c09d35648d12d4a Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 20 Sep 2020 12:04:49 +0800 Subject: [PATCH] use contextType as string type --- core/trace/tracespec/vars.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/trace/tracespec/vars.go b/core/trace/tracespec/vars.go index 6150800a..fa9d9dc4 100644 --- a/core/trace/tracespec/vars.go +++ b/core/trace/tracespec/vars.go @@ -1,7 +1,7 @@ package tracespec -//ContextKey a type for context key -type ContextKey struct{} +// contextKey a type for context key +type contextKey string -//TracingKey is tracing key for ctx -var TracingKey ContextKey +// TracingKey is tracing key for context +var TracingKey = contextKey("X-Trace")