Registry / observability / newrelic-go-agent

newrelic-go-agent

JSON →
library3.43.3+incompatiblegogounverified

Package newrelic provides instrumentation for Go applications.

go get github.com/newrelic/go-agent
INSTALL
IMPORT
SIG · NEWRELIC-GO-AGENT
N
newrelic-go-agent
observabilitygov3.43.3+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

newrelic
github.com/newrelic/go-agent/v3/newrelic

Initialize a New Relic application.

package main import ( "fmt" "github.com/newrelic/go-agent/v3/newrelic" ) func main() { app, err := newrelic.NewApplication( newrelic.ConfigAppName("MyApp"), newrelic.ConfigLicense("YOUR_LICENSE_KEY"), ) if err != nil { panic(err) } app.WaitForConnection(10 * time.Second) fmt.Println("connected") }
Debug
Known issues
breakingThe v3 module path includes /v3; ensure your import path matches.
fix
Use 'github.com/newrelic/go-agent/v3/newrelic' instead of the old path.
affects: >=3.0.0
Upgrade
Version history
3.43.3+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
2
Resources
newrelic-go-agent — go get newrelic-go-agent · libregistry