Skip to content

Commit 1cd8173

Browse files
committed
DOC: config: Add documentation about waiting_entity sample fetch
The commit adds the documentation for the waiting_entity sample fetch.
1 parent 6034080 commit 1cd8173

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

doc/configuration.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21650,6 +21650,7 @@ txn.id32 integer
2165021650
txn.sess_term_state string
2165121651
uuid([<version>]) string
2165221652
var(<var-name>[,<default>]) undefined
21653+
waiting_entity string
2165321654
-------------------------------------------------+-------------
2165421655

2165521656
Detailed list:
@@ -22159,6 +22160,30 @@ var(<var-name>[,<default>]) : undefined
2215922160
return it as a string. Empty strings are permitted. See section 2.8 about
2216022161
variables for details.
2216122162

22163+
waiting_entity : string
22164+
This returns the identity of the entity that was waiting to continue its
22165+
processing when an error or a timeout was encountered. It may be the a rule
22166+
or a filter for instance. However, this list is not exhaustive and the format
22167+
of all possible entities is not forcefully documented.
22168+
22169+
When the entity is a rule, its location is returned. It is the configuration
22170+
file containing the rule followed by the line where the rule is defined in
22171+
this file, separated by a colon.
22172+
22173+
For a filter, its identifier is returned as defined by the developers. If
22174+
this identifier is not defined, an hexadecimal value is returned
22175+
corresponding to an unique internal identifier.
22176+
22177+
The main purpose of this function is to be able to report in logs the entity
22178+
blocking the stream analysis when an error or a timeout was encountered,
22179+
interrupting this processing, in order to help debugging issues. The
22180+
information returned on entities may changed in time and must not be used for
22181+
something else than debugging.
22182+
22183+
Example:
22184+
# Log the waiting entity, if any, and only if an error is reported
22185+
log-format "$HAPROXY_HTTP_LOG_FMT %{Q}[waiting_entity,when(error)]
22186+
2216222187
7.3.3. Fetching samples at Layer 4
2216322188
----------------------------------
2216422189

0 commit comments

Comments
 (0)