mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
caa420f92f
Before these changes the request tracing was added for each route registered using the routing.RouteRegister, see code. This had the consequence that middleware executed earlier/later in the request pipeline was not part of the request tracing middleware life-cycle which measures the duration of requests among other things. In the logger middleware we do extract the current distributed trace identifier, if available, and set that on request info/error log messages. With these changes we can extract the current distributed trace identifier, if available, and set that on the contextual HTTP request logger (models.ReqContext.Logger) which would improve the possibility to correlate all HTTP request log messages with traces. In addition, the request tracing middleware is now executed first and last in the request pipeline and should therefore result in more accurate timing measurements (request duration). Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> |
||
---|---|---|
.. | ||
authproxy | ||
auth_jwt.go | ||
auth_proxy_test.go | ||
contexthandler_test.go | ||
contexthandler.go |