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.
| Element | What it contains | Why it matters |
|---|---|---|
| Trace | All spans sharing one 128-bit trace ID | Shows the complete request path |
| Span | Operation name, start time, duration | Locates where time was spent |
| Span reference | Parent (child-of) or follows-from link | Rebuilds the call hierarchy |
| Tags or attributes | Key-value pairs such as HTTP status | Enables filtering and search |
| Span logs or events | Timestamped messages inside a span | Captures errors and milestones |
| Process | Service name and host attributes | Identifies the emitting service |
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.
| Component | Role | Typical placement |
|---|---|---|
| Collector | Receives, validates and writes spans | Central, horizontally scaled |
| Ingester | Reads spans from Kafka into storage | Behind a Kafka buffer |
| Query service | Serves the API and web UI | Central, read path |
| Agent (v1, deprecated) | Local UDP receiver forwarding spans | Sidecar or host daemon |
| All-in-one | Every role with in-memory storage | Development and testing |
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.
| Mode | How it decides | Main trade-off |
|---|---|---|
| Probabilistic | Keeps a fixed share, such as 0.1% | Cheap but misses rare errors |
| Rate limiting | Keeps up to N traces per second | Stable volume, uneven coverage |
| Remote or adaptive | Collector pushes per-endpoint rates | Balanced, needs central config |
| Tail-based | Decides after seeing the whole trace | Keeps errors, costs buffer memory |
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 compared with related observability tools
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 concept | Primary focus | Relationship to Jaeger |
|---|---|---|
| OpenTelemetry | Instrumentation standard and SDKs | Produces the spans Jaeger stores |
| Zipkin | Older open-source tracing system | Similar model; Jaeger accepts its format |
| Grafana Tempo | Object-storage trace backend | Alternative with cheaper retention |
| Prometheus | Time-series metrics | Complementary; links via exemplars |
| Commercial APM | Integrated monitoring suite | Managed alternative with more features |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Traces split into fragments | Headers dropped by proxy or queue | Propagate W3C context explicitly |
| Gaps between spans | Uninstrumented service or library | Add auto or manual instrumentation |
| Errors absent from search | Low probabilistic sampling rate | Add tail sampling for errors |
| Slow UI queries | Undersized or unindexed storage | Scale storage, shorten retention |
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.