
session_id
or user_id
to:
- Inspect full conversation threads.
- Track user journeys end-to-end.
- Identify problematic patterns tied to specific users or flows.
How add session and user
There are two ways to attach user/session information:1. Set default context
Set the context once (e.g., in middleware) and all traces created in that request will inherit it.2. Override context for specific traces
If you only want to set context for certain traces, useupdate_trace_user_session()
.