Slide 1 of 5

The four-stage tracing pipeline

The four-stage tracing pipeline

Tracing isn’t a single product. Getting a trace from your application onto your screen takes several separate pieces: one produces the spans, one moves them, one stores them, and one reads them. Out of context, their names blur together.

This section is the map that puts those pieces in order. Every trace follows the same path, from your application to your screen. That path, from producing a trace to reading it, is the tracing pipeline, and it has four stages:

  • Instrument: your application produces spans as it handles a request.
  • Send: those spans travel from your application to where they’re stored.
  • Store: the spans are saved together as a trace so you can find them later.
  • Query and visualize: you find a trace and read it to see where the request spent its time.

Each of these steps is one pipeline stage: one link in the path a trace takes.

The four stages run in order, each handing the trace to the next:

The tracing pipeline as four ordered stages: Instrument, Send, Store, and Query and visualize, connected left to right by arrows

One tool per stage

The next three slides walk the first three stages in order and introduce the main tool at each one. The fourth stage, finding and reading a trace, is where the rest of the journey is headed: you’ll do it hands-on in the next section.

Script

Tracing isn’t a single product. Getting a trace onto your screen takes several separate pieces: one produces the spans, one moves them, one stores them, and one reads them. Out of context their names blur together, so this section is the map that puts them in order.

Every trace travels the same route from your application to your screen, and that route has a name, the tracing pipeline. It breaks into four stages.

First, instrument, where your application produces spans as it handles a request. Second, send, where those spans travel from the application to where they’re stored. Third, store, where the spans are saved together as a trace so you can find them later. Fourth, query and visualize, where you find a trace and read it to see where the time went.

Each of those steps is one pipeline stage, a single link in the chain.

The next three slides walk the first three stages and name the main tool at each. The fourth stage, finding and reading a trace, is where the whole journey is headed, and you’ll do it hands-on in the next section.