Honeycombにおける本番環境のトラブルシューティング:調査の流れ 本番環境での問題を体系的に調査するためのワークフローです。以下のツール呼び出しを順序立てて実行します: - **背景情報の準備**(現在の状況を把握) - **広範なクエリ実行**(問題の全体像を確認) - **BubbleUp**(異常な値や傾向を特定) - **トレース分析**(詳細な処理の流れを追跡) - **検証**(原因の確認) 各ステップの結果を次のステップにつなぎ合わせることで、根本的な原因へたどり着きます。 **次のような場合に使用:** 「本番環境の問題を調査してほしい」「レイテンシ(応答時間)の急上昇をデバッグしたい」「根本的な原因を見つけたい」「BubbleUpを使ってほしい」「トレースを分析してほしい」「障害の原因を調べたい」「APIが遅い理由は何か」「エラーが増加している」「ヘルスチェック(稼働状態の確認)」「SLO焼却」(サービス品質基準の逼迫状況)など、本番環境の問題に関する調査やデバッグのご依頼
Structured workflows for investigating production issues in Honeycomb — the sequence of tool calls (context priming, broad query, BubbleUp, trace analysis, verification) and how to chain results between steps to reach root causes. Trigger phrases: "investigate production issue", "debug latency spike", "find root cause", "use BubbleUp", "analyze traces", "debug an outage", "why is my API slow", "errors are increasing", "health check", "SLO burning", or any request to investigate or debug production problems.
本番環境の問題をデバッグするための体系的なワークフロー。MCPツールは独自のパラメータをドキュメント化していますが、このスキルはツール呼び出しの順序と結果の解釈方法に焦点を当て、根本原因にたどり着くのを支援します。
このワークフローは、observability-fundamentalsスキルの中核となる分析ループ(定義 → 可視化 → 調査 → 評価)を実装しています。BubbleUp(データ傾向の自動比較機能)が有用な結果を返さない場合、多くの場合はデータ計測のギャップが原因です。欠けている属性を追加し(otel-instrumentationスキルを参照)、再度試してください。
get_workspace_context → 環境とデータセットを確認get_slos → SLO(目標とする性能水準)に違反していないか確認(問題の深刻さを判断)get_triggers → アラートが発火していないか確認(調査範囲を絞る)find_queries → これまでに誰かが調査したことはないか確認広い範囲のクエリを実行して問題の全体像を把握します:
error=true)をサービス/ルート/カテゴリ別にカウント。その後、event.name=exceptionとexception.type existsを使って例外イベント行を別途カウント。サンプル化されたtrace.trace_id値を使って代表的なトレースにドリルダウンservice.name別にカウントして、どのサービスが異常な通信量を示しているかを特定またget_service_mapも呼び出します。これはサービス間の95パーセンタイル応答時間を表示し、どの依存関係が遅いかを即座に明らかにできます。
例外データには2つのクエリ方法があります:オペレーション失敗はスパン上にあります(error=true、スパンステータス、低カーディナリティ(種類が限定された)exception.slug/エラーカテゴリ)。完全な例外診断情報はトレースに関連付けられたLogs APIのイベント行にある場合があります。包含するスパンにexception.*フィールドが存在すると仮定しないでください。例外を調査する際は、まずデータセットスキーマを確認し、event.name=exceptionかつexception.type existsとtrace.trace_id existsでクエリして、サンプルを取得した後、そのtrace.trace_idをget_trace(show_events=true)に渡します。レガシ(古い形式の)スパンイベント例外の場合は、name=exceptionとmeta.signal_type=traceも確認してください。Logs APIイベントはevent.name/bodyとmeta.signal_type=logを使用します。
サービスが例外昇格(例外を優先的に記録する処理)を使う場合、一部のexception.*フィールドが包含するスパンに表示されることもあります。これを明示的なクライアント側互換性機能として扱ってください(Honeycombの保証ではありません)。イベント行が完全な診断データの権威であり、親スパンフィールドの欠落は例外イベントがないことを意味しません。
最も価値の高いステップです。異常を示すクエリが得られたら:
run_bubbleupを実行し、外れ値領域を選択BubbleUp結果の解釈方法:
deployment.version=v2.3.1が遅いリクエストの90%だがベースラインではわずか20%)db.query_durationが外れ値で大幅に高い)BubbleUpが疑わしい要因を特定した後:
get_traceを呼び出して完全なトレースを取得トレースの時系列図を見るときのチェックポイント:
BubbleUp+トレース分析から仮説を形成し、確認します:
create_boardを呼び出して以下を含めます:
ヒートマップで確認 → 遅い領域をBubbleUp → 遅いリクエストをトレース → フィルタリングクエリで検証
失敗したオペレーションをサービス/ルート/カテゴリ別にカウント → Logs API例外イベントをevent.name=exceptionとexception.type別にカウント → サンプルtrace.trace_id → get_trace(show_events=true) → フィルタリングクエリで検証。親スパンのexception.messageのみを例外検索の唯一の方法として使用しないでください。
99パーセンタイルをdeployment.version別にグループ化 → 新旧を比較してBubbleUp → 新バージョンからトレース → フィルタリングクエリで検証
get_service_map → 遅いサービスの99パーセンタイル → 関連クエリ(any.service.name)でユーザー影響を測定 → 影響を受けたリクエストをトレース
こんな理由で推論していても、ワークフローに従ってください:
find_columnsでフィールド名を確認、時間範囲を拡大、環境/データセットを検証${CLAUDE_PLUGIN_ROOT}/skills/production-investigation/references/investigation-playbooks.md — レイテンシ急上昇、エラー急増、デプロイメント回帰、依存サービス障害、SLO予算消費、ヘルスチェックの段階的プレイブック${CLAUDE_PLUGIN_ROOT}/skills/production-investigation/references/bubbleup-guide.md — 詳細なBubbleUp使用法:選択タイプ、時間指定、ページネーション、結果解釈${CLAUDE_PLUGIN_ROOT}/skills/production-investigation/references/trace-exploration.md — トレース構造、get_traceパラメータと表示モード、時系列分析、スパンイベントとリンク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.
This workflow implements the core analysis loop (Define → Visualize → Investigate → Evaluate) from the observability-fundamentals skill. If BubbleUp returns nothing useful, the issue is often an instrumentation gap — add the missing attributes (see the otel-instrumentation skill) and try again.
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?Run a broad query to see the shape of the issue:
error=true) by service/route/category, then
separately count exception event rows using event.name=exception and exception.type exists;
use sampled trace.trace_id values to drill into representative tracesAlso 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.
This is the highest-value step. Once you have a query showing the anomaly:
run_bubbleup on the query result, selecting the outlier regionHow to interpret BubbleUp results:
deployment.version=v2.3.1 is 90% of slow requests but only 20% of baseline)db.query_duration is much higher in outliers)After BubbleUp identifies suspects:
get_trace to fetch the full traceWhat to look for in the trace waterfall:
Form a hypothesis from BubbleUp + trace analysis, then confirm:
Call create_board with:
HEATMAP first → BubbleUp the slow region → trace a slow request → verify with filtered queries
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.
P99 grouped by deployment.version → BubbleUp comparing new vs old → trace from new version → verify
get_service_map → P99 on the slow dependency → relational query (any.service.name) to measure user impact → trace an affected request
If you find yourself reasoning any of these, follow the workflow anyway:
find_columns, expand time range, verify environment/dataset${CLAUDE_PLUGIN_ROOT}/skills/production-investigation/references/investigation-playbooks.md — Step-by-step playbooks for latency spikes, error surges, deployment regressions, dependency failures, SLO budget burn, and health checks${CLAUDE_PLUGIN_ROOT}/skills/production-investigation/references/bubbleup-guide.md — Detailed BubbleUp usage: selection types, time specifications, pagination, result interpretation${CLAUDE_PLUGIN_ROOT}/skills/production-investigation/references/trace-exploration.md — Trace structure, get_trace parameters and view modes, waterfall analysis, span events and links原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。