pub const KAFKA_CLIENT_ID_ENRICHMENT_RULES: Config<fn() -> Value>;
Expand description
Rules for enriching the client.id
property of Kafka clients with
additional data.
The configuration value must be a JSON array of objects containing keys
named pattern
and payload
, both of type string. Rules are checked in the
order they are defined. The rule’s pattern must be a regular expression
understood by the Rust regex
crate. If the rule’s pattern matches the
address of any broker in the connection, then the payload is appended to the
client ID. A rule’s payload is always prefixed with -
, to separate it from
the preceding data in the client ID.