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
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
Apaiement-tp service visible in New Relic with traces, metrics and logs, without any e-mail address.Setup #
Guided steps, with their solution.
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,cumulativetodeltaprocessors,otlphttpexport with theapi-keyheader) and runotelcol.2. Generate telemetry
Why? telemetrygen simulates an instrumented service, with an e-mail attribute to test masking.
Send traces (withuser.email), metrics and logs for two minutes as thepaiement-tpservice.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 openpaiement-tp. Check traces, logs and thedeployment.environmentattribute.4. Check masking
Why? Personal data stored at a vendor is hard to erase: you must prove it never left.
Check that no span carriesuser.email. What would you add to also mask an e-mail present in a log body?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 1boutiqueapplication 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
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
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...