[master] 7b5ee1a Timestamp documentation

Martin Blix Grydeland martin at varnish-software.com
Wed Mar 26 12:42:22 CET 2014

commit 7b5ee1a64c41dbe0044a74a6a9ea562309a28f04
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Mar 25 16:28:58 2014 +0100

    Timestamp documentation

diff --git a/doc/sphinx/reference/vsl.rst b/doc/sphinx/reference/vsl.rst
index 78c3456..36d51bd 100644
--- a/doc/sphinx/reference/vsl.rst
+++ b/doc/sphinx/reference/vsl.rst
@@ -20,6 +20,83 @@ VSL tags
 .. include:: ../../../lib/libvarnishapi/vsl-tags.rst
+Timestamps are inserted in the log on completing certain events during
+the worker thread's task handling. The timestamps has a label showing
+which event was completed. The reported fields show the absolute time
+of the event, the time spent since the start of the task and the time
+spent since the last timestamp was logged.
+The timestamps logged automatically by Varnish are inserted after
+completing events that are expected to have delays (e.g. network IO or
+spending time on a waitinglist). Timestamps can also be inserted from
+VCL using the std.timestamp() method. If one is doing time consuming
+tasks in the VCL configuration, it's a good idea to log a timestamp
+after completing that task. This keeps the timing information in
+subsequent timestamps from including the time spent on the VCL event.
+Request handling timestamps
+	The start of request processing (first byte received or
+	restart).
+	Complete client request received.
+	Client request body processed (discarded, cached or passed to
+	the backend).
+	Came off waitinglist.
+	Fetch processing finished (completely fetched or ready for
+	streaming).
+	Processing finished, ready to deliver the client response.
+	Delivery of response to the client finished.
+	Client request is being restarted.
+Pipe handling timestamps
+	Opened a pipe to the backend and forwarded the request.
+	The pipe session has finished.
+Backend fetch timestamps
+	Start of the backend fetch processing.
+	Backend request sent.
+	Backend response headers received.
+	Backend response body received.
+	Backend request is being retried.
+	Backend request failed to vcl_error.
diff --git a/include/tbl/vsl_tags.h b/include/tbl/vsl_tags.h
index 34c5c13..0f50a48 100644
--- a/include/tbl/vsl_tags.h
+++ b/include/tbl/vsl_tags.h
@@ -468,7 +468,8 @@ SLTM(Timestamp, 0, "Timing information",
 	"Time stamps are issued by Varnish on certain events,"
 	" and show the absolute time of the event, the time spent since the"
 	" start of the work unit, and the time spent since the last timestamp"
-	" was logged.\n\n"
+	" was logged. See vsl(7) for information about the individual"
+	" timestamps.\n\n"
 	"The format is::\n\n"
 	"\t%s: %f %f %f\n"
 	"\t|   |  |  |\n"

More information about the varnish-commit mailing list