Why Tenant Tracking Matters
For platforms serving multiple customers, understanding per-tenant behavior is critical:- Usage Attribution: Know exactly which customer is driving costs, token consumption, and API calls
- Customer Support: When a customer reports an issue, instantly access their specific traces without sifting through logs
- SLA Monitoring: Track performance metrics per tenant to ensure service level agreements are met
- Cost Allocation: Generate accurate billing reports based on actual LLM usage per customer
- Anomaly Detection: Identify unusual patterns in specific tenant activity before they become problems
Setting Up Tenant Tracking
Associate traces with tenants by callingset_tenant_id in your application code:
View Tenants List
The Tenants view provides a centralized dashboard of all customers whose activity you monitor. Navigate to Observability → Tenants from the left navigation menu.Available Controls
Tenant List Columns
Clicking View Traces navigates to the Traces view, automatically filtered to display only the traces associated with that specific tenant.
Use Cases
Customer Support
When a customer reports an issue:- Search for their tenant ID in the Tenants view
- Click View Traces to see all their recent activity
- Identify the problematic trace and investigate the root cause
Usage-Based Billing
Generate accurate invoices by:- Filtering the Tenants view by your billing period
- Exporting cost data per tenant
- Attributing LLM costs directly to each customer
Performance Benchmarking
Compare performance across your customer base:- Sort tenants by trace count or cost
- Identify outliers in latency or error rates
- Proactively reach out to customers experiencing issues
Related
- Users - Track individual user activity within tenants
- Sessions - Group related interactions into sessions
- Traces Overview - Deep dive into individual trace analysis
