A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
trace_context.h File Reference
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include <absl/status/status.h>
#include <absl/status/statusor.h>
#include "a11/data/types.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::obs::BaggageEntry
 One decoded W3C baggage member propagated through nested and remote actions. More...
 
struct  a11::obs::TraceContext
 SDK-independent W3C parent context recovered from reserved action headers. More...
 

Namespaces

namespace  a11
 
namespace  a11::obs
 

Functions

absl::StatusOr< std::optional< TraceContext > > a11::obs::ExtractTraceContext (const data::ByteMap &headers)
 Extract a remote parent; nullopt means no tracing headers were supplied.
 
absl::Status a11::obs::InjectTraceContext (const TraceContext &context, data::ByteMap &headers)
 Serialize context into reserved headers, replacing existing values.
 

Variables

constexpr std::string_view a11::obs::kTraceparentHeader = "x-otel-traceparent"
 Reserved action header carrying the W3C traceparent value.
 
constexpr std::string_view a11::obs::kTracestateHeader = "x-otel-tracestate"
 Reserved action header carrying the W3C tracestate value.
 
constexpr std::string_view a11::obs::kBaggageHeader = "x-otel-baggage"
 Reserved action header carrying request-scoped W3C baggage.