Sessions
Group related traces together for better observability
Sessions provide a way to group related traces together, making it easier to monitor and debug complex workflows in your LLM applications. By organizing traces into sessions, you can track the entire lifecycle of a user interaction or a multi-step process.

Understanding Sessions
A session represents a logical grouping of related traces. A common example is a conversation with a particular user, where each response can be associated with a single trace.
Sessions help you maintain context across multiple traces, making it easier to understand the full picture of your application’s behavior.
Creating Sessions
To create a session, include the session information in your telemetry metadata:
Best Practices
- Use Consistent Session IDs: Ensure all related traces use the same session ID
- Provide Descriptive Names: Give sessions meaningful names for easy identification
- Include Context: Add relevant metadata to help with debugging
- Limit Session Scope: Keep sessions focused on specific workflows or user interactions
- Clean Up: For long-running applications, create new sessions periodically rather than having endless sessions
Have Questions?
We’re here to help! Choose the best way to reach us:
Join our Discord community for quick answers and discussions
Email us at hello@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions
Was this page helpful?