mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -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> |
||
---|---|---|
.. | ||
cookies | ||
auth_test.go | ||
auth.go | ||
csp.go | ||
dashboard_redirect_test.go | ||
dashboard_redirect.go | ||
gziper.go | ||
logger.go | ||
middleware_basic_auth_test.go | ||
middleware_jwt_auth_test.go | ||
middleware_test.go | ||
middleware.go | ||
org_redirect_test.go | ||
org_redirect.go | ||
quota_test.go | ||
quota.go | ||
rate_limit_test.go | ||
rate_limit.go | ||
recovery_test.go | ||
recovery.go | ||
request_metrics.go | ||
request_tracing.go | ||
testing.go | ||
validate_host.go |