Files
go-zero/core/trace/tracespec/keys.go

13 lines
331 B
Go
Raw Normal View History

2020-07-26 17:09:05 +08:00
package tracespec
2020-09-20 12:08:30 +08:00
// TracingKey is tracing key for context
var TracingKey = contextKey("X-Trace")
2020-09-20 12:04:49 +08:00
// contextKey a type for context key
type contextKey string
2021-02-09 13:50:21 +08:00
// String returns a context will reveal a fair amount of information about it.
2020-09-20 12:08:30 +08:00
func (c contextKey) String() string {
return "trace/tracespec context key " + string(c)
}