Docs
Tracing
Users

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.

Decorators

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

Low-level SDK

from langfuse import Langfuse
langfuse = Langfuse()
 
trace = langfuse.trace(
    user_id="your-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

Was this page useful?

Questions? We're here to help

Subscribe to updates