]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: config: Add documentation about waiting_entity sample fetch
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 Oct 2024 15:33:19 +0000 (16:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 Oct 2024 19:47:59 +0000 (20:47 +0100)
The commit adds the documentation for the waiting_entity sample fetch.

doc/configuration.txt

index e953e32967b70fd71be97fff6304ca64abb796eb..6dc570e42f3d4d9dc68a638d7f537daa8bdc7410 100644 (file)
@@ -21650,6 +21650,7 @@ txn.id32                                           integer
 txn.sess_term_state                                string
 uuid([<version>])                                  string
 var(<var-name>[,<default>])                        undefined
+waiting_entity                                     string
 -------------------------------------------------+-------------
 
 Detailed list:
@@ -22159,6 +22160,30 @@ var(<var-name>[,<default>]) : undefined
   return it as a string. Empty strings are permitted. See section 2.8 about
   variables for details.
 
+waiting_entity : string
+  This returns the identity of the entity that was waiting to continue its
+  processing when an error or a timeout was encountered. It may be the a rule
+  or a filter for instance. However, this list is not exhaustive and the format
+  of all possible entities is not forcefully documented.
+
+  When the entity is a rule, its location is returned. It is the configuration
+  file containing the rule followed by the line where the rule is defined in
+  this file, separated by a colon.
+
+  For a filter, its identifier is returned as defined by the developers. If
+  this identifier is not defined, an hexadecimal value is returned
+  corresponding to an unique internal identifier.
+
+  The main purpose of this function is to be able to report in logs the entity
+  blocking the stream analysis when an error or a timeout was encountered,
+  interrupting this processing, in order to help debugging issues. The
+  information returned on entities may changed in time and must not be used for
+  something else than debugging.
+
+  Example:
+      # Log the waiting entity, if any, and only if an error is reported
+      log-format "$HAPROXY_HTTP_LOG_FMT %{Q}[waiting_entity,when(error)]
+
 7.3.3. Fetching samples at Layer 4
 ----------------------------------