opentelemetry-samplers-go

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: Apache-2.0

README

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),
}

Directories

Path Synopsis
Package honeycomb contains samplers for use with Honeycomb
Package honeycomb contains samplers for use with Honeycomb

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL