Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::zipkin_trace Struct Reference

#include <zipkin.hpp>

Inheritance diagram for fc::zipkin_trace:
Collaboration diagram for fc::zipkin_trace:

Public Member Functions

std::optional< zipkin_spancreate_span (std::string name) const
 
 zipkin_span (std::string name, uint64_t parent_id=0)
 
 zipkin_span (uint64_t id, std::string name, uint64_t parent_id=0)
 
 zipkin_span (const zipkin_span &)=delete
 
 zipkin_span (zipkin_span &&rhs) noexcept
 
- Public Member Functions inherited from fc::zipkin_span
 zipkin_span (std::string name, uint64_t parent_id=0)
 
 zipkin_span (uint64_t id, std::string name, uint64_t parent_id=0)
 
 zipkin_span (const zipkin_span &)=delete
 
zipkin_spanoperator= (const zipkin_span &)=delete
 
zipkin_spanoperator= (zipkin_span &&)=delete
 
 zipkin_span (zipkin_span &&rhs) noexcept
 
 ~zipkin_span ()
 
void add_tag (const std::string &key, const std::string &var)
 
void add_tag (const std::string &key, const char *var)
 
void add_tag (const std::string &key, bool v)
 
template<typename T >
std::enable_if_t< std::is_arithmetic_v< std::remove_reference_t< T > >, void > add_tag (const std::string &key, T &&var)
 
template<typename T >
std::enable_if_t<!std::is_arithmetic_v< std::remove_reference_t< T > >, void > add_tag (const std::string &key, T &&var)
 
token get_token () const
 

Static Public Member Functions

static std::optional< zipkin_spancreate_span_from_token (zipkin_span::token token, std::string name)
 
- Static Public Member Functions inherited from fc::zipkin_span
static uint64_t to_id (const fc::sha256 &id)
 
template<typename T >
static uint64_t to_id (const T &id)
 

Additional Inherited Members

- Public Attributes inherited from fc::zipkin_span
span_data data
 

Detailed Description

Definition at line 152 of file zipkin.hpp.

Member Function Documentation

◆ create_span()

std::optional< zipkin_span > fc::zipkin_trace::create_span ( std::string name) const
inlinenodiscard

Definition at line 155 of file zipkin.hpp.

155 {
156 return zipkin_span{std::move( name ), get_token().id};
157 }
std::string name
token get_token() const
Definition zipkin.hpp:116
zipkin_span(std::string name, uint64_t parent_id=0)
Definition zipkin.hpp:61
Here is the call graph for this function:

◆ create_span_from_token()

static std::optional< zipkin_span > fc::zipkin_trace::create_span_from_token ( zipkin_span::token token,
std::string name )
inlinestaticnodiscard

Definition at line 160 of file zipkin.hpp.

160 {
161 return zipkin_span{std::move( name ), token.id};
162 }

◆ zipkin_span() [1/4]

fc::zipkin_span::zipkin_span ( const zipkin_span & )
delete

◆ zipkin_span() [2/4]

fc::zipkin_span::zipkin_span ( std::string name,
uint64_t parent_id = 0 )
inlineexplicit

Definition at line 61 of file zipkin.hpp.

62 : data( std::move( name ), parent_id ) {}
span_data data
Definition zipkin.hpp:149

◆ zipkin_span() [3/4]

fc::zipkin_span::zipkin_span ( uint64_t id,
std::string name,
uint64_t parent_id = 0 )
inlineexplicit

Definition at line 64 of file zipkin.hpp.

65 : data( id, std::move( name ), parent_id ) {}

◆ zipkin_span() [4/4]

fc::zipkin_span::zipkin_span ( zipkin_span && rhs)
inlinenoexcept

Definition at line 71 of file zipkin.hpp.

72 : data( std::move( rhs.data ) ) {
73 rhs.data.id = 0;
74 }

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