Errors
Track exceptions, stack traces, and error context from your applications
Cased Telemetry captures errors from your applications using the standard Sentry SDK. Errors are automatically grouped by fingerprint, enriched with context, and queryable by AI agents.
Quick Start
Section titled “Quick Start”1. Install the SDK
Section titled “1. Install the SDK”uv pip install sentry-sdk2. Configure Your DSN
Section titled “2. Configure Your DSN”import sentry_sdk
sentry_sdk.init( dsn="https://abc123@telemetry.cased.com/1", # Your Cased DSN traces_sample_rate=1.0,)For Node.js:
npm install @sentry/nodeconst Sentry = require("@sentry/node");
Sentry.init({ dsn: "https://abc123@telemetry.cased.com/1", tracesSampleRate: 1.0,});What Gets Captured
Section titled “What Gets Captured”When an exception occurs, the SDK captures:
- Exception type and message - The error class and description
- Stack trace - Full call stack with file names and line numbers
- Request context - URL, HTTP method, headers, body (if configured)
- User context - User ID, email, IP address (if configured)
- Tags and extra data - Custom metadata you add
- Breadcrumbs - Recent events leading up to the error
Error Grouping
Section titled “Error Grouping”Errors are grouped by fingerprint - a hash of the exception type and stack trace. This means:
- The same error occurring multiple times creates one issue with a count
- You won’t get spammed with duplicate notifications
- Agents can identify “47 occurrences of the same error” vs “47 different errors”
CLI Commands
Section titled “CLI Commands”Query errors from the command line:
# Recent errorscased errors --since 1h
# Search for specific errorscased errors --query "TimeoutError"
# Filter by levelcased errors --level error --since 24h
# Get details for a specific errorcased errors --event-id abc123API Endpoints
Section titled “API Endpoints”Query Errors
Section titled “Query Errors”curl -H "Authorization: Token YOUR_API_KEY" \ "https://app.cased.com/api/v1/telemetry/errors?action=recent&hours_back=24"Search Errors
Section titled “Search Errors”curl -H "Authorization: Token YOUR_API_KEY" \ "https://app.cased.com/api/v1/telemetry/errors?action=search&query=TimeoutError"Slack Notifications
Section titled “Slack Notifications”Get notified in Slack when new error types are detected. Configure a Slack channel per project, and Cased sends a notification the first time each unique error is seen.
Errors are grouped by fingerprint, so you won’t get spammed with duplicates.
Source Maps
Section titled “Source Maps”For JavaScript applications, upload source maps to see original source locations instead of minified code in stack traces.
Data Retention
Section titled “Data Retention”Error events are retained for 90 days.