mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
10e7922597
* feat: opentelemetry integration, removed self designed tracing * feat: support zipkin on opentelemetry integration * feat: support zipkin on opentelemetry integration, enable it in conf * style: format code * fix: support logx without exporter configured * fix: check return values * refactor: simplify code * refactor: simplify opentelemetry integration * ci: fix staticcheck errors
9 lines
217 B
Go
9 lines
217 B
Go
package trace
|
|
|
|
import "net/http"
|
|
|
|
// TraceIdKey is the trace id header.
|
|
// https://www.w3.org/TR/trace-context/#trace-id
|
|
// May change it to trace-id afterwards.
|
|
var TraceIdKey = http.CanonicalHeaderKey("x-trace-id")
|