glossary

Observability

Inter-token latency

Inter-token latency is the gap between successive tokens after the first one, so a reply can start quickly and still arrive unevenly if the later tokens come in bursts or stalls.

Abracadabra Team Glossary

How it works

After the first token, each later gap is inter-token latency. A mean gap, a largest gap, and the time from first token to last divided by the number of gaps are different summaries. The name should say which one you stored. A reply can open quickly and then stall before the clause that matters. That stall is invisible if you only publish time to first token or the full wall time. Do not fold the opening wait into this series. The interval from request to first token has its own start and its own name.

A museum asks for an English gallery label in Welsh. The first word appears quickly. Mid-sentence the stream pauses on a date, then the rest arrives in a rush. The curator, who must check the date, thinks the agent has stopped. Inter-token latency names that pause. Time to first token only says the translation started. Full latency only says how long the label took. Neither isolates the stall.

A worked example

A stall in the middle of a gallery label

Curator: translate this English case label into Welsh, and keep the date and the place name.

The first token arrives 600 milliseconds after the request. That is time to first token, not an inter-token gap.

Later gaps are short, except one gap of 2 seconds before the date. The remaining tokens then arrive quickly. The 2 second gap is the inter-token figure that matches the curator's wait. A mean of every gap hides it, because the tiny gaps pull the average down.

Wall time from request to last token is a third clock. None of the three says the Welsh matches the English. The curator still compares the labels.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • The opening wait is averaged into the later gaps. A slow start is misread as uneven generation, and time to first token contaminates the series.
  • Only the mean gap is stored. The 2 second stall before the date disappears under many short gaps, and the complaint has no number beside it.
  • The gap is measured in the model process, not at the screen. A client buffer holds tokens back, so the curator sees a stall the model metric misses on the screen.

How to measure it

Start this series at the second token. Record both a central gap and the largest gap, and say which summary a chart uses. Keep time to first token and full wall time as separate figures with their own endpoints.

When the largest gap grows, tie it to the span open during the stall. Check separately whether the finished label matched the source. A smooth stream can still be the wrong Welsh.

How Abracadabra helps

Gaps between later tokens explain a reply that starts and then stalls. They are not time to first token, and they do not show whether the gallery label matched the source. That result sits on the conversation.

A trace says the run finished. Abracadabra says whether the person got the job they came to do, and keeps that outcome on the conversation. It complements tracing and OpenTelemetry. It does not ingest spans or replace a trace tool.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.