OpenCensus is a set of libraries for various languages that allow you to collect application metrics and distributed traces, then transfer the data to a backend of your choice. New Relic's OpenCensus exporters send telemetry data from your OpenCensus-instrumented applications to your New Relic account.
Enable exporter
To enable a New Relic OpenCensus exporter:
- Follow the install procedures:
- Optional: Instead of using the native OpenCensus trace sampling, you can enable our Infinite Tracing feature. If you do this, you will typically want to configure OpenCensus 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. - Python exporter: Pass the host parameter to the trace exporter using YOUR_TRACE_OBSERVER_HOST.
- Go exporter: Set the
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. If you're also sending distributed tracing data, the distributed tracing feature is available 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.
Resources
Our OpenCensus exporter resources include: