feat expose RequestIDHeaderKey globally
This commit is contained in:
+3
-2
@@ -15,8 +15,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
customAttributesCtxKey = "slog-gin.custom-attributes"
|
customAttributesCtxKey = "slog-gin.custom-attributes"
|
||||||
requestIDCtx = "slog-gin.request-id"
|
requestIDCtx = "slog-gin.request-id"
|
||||||
// Formatted with http.CanonicalHeaderKey
|
|
||||||
requestIDHeaderKey = "X-Request-Id"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -34,6 +32,9 @@ var (
|
|||||||
HiddenResponseHeaders = map[string]struct{}{
|
HiddenResponseHeaders = map[string]struct{}{
|
||||||
"set-cookie": {},
|
"set-cookie": {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Formatted with http.CanonicalHeaderKey
|
||||||
|
RequestIDHeaderKey = "X-Request-Id"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user