RousselTMLEARNING

TP · OpenObserve: from discovery to expertise

Lab: Collect traces with the OpenTelemetry Collector

What you will learn in this TP
  • Configure the otlphttp exporter
  • Generate traces
  • Query them
Mode :

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 .env file read with ${PASSWORD:?} in the Compose file, or a Docker secret read through a *_FILE variable (for example GF_SECURITY_ADMIN_PASSWORD__FILE for Grafana).

Setup #

Guided steps, with their solution.

  1. 1. Configure the Collector

    Why? The exporter appends /v1/traces itself: only set the base.

    Write collector.yaml with the otlphttp exporter and the authentication header.
  2. 2. Add the Collector to the stack

    Why? The password must not be written in the Collector configuration.

    Add the collector service to the Compose file.
  3. 3. Generate traces

    Why? telemetrygen stands in for an instrumented application.

    Start the stack and send 20 traces to the Collector.
  4. 4. Check

    Why? The stream-name header selected the applis stream.

    Query the stream of type traces, 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

  • ⏱ Estimated time : ≈ 35 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

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...

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!