Packages

Library to increase the throughput of producing messages (coming one at a time) to Kafka by accumulating these messages into batches

Current section

Files

Jump to
kafka_batcher lib kafka_batcher behaviours error_notifier.ex
Raw

lib/kafka_batcher/behaviours/error_notifier.ex

defmodule KafkaBatcher.Behaviours.ErrorNotifier do
@moduledoc """
ErrorNotifier behaviour is used to report errors to external error-monitoring systems.
In the most base implementation it could just log errors.
"""
@callback report(exception :: Exception.t() | [type: String.t(), message: String.t()], options :: Keyword.t()) :: :ok
end