> For the complete documentation index, see [llms.txt](https://blackprince001.gitbook.io/flowbench-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blackprince001.gitbook.io/flowbench-documentation/reference/spans-and-outcomes.md).

# Spans and outcomes

One span model is the single source of truth for everything the report draws (ADR 0007): the flame graph reads folded aggregates of spans, the waterfall reads sampled raw span trees, and both speak the same names. This page is the vocabulary you see in those views.

## Span names

| Span                                                         | Emitted by                                                              |
| ------------------------------------------------------------ | ----------------------------------------------------------------------- |
| `flow:<name>`                                                | the root of every iteration                                             |
| `<step-id>`                                                  | each step, named exactly as authored                                    |
| `http_call`, `grpc_call`, `ws_open`, `ws_send`, `ws_receive` | the network leg of a step                                               |
| `dns`, `connect`, `tls`, `ttfb`, `transfer`                  | phases inside an HTTP call                                              |
| `attempt N`, `backoff`                                       | retry policy execution — one span per attempt, waits visible            |
| `graphql_errors`                                             | inspection of a GraphQL response's errors array                         |
| `<variable>`                                                 | an extraction, named for the variable it binds                          |
| `assert_*`                                                   | assertions                                                              |
| `<name>` / `<name>@<variant>`                                | a prompt observation; `pace` appears beside it when a pace guard waited |

Folding is by name: the flame graph aggregates every span sharing a dot-path, which is why step ids are stable identifiers (renaming one splits its history) and why a prompt variant's label is part of its identity.

## Outcomes

Every flow-run and every span lands in exactly one outcome:

| Outcome     | Meaning                                      |
| ----------- | -------------------------------------------- |
| `ok`        | completed, assertions held                   |
| `failed`    | an exchange failed or an assertion broke     |
| `skipped`   | not executed, because an earlier step failed |
| `throttled` | the target signalled rate limiting           |

`throttled` is tracked apart from the other three (ADR 0006). In load/stress/soak a throttled flow-run's outcome *is* `throttled` and counts toward `throttle_rate`, not `error_rate`; in integration/system it also counts as failed — a smoke test that got throttled did not pass. Three protocol signals classify as throttled: HTTP `429` (plus any statuses the step's `throttle:` maps), WebSocket close code `1013`, and gRPC `RESOURCE_EXHAUSTED`.

## Latency

Latency is coordinated-omission-aware: measured from *intended* dispatch to completion, so time a flow-run spent waiting for a free slot counts against the target's percentiles rather than silently disappearing. The percentiles the CLI prints and the report plots are computed over that definition.

## Storage tiers

A run persists spans at two grains, plus derived series (see [the results server](/flowbench-documentation/guide/results-server.md) for the on-disk layout):

* **folded** — span paths with aggregate counts and durations, bounded by path count; the flame-graph input.
* **traces** — complete raw span trees for a sample of iterations: every failure, plus sampled successes and throttles, with payloads captured under size caps and redaction.
* **series / samples** — bucketed outcomes-and-latencies over time, and a thinned per-flow-run tier, powering the charts, the outcome strip, and the knee's onset detection.

Capture policy in one line: all failures, sampled everything else, bodies capped, secrets redacted before anything touches disk.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://blackprince001.gitbook.io/flowbench-documentation/reference/spans-and-outcomes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
