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

OpenTelemetry Protocol (OTLP) log writer for observability kcenon. More...

#include "base_writer.h"
#include "../interfaces/writer_category.h"
#include "../otlp/otel_context.h"
#include <kcenon/logger/logger_export.h>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
#include <thread>
#include <unordered_map>
#include <vector>
Include dependency graph for otlp_writer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::otlp_writer
 OTLP log exporter for OpenTelemetry integration. More...
 
struct  kcenon::logger::otlp_writer::config
 Configuration for OTLP writer. More...
 
struct  kcenon::logger::otlp_writer::export_stats
 Statistics snapshot for OTLP export (copyable) More...
 
struct  kcenon::logger::otlp_writer::internal_stats
 Internal atomic statistics (non-copyable) More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Detailed Description

OpenTelemetry Protocol (OTLP) log writer for observability kcenon.

Since
3.0.0

This file defines the OTLP writer for exporting logs to OpenTelemetry-compatible collectors. Supports both HTTP and gRPC transport protocols with batch export for efficiency.

Note
Requires LOGGER_ENABLE_OTLP=ON and opentelemetry-cpp dependency.

Definition in file otlp_writer.h.