/polymath-observability:trace-investigatefrom polymath-observability
Investigate a Honeycomb trace by trace.id — surface the offending span, its dependency chain, error context, and a candidate root-cause hypothesis.
Ships in polymath-observability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Given a trace ID, build the chain that explains the failure: which span errored, which span is the cause (not just the surface), and which attributes characterize the failure.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
MCP binding (read before any tool call): if your host has a
honeycombMCP server, use its tools for this skill's data access. Check your own tool list — it may be registered under another name (a Claude Code connector appears asmcp__claude_ai_<Name>__*). Tool names differ between servers: use the closest match, and say so when the server is read-only. Never install or start a second copy. If there is none, work without MCP tool calls (give the user the queries or steps to run) and ask before suggesting an install.
trace.id and you want the full trace context.userConfig.honeycombDataset.BREAKDOWN trace.span_id filtered to trace.id = <id> over the relevant time window. Cap at 1000 spans (rare traces exceed this; if so, surface the cap and break by parent).trace.parent_id. Identify the root span (no parent).error = true. The origin is usually the deepest erroring span in the chain — an erroring span none of whose children errored; its ancestors' errors are propagation. Decide by the tree, not by timestamp.service.name, db.system, url.full / http.url, http.response.status_code, messaging.destination.name, error.type, exception.message, and any custom app.* attributes the service set.duration_ms minus child time) by service.name. The dominant bucket points at where time went.error.type indicates timeout; parent chain shows a long-running peer.db.system + non-zero error; check the surrounding SQL.error.type includes RateLimited, CircuitOpen, etc.trace-investigate
Trace: 7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d (dataset: refund-api)
Spans: 42 (within 1000 cap)
Span tree (collapsed)
root: POST /refund/issue [120ms]
└─ refund-api: validate [12ms]
└─ refund-api: persist [40ms]
└─ refund-db: INSERT INTO refunds [38ms]
└─ refund-api: queue [60ms]
└─ refund-worker: handle ⚠ ERROR
└─ refund-worker: payments.charge.refund ⚠ ERROR
└─ stripe-client: HTTP POST ⚠ TIMEOUT (5s)
Offending span:
service.name = stripe-client
http.url = https://api.stripe.com/v1/refunds
http.response.status = (no response)
error.type = ConnectTimeoutError
error.message = "timeout=5000ms"
duration_ms = 5012
Self-time by service:
stripe-client 5,012 ms (96%) ← dominant
refund-worker 120 ms
refund-api 60 ms
refund-db 38 ms
Hypothesis: upstream-timeout (Stripe API).
Next: use the official Stripe MCP / dashboard to triage the
affected charge IDs, and check Stripe status page for a
platform-wide event during the trace window.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-observability9 skills in this plugin
/author-monitorAuthor a Datadog monitor — query, threshold, evaluation window, no-data behavior, notification routing; pair with polymath-sre:slo-design for SLO burn-rate monitors./dashboard-snapshotCapture a Grafana dashboard snapshot for incident timelines + postmortem evidence — snapshot URL, time range pinned, variables resolved./logging-strategyDefine a service's logging strategy — structured JSON, level discipline, redaction, sampling for noisy paths, cost-aware retention.Other plugins' skills for the same job