mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -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. |
||
---|---|---|
.. | ||
jwt | ||
auth_token_test.go | ||
auth_token.go | ||
model.go | ||
testing.go | ||
token_cleanup_test.go | ||
token_cleanup.go |