Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Projects have Observability: their requests, logs, traces, metrics and errors, from apps on g1t.page with nothing to set up, and from software anywhere else over OpenTelemetry. | 1 | /** What Cloudflare's outcome of a request means, in words. */ |
| 2 | export function outcomeWords(outcome: string): string { | |
| 3 | switch (outcome) { | |
| 4 | case "ok": | |
| 5 | return "Answered"; | |
| 6 | case "error": | |
| 7 | return "Failed"; | |
| 8 | case "exception": | |
| 9 | return "Threw before answering"; | |
| 10 | case "exceededCpu": | |
| 11 | return "Over its CPU time"; | |
| 12 | case "exceededMemory": | |
| 13 | return "Out of memory"; | |
| 14 | case "exceededWallTime": | |
| 15 | return "Over its time"; | |
| 16 | case "canceled": | |
| 17 | return "Cancelled by the visitor"; | |
| 18 | case "responseStreamDisconnected": | |
| 19 | return "Visitor left mid-response"; | |
| 20 | case "scriptNotFound": | |
| 21 | return "No app there"; | |
| 22 | case "loadShed": | |
| 23 | return "Shed under load"; | |
| 24 | default: | |
| 25 | return outcome; | |
| 26 | } | |
| 27 | } |