mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 09:31:58 -05:00
[GH-ISSUE #23936] issue: Regression: TypeError in telemetry metrics due to async callbacks in metrics.py #58781
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FlorentMair80 on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23936
Check Existing Issues
Installation Method
Other
Open WebUI Version
0.9.1
Ollama Version (if applicable)
No response
Operating System
Windows
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The telemetry system should collect user metrics silently in the background without throwing exceptions.
Actual Behavior
A regression was introduced in the latest release where telemetry metric observation functions were converted to async def. However, the OpenTelemetry SDK's PeriodicExportingMetricReader expects synchronous callbacks. This results in the SDK receiving a coroutine object instead of the expected measurement iterable, triggering a TypeError in the logs every time metrics are collected.
The issue is located in backend/open_webui/utils/telemetry/metrics.py.
The following functions were changed from synchronous to asynchronous:
observe_active_users
observe_total_registered_users
observe_users_active_today
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@dude75 commented on GitHub (Apr 22, 2026):
I have the same issue.
@kirill-sch commented on GitHub (Apr 23, 2026):
Same issue here.
@tjbck commented on GitHub (Apr 24, 2026):
Addressed in dev.