Skip to content

adamlaska/newrelic-go-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Relic Go Agent GoDoc

Description

The New Relic Go Agent allows you to monitor your Go applications with New Relic. It helps you track transactions, outbound requests, database calls, and other parts of your Go application's behavior and provides a running overview of garbage collection, goroutine activity, and memory use.

All pull requests will be reviewed by the New Relic product team. Any questions or issues should be directed to our support site or our community forum.

Requirements

Go 1.3+ is required, due to the use of http.Client's Timeout field.

Linux, OS X, and Windows (Vista, Server 2008 and later) are supported.

Integrations

The following _integration packages extend the base newrelic package to support the following frameworks and libraries. Frameworks and databases which don't have an integration package may still be instrumented using the newrelic package primitives. Specifically, more information about instrumenting your database using these primitives can be found here.

Project Integration Package
aws/aws-sdk-go _integrations/nrawssdk/v1 Instrument outbound calls made using Go AWS SDK
aws/aws-sdk-go-v2 _integrations/nrawssdk/v2 Instrument outbound calls made using Go AWS SDK v2
labstack/echo _integrations/nrecho Instrument inbound requests through the Echo framework
gin-gonic/gin _integrations/nrgin/v1 Instrument inbound requests through the Gin framework
gorilla/mux _integrations/nrgorilla/v1 Instrument inbound requests through the Gorilla framework
aws/aws-lambda-go _integrations/nrlambda Instrument AWS Lambda applications
sirupsen/logrus _integrations/nrlogrus Send agent log messages to Logrus
mgutz/logxi _integrations/nrlogxi/v1 Send agent log messages to Logxi
pkg/errors _integrations/nrpkgerrors Wrap pkg/errors errors to improve stack traces and error class information
go-sql-driver/mysql _integrations/nrmysql Instrument MySQL driver
lib/pq _integrations/nrpq Instrument PostgreSQL driver
mattn/go-sqlite3 _integrations/nrsqlite3 Instrument SQLite driver
google.golang.org/grpc _integrations/nrgrpc Instrument gRPC servers and clients
micro/go-micro _integrations/nrmicro Instrument servers, clients, publishers, and subscribers through the Micro framework

These integration packages must be imported along with the newrelic package, as shown in this nrgin example.

Getting Started

Follow the steps in GETTING_STARTED.md to instrument your application.

Runnable Example

examples/server/main.go is an example that will appear as "Example App" in your New Relic applications list. To run it:

env NEW_RELIC_LICENSE_KEY=__YOUR_NEW_RELIC_LICENSE_KEY__LICENSE__ \
    go run examples/server/main.go

Some endpoints exposed are http://localhost:8000/ and http://localhost:8000/notice_error

Support

You can find more detailed documentation in the guide and on the New Relic Documentation site.

If you can't find what you're looking for there, reach out to us on our support site or our community forum and we'll be happy to help you.

Find a bug? Contact us via support.newrelic.com, or email support@newrelic.com.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages