Skip to content

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.

Terminal window
uv pip install sentry-sdk
import sentry_sdk
sentry_sdk.init(
dsn="https://abc123@telemetry.cased.com/1", # Your Cased DSN
traces_sample_rate=1.0,
)

For Node.js:

Terminal window
npm install @sentry/node
const Sentry = require("@sentry/node");
Sentry.init({
dsn: "https://abc123@telemetry.cased.com/1",
tracesSampleRate: 1.0,
});

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

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”

Query errors from the command line:

Terminal window
# Recent errors
cased errors --since 1h
# Search for specific errors
cased errors --query "TimeoutError"
# Filter by level
cased errors --level error --since 24h
# Get details for a specific error
cased errors --event-id abc123
Terminal window
curl -H "Authorization: Token YOUR_API_KEY" \
"https://app.cased.com/api/v1/telemetry/errors?action=recent&hours_back=24"
Terminal window
curl -H "Authorization: Token YOUR_API_KEY" \
"https://app.cased.com/api/v1/telemetry/errors?action=search&query=TimeoutError"

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.

For JavaScript applications, upload source maps to see original source locations instead of minified code in stack traces.

Error events are retained for 90 days.