nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::SpanContext Struct Reference

#include <tracing.h>

Public Member Functions

bool valid () const
std::string trace_id () const
 The trace's id, as 32 hex digits, as Tempo shows it.
bool operator== (const SpanContext &) const =default

Public Attributes

uint64_t trace_high = 0
uint64_t trace_low = 0
uint64_t span = 0

Detailed Description

Where a span is: the trace it's part of, by its 16 random bytes, and the span itself, by its 8. A span id of zero is no span.

Definition at line 21 of file tracing.h.

Member Function Documentation

◆ operator==()

bool nanommo::SpanContext::operator== ( const SpanContext & ) const
default

◆ trace_id()

std::string nanommo::SpanContext::trace_id ( ) const

The trace's id, as 32 hex digits, as Tempo shows it.

Definition at line 265 of file tracing.cc.

◆ valid()

bool nanommo::SpanContext::valid ( ) const
inline

Definition at line 26 of file tracing.h.

Member Data Documentation

◆ span

uint64_t nanommo::SpanContext::span = 0

Definition at line 24 of file tracing.h.

◆ trace_high

uint64_t nanommo::SpanContext::trace_high = 0

Definition at line 22 of file tracing.h.

◆ trace_low

uint64_t nanommo::SpanContext::trace_low = 0

Definition at line 23 of file tracing.h.


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