OpenTelemetry exporter

OpenTelemetry provides a single set of APIs, libraries, agents, and collector services to capture distributed traces and metrics from your application. Our OpenTelemetry exporters send your OpenTelemetry data to your New Relic account.

Enable exporter

To enable a New Relic OpenTelemetry exporter:

  1. Follow the install procedures:
  2. Optional. Instead of using the native OpenTelemetry trace sampling, you can enable our Infinite Tracing feature. If you do this, you'll typically want to configure OpenTelemetry to send us all trace data (learn more about sampling). To enable Infinite Tracing:
    1. In the New Relic UI, set up a trace observer.
    2. Configure the exporter to send data to the trace observer:
      Go exporter

      Set the SpansURLOverride field on the Config object with YOUR_TRACE_OBSERVER_URL when creating the Exporter .

      Java exporter

      Do the following:

      1. Create a java.net.URI with YOUR_TRACE_OBSERVER_URL.
      2. Pass the URI to com.newrelic.telemetry.opentelemetry.export.NewRelicSpanExporter builder’s uriOverride method.

      See an example where a NewRelicSpanExporter is created.

      .NET exporter

      Configure the TraceUrlOverride parameter with YOUR_TRACE_OBSERVER_URL.

Find your data

To find your data, go to one.newrelic.com and go to Your applications > Entity explorer. From the Entities screen, search for your service by name. From there, you can explore your metrics using the Data explorer and build dashboards using your metrics. The distributed tracing feature is also available for you to query and view traces.

For more on how to query your data once it's in New Relic, see Query your data and Introduction to NRQL.

If you’re not seeing the data you expect, see Troubleshoot OpenTelemetry.

Resources

Our OpenCensus exporter resources include:

For more help

If you need more help, check out these support and learning resources: