|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
OpenTelemetry context for trace correlation. More...
#include <otel_context.h>

Public Member Functions | |
| bool | is_valid () const noexcept |
| Check if context is valid. | |
| bool | is_sampled () const noexcept |
| Check if trace is sampled. | |
Static Public Member Functions | |
| static otel_context | empty () noexcept |
| Create an empty/invalid context. | |
Public Attributes | |
| std::string | trace_id |
| std::string | span_id |
| std::string | trace_flags |
| std::string | trace_state |
Static Private Member Functions | |
| static bool | is_valid_hex (const std::string &str) noexcept |
OpenTelemetry context for trace correlation.
Contains trace identification and propagation information following the W3C Trace Context specification.
Definition at line 45 of file otel_context.h.
|
inlinestaticnodiscardnoexcept |
Create an empty/invalid context.
Definition at line 120 of file otel_context.h.
|
inlinenodiscardnoexcept |
Check if trace is sampled.
Definition at line 103 of file otel_context.h.
References trace_flags.
|
inlinenodiscardnoexcept |
Check if context is valid.
Definition at line 93 of file otel_context.h.
References is_valid_hex(), span_id, and trace_id.

|
inlinestaticnodiscardprivatenoexcept |
Definition at line 125 of file otel_context.h.
Referenced by is_valid().

| std::string kcenon::logger::otlp::otel_context::span_id |
Definition at line 64 of file otel_context.h.
Referenced by is_valid(), kcenon::logger::scoped_context_guard::set_otel(), and kcenon::logger::unified_log_context::set_otel().
| std::string kcenon::logger::otlp::otel_context::trace_flags |
Definition at line 76 of file otel_context.h.
Referenced by is_sampled(), kcenon::logger::scoped_context_guard::set_otel(), and kcenon::logger::unified_log_context::set_otel().
| std::string kcenon::logger::otlp::otel_context::trace_id |
Definition at line 54 of file otel_context.h.
Referenced by is_valid(), kcenon::logger::scoped_context_guard::set_otel(), and kcenon::logger::unified_log_context::set_otel().
| std::string kcenon::logger::otlp::otel_context::trace_state |
Definition at line 86 of file otel_context.h.
Referenced by kcenon::logger::scoped_context_guard::set_otel(), and kcenon::logger::unified_log_context::set_otel().