Jaeger

On this page 7

Jaeger is an open-source distributed tracing platform that collects, stores and visualizes the path of individual requests as they travel through many services. In cloud observability, it answers a question that metrics and logs alone answer poorly: where exactly a slow or failing request spent its time across dozens of microservices, queues and databases.

Jaeger was created at Uber, released as open source in 2017 and later became a graduated project of the Cloud Native Computing Foundation (CNCF). Its data model follows the ideas of Google’s Dapper paper, and current versions are built around OpenTelemetry for instrumentation and data ingestion.

How Jaeger records a request

Jaeger records a request as a trace, which is a tree of timed operations called spans. Each span stores an operation name, a start time, a duration, tags (key-value attributes), log events and references to its parent span, so the full call graph of one request can be rebuilt afterward.

The link between services is context propagation. When service A calls service B, the instrumentation library injects the trace ID and span ID into request headers, usually in the W3C Trace Context format (traceparent). Service B extracts that context and creates a child span, so both operations land in the same trace even though they run in different processes or hosts.

The following table lists the core elements of the Jaeger data model and what each one contributes to analysis.

ElementWhat it containsWhy it matters
TraceAll spans sharing one 128-bit trace IDShows the complete request path
SpanOperation name, start time, durationLocates where time was spent
Span referenceParent (child-of) or follows-from linkRebuilds the call hierarchy
Tags or attributesKey-value pairs such as HTTP statusEnables filtering and search
Span logs or eventsTimestamped messages inside a spanCaptures errors and milestones
ProcessService name and host attributesIdentifies the emitting service
Core elements of the Jaeger data model

Jaeger architecture and components

A Jaeger deployment consists of a collection pipeline, a storage backend and a query layer. Applications emit spans through an OpenTelemetry SDK, the spans flow to a collector that validates and batches them, the collector writes them to storage, and the query service reads them back for the web UI and the API.

Jaeger v2, released in late 2024, rebuilt the backend on the OpenTelemetry Collector framework. The separate agent, collector, ingester and query binaries became configurable roles of a single binary, and the older Jaeger client libraries were retired in favor of OpenTelemetry SDKs. Many existing installations still run v1 components, so both layouts appear in practice.

ComponentRoleTypical placement
CollectorReceives, validates and writes spansCentral, horizontally scaled
IngesterReads spans from Kafka into storageBehind a Kafka buffer
Query serviceServes the API and web UICentral, read path
Agent (v1, deprecated)Local UDP receiver forwarding spansSidecar or host daemon
All-in-oneEvery role with in-memory storageDevelopment and testing
Main Jaeger components and their roles

For storage, Jaeger supports Cassandra, Elasticsearch and OpenSearch natively, plus Badger for single-node setups and gRPC remote storage plugins for other backends. The choice determines retention cost, query speed and operational effort, which often outweigh the tracing logic itself.

Sampling strategies in Jaeger

Sampling decides which traces are kept, because recording every request in a busy system produces terabytes of span data per day. Jaeger supports head-based sampling at the start of a request and, through the OpenTelemetry Collector, tail-based sampling after a trace completes.

The table below compares the main sampling modes and the trade-off each one makes.

ModeHow it decidesMain trade-off
ProbabilisticKeeps a fixed share, such as 0.1%Cheap but misses rare errors
Rate limitingKeeps up to N traces per secondStable volume, uneven coverage
Remote or adaptiveCollector pushes per-endpoint ratesBalanced, needs central config
Tail-basedDecides after seeing the whole traceKeeps errors, costs buffer memory
Sampling modes available with Jaeger

A frequent design is head sampling at 1-10% for routine traffic combined with tail sampling rules that keep every error and every trace above a latency threshold. This keeps storage predictable while preserving the traces engineers actually investigate.

Jaeger is a tracing backend, not a full observability suite. It complements Prometheus for metrics and log platforms for event records, and it overlaps with commercial APM products that bundle tracing with metrics, profiling and alerting.

Tool or conceptPrimary focusRelationship to Jaeger
OpenTelemetryInstrumentation standard and SDKsProduces the spans Jaeger stores
ZipkinOlder open-source tracing systemSimilar model; Jaeger accepts its format
Grafana TempoObject-storage trace backendAlternative with cheaper retention
PrometheusTime-series metricsComplementary; links via exemplars
Commercial APMIntegrated monitoring suiteManaged alternative with more features
How Jaeger relates to neighboring tools

The practical difference from an APM product is ownership: Jaeger is free and vendor-neutral, but the team must operate storage, scaling and upgrades. Because instrumentation uses OpenTelemetry, switching between Jaeger and another backend usually requires only an exporter change, not new code.

Deploying and using Jaeger effectively

Effective use of Jaeger starts with consistent instrumentation. Automatic instrumentation covers HTTP servers, gRPC, database drivers and message clients, while manual spans around business-critical functions add the detail that automatic agents cannot infer.

  • Use stable service names and semantic-convention attributes so searches work across teams.
  • Deploy with the Jaeger Operator or Helm charts on Kubernetes for repeatable configuration.
  • Place Kafka between collectors and storage when traffic spikes could overload the database.
  • Set retention explicitly, commonly 2 to 14 days, because trace data grows quickly.
  • Use the trace comparison and service dependency views to spot regressions after releases.

The most common failures are broken context propagation, where a proxy or queue drops trace headers and splits one request into several fragments, and missing spans from uninstrumented services that hide the real bottleneck. Another warning applies to attributes: placing user IDs or full payloads in tags can create privacy and storage problems.

SymptomLikely causeFix
Traces split into fragmentsHeaders dropped by proxy or queuePropagate W3C context explicitly
Gaps between spansUninstrumented service or libraryAdd auto or manual instrumentation
Errors absent from searchLow probabilistic sampling rateAdd tail sampling for errors
Slow UI queriesUndersized or unindexed storageScale storage, shorten retention
Common Jaeger problems and their fixes

The short version

Jaeger is a tool that follows a single request through a large software system and draws its journey on a timeline. Modern applications are split into many small services, so one click can touch twenty of them. When that click becomes slow, Jaeger shows which step caused the delay.

Think of it as a parcel tracking page. Every stop the parcel makes is recorded with a time, so you can see whether the delay happened at the warehouse, in transit or at the local depot. Jaeger does the same for software requests, and engineers use it to find problems in minutes instead of guessing.

Where it makes a difference

An online retailer runs its checkout on about 40 microservices in Kubernetes. After a release, the 99th-percentile checkout latency rises from 400 milliseconds to 2.3 seconds, yet the dashboards show normal CPU use and no error spike. The team searches Jaeger for checkout traces longer than two seconds, which tail sampling has kept in full.

The trace timeline shows that the inventory service now calls the pricing service once per cart item instead of once per cart, producing up to 30 sequential calls of about 60 milliseconds each. Comparing a slow trace with a fast trace from the previous week confirms the change. Engineers restore the batched call, and latency returns to its earlier level within one deployment, without anyone reading raw logs across 40 services.