examples Scripts and checks
trace.http
One request within its trace budget and one that fails on purpose by breaching it.
runs as-is
resterm _examples/trace.httpRun this from the root of a clone of the Resterm repository.
Editor
Timeline & tracing docs### Happy path
# @name trace-ok
# @description Demonstrates trace budgets that pass comfortably.
# Timeline tip: open the Timeline tab to see Connection/TLS panels (reuse, protocol, certs).
# @trace dns<=40ms connect<=120ms ttfb<=300ms total<=600ms tolerance=25ms
GET https://httpbin.org/delay/0.05
Accept: application/json
User-Agent: resterm-trace-demo
### Intentional breach
# @name trace-breach
# @description Increase the server delay so the `total` budget triggers.
# @trace total<=150ms tolerance=25ms
GET https://httpbin.org/delay/0.25
Accept: application/json
User-Agent: resterm-trace-demo