New Relic supports Golang 1.7 or higher.
The agent supports Linux, macOS, and Windows. You can also use the Go agent in a Google App Engine (GAE) flexible environment.
The following integration packages extend the base newrelic package to support other frameworks and libraries. If frameworks and databases don't have an integration package, you can still instrument them using the newrelic package primitives. For more information about instrumenting your database using these primitives, see the Go agent's datastore segments documentation on GitHub.
Instrument outbound calls made using Go AWS SDK
Instrument outbound calls made using Go AWS SDK v2
Instrument inbound requests through version 3 of the Echo framework
Instrument inbound requests through version 4 of the Echo framework
Instrument inbound requests through the Gin framework
Instrument inbound requests through the Gorilla framework
Instrument inbound requests through the HttpRouter framework
Instrument AWS Lambda applications
Send agent log messages to Logrus
Send agent log messages to Logxi
Send agent log messages to Zap
Wrap pkg/errors errors to improve stack traces and error class information
Add B3 headers to outgoing requests
Use a supported database driver or builtin instrumentation
Instrument database calls with SQL
Instrument database calls with SQLx
Instrument database calls to MySQL
Instrument database calls to Postgres using the database/sql library and pq
Instrument database calls to Postgres using the database/sql library and jackc/pgx
Instrument database calls to Snowflake
Instrument calls to Redis Version 7
Instrument calls to Redis Version 8
Instrument database calls to SQLite
Instrument MongoDB calls
Instrument gRPC servers and clients
Instrument servers, clients, publishers, and subscribers through the Micro framework
Instrument publishers and subscribers using the NATS client
Instrument publishers and subscribers using the NATS streaming client
Instrument inbound requests using graphql-go/graphql
Instrument inbound requests using graph-gophers/graphql-go
New Relic collects instance details for a variety of databases and database drivers. The ability to view specific instances and the types of database information in APM depends on your agent version.
The New Relic Go agent version 1.4 or higher supports instance details for all database drivers.
The Go agent integrates with other features to give you observability across your entire stack:
When you install the infrastructure and APM agents on the same host, they automatically detect one another. You can then view a list of hosts in the APM UI, and filter your Infrastructure hosts by APM app in the Infrastructure UI. For more information, see APM data in infrastructure monitoring.
Synthetic transaction traces connect requests from synthetic monitors to the underlying APM transaction.
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.