Skip to main content
Set a User ID on a trace to associate it with a specific user — enabling per-user filtering, cost tracking, and analytics in the dashboard.
TraceRoot dashboard showing traces filtered by user

Using using_attributes / usingAttributes

Propagate a User ID to all traces within a block:

Using observe / inside a function

Call update_current_trace / updateCurrentTrace from within any observed function: