Loading...
Loading...
Opinionated guidance for constructing and interpreting Honeycomb queries on trace and event datasets — operation selection (percentiles not AVG, HEATMAP for distributions), relational field patterns (root., parent., any., none.), calculated fields, query math, and result interpretation (P99/P50 ratios, heatmap bands, TOTAL/OTHER rows, raw JSON via query_result_json). Use this skill when the user wants to query spans, traces, or log/event data in Honeycomb — requests like "show me latency", "error rate", "find slow requests", "find outliers", "interpret results", "relational fields", "calculated fields", or "download raw results". This skill covers all dataset types except metrics datasets (dataset_type=metrics) — for those, use metrics-queries instead.
npx skill4agent add honeycombio/agent-skill query-patternsCOUNT, P99(duration_ms), HEATMAP(duration_ms)find_queries| Question | Use |
|---|---|
| How much traffic? | |
| How many unique users/IPs? | |
| How fast for most users? | |
| How fast for the worst-off users? | |
| Is there a bimodal pattern? | |
| What's the worst case? | |
| How many concurrent operations? | |
| Is it getting worse over time? | |
any.service.nameroot.http.routeany.error = trueroot.namenone.service.name = "health-check"error_pctMUL(IF($error, 1, 0), 100)AVG(error_pct)IF(GTE($http.status_code, 500), "5xx", GTE($http.status_code, 400), "4xx", "ok")BUCKET($duration_ms, 500, 0, 3000)IF(STARTS_WITH($url, "/admin"), "admin", STARTS_WITH($url, "/api"), "api", "other")SWITCHIF(EQUALS(...))REG_MATCHREG_VALUEREG_COUNTexception.stacktracedb.statementexception.typeexception.messagedb.operationCONTAINSEQUALSEQUALS($http.status_code, 200)find_columnsFORMAT_TIME${CLAUDE_PLUGIN_ROOT}/skills/query-patterns/references/calculated-fields.mdis_root"24h""-6h"find_columnsquery_result_json▁▂▃▄▅▆▇█run_bubbleup${CLAUDE_PLUGIN_ROOT}/skills/query-patterns/references/visualize-operations.md${CLAUDE_PLUGIN_ROOT}/skills/query-patterns/references/relational-fields.md${CLAUDE_PLUGIN_ROOT}/skills/query-patterns/references/query-examples.md${CLAUDE_PLUGIN_ROOT}/skills/query-patterns/references/result-interpretation.md${CLAUDE_PLUGIN_ROOT}/skills/query-patterns/references/calculated-fields.md