honeycomb-production-investigation
Skill137 starsChanged 10 days agoApache-2.0View on GitHub
Load when an investigation needs Honeycomb telemetry to find a root cause: a latency spike, an error surge, a deployment regression, a failing dependency or an SLO burning budget. Gives the order of Honeycomb MCP tool calls (orient, broad query, BubbleUp, trace drill-down, verification) and how to carry each result into the next step.
In this repository72 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- agentcore-observability-setupSkill
- agentcore-ops-reviewSkill
- aiml-access-diagnosticsSkill
- aiml-gpu-training-cluster-investigationSkill
- analytics-opensearch-expertiseSkill
- aws-backup-coverage-reviewSkill
- aws-eks-healthdashboardSkill
- aws-eks-operations-reviewSkill
- aws-fsxn-operations-reviewSkill
- aws-health-eventsSkill
- aws-natgw-traffic-analysisSkill
- aws-routingSkill
- aws-vpc-dns-investigationSkill
- bedrock-adoption-readinessSkill
- bedrock-operation-reviewSkill
- bronto-dataset-discoverySkill
- bronto-error-investigationSkill
- bronto-log-searchSkill
- cloudtrail-cost-optimizationSkill
- config-cost-optimizationSkill
- coralogix-ai-centerSkill
- coralogix-alertsSkill
- coralogix-case-analyticsSkill
- coralogix-case-managementSkill
- coralogix-casesSkill
- coralogix-dashboardsSkill
- coralogix-dataprimeSkill
- coralogix-datasetsSkill
- coralogix-data-usageSkill
- coralogix-docsSkill
- coralogix-infrastructureSkill
- coralogix-logsSkill
- coralogix-metrics-querySkill
- coralogix-ollySkill
- coralogix-rumSkill
- coralogix-service-catalogSkill
- coralogix-single-caseSkill
- coralogix-spansSkill
- coralogix-viewsSkill
- crm-production-investigation-guidelinesSkill
- database-migration-service-expertiseSkill
- database-rds-devopsSkill
- devops-agent-cost-insightsSkill
- ecs-operation-reviewSkill
- eks-upgrade-readinessSkill
- enrich-with-aws-security-agentSkill
- eos-cost-analysisSkill
- firehose-operation-reviewSkill
- grafana-cloud-investigationSkill
- guardduty-cost-optimizationSkill
- honeycomb-create-boardSkill
- honeycomb-metrics-queriesSkill
- honeycomb-observability-fundamentalsSkill
- honeycomb-query-patternsSkill
- honeycomb-slos-and-triggersSkill
- honeycomb-verify-recent-traceSkill
- investigation-cost-guardrailSkill
- live-streaming-event-readiness-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Run a broad query to see the shape of the issue:
- Very specific: line 48
When investigating exceptions, discover the dataset schema first, query event.name=exception with exception.type exists and trace.trace_id …
- Very specific: line 54
If a service uses an exception-promoting LogRecordProcessor, some exception.* fields may also appear on the containing span.
- Very specific: line 61
Run run_bubbleup on the query result, selecting the outlier region
- Distinctive: line 63
Look for fields where the distributions differ significantly
- Distinctive: line 71
After BubbleUp identifies suspects:
- Distinctive: line 72
Add BubbleUp findings as WHERE filters to narrow results
- Very specific: line 74
Call get_trace to fetch the full trace
- Distinctive: line 87
If the metrics diverge, you've found it
- Distinctive: line 116
If you find yourself reasoning any of these, follow the workflow anyway:
- Very specific: line 124
No results: Check field names with find_columns, expand time range, verify environment/dataset
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Honeycomb Production Investigation
Structured workflows for debugging production issues. The MCP tools document their own parameters — this skill focuses on the sequence of tool calls and how to interpret results to reach a root cause.
The Core Analysis Loop
This workflow implements the core analysis loop: Define → Visualize → Investigate → Evaluate. If BubbleUp returns nothing useful, the issue is often an instrumentation gap: report which attributes are missing so the team can add them.
Requires the Honeycomb connector in the Agent Space, with its read tools enabled. Creating a board, SLO or trigger needs write access: Read-write at sign-in, or a key with Write under Model Context Protocol. If a create tool is missing or returns a permission error, stop and tell the operator that it needs write access. Do not retry.
Investigation Workflow
Step 1: Orient
get_workspace_context→ environments and datasetsget_slos→ any SLOs in violation? (frames severity)get_triggers→ any alerts firing? (narrows scope)find_queries→ has anyone investigated this before?
Step 2: Characterize the Problem
Run a broad query to see the shape of the issue:
- Latency spike: P99(duration_ms), HEATMAP(duration_ms) grouped by service or route
- Error surge: count failed operation spans (
error=true) by service/route/category, then separately count exception event rows usingevent.name=exceptionandexception.type exists; use sampledtrace.trace_idvalues to drill into representative traces - Unknown: COUNT grouped by service.name to find which service has anomalous volume
Also call get_service_map — it shows P95 durations between services and can immediately reveal which dependency is slow.
Exception data has two query surfaces: operation failures belong on spans (error=true, span
status, low-cardinality exception.slug/error category); full exception diagnostics may belong on
trace-correlated Logs API event rows. Do not assume exception.* exists on the containing span.
When investigating exceptions, discover the dataset schema first, query event.name=exception
with exception.type exists and trace.trace_id exists, take a sample, then pass its
trace.trace_id to get_trace(show_events=true). For legacy span-event exceptions, also check
name=exception and meta.signal_type=trace; Logs API events use event.name/body and
meta.signal_type=log.
If a service uses an exception-promoting LogRecordProcessor, some exception.* fields may also
appear on the containing span. Treat that as an explicit client-side compatibility feature, not a
Honeycomb guarantee: the event row remains authoritative for full diagnostics, and absence of
parent-span fields does not mean the exception event is missing.
Step 3: BubbleUp to Find Differentiators
This is the highest-value step. Once you have a query showing the anomaly:
- Run
run_bubbleupon the query result, selecting the outlier region - BubbleUp compares outlier vs baseline distributions across all columns automatically
- Look for fields where the distributions differ significantly
How to interpret BubbleUp results:
- Categorical fields (dimensions): A value overrepresented in outliers points to a cause (e.g.,
deployment.version=v2.3.1is 90% of slow requests but only 20% of baseline) - Numeric fields (measures): A shifted distribution shows correlated metrics (e.g.,
db.query_durationis much higher in outliers) - Typical root causes surfaced: deployment version, region, user cohort, specific endpoint, feature flag
Step 4: Drill Into Traces
After BubbleUp identifies suspects:
- Add BubbleUp findings as WHERE filters to narrow results
- Pick a representative trace ID
- Call
get_traceto fetch the full trace
What to look for in the trace waterfall:
- Spans with disproportionate duration vs parent (the bottleneck)
- Sequential spans that could be parallelized (N+1 query patterns)
- Error spans — check span events for stack traces
- Gaps between child spans (missing instrumentation or idle wait)
- Service boundaries (where the trace crosses services)
Step 5: Verify Hypothesis
Form a hypothesis from BubbleUp + trace analysis, then confirm:
- Query WITH the suspected cause filtered in
- Query WITHOUT it (as a control)
- If the metrics diverge, you've found it
Step 6: Record Findings
Report the root cause with the query run PKs and trace IDs that support it. Only if the
operator asks for a Honeycomb board, show the proposed title, panels and SLOs, and call
create_board only after the operator approves. The board holds:
- A text panel summarizing the root cause (Markdown)
- The key query run PKs that identified the problem
- Related SLOs if applicable
Investigation Patterns
Latency Spike
HEATMAP first → BubbleUp the slow region → trace a slow request → verify with filtered queries
Error Surge
Count failed operation spans by service/route/category → count Logs API exception events by
event.name=exception and exception.type → sample trace.trace_id → get_trace(show_events=true)
→ verify with filtered queries. Do not use exception.message on the parent span as the only
exception search.
Deployment Regression
P99 grouped by deployment.version → BubbleUp comparing new vs old → trace from new version → verify
Dependency Failure
get_service_map → P99 on the slow dependency → relational query (any.service.name) to measure user impact → trace an affected request
Stay on the Path
If you find yourself reasoning any of these, follow the workflow anyway:
- "The cause is obvious, I can skip BubbleUp" — BubbleUp routinely surfaces causes that seem obvious in hindsight but weren't the first guess. It also catches secondary causes you'd miss entirely.
- "I already know it's a deployment issue" — verify with Step 5. Confirmation bias is strongest during incidents. Query with and without the suspected cause.
- "Traces confirmed it, no need to verify" — a single trace is an anecdote. The verification query proves the pattern holds across all traffic, not just one request.
- "This is a simple issue, the full workflow is overkill" — the workflow takes minutes; a wrong diagnosis during an incident costs hours.
When Results Are Empty or Unclear
- No results: Check field names with
find_columns, expand time range, verify environment/dataset - BubbleUp shows no signal: Try a different time selection, add filters to isolate the anomaly more clearly, or select a different calculation
- Trace missing spans: Sampling, instrumentation gaps, or cross-environment trace split
Additional Resources
Reference Files
references/investigation-playbooks.md— Step-by-step playbooks for latency spikes, error surges, deployment regressions, dependency failures, SLO budget burn, and health checksreferences/bubbleup-guide.md— Detailed BubbleUp usage: selection types, time specifications, pagination, result interpretationreferences/trace-exploration.md— Trace structure, get_trace parameters and view modes, waterfall analysis, span events and links
Cross-References
- For the conceptual foundations of the core analysis loop, see the honeycomb-observability-fundamentals skill
- For query construction patterns, see the honeycomb-query-patterns skill
- For SLO/trigger context during investigations, see the honeycomb-slos-and-triggers skill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

