5#include <userver/kafka/producer.hpp>
7#include <userver/components/component_base.hpp>
8#include <userver/utils/statistics/entry.hpp>
10USERVER_NAMESPACE_BEGIN
53class ProducerComponent
final :
public components::ComponentBase {
57 static constexpr std::string_view
kName{
"kafka-producer"};
59 ProducerComponent(
const components::ComponentConfig& config,
const components::ComponentContext& context);
60 ~ProducerComponent()
override;
66 static yaml_config::Schema GetStaticConfigSchema();
73 utils::statistics::Entry statistics_holder_;