span attribute とは何か
span attribute は、span によって捕捉される特定の操作を記述する型付きのキーバリューペアで、HTTP メソッド、レスポンスの status、データベースのステートメントなどを表します。attribute はその span にローカルで、他の span へは伝播しません。これらは trace に、各ステップが実際に何を行ったかをフィルタリング、グルーピング、理解するために必要な詳細を与えます。
なぜ重要か
素の span はタイミングと構造しか示しません。attribute は、trace をルート、status、操作でクエリし、どこで挙動が分岐したかを特定できる context を追加します。
関連ガイド
What Is a Resource Attribute?A resource attribute describes the entity producing telemetry, such as service name, version, or host, and is…
What Is Baggage in OpenTelemetry?Baggage is key-value context that travels with a request alongside trace identifiers, letting downstream serv…
What Is an Instrumentation Library?An instrumentation library is code that generates telemetry for a specific framework or client, emitting span…