grafana/pkg/services/pluginsintegration/clientmiddleware
Giedrius Statkevičius 0485cf34cd
Plugins: Pass through dashboard/contextual HTTP headers to plugins/datasources (#60301)
`X-Dashboard-Uid`, `X-Datasource-Uid`, `X-Grafana-Org-Id`, `X-Panel-Id` are very useful headers set
by Grafana front-end that we would like to see on the data source as
well. This is so that it would be possible to pinpoint from where slow
queries are coming in Mimir/Thanos/Cortex/etc., for example. Relevant
Mimir code lines:
0a94f26203/pkg/frontend/transport/handler.go (L182-L184)

Tested manually that with these changes the headers are visible.
2022-12-22 11:15:00 +01:00
..
clear_auth_headers_middleware_test.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
clear_auth_headers_middleware.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
cookies_middleware_test.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
cookies_middleware.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
httpclient_middleware_test.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
httpclient_middleware.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
oauthtoken_middleware_test.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
oauthtoken_middleware.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
testing.go Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132) 2022-12-01 19:08:36 +01:00
tracing_header_middleware_test.go Plugins: Pass through dashboard/contextual HTTP headers to plugins/datasources (#60301) 2022-12-22 11:15:00 +01:00
tracing_header_middleware.go Plugins: Pass through dashboard/contextual HTTP headers to plugins/datasources (#60301) 2022-12-22 11:15:00 +01:00
user_header_middleware_test.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
user_header_middleware.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00