Class SpanDataEvent

Class Documentation

class opentelemetry::sdk::trace::SpanDataEvent

Class for storing events in SpanData.

Public Functions

inline SpanDataEvent(std::string name, opentelemetry::common::SystemTimestamp timestamp, const opentelemetry::common::KeyValueIterable &attributes)
inline std::string GetName() const noexcept

Get the name for this event

Returns

the name for this event

inline opentelemetry::common::SystemTimestamp GetTimestamp() const noexcept

Get the timestamp for this event

Returns

the timestamp for this event

inline const std::unordered_map<std::string, common::OwnedAttributeValue> &GetAttributes() const noexcept

Get the attributes for this event

Returns

the attributes for this event