server/pkg/trace/vars.go
Chang lue Tsen 8addcc584b init: 1.0.0
2025-04-25 12:08:29 +09:00

10 lines
425 B
Go

package trace
import "net/http"
// RequestIdKey is the request id header, has a unique association to a trace id.
// The Request ID uses the UUID format because, first, it is more in line with industry standards,
// second, it guarantees the privacy and security of the Trace ID,
// and third, it provides standardization capabilities for subsequent distribution.
var RequestIdKey = http.CanonicalHeaderKey("x-request-id")