summaryrefslogtreecommitdiffhomepage
path: root/tsweb/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'tsweb/log.go')
-rw-r--r--tsweb/log.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tsweb/log.go b/tsweb/log.go
index e7928af04..18f7796bf 100644
--- a/tsweb/log.go
+++ b/tsweb/log.go
@@ -46,6 +46,12 @@ type AccessLogRecord struct {
Bytes int `json:"bytes"`
// Error encountered during request processing.
Err string `json:"err"`
+
+ // Extra contains extra fields logged by the HTTP handler.
+ //
+ // It is called "x" in the JSON both for brevity and so
+ // it comes last.
+ Extra map[string]string `json:"x,omitempty"`
}
// String returns m as a JSON string.