aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNana Pang <ladynana@google.com>2024-04-08 17:04:09 -0700
committerCopybara-Service <copybara-worker@google.com>2024-04-08 17:13:37 -0700
commite5015e71f39ab998f1afd303bfe4d27d23575239 (patch)
tree547096618aac4817f041c8904f2d2ec821fa8475
parent798399b9842ce2ab409faabefc694c98e21ede4b (diff)
downloadgrpc-grpc-e5015e71f39ab998f1afd303bfe4d27d23575239.tar.gz
[gRPC telemetry] Collect TCP connection metrics
PiperOrigin-RevId: 622991342
-rw-r--r--src/core/lib/channel/tcp_tracer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lib/channel/tcp_tracer.h b/src/core/lib/channel/tcp_tracer.h
index f93b0e139d..5b218bc17b 100644
--- a/src/core/lib/channel/tcp_tracer.h
+++ b/src/core/lib/channel/tcp_tracer.h
@@ -131,8 +131,12 @@ class TcpTracerInterface {
};
virtual ~TcpTracerInterface() = default;
+ // Records a per-message event with an optional snapshot of connection
+ // metrics.
virtual void RecordEvent(Type type, absl::Time time, size_t byte_offset,
absl::optional<ConnectionMetrics> metrics) = 0;
+ // Records a snapshot of connection metrics.
+ virtual void RecordConnectionMetrics(ConnectionMetrics metrics) = 0;
};
} // namespace grpc_core