Documentation ¶
Index ¶
- Constants
- func ExtractFromContext(ctx context.Context, key string) string
- func ExtractFromHTTP(r *http.Request, key string) string
- func ExtractHTTPAndContext(r *http.Request, key string) string
- func ExtractRequestIDFromContext(ctx context.Context) string
- func ExtractRequestIdHTTPAndContext(r *http.Request) string
- func SetPairContext(r *http.Request, key, value string) *http.Request
- func SetPairsContext(keys []string) func(handler http.Handler) http.Handler
- func SetRequestIdContext(r *http.Request, requestID string) *http.Request
- func TraceID(handler http.Handler) http.Handler
Constants ¶
View Source
const (
DefaultHTTPRequestIDKey = "X-Request-ID"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractFromContext ¶ added in v0.0.68
func ExtractHTTPAndContext ¶ added in v0.0.75
func ExtractRequestIDFromContext ¶ added in v0.0.71
func ExtractRequestIdHTTPAndContext ¶ added in v0.0.75
func SetPairContext ¶ added in v0.0.75
func SetPairsContext ¶ added in v0.0.75
func SetRequestIdContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.