Class Baggage

Class Documentation

class opentelemetry::baggage::Baggage

Public Functions

inline Baggage()
inline Baggage(size_t size)
template<class T>
inline Baggage(const T &keys_and_values)
inline bool GetValue(nostd::string_view key, std::string &value) const
inline nostd::shared_ptr<Baggage> Set(const nostd::string_view &key, const nostd::string_view &value)
inline bool GetAllEntries(nostd::function_ref<bool(nostd::string_view, nostd::string_view)> callback) const noexcept
inline nostd::shared_ptr<Baggage> Delete(nostd::string_view key)
inline std::string ToHeader() const

Public Static Functions

static inline nostd::shared_ptr<Baggage> GetDefault()
static inline nostd::shared_ptr<Baggage> FromHeader(nostd::string_view header)

Public Static Attributes

static constexpr size_t kMaxKeyValuePairs = 180
static constexpr size_t kMaxKeyValueSize = 4096
static constexpr size_t kMaxSize = 8192
static constexpr char kKeyValueSeparator = '='
static constexpr char kMembersSeparator = ','
static constexpr char kMetadataSeparator = ';'