RousselTMLEARNING

TP · New Relic: from discovery to expertise

Lab: Send OpenTelemetry to New Relic

What you will learn in this TP
  • Configure a Collector to the New Relic OTLP endpoint
  • Remove a sensitive attribute before sending
  • Convert metrics to delta temporality
  • Find an OpenTelemetry entity in New Relic
Mode :

All steps and instructions are shown. Recommended for this lab: semi-guided

Introduction #

Context. The payment team chose OpenTelemetry so as not to depend on any vendor. You route its telemetry through a Collector that removes customer e-mails and sends it to New Relic.

Prerequisites: a free New Relic account (license key), a machine with Docker, curl and jq, Lab 1 (optional)  ·  Estimated time: 40 min

A paiement-tp service visible in New Relic with traces, metrics and logs, without any e-mail address.

Setup #

Guided steps, with their solution.

  1. 1. Configure the Collector

    Why? A Collector centralizes authentication, masking and backend choice: applications no longer need to know about New Relic.

    Write the configuration (OTLP receiver, resource, attributes/pii, cumulativetodelta processors, otlphttp export with the api-key header) and run otelcol.
  2. 2. Generate telemetry

    Why? telemetrygen simulates an instrumented service, with an e-mail attribute to test masking.

    Send traces (with user.email), metrics and logs for two minutes as the paiement-tp service.
  3. 3. Find the service

    Why? The entity is created from service.name: a wrong name creates an orphan entity.

    Open APM & Services, filter on OpenTelemetry and open paiement-tp. Check traces, logs and the deployment.environment attribute.
  4. 4. Check masking

    Why? Personal data stored at a vendor is hard to erase: you must prove it never left.

    Check that no span carries user.email. What would you add to also mask an e-mail present in a log body?
  5. 5. Clean up

    Why? Stopped containers send nothing more: free tier consumption stays under control.

    Stop the Collector and remove the network. Keep the Lab 1 boutique application for the next lab.

Validate your work

Check that each goal above is reached and that you get the result described in the introduction.

Difficulty level : ●●●○○ (3/5)

My progress

  • ⏱ Estimated time : ≈ 40 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Recommended Articles

OpenTelemetry metrics: instruments, temporality, histograms and exemplars

Master the metric signal: MeterProvider, synchronous and asynchronous instruments (Counter, UpDow...

OpenTelemetry traces in Elasticsearch and Kibana APM

Instrument applications with OpenTelemetry or EDOT SDKs, send traces to Elasticsearch, get Kibana...

Datadog APM and OpenTelemetry: traces, services and correlation with logs

Instrument applications for Datadog APM (dd-trace, single step instrumentation, OpenTelemetry), u...

Digital experience: Browser, mobile and Synthetics

Measuring what users experience with New Relic: browser agent (page load, Core Web Vitals, AJAX, ...

OpenTelemetry and Elasticsearch: compatibility and architecture

Send OpenTelemetry to Elasticsearch: Collector and elasticsearch exporter, managed OTLP endpoint,...

Profiles, OpenTelemetry's fourth signal: continuous profiling and correlation with traces

Understand OpenTelemetry's new profile signal: continuous profiling, flame graphs, data model and...

Instrumenting applications for Jaeger with OpenTelemetry

Send traces to Jaeger with OpenTelemetry: auto-instrumentation (Java, Python, Node.js), SDK and m...

Sending traces to Tempo: OpenTelemetry instrumentation and Alloy

Produce and route traces to Tempo: Python/Java/Node auto-instrumentation, the manual SDK, OTEL en...

Sending logs, metrics and traces to OpenObserve

OpenObserve receiving endpoints: JSON, bulk, OTLP with the OpenTelemetry Collector, Prometheus re...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!