trace context propagation とは何か
trace context propagation とは、trace ID や親 span ID といった識別子を、リクエストがサービス間を移動する際に一緒に運ぶ手法です。各 service は受信した context を読み取り、その配下に自身の span を作成し、context をさらに転送します。これが、個々の service の操作を一つのエンドツーエンドの分散 trace に結びつけるものです。
なぜ重要か
共有された context がなければ、各 service は相関付けできない孤立した span を生成します。propagation は、分散 trace を多数のホップにわたって一貫させる仕組みです。
関連ガイド
What Is Baggage in OpenTelemetry?Baggage is key-value context that travels with a request alongside trace identifiers, letting downstream serv…
What Is a Span Attribute?A span attribute is a key-value pair attached to one span in a trace, recording details about that operation…
What Is an Instrumentation Library?An instrumentation library is code that generates telemetry for a specific framework or client, emitting span…