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-http-errors.mdrules/

titleimpacttags
Pattern: HTTP 500 ErrorsHIGHpattern, http, 500, errors

Pattern: HTTP 500 Errors

Impact: HIGH

Diagnose HTTP 500 internal server errors.

Workflow

# 1. Find failed HTTP spans
npx @kopai/cli traces search --status-code ERROR --span-attr "http.status_code=500" --json

# 2. Get trace details
npx @kopai/cli traces get <traceId> --json

# 3. Check error logs
npx @kopai/cli logs search --trace-id <traceId> --severity-text ERROR --json

Key Attributes to Check

AttributePurpose
http.status_codeHTTP response code
http.routeEndpoint that failed
error.messageError description
exception.typeException class

Reference

https://opentelemetry.io/docs/specs/semconv/http/

SKILL.md

tile.json