Analyze distributed traces and performance issues with Sentry
Analyzes distributed traces to identify performance bottlenecks and optimization opportunities.
/plugin marketplace add coalesce-labs/catalyst/plugin install catalyst-debugging@catalystinheritInvestigate distributed traces, transaction performance, and slow requests using Sentry.
/trace-analysis <trace-id-or-query>
Examples:
/trace-analysis "a4d1aae7216b47ff8117cf4e09ce9d0a"
/trace-analysis "slow API requests to /checkout"
/trace-analysis "traces with >5 second response time"
/trace-analysis "performance issues in payment service"
/trace-analysis "Analyze trace abc123def456: where's the bottleneck?"
/trace-analysis "Why are checkout API requests slow today?"
/trace-analysis "Compare performance of payment service vs order service"
/trace-analysis "Find traces with slow database queries in user service"
Analysis includes:
Trace Overview:
Span Breakdown:
Transaction: POST /api/checkout (2.4s)
├─ Authentication (45ms)
├─ Database Query: SELECT users (120ms)
├─ External API: Payment Gateway (1.8s) ⚠️ SLOW
├─ Database Query: INSERT orders (230ms)
└─ Email Service (180ms)
Performance Insights:
Recommendations:
/trace-analysis "Find common bottlenecks across all slow checkout traces today"
/trace-analysis "Map service call chain for failed transactions"
/trace-analysis "Traces that resulted in errors: what went wrong before?"
# Enable debugging plugin (if not already)
/plugin enable catalyst-debugging
# Combine trace and error analysis
> "Show me the trace for the transaction that caused error ISSUE-456"
After identifying bottleneck:
/create-plan "Optimize the slow payment gateway call identified in trace analysis"
/trace-analysis "transactions with >2s response time in last hour"
> "Drill into the slowest trace: which span is the problem?"
> "Why is the database query taking 800ms?"
/create-plan "Add database index for user lookups based on trace analysis"
> "After deploy, compare trace durations before and after"
Plugin uses ~20k tokens. Disable after analysis:
/plugin disable catalyst-debugging
See also: /debug-production-error, /error-impact-analysis