|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Jaeger-specific span representation. More...
#include <trace_exporters.h>

Public Member Functions | |
| std::string | to_thrift_json () const |
| Convert to Jaeger Thrift format (JSON representation) | |
| std::vector< uint8_t > | to_protobuf () const |
Convert this span to a Jaeger api_v2 Span protobuf message. | |
Public Attributes | |
| std::string | trace_id |
| std::string | span_id |
| std::string | parent_span_id |
| std::string | operation_name |
| std::string | service_name |
| std::chrono::microseconds | start_time |
| std::chrono::microseconds | duration |
| std::vector< std::pair< std::string, std::string > > | tags |
| std::vector< std::pair< std::string, std::string > > | process_tags |
Jaeger-specific span representation.
Definition at line 106 of file trace_exporters.h.
|
inline |
Convert this span to a Jaeger api_v2 Span protobuf message.
Field numbers follow jaeger-idl/proto/api_v2/model.proto. Trace IDs are zero-padded to 16 bytes and span IDs to 8 bytes, matching the conventions enforced by the Jaeger collector.
Definition at line 162 of file trace_exporters.h.
References duration, kcenon::monitoring::jaeger_proto::span::duration_nanos, kcenon::monitoring::jaeger_proto::span::duration_seconds, kcenon::monitoring::jaeger_proto::encode_span(), kcenon::monitoring::protobuf_wire::hex_to_bytes(), kcenon::monitoring::jaeger_proto::key_value::key, kcenon::monitoring::protobuf_wire::left_pad(), kcenon::monitoring::jaeger_proto::span::operation_name, operation_name, parent_span_id, kcenon::monitoring::jaeger_proto::span::proc, process_tags, kcenon::monitoring::jaeger_proto::span_ref::ref_type, kcenon::monitoring::jaeger_proto::span::references, kcenon::monitoring::jaeger_proto::process::service_name, service_name, kcenon::monitoring::jaeger_proto::span::span_id, kcenon::monitoring::jaeger_proto::span_ref::span_id, span_id, start_time, kcenon::monitoring::jaeger_proto::span::start_time_nanos, kcenon::monitoring::jaeger_proto::span::start_time_seconds, kcenon::monitoring::jaeger_proto::string_type, kcenon::monitoring::jaeger_proto::process::tags, kcenon::monitoring::jaeger_proto::span::tags, tags, kcenon::monitoring::jaeger_proto::span::trace_id, kcenon::monitoring::jaeger_proto::span_ref::trace_id, trace_id, kcenon::monitoring::jaeger_proto::key_value::v_str, and kcenon::monitoring::jaeger_proto::key_value::v_type.
Referenced by TEST_F(), and TEST_F().


|
inline |
Convert to Jaeger Thrift format (JSON representation)
Definition at line 120 of file trace_exporters.h.
References duration, operation_name, parent_span_id, process_tags, service_name, span_id, start_time, tags, and trace_id.
| std::chrono::microseconds kcenon::monitoring::jaeger_span_data::duration |
Definition at line 113 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::string kcenon::monitoring::jaeger_span_data::operation_name |
Definition at line 110 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::string kcenon::monitoring::jaeger_span_data::parent_span_id |
Definition at line 109 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::vector<std::pair<std::string, std::string> > kcenon::monitoring::jaeger_span_data::process_tags |
Definition at line 115 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::string kcenon::monitoring::jaeger_span_data::service_name |
Definition at line 111 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::string kcenon::monitoring::jaeger_span_data::span_id |
Definition at line 108 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::chrono::microseconds kcenon::monitoring::jaeger_span_data::start_time |
Definition at line 112 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::vector<std::pair<std::string, std::string> > kcenon::monitoring::jaeger_span_data::tags |
Definition at line 114 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().
| std::string kcenon::monitoring::jaeger_span_data::trace_id |
Definition at line 107 of file trace_exporters.h.
Referenced by kcenon::monitoring::jaeger_exporter::convert_span(), to_protobuf(), and to_thrift_json().