MySQL 8.4.2
Source Code Documentation
TraceEvent Struct Reference

#include <trace_span.h>

Public Types

enum class  StatusCode { kUnset , kOk , kError }
 
using element_type = std::pair< std::string, std::variant< std::monostate, int64_t, bool, std::string > >
 
using attributes_type = std::vector< element_type >
 

Public Member Functions

 TraceEvent (std::string name_, attributes_type attrs_)
 
 TraceEvent (std::string name_)
 

Public Attributes

std::chrono::system_clock::time_point start_time_system
 
std::chrono::steady_clock::time_point start_time
 
std::chrono::steady_clock::time_point end_time
 
std::list< TraceEventevents
 
std::string name
 
attributes_type attrs
 
StatusCode status_code {StatusCode::kUnset}
 

Member Typedef Documentation

◆ attributes_type

◆ element_type

using TraceEvent::element_type = std::pair<std::string, std::variant<std::monostate, int64_t, bool, std::string> >

Member Enumeration Documentation

◆ StatusCode

enum class TraceEvent::StatusCode
strong
Enumerator
kUnset 
kOk 
kError 

Constructor & Destructor Documentation

◆ TraceEvent() [1/2]

TraceEvent::TraceEvent ( std::string  name_,
attributes_type  attrs_ 
)
inline

◆ TraceEvent() [2/2]

TraceEvent::TraceEvent ( std::string  name_)
inline

Member Data Documentation

◆ attrs

attributes_type TraceEvent::attrs

◆ end_time

std::chrono::steady_clock::time_point TraceEvent::end_time

◆ events

std::list<TraceEvent> TraceEvent::events

◆ name

std::string TraceEvent::name

◆ start_time

std::chrono::steady_clock::time_point TraceEvent::start_time

◆ start_time_system

std::chrono::system_clock::time_point TraceEvent::start_time_system

◆ status_code

StatusCode TraceEvent::status_code {StatusCode::kUnset}

The documentation for this struct was generated from the following file: