|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Converts internal spans to OTLP wire format. More...
#include <otlp_grpc_exporter.h>

Static Public Member Functions | |
| static std::vector< uint8_t > | convert_to_otlp (const std::vector< trace_span > &spans, const std::string &service_name, const std::string &service_version, const std::unordered_map< std::string, std::string > &resource_attributes) |
| Convert spans to OTLP protobuf format. | |
Static Private Member Functions | |
| static std::vector< uint8_t > | build_resource_spans (const std::vector< trace_span > &spans, const std::string &service_name, const std::string &service_version, const std::unordered_map< std::string, std::string > &resource_attributes) |
| static std::vector< uint8_t > | build_resource (const std::string &service_name, const std::string &service_version, const std::unordered_map< std::string, std::string > &extra_attributes) |
| static std::vector< uint8_t > | build_scope_spans (const std::vector< trace_span > &spans) |
| static std::vector< uint8_t > | build_scope (const std::string &name, const std::string &version) |
| static std::vector< uint8_t > | build_span (const trace_span &span) |
| static std::vector< uint8_t > | build_key_value (const std::string &key, const std::string &value) |
| static std::vector< uint8_t > | build_any_value_string (const std::string &value) |
| static void | write_varint (std::vector< uint8_t > &data, uint64_t value) |
| static void | write_fixed64 (std::vector< uint8_t > &data, uint64_t value) |
| static std::vector< uint8_t > | hex_to_bytes (const std::string &hex, std::size_t expected_size) |
Converts internal spans to OTLP wire format.
This class handles the conversion of internal trace_span objects to the OTLP protocol buffer format.
Definition at line 106 of file otlp_grpc_exporter.h.
|
inlinestaticprivate |
Definition at line 324 of file otlp_grpc_exporter.h.
References write_varint().
Referenced by build_key_value().


|
inlinestaticprivate |
Definition at line 304 of file otlp_grpc_exporter.h.
References build_any_value_string(), and write_varint().
Referenced by build_resource(), and build_span().


|
inlinestaticprivate |
Definition at line 177 of file otlp_grpc_exporter.h.
References build_key_value(), and write_varint().
Referenced by build_resource_spans().


|
inlinestaticprivate |
Definition at line 154 of file otlp_grpc_exporter.h.
References build_resource(), build_scope_spans(), and write_varint().
Referenced by convert_to_otlp().


|
inlinestaticprivate |
Definition at line 230 of file otlp_grpc_exporter.h.
References write_varint().
Referenced by build_scope_spans().


|
inlinestaticprivate |
Definition at line 208 of file otlp_grpc_exporter.h.
References build_scope(), build_span(), and write_varint().
Referenced by build_resource_spans().


|
inlinestaticprivate |
Definition at line 249 of file otlp_grpc_exporter.h.
References build_key_value(), kcenon::monitoring::trace_span::end_time, hex_to_bytes(), kcenon::monitoring::trace_span::operation_name, kcenon::monitoring::trace_span::parent_span_id, kcenon::monitoring::trace_span::span_id, kcenon::monitoring::trace_span::start_time, kcenon::monitoring::trace_span::tags, kcenon::monitoring::trace_span::trace_id, write_fixed64(), and write_varint().
Referenced by build_scope_spans().


|
inlinestatic |
Convert spans to OTLP protobuf format.
| spans | Vector of spans to convert |
| service_name | Service name for resource |
| service_version | Service version |
| resource_attributes | Additional resource attributes |
Definition at line 116 of file otlp_grpc_exporter.h.
References build_resource_spans(), and write_varint().
Referenced by kcenon::monitoring::otlp_grpc_exporter::export_spans(), TEST_F(), and TEST_F().


|
inlinestaticprivate |
Definition at line 348 of file otlp_grpc_exporter.h.
Referenced by build_span().

|
inlinestaticprivate |
Definition at line 341 of file otlp_grpc_exporter.h.
Referenced by build_span().

|
inlinestaticprivate |
Definition at line 333 of file otlp_grpc_exporter.h.
Referenced by build_any_value_string(), build_key_value(), build_resource(), build_resource_spans(), build_scope(), build_scope_spans(), build_span(), and convert_to_otlp().
