opentelemetry-exporter-go

module
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0

README

opentelemetry-exporter-go

The Honeycomb OpenTelemetry Exporter for Go

CircleCI

Default Exporter

The Exporter can be initialized using sdktrace.WithSyncer:

exporter, _ := honeycomb.NewExporter(
	honeycomb.Config{
		APIKey:  <YOUR-API-KEY>,
	},
	honeycomb.TargetingDataset(<YOUR-DATASET>),
	honeycomb.WithServiceName("example-server"),
	honeycomb.WithDebugEnabled()) // optional to output diagnostic logs to STDOUT

defer exporter.Shutdown(context.TODO())
sdktrace.NewProvider(
	sdktrace.WithConfig(sdktrace.Config{DefaultSampler: sdktrace.AlwaysSample()}),
	sdktrace.WithSyncer(exporter),
)

Sampling

Read more about sampling with Honeycomb in our docs.

Example

You can find an example Honeycomb app in /example.

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