opentelemetry-samplers-go
NOTE: This is experimental and is subject to change a lot or go away entirely. Use with caution.
Honeycomb Samplers for use with the OpenTelemetry Go SDK
Samplers
Deterministic Sampler
This is a port of the deterministic sampler included in our Go Beeline. To use it, just instantiate it with a sample rate:
import (
"github.com/honeycombio/opentelemetry-samplers-go/honeycombsamplers"
"go.opentelemetry.io/otel/sdk/trace"
)
config := trace.Config{
DefaultSampler: honeycombsamplers.DeterministicSampler(5),
}