Why Account Context Matters for B2B
In B2B applications, impact analysis is about customers, not just users:- “Acme Corp is experiencing checkout failures” is more urgent than “3 users saw errors”
- Enterprise customers need different SLAs than free tier users
- Account-level patterns reveal integration issues specific to certain customers
Setting Account Context
Account Context Schema
A unique identifier for the account/organization. This should be your internal account ID, workspace ID, tenant ID, or organization ID. Good choices:
"acct_456""org_abc123""workspace_xyz"
A human-readable name for the account. Makes the dashboard more readable:
"Acme Corporation""Startup Inc""Enterprise Customer #1"
When to Set Account Context
Multi-Tenant SaaS
B2B with Organizations
Multi-Org Users
When users can belong to multiple organizations:FastAPI Middleware (Python)
Dashboard Features
Affected Accounts View
In the issue list:Account-Based Filtering
Filter errors by account:- “Show me all errors for Acme Corp”
- “Compare error rates across accounts”
- “Which accounts are most affected by this release?”
Impact Prioritization
The dashboard helps you prioritize based on account impact:Use Cases
- SaaS Workspaces
- Multi-Tenant
- Agency/Reseller
- Enterprise
For Slack-style apps with multiple workspaces:
Best Practices
Set Early and Update on Change
Set Early and Update on Change
Use Consistent ID Format
Use Consistent ID Format
Include Helpful Names
Include Helpful Names
Clear on Tenant Switch
Clear on Tenant Switch
Consider Account Tiers
Consider Account Tiers
Include tier information for prioritization:

