mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #13982] feat: Include User Group Information in Langfuse Traces #17094
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 @merrime-n on GitHub (May 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13982
Check Existing Issues
Problem Description
I am using Open WebUI with Langfuse integration to monitor and analyze LLM usage. Currently, the traces sent to Langfuse include valuable information such as User ID, Model, Input Tokens, and Output Tokens. However, I noticed that there is no metadata or tag related to the user's group (as defined in Open WebUI) included in the traces.
I would like to request the addition of user group information (e.g., group name or group ID) in the Langfuse traces. This feature is critical for my use case, as I need to create reports in Langfuse categorized by groups—for example, calculating the total usage cost per group on a monthly basis.
Use Case:
Desired Solution you'd like
"group": "Marketing"or"group_id": "123"to the Langfuse trace payload.Alternatives Considered
We have checked the existing Langfuse traces generated by Open WebUI, and there is no group-related metadata currently being sent. Manually cross-referencing user IDs with group lists outside of Langfuse is cumbersome, error-prone, and doesn't scale well for generating automated reports directly within or from Langfuse data.
Additional Context
PS: I'm very eager to contribute to the implementation of this feature if provided with some guidance on where to start.