Skip to content
New Relic's Golang OpenTelemetry Exporter
Go
Branch: master
Clone or download
willnewrelic Merge pull request #5 from victorNewRelic/patch-1
Fix OpenTelemetry name to be CamelCase
Latest commit c077378 Jan 9, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
newrelic Rename repo to opentelemetry-exporter-go Dec 30, 2019
CHANGELOG.md Add final fixins Dec 27, 2019
CODE_OF_CONDUCT.md Add open source files Dec 27, 2019
CONTRIBUTING.md Add open source files Dec 27, 2019
LICENSE.txt Add open source files Dec 27, 2019
README.md Fix OpenTelemetry name to be CamelCase Jan 8, 2020
THIRD_PARTY_NOTICES.md Add open source files Dec 27, 2019
go.mod Rename repo to opentelemetry-exporter-go Dec 30, 2019
go.sum

README.md

New Relic Go OpenTelemetry Exporter GoDoc

The "github.com/newrelic/opentelemetry-exporter-go/newrelic" package provides an exporter for sending OpenTelemetry data to New Relic. Currently, only traces are supported.

Example use:

import (
	"log"
	"os"

	"github.com/newrelic/opentelemetry-exporter-go/newrelic"
	"go.opentelemetry.io/otel/api/global"
	"go.opentelemetry.io/otel/sdk/trace"
)

func initTracer() {
	exporter, err := newrelic.NewExporter("My Service", os.Getenv("NEW_RELIC_API_KEY"))
	if err != nil {
		log.Fatal(err)
	}
	tp, err := trace.NewProvider(trace.WithSyncer(exporter))
	if err != nil {
		log.Fatal(err)
	}
	global.SetTraceProvider(tp)
}

Disclaimer

This exporter is built with the alpha release of OpenTelemetry Go client. Due to the rapid development of OpenTelemetry, this exporter does not guarantee compatibility with future releases of the OpenTelemetry APIs. Additionally, this exporter may introduce changes that are not backwards compatible without a major version increment. We will strive to ensure backwards compatibility when a stable version of the OpenTelemetry Go client is released.

Licensing

The New Relic Go OpenTelemetry exporter is licensed under the Apache 2.0 License. The New Relic Go OpenTelemetry exporter also uses source code from third party libraries. Full details on which libraries are used and the terms under which they are licensed can be found in the third party notices document.

Contributing

Full details are available in our CONTRIBUTING.md file. We'd love to get your contributions to improve the Go OpenTelemetry exporter! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. To execute our corporate CLA, which is required if your contribution is on behalf of a company, or if you have any questions, please drop us an email at open-source@newrelic.com.

Limitations

The New Relic Telemetry APIs are rate limited. Please reference the documentation for New Relic Metrics API and New Relic Trace API Requirements and Limits on the specifics of the rate limits.

You can’t perform that action at this time.