#include <userver/baggage/baggage_manager.hpp>
|
|
| 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 const Baggage * | TryGetBaggage () |
| | Get const pointer to baggage value from task inherited variable.
|
| |
|
static void | ResetBaggage () |
| | Delete header from task inherited variable.
|
| |
Client for manipulation with Baggage header content.
Usually retrieved from baggage::BaggageManagerComponent.
Definition at line 23 of file baggage_manager.hpp.
◆ AddEntry()
| void baggage::BaggageManager::AddEntry |
( |
std::string |
key, |
|
|
std::string |
value, |
|
|
BaggageProperties |
properties |
|
) |
| const |
Add entry to baggage header.
- Exceptions
-
| BaggageException | If key, value or properties don't match with requirements or if allowed_keys don't contain selected key |
The documentation for this class was generated from the following file: