use contextType as string type

This commit is contained in:
kevin 2020-09-20 12:04:49 +08:00
parent 029fd3ea35
commit 1606a92c6e

View File

@ -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")