keys.go 331 B

123456789101112
  1. package tracespec
  2. // TracingKey is tracing key for context
  3. var TracingKey = contextKey("X-Trace")
  4. // contextKey a type for context key
  5. type contextKey string
  6. // String returns a context will reveal a fair amount of information about it.
  7. func (c contextKey) String() string {
  8. return "trace/tracespec context key " + string(c)
  9. }