What you will learn in this TP
- Configure the otlphttp exporter
- Generate traces
- Query them
All steps and instructions are shown. Recommended for this lab: guided
Introduction #
Context. Your applications are instrumented with OpenTelemetry. You route them through a Collector, without tying them directly to the platform.
Prerequisites: the previous lab · Estimated time: 35 min
An end-to-end trace flow.Disposable environment: passwords are written in clear text to keep the lab simple. Outside a lab, keep image versions pinned and move secrets out of the file: an unversioned.envfile read with${PASSWORD:?}in the Compose file, or a Docker secret read through a*_FILEvariable (for exampleGF_SECURITY_ADMIN_PASSWORD__FILEfor Grafana).
Setup #
Guided steps, with their solution.
1. Configure the Collector
Why? The exporter appends
/v1/tracesitself: only set the base.Writecollector.yamlwith theotlphttpexporter and the authentication header.2. Add the Collector to the stack
Why? The password must not be written in the Collector configuration.
Add thecollectorservice to the Compose file.3. Generate traces
Why?
telemetrygenstands in for an instrumented application.Start the stack and send 20 traces to the Collector.4. Check
Why? The
stream-nameheader selected theapplisstream.Query the stream of typetraces, then open the Traces menu in the UI.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●○○○ (2/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
Sending logs, metrics and traces to OpenObserve
OpenObserve receiving endpoints: JSON, bulk, OTLP with the OpenTelemetry Collector, Prometheus re...
Grafana Alloy: collecting and transforming telemetry
Learn how to use Grafana Alloy to collect, transform and route logs, metrics and traces. Discover...
OpenTelemetry and Dynatrace: OTLP, collector and instrumentation
Integrate OpenTelemetry with Dynatrace: OTLP endpoint and tokens, Dynatrace OTel Collector, trace...
OpenTelemetry traces in Elasticsearch and Kibana APM
Instrument applications with OpenTelemetry or EDOT SDKs, send traces to Elasticsearch, get Kibana...
Ingesting OpenTelemetry logs into Elasticsearch
Collect and structure logs with the OpenTelemetry Collector (filelog receiver, operators, transfo...
OpenTelemetry metrics in Elasticsearch
Collect host, Kubernetes and application metrics with OpenTelemetry, understand temporality and t...
Profiles, OpenTelemetry's fourth signal: continuous profiling and correlation with traces
Understand OpenTelemetry's new profile signal: continuous profiling, flame graphs, data model and...
Sending telemetry to ClickStack: OpenTelemetry SDKs, collectors, logs, Kubernetes and browser sessions
Feeding ClickStack: ingestion key, OpenTelemetry SDK variables, forwarding through an existing co...
Correlating traces, metrics, logs and profiles with OpenTelemetry
Link the four signals to diagnose quickly: shared resource, trace_id in logs, exemplars on metric...