Template Class HttpTraceContext

Inheritance Relationships

Base Type

  • public opentelemetry::trace::propagation::TextMapPropagator< T >

Class Documentation

template<typename T>
class opentelemetry::trace::propagation::HttpTraceContext : public opentelemetry::trace::propagation::TextMapPropagator<T>

Public Types

using Getter = nostd::string_view (*)(const T &carrier, nostd::string_view trace_type)
using Setter = void (*)(T &carrier, nostd::string_view trace_type, nostd::string_view trace_description)

Public Functions

inline void Inject(Setter setter, T &carrier, const context::Context &context) noexcept override
inline context::Context Extract(Getter getter, const T &carrier, context::Context &context) noexcept override

Public Static Functions

static inline TraceId TraceIdFromHex(nostd::string_view trace_id)
static inline SpanId SpanIdFromHex(nostd::string_view span_id)
static inline TraceFlags TraceFlagsFromHex(nostd::string_view trace_flags)