Your opinion will help to improve our service
Leave a feedback >#include <userver/tracing/span_event.hpp>
Span event – time-stamped annotation of the span with user-provided text description.
Definition at line 21 of file span_event.hpp.
Public Types | |
using | Timestamp = std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> |
using | KeyValue = std::unordered_map<std::string, AnyValue> |
Public Member Functions | |
SpanEvent (std::string_view name) | |
Constructor. Creates span event with name and timestamp. | |
SpanEvent (std::string_view name, KeyValue attributes) | |
Constructor. Creates span event with name, timestamp and attributes. | |
Public Attributes | |
std::string | name |
Event name. | |
Timestamp | timestamp {} |
Event timestamp. | |
KeyValue | attributes |
Attributes. | |
using tracing::SpanEvent::KeyValue = std::unordered_map<std::string, AnyValue> |
Definition at line 23 of file span_event.hpp.
using tracing::SpanEvent::Timestamp = std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> |
Definition at line 22 of file span_event.hpp.
|
explicit |
Constructor. Creates span event with name and timestamp.
name | Event name. |
tracing::SpanEvent::SpanEvent | ( | std::string_view | name, |
KeyValue | attributes ) |
Constructor. Creates span event with name, timestamp and attributes.
name | Event name. |
attributes | Key-value attributes. |
KeyValue tracing::SpanEvent::attributes |
Attributes.
Collection of unique key-value pairs.
Definition at line 46 of file span_event.hpp.
std::string tracing::SpanEvent::name |
Event name.
Definition at line 35 of file span_event.hpp.
Timestamp tracing::SpanEvent::timestamp {} |
Event timestamp.
Definition at line 38 of file span_event.hpp.