Sentry Setup
Error tracking and performance monitoring via Sentry integration.
Overview
Clew Code integrates with Sentry for error tracking, crash reporting, and performance monitoring. This helps developers identify and fix issues in production deployments.
Configuration
Set your Sentry DSN as an environment variable:
export SENTRY_DSN=https://your-dsn@sentry.io/your-project
Or configure it in .clew/settings.json:
{
"sentry": {
"dsn": "https://your-dsn@sentry.io/your-project",
"environment": "production",
"tracesSampleRate": 0.1
}
}
What's Tracked
- Unhandled exceptions and promise rejections
- Provider API errors with contextual information
- Tool execution failures
- Session-level performance traces
- MCP server connection errors
Verifying Setup
Run the doctor command to verify Sentry is connected:
❯ /doctor