本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)41k · #6740

distributed-tracing

できること

コンピュータシステムのさまざまな部分を、リクエストがどのように移動していくかを理解する手助けをします。処理の遅延やエラーの原因を見つけるときに役立ちます。

使う場面

  • ✓何かの処理が遅いとき。
  • ✓サービス同士がどのように通信しているかを確認したいとき。
  • ✓エラーがどこで発生しているかを見つけたいとき。

スキルのリンク

https://github.com/wshobson/agents/blob/main/plugins/observability-monitoring/skills/distributed-tracing/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/wshobson/agents/blob/main/plugins/observability-monitoring/skills/distributed-tracing/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“処理に時間がかかっているリクエストを追跡するのを手伝ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

リクエストが通過する各工程に、小さな情報を追加していきます。これらの情報は、リクエストの全体の流れを確認できる場所に送られます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Distributed Tracing

Implement distributed tracing with Jaeger and Tempo for request flow visibility across microservices.

Purpose

Track requests across distributed systems to understand latency, dependencies, and failure points.

When to Use

  • Debug latency issues
  • Understand service dependencies
  • Identify bottlenecks
  • Trace error propagation
  • Analyze request paths

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Sample appropriately (1-10% in production)
  2. Add meaningful tags (user_id, request_id)
  3. Propagate context across all service boundaries
  4. Log exceptions in spans
  5. Use consistent naming for operations
  6. Monitor tracing overhead (<1% CPU impact)
  7. Set up alerts for trace errors
  8. Implement distributed context (baggage)
  9. Use span events for important milestones
  10. Document instrumentation standards

Integration with Logging

Correlated Logs

import logging
from opentelemetry import trace

logger = logging.getLogger(__name__)

def process_request():
    span = trace.get_current_span()
    trace_id = span.get_span_context().trace_id

    logger.info(
        "Processing request",
        extra={"trace_id": format(trace_id, '032x')}
    )

Troubleshooting

No traces appearing:

  • Check collector endpoint
  • Verify network connectivity
  • Check sampling configuration
  • Review application logs

High latency overhead:

  • Reduce sampling rate
  • Use batch span processor
  • Check exporter configuration

Related Skills

  • prometheus-configuration - For metrics
  • grafana-dashboards - For visualization
  • slo-implementation - For latency SLOs
よくある質問

「マイクロサービス」とは何ですか?

大きなプログラムを構成する、小さくて独立した部品のことです。それぞれが互いに通信し合います。

「Jaeger」や「Tempo」とは何ですか?

トレース情報を収集して表示し、視覚的に確認できるようにするツールです。

なぜトレースを「サンプリング」するのですか?

特に大規模なシステムでリクエストが多い場合に、情報量が多すぎてシステムに負荷がかかるのを避けるためです。

詳細

作者による元の説明

Implement distributed tracing with Jaeger and Tempo to track requests across microservices and identify performance bottlenecks. Use when debugging microservices, analyzing request flows, or implementing observability for distributed systems.

repo: wshobson/agents

人気

GitHubのスター
41k
ランキング
#6740
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル