diff --git a/README.md b/README.md index c8025d6..a8bff49 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Go 1.7+ is required ## Get started -In order to send metrics or spans to New Relic, you will need an [Insert API Key](https://docs.newrelic.com/docs/apis/get-started/intro-apis/types-new-relic-api-keys#event-insert-key). +In order to send metrics or spans to New Relic, you will need a New Relic [license key](https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#ingest-license-key) for the account you want to send data to. To install this SDK either use `go get` or clone this repository to `$GOPATH/src/github.com/newrelic/newrelic-telemetry-sdk-go` @@ -33,8 +33,8 @@ automatic harvesting on a given schedule, and handling of errors from the API response. It also provides the ability to aggregate individual data points into metrics. -This example code assumes you've set the the `NEW_RELIC_INSERT_API_KEY` -environment variable to your Insert API Key. A larger example is +This example code assumes you've set the the `NEW_RELIC_LICENSE_KEY` +environment variable to your [license key](https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#ingest-license-key). A larger example is provided in [examples/server/main.go](./examples/server/main.go). @@ -52,7 +52,7 @@ import ( func main() { // First create a Harvester. APIKey is the only required field. - h, err := telemetry.NewHarvester(telemetry.ConfigAPIKey(os.Getenv("NEW_RELIC_INSERT_API_KEY"))) + h, err := telemetry.NewHarvester(telemetry.ConfigAPIKey(os.Getenv("NEW_RELIC_LICENSE_KEY"))) if err != nil { fmt.Println(err) }