Skip to content

Telemetry

Agent-first error tracking and observability - no dashboards, just AI

Cased Telemetry is agent-first observability - there’s no dashboard to check, no charts to interpret. Your telemetry data goes directly to AI agents that can query, analyze, and act on it.

Traditional observability tools are built for humans staring at dashboards. You get paged, open a browser, click through charts, and manually investigate.

Today, we can do this better:

  • No context switching - Ask your agent “why is the API slow?” and it queries your telemetry directly
  • Instant root cause analysis - Agents correlate errors, metrics, and traces automatically
  • Automated remediation - Agents can fix issues and open PRs, not just alert you

There’s no pre-baked Cased Telemetry dashboard. The API is the interface, and AI agents are the users.

Your Application Cased
┌──────────────────┐ ┌────────────────────────┐
│ SDK │───────────────────>│ │
│ (errors/traces) │ │ Telemetry Storage │
└──────────────────┘ │ │
│ │ │
┌──────────────────┐ │ ▼ │
│ cased-agent │───────────────────>│ ┌─────────────┐ │
│ (metrics) │ │ │ Query API │<─────┼─── AI Agents
└──────────────────┘ │ └─────────────┘ │ or Cased Agents
└────────────────────────┘
  • Sentry SDK Compatible - Use the standard sentry-sdk, just change the DSN
  • Container Metrics - cased-agent collects CPU, memory, network from Kubernetes
  • Distributed Tracing - OpenTelemetry-compatible spans
  • LLM Monitoring - Track token usage, costs, latency, and errors across AI integrations
  • Performance Analysis - Detect slow spans, N+1 queries, and latency regressions
  • Slack Notifications - Get notified when new error types appear
  • API & CLI - Query everything via REST API or the Cased CLI

Create a project in the Cased UI under Connections → Cased Telemetry, or via API:

Terminal window
curl -X POST https://app.cased.com/api/v1/telemetry/projects/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "my-app"}'

Either way, you’ll get a DSN like:

https://abc123@telemetry.cased.com/1

Use the standard Sentry SDK - just point it at your Cased DSN:

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", // Your Cased DSN
tracesSampleRate: 1.0,
});

3. (Optional) Deploy cased-agent for Infrastructure Metrics

Section titled “3. (Optional) Deploy cased-agent for Infrastructure Metrics”

Deploy the cased-agent DaemonSet to collect container metrics from your Kubernetes cluster:

Terminal window
kubectl apply -f https://raw.githubusercontent.com/cased/cased-agent/main/deploy/manifests/install.yaml

See cased-agent Setup for detailed configuration.

Cased Telemetry collects four types of data, each with its own collection method:

TypeSourceWhat it captures
ErrorsSentry SDKExceptions, stack traces, request context
TracesSentry SDKDistributed spans, latency, service dependencies
Metricscased-agentContainer CPU, memory, network, restarts
LLM EventsYour codeToken usage, costs, latency per model

Captures exceptions with full context: stack traces, request data, user info, and custom tags. Upload source maps to de-minify JavaScript traces.

Distributed tracing across services. Analyze latency, find slow spans, detect N+1 queries. See Traces.

Container-level metrics from Kubernetes: CPU, memory, network I/O, OOM events. Requires cased-agent deployed as a DaemonSet.

Track LLM calls with token counts, costs, and latency. Group by session or trace. See LLM Monitoring.

Data TypeRetention
Error Events90 days
LLM Events90 days
Metrics30 days
Traces14 days

Once you’ve configured the Cased CLI, your coding agent can query telemetry directly. Just ask:

"Using cased, what errors happened in the last hour?"
"Using cased, why is the checkout API slow?"
"Using cased, show me memory usage for the api-server pods"

No dashboards, no context switching—your agent queries errors, traces, and metrics, correlates them, and can even open PRs with fixes.

Cased also runs scheduled agent workflows that automatically:

  • Detect error spikes and investigate root causes
  • Monitor for performance regressions after deploys
  • Track LLM cost anomalies
  • Create PRs with fixes when issues are found

Get notified in Slack when new error types are detected. Configure a Slack channel per project, and Cased will send a notification the first time each unique error is seen—with stack trace, context, and a link to investigate.

Errors are grouped by fingerprint, so you won’t get spammed with duplicates.