Agent Wranglers

WEB-57Optional

Report how long the server took

Report how long the server took in a Server-Timing header, without internal names.

How to do it

Measure the time from request start to writing the headers. Send it as Server-Timing: app;dur=<ms>, with generic metric names. To follow one request across services, see Trace requests across services.

Examples

HTTP example

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Server-Timing: app;dur=4.2

How to check

curl -sI URL shows Server-Timing with a dur value, and no metric name reveals a database, host or library.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/performance/server-timing">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.