Procházet zdrojové kódy

use contextType as string type

kevin před 4 roky
rodič
revize
1606a92c6e
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      core/trace/tracespec/vars.go

+ 4 - 4
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")