# `jadpo traces`

List the requests jadpo dev traced.

Lists the requests `jadpo dev` answered, from the traces it keeps on this machine (area 17): each request's id, route, how it ended, how long it took, how many spans it has and its trace's id, oldest first. The filters choose requests by route, action, domain, failure, slowness and request id; `--follow` keeps printing as new ones arrive. `jadpo dev` keeps every trace, whatever `telemetry: { detail: }` sends, the last 500 in build/dev/, which is never committed.

```text
jadpo traces
```

## Flags

- `--route <route>`: Only this route's requests
- `--action <action>`: Only the requests that ran this action
- `--domain <domain>`: Only those that ran this domain's code
- `--failure <code>`: Only those that failed with this code
- `--slower-than <duration>`: Only those slower than this, such as 200ms
- `--request <id>`: Only the request whose id starts so
- `--follow`: Keep printing as new ones arrive

## On every command

- `--json`: Print data for tools instead of text
- `--full`: Show everything a report shortens
- `--help`: Show every flag, with examples
- `--color <when>`: Choose when to use colour

`jadpo traces --json` writes one JSON document to standard output instead of text, with the same exit code. The document has `schemaVersion`, `command` (`"traces"`), `ok`, `data` (what the command produced, `null` when it failed) and `diagnostics` (each error with its `rule`, `reason`, `next` and `help`). A command that needs a terminal refuses `--json` and names the flags that do the same job.

## Examples

```text
# See the requests the app answered
jadpo traces
# See the slow ones
jadpo traces --slower-than 200ms
```

## Errors

- [`cli.traces_arguments`](/docs/errors/cli.traces_arguments.md): A `jadpo traces` command is given something it doesn't take, or a filter it can't read
- [`toolchain.project_not_found`](/docs/errors/toolchain.project_not_found.md): You ran a command that works on a project in a folder with no `app.jadpo`, in it or in any folder above it
