grafana/pkg/middleware
Josh Hunt 1bd9541507
FrontendService: Add tracing and logging middleware (#107956)
* FrontendService: Add tracing and logging middleware

* tests!

* middleware tests

* context middleware test

* revert http_server back to previous version

* fix lint

* fix test

* use http.NotFound instead of custom http handler

* use existing tracer for package

* use otel/trace.Tracer in request_tracing middleware

* tidy up tracing in contextMiddleware

* fix 404 test

* remove spans from contextMiddleware

* comment
2025-07-22 18:55:44 +01:00
..
cookies Hackaton: Add more unit tests, take 3 (#101525) 2025-03-05 08:00:12 +01:00
csrf
loggermw Chore: Remove sensitive information from presigned URLs prior to logging (#87035) 2024-06-24 14:53:42 +02:00
requestmeta
auth.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +02:00
auth_test.go RBAC: Remove accessControlOnCall feature toggle (#101222) 2025-02-25 13:44:40 +01:00
csp.go FEMT: Add feature toggle and expose the service in regular grafana (#104428) 2025-04-25 12:24:25 +03:00
dashboard_redirect.go
dashboard_redirect_test.go
gziper.go Chore: Skip gzip for apiserver routes (#92245) 2024-08-21 23:47:58 +03:00
middleware.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +02:00
middleware_test.go K8s: refactor build handler chain func to allow easier injection from enterprise (#100777) 2025-02-15 04:08:00 +02:00
org_redirect.go Security: Fixes for CVE-2025-6197 and CVE-2025-6023 (#108330) 2025-07-18 09:06:26 -06:00
org_redirect_test.go Security: Fixes for CVE-2025-6197 and CVE-2025-6023 (#108330) 2025-07-18 09:06:26 -06:00
quota.go
quota_test.go Authlib: Use types package rather than claims (#99243) 2025-01-21 12:06:55 +03:00
recovery.go Revert "Build swagger ui in seperate webpack build" (#104580) 2025-04-25 22:07:43 +01:00
recovery_test.go
request_metadata_test.go
request_metrics.go Metrics: Add ability to disable classic histogram for HTTP metric (#88315) 2024-06-18 15:37:44 -04:00
request_test.go Chore: Remove repetitive words (#84132) 2024-03-11 08:55:18 -04:00
request_tracing.go FrontendService: Add tracing and logging middleware (#107956) 2025-07-22 18:55:44 +01:00
subpath_redirect.go
subpath_redirect_test.go
testing.go
validate_action_url.go Canvas: Allow API calls to grafana origin (#91822) 2024-09-10 10:45:27 -04:00
validate_action_url_test.go Canvas: Allow API calls to grafana origin (#91822) 2024-09-10 10:45:27 -04:00
validate_host.go