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

workflow-get-context.mdrules/

titleimpacttags
Step 2: Get Full Trace ContextCRITICALworkflow, trace, context, step2

Step 2: Get Full Trace Context

Impact: CRITICAL

Get complete trace details with all spans.

Get Trace

npx @kopai/cli traces get <traceId> --json

Analysis Points

FieldWhat to Look For
ParentSpanIdSpan hierarchy/call chain
DurationSlow spans (bottlenecks)
SpanAttributesRequest context, parameters
StatusMessageError details, exception info
StatusCodeOK or ERROR

Select Specific Fields

npx @kopai/cli traces get <traceId> --fields SpanName,Duration,StatusCode --json

Reference

See references/trace-filters.md for output options

SKILL.md

tile.json