Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
otlp_grpc_exporter.h File Reference

OTLP gRPC trace exporter implementation. More...

#include "../core/result_types.h"
#include "../core/error_codes.h"
#include "../tracing/distributed_tracer.h"
#include "trace_exporters.h"
#include "grpc_transport.h"
#include <vector>
#include <string>
#include <memory>
#include <chrono>
#include <atomic>
#include <mutex>
#include <queue>
#include <thread>
#include <condition_variable>
Include dependency graph for otlp_grpc_exporter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::monitoring::otlp_grpc_config
 Configuration for OTLP gRPC exporter. More...
 
struct  kcenon::monitoring::otlp_exporter_stats
 Statistics for OTLP exporter. More...
 
class  kcenon::monitoring::otlp_span_converter
 Converts internal spans to OTLP wire format. More...
 
class  kcenon::monitoring::otlp_grpc_exporter
 OTLP gRPC trace exporter. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::monitoring
 

Functions

std::unique_ptr< otlp_grpc_exporterkcenon::monitoring::create_otlp_grpc_exporter (const std::string &endpoint="localhost:4317")
 Create OTLP gRPC exporter with default configuration.
 
std::unique_ptr< otlp_grpc_exporterkcenon::monitoring::create_otlp_grpc_exporter (const otlp_grpc_config &config)
 Create OTLP gRPC exporter with custom configuration.
 

Detailed Description

OTLP gRPC trace exporter implementation.

This file provides a complete OTLP (OpenTelemetry Protocol) trace exporter using gRPC transport. It converts internal trace spans to OTLP format and sends them to an OpenTelemetry-compatible backend.

Note
Requires gRPC library (MONITORING_HAS_GRPC) for full functionality. When gRPC is not available, use otlp_http_exporter instead.

Definition in file otlp_grpc_exporter.h.