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