DocsFeaturesUsers

Users

The Users view provides an overview of all users. It also offers an in-depth look into individual users.

It’s easy to map data in Langfuse to individual users. Just pass a unique identifier as the userId when you create a trace. This can be a username, email, or any other unique identifier. The userId is optional, but using it helps you get more from Langfuse. See the integration docs to learn more.

When using the @observe() decorator:

from langfuse.decorators import langfuse_context, observe
 
@observe()
def fn():
    langfuse_context.update_current_trace(
        user_id="user-id"
    )
 
fn()

When using the low-level SDK:

from langfuse import Langfuse
langfuse = Langfuse()
 
trace = langfuse.trace(
    user_id="user-id"
)

View all users

The user list provides an overview of all users that have been tracked by Langfuse. It makes it simple to segment by overall token usage, number of traces, and user feedback.

User List

Individual user view

The individual user view provides an in-depth look into a single user. Explore aggregated metrics or view all traces and feedback for a user.

Individual user view

GitHub Discussions

Was this page useful?

Questions? We're here to help

Subscribe to updates