mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
13 lines
325 B
Go
13 lines
325 B
Go
package tracespec
|
|
|
|
// TracingKey is tracing key for context
|
|
var TracingKey = contextKey("X-Trace")
|
|
|
|
// contextKey a type for context key
|
|
type contextKey string
|
|
|
|
// Printing a context will reveal a fair amount of information about it.
|
|
func (c contextKey) String() string {
|
|
return "trace/tracespec context key " + string(c)
|
|
}
|