#include <userver/baggage/baggage_manager.hpp>
Client for manipulation with Baggage header content.
Usually retrieved from baggage::BaggageManagerComponent.
Definition at line 22 of file baggage_manager.hpp.
Public Member Functions | |
| BaggageManager (const dynamic_config::Source &config_source) | |
| bool | IsEnabled () const |
| Returns if baggage is enabled. | |
| void | AddEntry (std::string key, std::string value, BaggageProperties properties) const |
| Add entry to baggage header. | |
| void | SetBaggage (std::string header) const |
| Set new baggage value to task inherited variable. | |
Static Public Member Functions | |
| static const Baggage * | TryGetBaggage () |
| Get const pointer to baggage value from task inherited variable. | |
| static void | ResetBaggage () |
| Delete header from task inherited variable. | |
| void baggage::BaggageManager::AddEntry | ( | std::string | key, |
| std::string | value, | ||
| BaggageProperties | properties ) const |
Add entry to baggage header.
| BaggageException | If key, value or properties don't match with requirements or if allowed_keys don't contain selected key |