open-webui/backend/open_webui/utils/telemetry
Classic298 1d5373066d
fix: OpenTelemetry request metrics create a new series for each distinct URL (#33613)
With OpenTelemetry metrics on, a request for a URL the server has no API endpoint for was counted under its full address, so every distinct URL became a metric series of its own and the series count kept growing. When the web interface is not served (API-only setups) this happens for any unknown URL, such as bots probing for missing paths. With Starlette 1.3.1, the version pinned for source installs, it also happens for every page load, static file and websocket request, because that version tells the server nothing about which part of the app answered them. These requests are now counted without a URL label, while API requests keep theirs. Admins need to do nothing, as the old series stop growing and age out.

Fixes #33576
2026-11-03 20:43:51 +09:00
..
__init__.py refac 2025-03-11 18:55:30 +00:00
constants.py refac(telemetry): drop deprecated semconv SpanAttributes subclass (#25784) 2026-06-29 02:05:34 -05:00
instrumentors.py refac 2026-11-02 08:48:51 +09:00
logs.py refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00
metrics.py fix: OpenTelemetry request metrics create a new series for each distinct URL (#33613) 2026-11-03 20:43:51 +09:00
setup.py refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00