mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
862a6a2fa6
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. |
||
---|---|---|
.. | ||
proxyutil_test.go | ||
proxyutil.go | ||
reverse_proxy_test.go | ||
reverse_proxy.go |