newrelic / opentelemetry-exporter-go

New Relic's Golang OpenTelemetry Exporter
Apache License 2.0
29 stars 28 forks source link

OpenTelemetry simple sample application #44

Closed RichVanderwal closed 3 years ago

RichVanderwal commented 3 years ago

This is a very simple Go application, based off of @krnowak 's excellent Getting Started guide, which substitutes the New Relic OpenTelemetry Exporter for the stdout exporter in the original example.

It's a supporting document for New Relic's OpenTelemetry documentation. Run it like this:

NEW_RELIC_API_KEY=<New Relic Insert API Key> go run main.go

...where that key is obtained from the New Relic One UI according to these quick instructions.

It works for me, I'd love to hear others' experiences with it before it becomes part of our official documentation.

joshuabenuck commented 3 years ago

It took @nr-swilloughby and I some time to figure out where the data was being sent and how to view it. It would be really helpful to include details in a short README on the steps needed to view the data. Something along the lines of:

Bonus points for screenshots for any of the above steps.

RichVanderwal commented 3 years ago

I wish I had given you the context that this sample application is to supplement the Getting Started guide here.

RichVanderwal commented 3 years ago

This sample application needs to be re-worked to accommodate the new API changes in Go OpenTelemetry v0.16.0.