Module brod_metrics

Telemetry events emitted by brod.

Description

Telemetry events emitted by brod.

Brod emits events using the Beam Telemetry library. Users can attach handler functions to these events, for example to report metrics. Each event is emitted by a function in this module; see the function documentation for the measurements and metadata attached to each event.

Data Types

batch_input()

batch_input() = brod:batch_input()

partition()

partition() = brod:partition()

topic()

topic() = brod:topic()

Function Index

produce_request_sent/3Emit a [brod, produce_request_sent] event.

Function Details

produce_request_sent/3

produce_request_sent(Topic::topic(), Partition::partition(), BatchInput::batch_input()) -> ok

Emit a [brod, produce_request_sent] event.

Emitted by producers for each produce request successfully sent on wire, i.e. one event per Kafka produce request (message batch).

Note that retried batches emit the event again: the event counts wire sends, so a summed count can exceed the number of unique messages produced when retries occur.

Measurements: Metadata: topic and partition the request was sent to.


Generated by EDoc