|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|

Public Member Functions | |
| WebService (distributed_tracer &tracer, const std::string &name) | |
| void | handle_request (const std::string &request_id, const std::map< std::string, std::string > &headers) |
Private Member Functions | |
| void | process_business_logic (std::shared_ptr< trace_span > parent_span) |
| void | query_database (std::shared_ptr< trace_span > parent_span) |
| void | call_downstream_service (std::shared_ptr< trace_span > parent_span) |
Private Attributes | |
| distributed_tracer & | tracer_ |
| std::string | service_name_ |
Definition at line 29 of file distributed_tracing_example.cpp.
|
inline |
Definition at line 35 of file distributed_tracing_example.cpp.
|
inlineprivate |
Definition at line 134 of file distributed_tracing_example.cpp.
References kcenon::monitoring::distributed_tracer::extract_context(), kcenon::monitoring::distributed_tracer::finish_span(), kcenon::monitoring::distributed_tracer::inject_context(), service_name_, kcenon::monitoring::distributed_tracer::start_child_span(), and tracer_.
Referenced by handle_request().


|
inline |
Definition at line 39 of file distributed_tracing_example.cpp.
References call_downstream_service(), kcenon::monitoring::distributed_tracer::extract_context_from_carrier(), kcenon::monitoring::distributed_tracer::finish_span(), process_business_logic(), service_name_, kcenon::monitoring::distributed_tracer::start_span(), kcenon::monitoring::distributed_tracer::start_span_from_context(), and tracer_.
Referenced by simulate_distributed_system().


|
inlineprivate |
Definition at line 98 of file distributed_tracing_example.cpp.
References kcenon::monitoring::distributed_tracer::finish_span(), query_database(), service_name_, kcenon::monitoring::distributed_tracer::start_child_span(), and tracer_.
Referenced by handle_request().


|
inlineprivate |
Definition at line 117 of file distributed_tracing_example.cpp.
References kcenon::monitoring::distributed_tracer::finish_span(), service_name_, kcenon::monitoring::distributed_tracer::start_child_span(), and tracer_.
Referenced by process_business_logic().


|
private |
Definition at line 32 of file distributed_tracing_example.cpp.
Referenced by call_downstream_service(), handle_request(), process_business_logic(), and query_database().
|
private |
Definition at line 31 of file distributed_tracing_example.cpp.
Referenced by call_downstream_service(), handle_request(), process_business_logic(), and query_database().