---
title: "分散トレーシングを実装する（エージェント用スキル） | Orchestor"
description: "Jaeger と Tempo でマイクロサービスをまたぐリクエストを追跡し、性能のボトルネックを特定します。マイクロサービスのデバッグ、リクエスト経路の分析、分散システムの可観測性の実装に使用します。wshobson/agents が公開している「分散トレーシングを実装する」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/wshobson/agents/distributed-tracing"
markdown_url: "https://www.orchestor.io/ja/skills/wshobson/agents/distributed-tracing.md"
---

[c96b5f6](https://github.com/wshobson/agents/commit/c96b5f6552dba32e4492307493ee613581430715)[原文を開く](https://github.com/wshobson/agents/blob/c96b5f6552dba32e4492307493ee613581430715/plugins/observability-monitoring/skills/distributed-tracing/SKILL.md)

wshobson2026/11/24

原文 (選択中)

未翻訳

プレビュー (選択中)

79 行（空行を除く 55 行） · 2.06 KB原文

```yaml
name: distributed-tracing
description: 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.
```

# 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 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

```python
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

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/wshobson/agents/distributed-tracing#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "分散トレーシングを実装する",
        "item": "https://www.orchestor.io/skills/wshobson/agents/distributed-tracing"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
