|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
OpenTelemetry Protocol (OTLP) trace exporter implementation. More...
#include <trace_exporters.h>


Public Member Functions | |
| otlp_exporter (const trace_export_config &config, const otel_resource &resource) | |
| common::VoidResult | export_spans (const std::vector< trace_span > &spans) override |
| Export a batch of spans. | |
| common::VoidResult | flush () override |
| Flush any pending spans. | |
| common::VoidResult | shutdown () override |
| Shutdown the exporter. | |
| std::unordered_map< std::string, std::size_t > | get_stats () const override |
| Get exporter statistics. | |
Public Member Functions inherited from kcenon::monitoring::trace_exporter_interface | |
| virtual | ~trace_exporter_interface ()=default |
Private Member Functions | |
| common::VoidResult | send_grpc_batch (const std::vector< otel_span_data > &spans) |
| common::VoidResult | send_http_json_batch (const std::vector< otel_span_data > &spans) |
| common::VoidResult | send_http_protobuf_batch (const std::vector< otel_span_data > &spans) |
Private Attributes | |
| trace_export_config | config_ |
| std::unique_ptr< opentelemetry_tracer_adapter > | otel_adapter_ |
| std::atomic< std::size_t > | exported_spans_ {0} |
| std::atomic< std::size_t > | failed_exports_ {0} |
| std::atomic< std::size_t > | dropped_spans_ {0} |
OpenTelemetry Protocol (OTLP) trace exporter implementation.
Definition at line 662 of file trace_exporters.h.
|
inlineexplicit |
Definition at line 671 of file trace_exporters.h.
|
inlineoverridevirtual |
Export a batch of spans.
Implements kcenon::monitoring::trace_exporter_interface.
Definition at line 674 of file trace_exporters.h.
References config_, exported_spans_, failed_exports_, kcenon::monitoring::trace_export_config::format, kcenon::monitoring::invalid_configuration, kcenon::monitoring::operation_failed, otel_adapter_, kcenon::monitoring::otlp_grpc, kcenon::monitoring::otlp_http_json, kcenon::monitoring::otlp_http_protobuf, kcenon::monitoring::processing_failed, send_grpc_batch(), send_http_json_batch(), send_http_protobuf_batch(), and kcenon::monitoring::error_info::to_common_error().
Referenced by TEST_F(), TEST_F(), and TEST_F().


|
inlineoverridevirtual |
Flush any pending spans.
Implements kcenon::monitoring::trace_exporter_interface.
Definition at line 715 of file trace_exporters.h.
Referenced by shutdown(), and TEST_F().

|
inlineoverridevirtual |
Get exporter statistics.
Implements kcenon::monitoring::trace_exporter_interface.
Definition at line 724 of file trace_exporters.h.
References dropped_spans_, exported_spans_, and failed_exports_.
Referenced by TEST_F(), and TEST_F().

|
inlineprivate |
Definition at line 733 of file trace_exporters.h.
Referenced by export_spans().

|
inlineprivate |
Definition at line 740 of file trace_exporters.h.
Referenced by export_spans().

|
inlineprivate |
Definition at line 747 of file trace_exporters.h.
Referenced by export_spans().

|
inlineoverridevirtual |
Shutdown the exporter.
Implements kcenon::monitoring::trace_exporter_interface.
Definition at line 720 of file trace_exporters.h.
References flush().
Referenced by TEST_F().


|
private |
Definition at line 664 of file trace_exporters.h.
Referenced by export_spans().
|
private |
|
private |
Definition at line 666 of file trace_exporters.h.
Referenced by export_spans(), and get_stats().
|
private |
Definition at line 667 of file trace_exporters.h.
Referenced by export_spans(), and get_stats().
|
private |
Definition at line 665 of file trace_exporters.h.
Referenced by export_spans().