[GH-ISSUE #13982] feat: Include User Group Information in Langfuse Traces #17094

Closed
opened 2026-04-19 22:51:09 -05:00 by GiteaMirror · 0 comments
Owner

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

  • I have searched the existing issues and discussions.

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:

  • I want to generate detailed reports in Langfuse to analyze LLM usage and costs at the group level.
  • Without group information in the traces, I am unable to aggregate data by group, which limits the insights I can derive for organizational reporting and cost management.

Desired Solution you'd like

  • When Open WebUI sends trace data to Langfuse, include the user's group (name or ID) as part of the metadata or as a tag in the trace or observation.
  • Example: Add a metadata field 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

  • I have inspected the traces in my Langfuse dashboard and confirmed that no group-related metadata is currently being sent.
  • This feature would greatly enhance the ability to monitor and manage usage for organizations with multiple user groups in Open WebUI.

PS: I'm very eager to contribute to the implementation of this feature if provided with some guidance on where to start.

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 - [x] I have searched the existing issues and discussions. ### 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: - I want to generate detailed reports in Langfuse to analyze LLM usage and costs at the group level. - Without group information in the traces, I am unable to aggregate data by group, which limits the insights I can derive for organizational reporting and cost management. ### Desired Solution you'd like - When Open WebUI sends trace data to Langfuse, include the user's group (name or ID) as part of the metadata or as a tag in the trace or observation. - Example: Add a metadata field 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 - I have inspected the traces in my Langfuse dashboard and confirmed that no group-related metadata is currently being sent. - This feature would greatly enhance the ability to monitor and manage usage for organizations with multiple user groups in Open WebUI. PS: I'm very eager to contribute to the implementation of this feature if provided with some guidance on where to start.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17094