OpenTelemetry With New Relic: Vendor-Neutral Observability
OpenTelemetry (OTel) has become the standard way to instrument applications. It's open source, vendor-neutral, and supported by every major observability platform — including New Relic, which accepts OTel data natively over OTLP.
Why OTel?
- Instrument once, send anywhere — avoid vendor lock-in
- One standard across languages and teams
- Huge ecosystem — auto-instrumentation for common frameworks and libraries
- Kubernetes and cloud-native friendly
Agents vs. OpenTelemetry
| New Relic agents | OpenTelemetry |
|---|---|
| Richer out-of-the-box UI features | Vendor-neutral |
| Less configuration | More configuration |
| Proprietary | Open standard |
Many organisations use both: agents for core apps, OTel for new services and polyglot environments.
Node.js Example
npm install @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node \
@opentelemetry/exporter-trace-otlp-proto
// tracing.js
const { NodeSDK } = require('@opentelemetry/sdk-node');
const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node');
const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-proto');
const sdk = new NodeSDK({
serviceName: 'checkout-api',
traceExporter: new OTLPTraceExporter({
url: 'https://otlp.nr-data.net/v1/traces',
headers: { 'api-key': process.env.NEW_RELIC_LICENSE_KEY },
}),
instrumentations: [getNodeAutoInstrumentations()],
});
sdk.start();
Start your app with node --require ./tracing.js server.js. Use the EU endpoint if your account is in the EU region.
The OTel Collector
In production, send telemetry to an OpenTelemetry Collector first:
- Batch and compress data
- Filter noisy spans and drop sensitive attributes
- Add resource attributes (environment, region, team)
- Fan out to multiple backends
Semantic Conventions
Use standard attribute names (service.name, http.request.method, deployment.environment). New Relic's UI relies on them to build service views automatically.
Querying OTel Data
SELECT percentile(duration.ms, 95) FROM Span
WHERE service.name = 'checkout-api' FACET name SINCE 1 hour ago
OpenTelemetry is the future-proof choice. New Relic becomes the place you analyse data — not the place your instrumentation is locked into.