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