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

* optimiz
This commit is contained in:
mlboy 2020-09-20 12:01:43 +08:00 committed by GitHub
parent 57299a7597
commit 029fd3ea35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,7 @@
package tracespec
const TracingKey = "X-Trace"
//ContextKey a type for context key
type ContextKey struct{}
//TracingKey is tracing key for ctx
var TracingKey ContextKey