Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

honeycombio/opentelemetry-exporter-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

opentelemetry-exporter-go

The Honeycomb OpenTelemetry Exporter for Go

OSS Lifecycle CircleCI

STATUS: this project has been archived. See https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md

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.

About

The @honeycombio OpenTelemetry exporter for Golang

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 16

Languages