glossary

Observability

Span

A span is one timed step inside a trace, such as a model call, a tool call, or a retrieval, with its own start, end, and status, so a reviewer can see how long that step took and whether it failed on its own.

Abracadabra Team Glossary

How it works

A span has a name, a start, an end, and a parent. The parent is the trace, or another span when a step contains smaller steps. The status on the span says whether that step itself errored, timed out, or returned. It does not say whether the person's job is done. Clocks should come from one source, or a slow tool can look longer than the run that contains it.

In a pharmacy, the dispense run checks a new prescription against medicines already on the record. The interaction check is one span: the tool starts, the record is read, and the tool returns "needs a pharmacist". The model call that chooses the check is a different span. Together they explain the wait. Neither span says the medicine was handed over. That hand-over is the outcome, and no span status records it.

A worked example

The interaction check inside one dispense

A dispenser asks the agent to check a new prescription against the medicines already on the record before the label is printed.

Span A, model call. Starts when the request is sent. Ends when the model chooses the interaction tool. Status: no error.
Span B, tool call. Starts when the interaction tool is invoked. Ends when it returns "needs a pharmacist". Status: no error.
Span C, model call. Ends when the reply tells the dispenser to wait for a pharmacist. Status: no error.

The trace is the whole check. Span B is only the tool step. Its clean status means the tool returned. It does not mean the prescription was cleared, and it does not mean the medicine left the counter.

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

What goes wrong

  • The tool status is copied up as the task result. "Needs a pharmacist" is a successful tool return, and the dispense is still blocked. The span is green. The job is not finished.
  • The parent id is missing, so the interaction check cannot be placed inside the dispense. The step then looks like a stray call, and the wait cannot be tied to the prescription.
  • The tool clock and the model clock disagree. The check appears to finish after the reply that quotes it, and a reviewer cannot trust which step consumed the time.

How to measure it

Time a span from its own start to its own end, and keep that figure separate from the trace duration. Name the step in a way a reviewer can recognise: model call, tool call, or retrieval, plus the tool name you already use.

Group spans by name and status before you average them. A mean that mixes the interaction tool with the label printer hides the slow step. Read a long span next to the task outcome, not instead of it.

Further reading

How Abracadabra helps

A tool span can finish cleanly while the dispense is still blocked. Pin the stopped task to that step on the conversation, so the green call and the unfinished job stay next to each other.

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.