OpenTelemetry の baggage とは何か
baggage は、trace context とともにサービス境界を越えて伝播する、アプリケーション定義のキーバリューデータです。一つの span にとどまる span attribute と異なり、baggage はリクエスト全体に沿って運ばれるため、下流のどの service も読み取れます。チームは tenant ID、実験フラグ、リクエスト元のような横断的な値を運ぶために使います。
なぜ重要か
一部の context は多くの service で必要とされる一方で、すべての API 呼び出しに通していくのは面倒です。baggage はそれを暗黙的に運びますが、値はすべてのホップで送信されるため慎重に使う必要があります。
関連ガイド
What Is Trace Context Propagation?Trace context propagation passes trace and span identifiers across service boundaries, usually in request hea…
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 a Resource Attribute?A resource attribute describes the entity producing telemetry, such as service name, version, or host, and is…