From e1cb290ef8e9caff69bf4f968433ffa35fdc2b2e Mon Sep 17 00:00:00 2001 From: Yousuk Seung Date: Thu, 9 Nov 2023 14:35:21 -0800 Subject: [PATCH] [tracing] Add member getters to HttpAnnotation (#34592) (#34905) So that users can process annotations other than calling ToString(). --- .../ext/transport/chttp2/transport/chttp2_transport.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.h b/src/core/ext/transport/chttp2/transport/chttp2_transport.h index 1bfea72c128..b008e57135a 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.h +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.h @@ -119,6 +119,15 @@ class HttpAnnotation : public CallTracerAnnotationInterface::Annotation { std::string ToString() const override; + Type http_type() const { return type_; } + Timestamp time() const { return time_; } + absl::optional transport_stats() const { + return transport_stats_; + } + absl::optional stream_stats() const { + return stream_stats_; + } + private: const Type type_; const Timestamp time_;