opentelemetry-exporter-go

module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0

README

opentelemetry-exporter-go

The Honeycomb OpenTelemetry Exporter for Golang

CircleCI

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.

Directories

Path Synopsis
example
Package honeycomb contains a trace exporter for Honeycomb
Package honeycomb contains a trace exporter for Honeycomb

Jump to

Keyboard shortcuts

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