Files
open-webui/backend/open_webui/utils
Classic298 76b7be67fc feat: let admins exclude routes like health checks from OpenTelemetry metrics (#33329)
With OpenTelemetry metrics on, every request is counted in the HTTP request and duration metrics, so Kubernetes liveness and readiness probes on `/health` and `/health/db` fill the time series database and dashboards with noise. These metrics now skip any request whose URL matches `OTEL_PYTHON_FASTAPI_EXCLUDED_URLS` (or `OTEL_PYTHON_EXCLUDED_URLS` as a fallback), the standard OpenTelemetry variable that traces already honour. It takes a comma-separated list of regular expressions such as `/health,/_app/immutable/.*`, each matched anywhere in the URL, so `/health` also covers `/health/db`. One pattern now drops the same requests from traces and metrics alike. Nothing changes when the variable is unset.

Closes #31609
2026-10-29 05:21:06 +09:00
..
2026-10-28 10:02:45 +09:00
2026-10-01 03:31:20 +04:00
2026-10-14 17:10:08 +04:00
2026-08-24 18:29:36 -04:00
2026-10-26 07:24:36 +09:00
2026-10-05 12:17:25 +04:00
2026-10-12 17:29:04 +04:00
2026-07-23 02:54:56 -04:00
2026-07-26 21:12:14 -04:00
2026-07-31 17:41:14 -04:00
2026-10-21 09:26:26 +09:00
2026-10-01 03:31:20 +04:00
2026-10-25 08:24:14 +09:00
2026-10-28 10:02:45 +09:00
2026-10-14 23:21:22 +04:00
2026-07-26 23:09:22 -04:00
2026-10-22 07:40:01 +09:00
2026-10-09 18:37:55 +04:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-10-26 07:24:36 +09:00
2026-10-16 14:31:39 +04:00
2026-10-28 08:04:47 +09:00
2026-10-10 23:18:09 +04:00
2026-10-14 23:21:22 +04:00
2026-09-15 22:47:03 -04:00
2026-10-11 15:55:57 +04:00