Skip to main content

Module context

Module context 

Source
Expand description

Per-delivery context fields exposed to handlers.

KafkaContext carries the Kafka delivery metadata that is not part of the payload or the headers. Request it in a handler by typing the context parameter as Context<'_, KafkaContext> and read individual fields with the zero-sized keys in keys.

Modules§

keys
Zero-sized Field keys reading one KafkaContext field each.

Structs§

KafkaContext
Native Kafka delivery metadata, built once per delivery.