Watch Only Errored Invocations

logs & debug

// what it does

Filters the stream to failed invocations only, so uncaught exceptions and crashed requests aren't buried under successful traffic. `--status` accepts `ok`, `error`, and `canceled`, and you can pass several at once. Reach for this the moment production starts throwing.

// shell

$ wrangler tail my-worker --status error
$ wrangler tail --status error canceled

// gotcha

An error you catch in code and return as a normal Response still counts as `ok` — only uncaught exceptions and failed invocations register as `error`, so `--status error` can hide handled failures.