CtrlK
BlogDocsLog inGet started
Tessl Logo

kopai/root-cause-analysis

Analyze telemetry data for root cause analysis using Kopai CLI. Use when debugging errors, investigating latency issues, tracing request flows across services, or correlating logs with traces. Also use when users report production issues like "why is my API slow", "getting 500 errors", "service is down", "requests are timing out", or any symptom that needs telemetry-based investigation — even if they don't mention traces or observability explicitly.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

pattern-slow-requests.mdrules/

titleimpacttags
Pattern: Slow RequestsHIGHpattern, latency, performance

Pattern: Slow Requests

Impact: HIGH

Diagnose slow request latency issues.

Workflow

# 1. Find slow traces (>1s = 1000000000 ns)
npx @kopai/cli traces search --duration-min 1000000000 --json

# 2. Analyze span breakdown
npx @kopai/cli traces get <traceId> --fields SpanName,Duration,ParentSpanId --json

# 3. Check for database/external calls
npx @kopai/cli traces search --trace-id <traceId> --span-kind CLIENT --json

Duration Reference

Duration (ns)Human
10000001ms
100000000100ms
10000000001s
50000000005s

Common Bottlenecks

  • Database queries (span-kind: CLIENT)
  • External API calls (span-kind: CLIENT)
  • Message queue operations
  • File I/O operations

SKILL.md

tile.json