• Log inFree account

Enable distributed tracing for your Go applications

Read on to learn how to enable and set up distributed tracing for the New Relic's Go agent.

Enable distributed tracing

To enable distributed tracing for a Go application:

  1. Use Go agent configuration settings for the type of distributed tracing you want:
    • Standard distributed tracing
    • Infinite Tracing
  2. Continue reading the transaction and request instrumentation guidelines below.

Tip

For help understanding the different types of agent distributed tracing, see How distributed tracing works.

Instrument transactions and HTTP requests

In order for distributed tracing to work optimally, your Go application must adhere to guidelines for the following scenarios:

For more details on using these, see the Go agent GitHub repo.

Examine logs for trace details

You can bring your logs and application's data together to make troubleshooting easier and faster. With logs in context, you can see log messages related to your errors and traces directly in your app's UI.

  1. From the Transactions page, click on a trace to go to the Trace details page.
  2. From the trace details page, click See logs.
  3. To view details related to an individual log message, click directly on the message.

You can also see logs in context of your infrastructure data, such as Kubernetes clusters. No need to switch to another UI page in.

Copyright © 2022 New Relic Inc.