head-based サンプリングとは何か
head-based サンプリングは、trace が始まる時点で保持するか破棄するかの判断を、通常は root span に適用した確率によって行い、その判断をすべての子 span に伝播します。判定が最初に固定されるためバッファリングを必要としません。その代償として、遅い trace や失敗した trace の結果はまだ分からないため、それらを優先できません。
なぜ重要か
head-based サンプリングは単純で overhead が小さく、そのため一般的なデフォルトになっています。しかし結果に対して盲目であるため、調査で必要となるまさにその trace を破棄してしまうことがあります。
関連ガイド
What Is Tail-Based Sampling?Tail-based sampling decides whether to keep a trace after it completes, so slow or failed traces can be retai…
What Is a Collector Pipeline?A collector pipeline is the chain of receivers, processors, and exporters that telemetry flows through inside…
What Is an Instrumentation Library?An instrumentation library is code that generates telemetry for a specific framework or client, emitting span…