@@ -21650,6 +21650,7 @@ txn.id32 integer
2165021650txn.sess_term_state string
2165121651uuid([<version>]) string
2165221652var(<var-name>[,<default>]) undefined
21653+ waiting_entity string
2165321654-------------------------------------------------+-------------
2165421655
2165521656Detailed 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+
22162221877.3.3. Fetching samples at Layer 4
2216322188----------------------------------
2216422189
0 commit comments