Skip to content

Jaeger

Jaeger shows traces: each request as a timeline of its spans, across every service it passed through. It takes OTLP itself, so oxtel sends to it directly. It keeps traces only, so metrics and logs go elsewhere: an OpenTelemetry Collector in front can send each kind to its own place.

One container, keeping traces in memory. The file is in the repository’s examples/backends/jaeger/; run docker compose up -d there.

examples/backends/jaeger/compose.yaml
# Jaeger, for traces: its UI on http://localhost:16686, and OTLP on 4318
# (HTTP) and 4317 (gRPC).
services:
jaeger:
image: jaegertracing/jaeger:2.23.0
ports:
- "16686:16686"
- "4318:4318"
- "4317:4317"

Set these where your program runs, then start it:

examples/backends/jaeger/settings.sh
# Jaeger takes traces only, so send just those.
export OTEL_SERVICE_NAME=worker
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces

Open http://localhost:16686, choose your service, here worker, and find its traces. A trace that crosses services, such as two services, shows both in one timeline.

  • Only traces. Setting just the traces endpoint sends traces and nothing else. With OTEL_EXPORTER_OTLP_ENDPOINT instead, oxtel would send metrics and logs too, Jaeger would refuse them, and oxtel would warn that sending them fails.
  • gRPC works too, on port 4317: build with oxtel’s grpc feature, set OTEL_EXPORTER_OTLP_PROTOCOL=grpc, and set OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4317.
  • Memory only. This Jaeger forgets everything when it stops. A Jaeger that keeps traces needs a storage backend, which its own documentation covers.

On every change, CI starts this stack, runs the background worker with these settings, and asks Jaeger’s API for the worker’s four job spans. check.sh, beside the compose file, has the queries.