grafana/pkg/util/proxyutil
Marcus Efraimsson 862a6a2fa6
Logging: Introduce API for contextual logging (#55198)
Introduces a FromContext method on the log.Logger interface that 
allows contextual key/value pairs to be attached, e.g. per request, 
so that any logger using this API will automatically get the per request 
context attached. The proposal makes the traceID available for 
contextual logger , if available, and would allow logs originating from 
a certain HTTP request to be correlated with traceID.
In addition, when tracing not enabled, skip adding
traceID=00000000000000000000000000000000
to logs.
2022-09-20 18:32:06 +02:00
..
proxyutil_test.go Chore: Use Header.Set method instead of Header.Add (#29804) 2020-12-14 15:13:01 +01:00
proxyutil.go Security: Sync security changes on main (#45083) 2022-02-09 13:44:38 +01:00
reverse_proxy_test.go Chore: Try to fix flaky reverse proxy test (#47957) 2022-04-20 16:24:06 +02:00
reverse_proxy.go Logging: Introduce API for contextual logging (#55198) 2022-09-20 18:32:06 +02:00