Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
tracing.h File Reference

Unified tracing header for network_system. More...

Include dependency graph for tracing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Unified tracing header for network_system.

This is the main entry point for distributed tracing in network_system. It includes all tracing-related headers:

  • trace_context: Context propagation for distributed traces
  • span: RAII span implementation for timing operations
  • tracing_config: Configuration for tracing behavior

Usage:

using namespace kcenon::network::tracing;
// Create a trace context for a new request
auto ctx = trace_context::create("request-processing");
// Create a span for timing an operation
{
span operation_span(ctx, "database-query");
// ... perform operation ...
} // span automatically ends and reports duration
// Configure tracing behavior
config.sampling_rate = 0.1; // Sample 10% of traces
RAII span for distributed tracing.
Definition span.h:103
tracing_config config
Definition exporters.cpp:29
Main configuration structure for tracing.
Unified tracing header for network_system.
Note
Individual headers in detail/tracing/ are implementation details. Please use this unified header for tracing needs.
See also
detail/tracing/trace_context.h For context propagation
detail/tracing/span.h For RAII span implementation
detail/tracing/tracing_config.h For tracing configuration

Definition in file tracing.h.