All recipes
New Relic.
CodeOTLP
New Relic accepts OTLP metrics directly. Same `beforeSend` pattern as the generic OpenTelemetry recipe — only the endpoint and the API-key header change.
Point the OTel exporter at New Relic.
Bash
OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net
OTEL_EXPORTER_OTLP_HEADERS=api-key=$NEW_RELIC_LICENSE_KEYUse the OpenTelemetry mirror pattern.
The recipe code is identical to the generic OTel recipe — only the OTLP endpoint changes. See the [OpenTelemetry recipe](/docs/recipes/opentelemetry) for the full `beforeSend` block.
instrumentation.ts
// See /docs/recipes/opentelemetry for the full beforeSend implementation.
// Only the OTel SDK endpoint configuration differs.Ship reliable upstream.
Drop the SDK in, point it at your project key, and start seeing live upstream telemetry inside the dashboard.