Sessions let you group related traces from a multi-turn conversation into a single view.
When you set a conversation ID on your traces, the Traceloop UI groups them into a session where you can see the full conversation flow and inspect individual spans.
Use a consistent conversation ID across all turns of the same conversation.
Generate a unique ID (e.g. a UUID) when the conversation starts and pass it on each subsequent interaction.
Setting a Conversation ID
Using the decorator
Using the direct API
You can also set the conversation ID directly, without a decorator:Using the decorator
Using withConversation
Using conversationId in workflow config
You can also pass conversationId as part of the workflow or task configuration: