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:
- Follow the install procedures:
- 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:
- In the New Relic UI, set up a trace observer.
- Configure the exporter to send data to the trace observer:
- Go exporter
-
Set the
SpansURLOverride
field on theConfig
object with YOUR_TRACE_OBSERVER_URL when creating the Exporter . - Java exporter
-
Do the following:
- Create a
java.net.URI
with YOUR_TRACE_OBSERVER_URL. - Pass the URI to
com.newrelic.telemetry.opentelemetry.export.NewRelicSpanExporter
builder’suriOverride
method.
See an example where a
NewRelicSpanExporter
is created. - Create a
- .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: