|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Demonstrates distributed tracing for network operations. More...
#include <kcenon/network/tracing/tracing.h>#include <chrono>#include <iostream>#include <string>#include <thread>
Go to the source code of this file.
Functions | |
| void | simulate_database_query (tracing::trace_context &ctx) |
| void | simulate_cache_lookup (tracing::trace_context &ctx) |
| int | main () |
Demonstrates distributed tracing for network operations.
Definition in file network_tracing_example.cpp.
| int main | ( | ) |
Definition at line 51 of file network_tracing_example.cpp.
References kcenon::network::tracing::trace_context::from_headers(), simulate_cache_lookup(), and simulate_database_query().

| void simulate_cache_lookup | ( | tracing::trace_context & | ctx | ) |
Definition at line 43 of file network_tracing_example.cpp.
References kcenon::network::tracing::trace_context::create_span().
Referenced by main().


| void simulate_database_query | ( | tracing::trace_context & | ctx | ) |
Definition at line 34 of file network_tracing_example.cpp.
References kcenon::network::tracing::trace_context::create_span().
Referenced by main().

