fix: golint: context.WithValue should should not use basic type as key (#83)
* fix: golint: context.WithValue should should not use basic type as key * optimizmaster
parent
57299a7597
commit
029fd3ea35
@ -1,3 +1,7 @@
|
|||||||
package tracespec
|
package tracespec
|
||||||
|
|
||||||
const TracingKey = "X-Trace"
|
//ContextKey a type for context key
|
||||||
|
type ContextKey struct{}
|
||||||
|
|
||||||
|
//TracingKey is tracing key for ctx
|
||||||
|
var TracingKey ContextKey
|
||||||
|
Loading…
Reference in New Issue