From 5b3709b3020dcb365c6bc1245dc143a7c2d9f10a Mon Sep 17 00:00:00 2001 From: Tanvi Jagtap <139093547+tanvi-jagtap@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:27:11 -0800 Subject: [PATCH] [PH2] Add new debug only trace flag (#38250) [PH2] Add new debug only trace flag Closes #38250 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38250 from tanvi-jagtap:add_new_debug_trace_flag 8ee186b8ab637d7e9e77846baf1fb12e924f57bb PiperOrigin-RevId: 704972174 --- doc/trace_flags.md | 1 + src/core/lib/debug/trace_flags.cc | 2 ++ src/core/lib/debug/trace_flags.h | 1 + src/core/lib/debug/trace_flags.yaml | 4 ++++ 4 files changed, 8 insertions(+) diff --git a/doc/trace_flags.md b/doc/trace_flags.md index 4ea7129a28f48..d81086998a1cd 100644 --- a/doc/trace_flags.md +++ b/doc/trace_flags.md @@ -101,6 +101,7 @@ accomplished by invoking `bazel build --config=dbg ` - lb_policy_refcount - LB policy refcounting. - party_state - Coordination of activities related to a call. - pending_tags - Still-in-progress tags on completion queues. The `api` tracer must be enabled for this flag to have any effect. + - ph2 - Promise Based HTTP2 transport. - polling - The active polling engine. - polling_api - API calls to polling engine. - promise_primitives - Low-level primitives in the promise library. diff --git a/src/core/lib/debug/trace_flags.cc b/src/core/lib/debug/trace_flags.cc index 29963b4c1f649..addf4bd141167 100644 --- a/src/core/lib/debug/trace_flags.cc +++ b/src/core/lib/debug/trace_flags.cc @@ -35,6 +35,7 @@ DebugOnlyTraceFlag fd_trace_trace(false, "fd_trace"); DebugOnlyTraceFlag lb_policy_refcount_trace(false, "lb_policy_refcount"); DebugOnlyTraceFlag party_state_trace(false, "party_state"); DebugOnlyTraceFlag pending_tags_trace(false, "pending_tags"); +DebugOnlyTraceFlag ph2_trace(false, "ph2"); DebugOnlyTraceFlag polling_trace(false, "polling"); DebugOnlyTraceFlag polling_api_trace(false, "polling_api"); DebugOnlyTraceFlag promise_primitives_trace(false, "promise_primitives"); @@ -225,6 +226,7 @@ const absl::flat_hash_map& GetAllTraceFlags() { {"lb_policy_refcount", &lb_policy_refcount_trace}, {"party_state", &party_state_trace}, {"pending_tags", &pending_tags_trace}, + {"ph2", &ph2_trace}, {"polling", &polling_trace}, {"polling_api", &polling_api_trace}, {"promise_primitives", &promise_primitives_trace}, diff --git a/src/core/lib/debug/trace_flags.h b/src/core/lib/debug/trace_flags.h index f185adb65ecc6..c32d9c1768c8f 100644 --- a/src/core/lib/debug/trace_flags.h +++ b/src/core/lib/debug/trace_flags.h @@ -36,6 +36,7 @@ extern DebugOnlyTraceFlag fd_trace_trace; extern DebugOnlyTraceFlag lb_policy_refcount_trace; extern DebugOnlyTraceFlag party_state_trace; extern DebugOnlyTraceFlag pending_tags_trace; +extern DebugOnlyTraceFlag ph2_trace; extern DebugOnlyTraceFlag polling_trace; extern DebugOnlyTraceFlag polling_api_trace; extern DebugOnlyTraceFlag promise_primitives_trace; diff --git a/src/core/lib/debug/trace_flags.yaml b/src/core/lib/debug/trace_flags.yaml index 11889710dcbc3..1999ba7020e79 100644 --- a/src/core/lib/debug/trace_flags.yaml +++ b/src/core/lib/debug/trace_flags.yaml @@ -225,6 +225,10 @@ pending_tags: debug_only: true default: false description: Still-in-progress tags on completion queues. The `api` tracer must be enabled for this flag to have any effect. +ph2: + debug_only: true + default: false + description: Promise Based HTTP2 transport. pick_first: default: false description: Pick first load balancing policy.