Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
otel_context.h File Reference

OpenTelemetry context structure for trace correlation kcenon. More...

#include <string>
#include <optional>
#include <unordered_map>
Include dependency graph for otel_context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::logger::otlp::otel_context
 OpenTelemetry context for trace correlation. More...
 
struct  kcenon::logger::otlp::otel_resource
 OpenTelemetry resource attributes. More...
 
class  kcenon::logger::otlp::otel_context_storage
 Thread-local storage for OpenTelemetry context. More...
 
class  kcenon::logger::otlp::otel_context_scope
 RAII guard for OpenTelemetry context. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 
namespace  kcenon::logger::otlp
 

Detailed Description

OpenTelemetry context structure for trace correlation kcenon.

Since
3.0.0

This file defines the OpenTelemetry context structure used for correlating logs with distributed traces. The context follows the W3C Trace Context specification for interoperability.

See also
https://www.w3.org/TR/trace-context/

Definition in file otel_context.h.