This directory contains the implementation of gRPC's telemetry system.
The telemetry system provides a way to collect and report metrics and tracing about the behavior of gRPC. This information can be used for monitoring, debugging, and performance tuning.
call_tracer.h/call_tracer.cc: Defines theCallTracerclass, which is used to trace the lifecycle of a gRPC call.metrics.h/metrics.cc: Defines theMetricsclass, which is used to collect and report metrics.stats.h/stats.cc: Defines theStatsclass, which is used to collect and report statistics.tcp_tracer.h/tcp_tracer.cc: Defines theTcpTracerclass, which is used to trace TCP-level events.
- The telemetry system is a key component of gRPC's observability infrastructure.
- It provides a wealth of information about the behavior of gRPC, which can be used to diagnose and fix a wide variety of problems.
- The telemetry data can be exported to a variety of monitoring systems, such as Prometheus and OpenCensus.