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

Public Member Functions | |
| std::string | to_json_v2 () const |
| Convert to Zipkin JSON v2 format. | |
| std::vector< uint8_t > | to_protobuf () const |
Convert this span to a Zipkin Span protobuf message. | |
Public Attributes | |
| std::string | trace_id |
| std::string | span_id |
| std::string | parent_id |
| std::string | name |
| std::string | kind |
| std::chrono::microseconds | timestamp |
| std::chrono::microseconds | duration |
| std::string | local_endpoint_service_name |
| std::string | remote_endpoint_service_name |
| std::unordered_map< std::string, std::string > | tags |
| bool | shared = false |
Zipkin-specific span representation.
Definition at line 265 of file trace_exporters.h.
|
inline |
Convert to Zipkin JSON v2 format.
Definition at line 281 of file trace_exporters.h.
References duration, kind, local_endpoint_service_name, name, parent_id, remote_endpoint_service_name, shared, span_id, tags, timestamp, and trace_id.
|
inline |
Convert this span to a Zipkin Span protobuf message.
Field numbers follow openzipkin/zipkin-api/zipkin.proto. Trace IDs are expected to be 8 or 16 hex bytes; shorter inputs are zero-padded.
Definition at line 326 of file trace_exporters.h.
References kcenon::monitoring::zipkin_proto::span::duration, duration, kcenon::monitoring::zipkin_proto::encode_span(), kcenon::monitoring::protobuf_wire::hex_to_bytes(), kcenon::monitoring::zipkin_proto::span::id, kcenon::monitoring::zipkin_proto::span::kind, kind, kcenon::monitoring::protobuf_wire::left_pad(), kcenon::monitoring::zipkin_proto::span::local_endpoint, local_endpoint_service_name, kcenon::monitoring::zipkin_proto::span::name, name, kcenon::monitoring::zipkin_proto::span::parent_id, parent_id, kcenon::monitoring::zipkin_proto::parse_kind(), kcenon::monitoring::zipkin_proto::span::remote_endpoint, remote_endpoint_service_name, kcenon::monitoring::zipkin_proto::endpoint::service_name, kcenon::monitoring::zipkin_proto::span::shared, shared, span_id, kcenon::monitoring::zipkin_proto::span::tags, tags, kcenon::monitoring::zipkin_proto::span::timestamp, timestamp, kcenon::monitoring::zipkin_proto::span::trace_id, and trace_id.
Referenced by TEST_F(), and TEST_F().


| std::chrono::microseconds kcenon::monitoring::zipkin_span_data::duration |
Definition at line 272 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::string kcenon::monitoring::zipkin_span_data::kind |
Definition at line 270 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::string kcenon::monitoring::zipkin_span_data::local_endpoint_service_name |
Definition at line 273 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::string kcenon::monitoring::zipkin_span_data::name |
Definition at line 269 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::string kcenon::monitoring::zipkin_span_data::parent_id |
Definition at line 268 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::string kcenon::monitoring::zipkin_span_data::remote_endpoint_service_name |
Definition at line 274 of file trace_exporters.h.
Referenced by to_json_v2(), and to_protobuf().
| bool kcenon::monitoring::zipkin_span_data::shared = false |
Definition at line 276 of file trace_exporters.h.
Referenced by to_json_v2(), and to_protobuf().
| std::string kcenon::monitoring::zipkin_span_data::span_id |
Definition at line 267 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::unordered_map<std::string, std::string> kcenon::monitoring::zipkin_span_data::tags |
Definition at line 275 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::chrono::microseconds kcenon::monitoring::zipkin_span_data::timestamp |
Definition at line 271 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().
| std::string kcenon::monitoring::zipkin_span_data::trace_id |
Definition at line 266 of file trace_exporters.h.
Referenced by kcenon::monitoring::zipkin_exporter::convert_span(), to_json_v2(), and to_protobuf().