diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-04-11 15:04:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 13:04:05 -0600 |
commit | 3e3bb00265f8fa0dd8ff3d33ce901776fd689f32 (patch) | |
tree | e7c059b2187d5d727a43da6988fb825aaed9b9d2 /modules/caddyhttp/app.go | |
parent | e4ce40f8ff0424054045de2461fc7228c66f3c61 (diff) |
reverseproxy: Add `_ms` placeholders for proxy durations (#4666)
* reverseproxy: Add `_ms` placeholders for proxy durations
* Add http.request.duration_ms
Also add comments, and change duration_sec to duration_ms
* Add response.duration_ms for consistency
* Add missing godoc comment
Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
Diffstat (limited to 'modules/caddyhttp/app.go')
-rw-r--r-- | modules/caddyhttp/app.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go index d81f556..d886b88 100644 --- a/modules/caddyhttp/app.go +++ b/modules/caddyhttp/app.go @@ -49,6 +49,7 @@ func init() { // `{http.request.body}` | The request body (⚠️ inefficient; use only for debugging) // `{http.request.cookie.*}` | HTTP request cookie // `{http.request.duration}` | Time up to now spent handling the request (after decoding headers from client) +// `{http.request.duration_ms}` | Same as 'duration', but in milliseconds. // `{http.request.uuid}` | The request unique identifier // `{http.request.header.*}` | Specific request header field // `{http.request.host.labels.*}` | Request host labels (0-based from right); e.g. for foo.example.com: 0=com, 1=example, 2=foo |