Distributed Tracing - CI/CD用語集の定義
分散トレーシングは、単一のリクエストが複数のサービスを移動する様子を追跡し、各ホップのタイミングを1つのtraceにつなぎ合わせることで、レイテンシやエラーがどこで発生するかを見えるようにします。
仕組み
各サービスはspanを記録し、共有されたtraceコンテキスト(例: W3Cのtraceparentヘッダー)を伝播します。Jaeger、Tempo、またはOpenTelemetryのcollectorのようなbackendがspanをtraceツリーに再構成します。
pipelineのトレーシング
同じ考え方がCI/CDにも当てはまります。pipelineの各ステージをspanとして計装すると、どのstep(checkout、依存関係のインストール、テスト、deploy)が全体のrun時間を支配しているかが明らかになります。
関連ガイド
Span - CI/CD Glossary DefinitionSpan: A span is the basic unit of a distributed trace: a single named operation with a start time, a duration…
Structured Logging - CI/CD Glossary DefinitionStructured Logging: Structured logging emits log entries as machine-parseable records (usually JSON) with nam…
Metric Cardinality - CI/CD Glossary DefinitionMetric Cardinality: Metric cardinality is the number of distinct time series a metric produces, which equals…