6#include <userver/baggage/baggage.hpp>
8#include <userver/components/component_base.hpp>
9#include <userver/components/component_config.hpp>
10#include <userver/components/component_context.hpp>
11#include <userver/dynamic_config/source.hpp>
13USERVER_NAMESPACE_BEGIN
22class BaggageManager
final {
24 explicit BaggageManager(
const dynamic_config::Source& config_source);
33 void AddEntry(std::string key, std::string value, BaggageProperties properties)
const;
45 dynamic_config::Source config_source_;
54class BaggageManagerComponent
final :
public components::ComponentBase {
58 static constexpr std::string_view
kName =
"baggage-manager";
60 BaggageManagerComponent(
const components::ComponentConfig& config,
const components::ComponentContext& context);
62 BaggageManager& GetManager();
64 static yaml_config::Schema GetStaticConfigSchema();
67 BaggageManager baggage_manager_;