opentelemetry-exporter-go
The Honeycomb OpenTelemetry Exporter for Golang
Default Exporter
The Exporter can be initialized as a default exporter:
exporter := honeycomb.NewExporter(honeycomb.Config{
ApiKey: <YOUR-API-KEY>,
Dataset: <YOUR-DATASET>,
Debug: true, // optional to output to stdout
})
exporter.ServiceName = "example-server"
defer exporter.Close()
exporter.Register()
Sampling
The default exporter uses the OpenTelemetry Default Sampler DefaultSampler: trace.AlwaysSample()
under the hood.
You can configure sampling with Honeycomb with either Deterministic Sampling or Dynamic Sampling.
Read more about sampling with Honeycomb in our docs.