Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #74 from zuluecho9/master
Browse files Browse the repository at this point in the history
Removal of insert key
  • Loading branch information
RichVanderwal authored Feb 8, 2022
2 parents 3afeeec + 077799b commit 837f7f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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).

Expand All @@ -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)
}
Expand Down

0 comments on commit 837f7f5

Please sign in to comment.