MCPcopy Create free account
hub / github.com/cortexproject/cortex / WithSourceIPs

Function WithSourceIPs

pkg/util/log/wrappers.go:62–64  ·  view source on GitHub ↗

WithSourceIPs returns a Logger that has information about the source IPs in its details.

(sourceIPs string, l log.Logger)

Source from the content-addressed store, hash-verified

60// WithSourceIPs returns a Logger that has information about the source IPs in
61// its details.
62func WithSourceIPs(sourceIPs string, l log.Logger) log.Logger {
63 return log.With(l, "sourceIPs", sourceIPs)
64}
65
66// HeadersFromContext enables the logging of specified HTTP Headers that have been added to a context
67func HeadersFromContext(ctx context.Context, l log.Logger) log.Logger {

Callers 1

HandlerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected