Skip to content

Commit

Permalink
use contextType as string type
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Sep 20, 2020
1 parent 029fd3e commit 1606a92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/trace/tracespec/vars.go
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 1606a92

Please sign in to comment.