>_ RESTERM
v1.18.2

examples Scripts and checks

trace.http

One request within its trace budget and one that fails on purpose by breaching it.

runs as-is

shell
resterm _examples/trace.http

Run this from the root of a clone of the Resterm repository.

Editor
### 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

_examples/trace.http on GitHub

Timeline & tracing docs
Search

↑↓ moveEnter openEsc close

Help

These keys work like the ones in the TUI.

/
Search the docs (also Ctrl K)
j k
Scroll down and up
g g G
Jump to the top or the bottom
[ ]
Previous and next page
g d
Docs index
g h
Home page
t
Switch between dark and light
?
Show this help
Esc
Close a dialog