Skip to main content
Sessions 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 multi-step process.
Developers configure sessions in your application. See Development documentation for setup instructions.
Sessions page with search, filters, date range selector, and sortable columns

Understanding Sessions

A session represents a logical grouping of related traces. Common examples include: Conversations - All messages in a chat with a specific user. Workflows - Multi-step processes like document analysis or data processing. Batch Jobs - Related operations processing multiple items. User Journeys - Complete user interactions from start to finish.

Session Components

Each session includes: Session ID - Unique identifier that links traces together. Session Name - Human-readable name for easy identification. Traces - All prompt executions associated with the session. Timeline - Chronological view of all activity in the session. Aggregated Metrics - Total costs, tokens, and durations across all traces.

Viewing sessions

Access sessions in the AgentMark dashboard under the Sessions tab. You can search by session ID or name, filter by date range and user, and sort by cost, tokens, duration, or trace count. Click a session to view:
  • All traces in the session
  • Timeline of events
  • Total token usage and costs
  • Custom metadata
  • Performance metrics
For full details on filtering, searching, and saving views, see Filtering and Search.

Best Practices

Use Consistent IDs - Ensure all related traces use the same session ID. Meaningful Names - Give sessions descriptive names for easy identification. Include Context - Add relevant metadata to help with debugging and analysis. Limit Scope - Keep sessions focused on specific workflows or interactions. Session Lifecycle - For long-running applications, create new sessions periodically rather than endless sessions. Clean Separation - Don’t mix unrelated operations in the same session.

Integration

To enable sessions in your application, pass sessionId and sessionName when creating traces with the SDK. All traces that share the same sessionId are automatically grouped into a session in the dashboard. See the Development Observability documentation for implementation details.

Next Steps

Traces and Logs

Understand trace details

Development Setup

Implement sessions in your app

Alerts

Set up session-based alerts

Dashboards

Analyze session performance

Have Questions?

We’re here to help! Choose the best way to reach us: