The Sessions view in the Netra dashboard provides a centralized place to monitor user interactions, track custom events, and analyze session-level performance metrics. This section explains how to set up session tracking in your code and how to view and analyze sessions in the dashboard.Documentation Index
Fetch the complete documentation index at: https://docs.getnetra.ai/llms.txt
Use this file to discover all available pages before exploring further.
Setting Up Session Tracking
Before viewing sessions in the dashboard, you need to set up session tracking in your application code.Initialize the Netra SDK
Set Session Identifiers
Track specific users, sessions, and tenants with unique identifiers:Add Custom Context Attributes
Enrich your session data with custom attributes for better analysis:Record Custom Events
Track important business and technical events:Viewing Sessions in the Dashboard
The Sessions dashboard displays all your application sessions with their associated traces. Each session shows key information including session ID, creation time, duration, number of traces, and total cost.
Features
- Filter & Search: Filter sessions by date, time range, or search by session/user ID
- Refresh Data: Manually refresh to see the latest sessions
- View Columns: SessionId, CreatedAt, Duration, Traces, Cost, and Actions button
Use Cases
- Debugging User Issues: Retrieve a specific user’s session to review all their interactions and traces
- Cost Analysis: Identify expensive sessions by viewing total cost per session
- Performance Monitoring: Track session duration and number of traces to monitor application behavior
- Error Investigation: Find sessions with failed traces to diagnose issues quickly
- User Analytics: Analyze session patterns to understand user behavior and engagement
Next Steps
- Users - Track individual users across sessions
- Tenants - Organize sessions by tenant for multi-tenant applications
- Traces Overview - Deep dive into trace data within sessions
