Files
go-zero/core/trace/tracespec/keys.go
2021-02-09 13:50:21 +08:00

13 lines
331 B
Go

package tracespec
// TracingKey is tracing key for context
var TracingKey = contextKey("X-Trace")
// contextKey a type for context key
type contextKey string
// String returns a context will reveal a fair amount of information about it.
func (c contextKey) String() string {
return "trace/tracespec context key " + string(c)
}