Documentation
¶
Overview ¶
Package trace wires the OTLP tracer + W3C propagator used by the boomer load-test workers. Same shape as internal/serverboot.InitTracing but without the metrics/HTTP surface that workers don't need.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UpdatableSampler ¶
type UpdatableSampler struct {
// contains filtered or unexported fields
}
UpdatableSampler wraps a TraceIDRatioBased sampler whose probability can be swapped at runtime (mirrors common/trace.py:UpdatableSampler on the Python side). The OTel TracerProvider only accepts one Sampler at construction, so to change probability later you have to hand it a stable wrapper that internally swaps.
func NewUpdatableSampler ¶
func NewUpdatableSampler(initialProbability float64) *UpdatableSampler
func (*UpdatableSampler) Description ¶
func (u *UpdatableSampler) Description() string
func (*UpdatableSampler) ShouldSample ¶
func (u *UpdatableSampler) ShouldSample(p sdktrace.SamplingParameters) sdktrace.SamplingResult
func (*UpdatableSampler) UpdateProbability ¶
func (u *UpdatableSampler) UpdateProbability(p float64)
Click to show internal directories.
Click to hide internal directories.