17 #ifndef INCLUDED_BMQPI_DTSPAN
18 #define INCLUDED_BMQPI_DTSPAN
34 #include <bsl_string.h>
35 #include <bsl_string_view.h>
36 #include <bsl_unordered_map.h>
37 #include <bslma_allocator.h>
69 typedef bsl::unordered_map<bsl::string, bsl::string> MapType;
91 bool has(
const bsl::string& key)
const;
99 bsl::string_view
get(
const bsl::string& key,
100 const bsl::string_view& dflt =
"")
const;
107 void put(
const bsl::string_view& key,
const bsl::string_view& value);
A set of key-values used to describe a DTSpan.
Definition: bmqpi_dtspan.h:66
bsl::string_view get(const bsl::string &key, const bsl::string_view &dflt="") const
bool erase(const bsl::string &key)
bool has(const bsl::string &key) const
MapType::const_iterator const_iterator
Definition: bmqpi_dtspan.h:76
Baggage(bslma::Allocator *allocator=0)
const_iterator begin() const
Returns a const-iterator used to iterate over key-values.
void put(const bsl::string_view &key, const bsl::string_view &value)
const_iterator end() const
Returns a const-iterator representing the end of key-values.
A pure interface for representing a span of a distributed trace.
Definition: bmqpi_dtspan.h:47
virtual bsl::string_view operation() const =0
Returns the name of the operation that this DTSpan represents.
virtual ~DTSpan()
Destructor.
Definition: bmqa_abstractsession.h:42