grpc 1.58.0 → 1.59.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (551) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +48 -33
  3. data/include/grpc/event_engine/event_engine.h +6 -10
  4. data/include/grpc/impl/channel_arg_names.h +4 -0
  5. data/include/grpc/support/port_platform.h +74 -1
  6. data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +22 -9
  7. data/src/core/ext/filters/client_channel/client_channel.cc +422 -56
  8. data/src/core/ext/filters/client_channel/client_channel.h +52 -8
  9. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +15 -1
  10. data/src/core/ext/filters/client_channel/dynamic_filters.h +2 -0
  11. data/src/core/ext/filters/client_channel/{http_proxy.cc → http_proxy_mapper.cc} +1 -1
  12. data/src/core/ext/filters/client_channel/{http_proxy.h → http_proxy_mapper.h} +3 -3
  13. data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.cc +188 -0
  14. data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.h +214 -0
  15. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +17 -4
  16. data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +41 -6
  17. data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +5 -3
  18. data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +32 -103
  19. data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -7
  20. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +416 -139
  21. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +16 -0
  22. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +434 -459
  23. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +410 -26
  24. data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +14 -46
  25. data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +851 -57
  26. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +16 -10
  27. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +47 -32
  28. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +55 -3
  29. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +105 -175
  30. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +14 -7
  31. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +24 -6
  32. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +36 -2
  33. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +54 -44
  34. data/src/core/ext/filters/client_channel/subchannel.cc +33 -0
  35. data/src/core/ext/filters/client_channel/subchannel.h +9 -0
  36. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +1 -1
  37. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +11 -6
  38. data/src/core/ext/transport/chttp2/transport/flow_control.cc +28 -22
  39. data/src/core/ext/transport/chttp2/transport/flow_control.h +27 -4
  40. data/src/core/ext/transport/chttp2/transport/frame_data.h +1 -1
  41. data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -1
  42. data/src/core/ext/transport/chttp2/transport/frame_ping.cc +9 -0
  43. data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -1
  44. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +1 -1
  45. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +1 -1
  46. data/src/core/ext/transport/chttp2/transport/frame_settings.cc +1 -1
  47. data/src/core/ext/transport/chttp2/transport/frame_settings.h +1 -1
  48. data/src/core/ext/transport/chttp2/transport/frame_window_update.h +1 -1
  49. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +1 -1
  50. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +19 -10
  51. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +3 -1
  52. data/src/core/ext/transport/chttp2/transport/internal.h +66 -47
  53. data/src/core/ext/transport/chttp2/transport/{frame.h → legacy_frame.h} +3 -3
  54. data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -2
  55. data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +10 -0
  56. data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +4 -0
  57. data/src/core/ext/transport/chttp2/transport/stream_lists.cc +1 -1
  58. data/src/core/ext/transport/chttp2/transport/writing.cc +2 -1
  59. data/src/core/ext/transport/inproc/inproc_transport.cc +9 -0
  60. data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +16 -18
  61. data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +75 -83
  62. data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +27 -29
  63. data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +102 -110
  64. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +16 -18
  65. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +73 -81
  66. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +65 -67
  67. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +294 -302
  68. data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +4 -6
  69. data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +20 -28
  70. data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +5 -7
  71. data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +24 -32
  72. data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +7 -9
  73. data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +19 -27
  74. data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +4 -6
  75. data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +10 -18
  76. data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +4 -6
  77. data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +10 -18
  78. data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +42 -44
  79. data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +141 -149
  80. data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +3 -5
  81. data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +8 -16
  82. data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +5 -7
  83. data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +1 -9
  84. data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +3 -5
  85. data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +4 -12
  86. data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +36 -38
  87. data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +157 -165
  88. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +87 -89
  89. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +372 -380
  90. data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +13 -15
  91. data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +55 -63
  92. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +111 -113
  93. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +441 -449
  94. data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +3 -5
  95. data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +8 -16
  96. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +23 -25
  97. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +88 -96
  98. data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +40 -42
  99. data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +180 -188
  100. data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +26 -28
  101. data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +108 -116
  102. data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +3 -5
  103. data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +9 -17
  104. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +65 -67
  105. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +245 -253
  106. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +27 -29
  107. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +119 -127
  108. data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +2 -4
  109. data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +6 -14
  110. data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +3 -5
  111. data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +8 -16
  112. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +4 -6
  113. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +20 -28
  114. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +49 -51
  115. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +184 -192
  116. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +49 -51
  117. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +225 -233
  118. data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +4 -6
  119. data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +13 -21
  120. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +63 -65
  121. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +246 -254
  122. data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +5 -7
  123. data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +19 -27
  124. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +5 -7
  125. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +19 -27
  126. data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +8 -10
  127. data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +30 -38
  128. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +7 -9
  129. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +28 -36
  130. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +3 -5
  131. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +9 -17
  132. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +12 -14
  133. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +48 -56
  134. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +23 -25
  135. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +92 -100
  136. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +27 -29
  137. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +108 -116
  138. data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +2 -4
  139. data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +5 -13
  140. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +38 -40
  141. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +167 -175
  142. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +34 -36
  143. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +162 -170
  144. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +10 -12
  145. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +37 -45
  146. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +4 -6
  147. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +13 -21
  148. data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +6 -8
  149. data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +18 -26
  150. data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +22 -24
  151. data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +97 -105
  152. data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +24 -26
  153. data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +111 -119
  154. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +43 -45
  155. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +183 -191
  156. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +20 -22
  157. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +102 -110
  158. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +253 -255
  159. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +1108 -1116
  160. data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +8 -10
  161. data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +31 -39
  162. data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +35 -37
  163. data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +150 -158
  164. data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +4 -6
  165. data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +10 -18
  166. data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +3 -5
  167. data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +8 -16
  168. data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +4 -6
  169. data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +13 -21
  170. data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +5 -7
  171. data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +19 -27
  172. data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +14 -16
  173. data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +53 -61
  174. data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +3 -5
  175. data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +8 -16
  176. data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +2 -4
  177. data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +5 -13
  178. data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +7 -9
  179. data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +24 -32
  180. data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +1 -3
  181. data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +1 -9
  182. data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +7 -9
  183. data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +23 -31
  184. data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +8 -10
  185. data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +23 -31
  186. data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +114 -116
  187. data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +372 -380
  188. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +2 -4
  189. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +9 -17
  190. data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +8 -10
  191. data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +30 -38
  192. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +21 -23
  193. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +81 -89
  194. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +7 -9
  195. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +24 -32
  196. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +12 -14
  197. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +52 -60
  198. data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +4 -6
  199. data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +14 -22
  200. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +114 -116
  201. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +468 -476
  202. data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +2 -4
  203. data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +5 -13
  204. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +7 -9
  205. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +25 -33
  206. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +11 -13
  207. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +40 -48
  208. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +2 -4
  209. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +4 -12
  210. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +8 -10
  211. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +27 -35
  212. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +2 -4
  213. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +5 -13
  214. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +1 -3
  215. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +1 -9
  216. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +35 -37
  217. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +165 -173
  218. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +9 -11
  219. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +32 -40
  220. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +39 -41
  221. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +169 -177
  222. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +4 -6
  223. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +16 -24
  224. data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +1 -3
  225. data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +1 -9
  226. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +55 -57
  227. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +241 -249
  228. data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +7 -9
  229. data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +31 -39
  230. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +23 -25
  231. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +98 -106
  232. data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +4 -6
  233. data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +11 -19
  234. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +4 -6
  235. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +18 -26
  236. data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +3 -5
  237. data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +9 -17
  238. data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +6 -8
  239. data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +16 -24
  240. data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +6 -8
  241. data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +24 -32
  242. data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +3 -5
  243. data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +13 -21
  244. data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +3 -5
  245. data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +10 -18
  246. data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +2 -4
  247. data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +6 -14
  248. data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +6 -8
  249. data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +20 -28
  250. data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +1 -3
  251. data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +1 -9
  252. data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +8 -10
  253. data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +33 -41
  254. data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +4 -6
  255. data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +18 -26
  256. data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +8 -10
  257. data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +31 -39
  258. data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +8 -10
  259. data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +34 -42
  260. data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +14 -16
  261. data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +47 -55
  262. data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +4 -6
  263. data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +13 -21
  264. data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +1 -3
  265. data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +1 -9
  266. data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +2 -4
  267. data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +4 -12
  268. data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +4 -6
  269. data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +10 -18
  270. data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +7 -9
  271. data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +19 -27
  272. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +6 -8
  273. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +20 -28
  274. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +1 -3
  275. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +1 -9
  276. data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +4 -6
  277. data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +10 -18
  278. data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +4 -6
  279. data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +12 -20
  280. data/src/core/ext/upb-generated/google/api/annotations.upb.c +2 -4
  281. data/src/core/ext/upb-generated/google/api/annotations.upb.h +1 -9
  282. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +45 -47
  283. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +190 -198
  284. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +54 -56
  285. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +210 -218
  286. data/src/core/ext/upb-generated/google/api/http.upb.c +15 -17
  287. data/src/core/ext/upb-generated/google/api/http.upb.h +60 -68
  288. data/src/core/ext/upb-generated/google/api/httpbody.upb.c +4 -6
  289. data/src/core/ext/upb-generated/google/api/httpbody.upb.h +15 -23
  290. data/src/core/ext/upb-generated/google/protobuf/any.upb.c +3 -5
  291. data/src/core/ext/upb-generated/google/protobuf/any.upb.h +7 -15
  292. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +359 -204
  293. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +1340 -760
  294. data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +3 -5
  295. data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +7 -15
  296. data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +1 -3
  297. data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +1 -9
  298. data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +11 -13
  299. data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +43 -51
  300. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +3 -5
  301. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +7 -15
  302. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +10 -12
  303. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +28 -36
  304. data/src/core/ext/upb-generated/google/rpc/status.upb.c +4 -6
  305. data/src/core/ext/upb-generated/google/rpc/status.upb.h +15 -23
  306. data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +11 -13
  307. data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +35 -43
  308. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +10 -12
  309. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +28 -36
  310. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +48 -50
  311. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +190 -198
  312. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +5 -7
  313. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +15 -23
  314. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +3 -5
  315. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +7 -15
  316. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +21 -23
  317. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +80 -88
  318. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +9 -11
  319. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +29 -37
  320. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +32 -34
  321. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +147 -155
  322. data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +10 -12
  323. data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +13 -21
  324. data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +4 -6
  325. data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +7 -15
  326. data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +2 -4
  327. data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +1 -9
  328. data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +4 -6
  329. data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +7 -15
  330. data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +3 -5
  331. data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +4 -12
  332. data/src/core/ext/upb-generated/validate/validate.upb.c +201 -203
  333. data/src/core/ext/upb-generated/validate/validate.upb.h +924 -932
  334. data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +10 -12
  335. data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +13 -21
  336. data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +4 -6
  337. data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +7 -15
  338. data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +2 -4
  339. data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +1 -9
  340. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +9 -11
  341. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +16 -24
  342. data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +3 -5
  343. data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +4 -12
  344. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +2 -4
  345. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +4 -12
  346. data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +3 -5
  347. data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +8 -16
  348. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +6 -8
  349. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +20 -28
  350. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +4 -6
  351. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +9 -17
  352. data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +3 -5
  353. data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +8 -16
  354. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +4 -6
  355. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +12 -20
  356. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +9 -11
  357. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +35 -43
  358. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +5 -7
  359. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +14 -22
  360. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +16 -18
  361. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +43 -51
  362. data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +3 -5
  363. data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +13 -21
  364. data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +2 -4
  365. data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +5 -13
  366. data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +4 -6
  367. data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +21 -29
  368. data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +1 -3
  369. data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +1 -9
  370. data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +5 -7
  371. data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +24 -32
  372. data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +24 -26
  373. data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +103 -111
  374. data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +10 -12
  375. data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +61 -69
  376. data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +3 -5
  377. data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +9 -17
  378. data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +8 -10
  379. data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +33 -41
  380. data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +5 -7
  381. data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +18 -26
  382. data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +7 -9
  383. data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +19 -27
  384. data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +3 -5
  385. data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +8 -16
  386. data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +367 -290
  387. data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +10 -0
  388. data/src/core/ext/xds/xds_client.cc +6 -9
  389. data/src/core/ext/xds/xds_client.h +2 -2
  390. data/src/core/ext/xds/xds_cluster.cc +30 -42
  391. data/src/core/ext/xds/xds_cluster.h +0 -4
  392. data/src/core/ext/xds/xds_endpoint.cc +12 -19
  393. data/src/core/ext/xds/xds_endpoint.h +0 -1
  394. data/src/core/ext/xds/xds_http_filters.cc +1 -4
  395. data/src/core/ext/xds/xds_http_stateful_session_filter.cc +1 -4
  396. data/src/core/ext/xds/xds_listener.cc +14 -14
  397. data/src/core/ext/xds/xds_listener.h +13 -3
  398. data/src/core/ext/xds/xds_resource_type.h +1 -7
  399. data/src/core/ext/xds/xds_resource_type_impl.h +9 -11
  400. data/src/core/ext/xds/xds_route_config.cc +10 -11
  401. data/src/core/ext/xds/xds_route_config.h +1 -1
  402. data/src/core/ext/xds/xds_server_config_fetcher.cc +53 -28
  403. data/src/core/ext/xds/xds_transport_grpc.cc +11 -1
  404. data/src/core/lib/backoff/random_early_detection.cc +4 -2
  405. data/src/core/lib/backoff/random_early_detection.h +2 -4
  406. data/src/core/lib/channel/call_tracer.cc +7 -1
  407. data/src/core/lib/channel/call_tracer.h +4 -1
  408. data/src/core/lib/channel/channelz_registry.h +4 -2
  409. data/src/core/lib/channel/connected_channel.cc +1 -1
  410. data/src/core/lib/config/config_vars.h +1 -1
  411. data/src/core/lib/config/core_configuration.cc +2 -1
  412. data/src/core/lib/config/core_configuration.h +5 -4
  413. data/src/core/lib/debug/stats_data.cc +146 -51
  414. data/src/core/lib/debug/stats_data.h +81 -20
  415. data/src/core/lib/event_engine/ares_resolver.cc +9 -0
  416. data/src/core/lib/event_engine/cf_engine/cf_engine.cc +3 -0
  417. data/src/core/lib/event_engine/cf_engine/cf_engine.h +3 -0
  418. data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +3 -0
  419. data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +3 -0
  420. data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +3 -0
  421. data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +15 -3
  422. data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +3 -0
  423. data/src/core/lib/event_engine/nameser.h +102 -0
  424. data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +1 -1
  425. data/src/core/lib/event_engine/thread_pool/thread_count.h +15 -0
  426. data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +3 -15
  427. data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +10 -4
  428. data/src/core/lib/experiments/config.cc +9 -1
  429. data/src/core/lib/experiments/experiments.cc +409 -144
  430. data/src/core/lib/experiments/experiments.h +153 -39
  431. data/src/core/lib/gprpp/fork.h +1 -1
  432. data/src/core/lib/gprpp/manual_constructor.h +1 -2
  433. data/src/core/lib/gprpp/no_destruct.h +1 -1
  434. data/src/core/lib/gprpp/per_cpu.cc +2 -0
  435. data/src/core/lib/gprpp/per_cpu.h +36 -7
  436. data/src/core/lib/gprpp/ref_counted_ptr.h +63 -0
  437. data/src/core/lib/gprpp/work_serializer.cc +297 -25
  438. data/src/core/lib/gprpp/work_serializer.h +25 -9
  439. data/src/core/lib/iomgr/combiner.cc +54 -15
  440. data/src/core/lib/iomgr/combiner.h +8 -3
  441. data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +2 -4
  442. data/src/core/lib/iomgr/exec_ctx.cc +12 -0
  443. data/src/core/lib/iomgr/exec_ctx.h +55 -19
  444. data/src/core/lib/iomgr/polling_entity.cc +10 -0
  445. data/src/core/lib/iomgr/polling_entity.h +2 -0
  446. data/src/core/lib/iomgr/port.h +14 -0
  447. data/src/core/lib/iomgr/tcp_posix.cc +17 -14
  448. data/src/core/lib/load_balancing/lb_policy.h +10 -9
  449. data/src/core/lib/promise/arena_promise.h +5 -1
  450. data/src/core/lib/promise/detail/seq_state.h +418 -0
  451. data/src/core/lib/promise/latch.h +1 -0
  452. data/src/core/lib/promise/loop.h +8 -5
  453. data/src/core/lib/promise/pipe.h +24 -24
  454. data/src/core/lib/promise/poll.h +4 -6
  455. data/src/core/lib/resolver/server_address.h +1 -0
  456. data/src/core/lib/resource_quota/memory_quota.cc +58 -2
  457. data/src/core/lib/resource_quota/memory_quota.h +4 -1
  458. data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +115 -9
  459. data/src/core/lib/security/credentials/ssl/ssl_credentials.h +14 -0
  460. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_match.cc +86 -0
  461. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +0 -59
  462. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +2 -0
  463. data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +7 -57
  464. data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +1 -1
  465. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +2 -14
  466. data/src/core/lib/slice/slice.h +6 -0
  467. data/src/core/lib/slice/slice_buffer.cc +15 -0
  468. data/src/core/lib/slice/slice_buffer.h +16 -4
  469. data/src/core/lib/slice/slice_refcount.h +1 -1
  470. data/src/core/lib/surface/call.cc +92 -34
  471. data/src/core/lib/surface/call.h +4 -0
  472. data/src/core/lib/surface/channel.cc +7 -4
  473. data/src/core/lib/surface/channel_init.h +3 -2
  474. data/src/core/lib/surface/server.cc +45 -5
  475. data/src/core/lib/surface/server.h +18 -6
  476. data/src/core/lib/surface/version.cc +2 -2
  477. data/src/core/lib/transport/batch_builder.cc +3 -5
  478. data/src/core/lib/transport/metadata_batch.cc +6 -0
  479. data/src/core/lib/transport/metadata_batch.h +20 -1
  480. data/src/core/lib/transport/parsed_metadata.h +2 -4
  481. data/src/core/lib/transport/simple_slice_based_metadata.h +1 -2
  482. data/src/core/lib/transport/transport.h +21 -11
  483. data/src/core/tsi/ssl_transport_security.cc +7 -0
  484. data/src/core/tsi/ssl_transport_security.h +4 -0
  485. data/src/ruby/ext/grpc/extconf.rb +1 -1
  486. data/src/ruby/ext/grpc/rb_channel_args.c +6 -4
  487. data/src/ruby/lib/grpc/version.rb +1 -1
  488. data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +4 -1
  489. data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +185 -0
  490. data/third_party/upb/upb/collections/array.c +6 -0
  491. data/third_party/upb/upb/collections/array.h +6 -0
  492. data/third_party/upb/upb/collections/map.c +7 -0
  493. data/third_party/upb/upb/collections/map.h +5 -0
  494. data/third_party/upb/upb/collections/map_sorter_internal.h +1 -1
  495. data/third_party/upb/upb/collections/message_value.h +8 -1
  496. data/third_party/upb/upb/generated_code_support.h +54 -0
  497. data/third_party/upb/upb/hash/common.c +5 -0
  498. data/third_party/upb/upb/hash/common.h +1 -0
  499. data/third_party/upb/upb/hash/str_table.h +1 -0
  500. data/third_party/upb/upb/message/accessors.c +25 -1
  501. data/third_party/upb/upb/message/accessors.h +46 -25
  502. data/third_party/upb/upb/message/accessors_internal.h +69 -3
  503. data/third_party/upb/upb/message/extension_internal.h +1 -1
  504. data/third_party/upb/upb/message/internal/map_entry.h +64 -0
  505. data/third_party/upb/upb/message/internal.h +2 -6
  506. data/third_party/upb/upb/message/message.c +0 -6
  507. data/third_party/upb/upb/message/message.h +1 -1
  508. data/third_party/upb/upb/message/tagged_ptr.h +89 -0
  509. data/third_party/upb/upb/mini_descriptor/build_enum.c +150 -0
  510. data/third_party/upb/upb/mini_descriptor/build_enum.h +63 -0
  511. data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.c +122 -374
  512. data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.h +11 -50
  513. data/third_party/upb/upb/mini_descriptor/internal/base92.c +46 -0
  514. data/third_party/upb/upb/mini_descriptor/internal/base92.h +81 -0
  515. data/third_party/upb/upb/mini_descriptor/internal/decoder.h +73 -0
  516. data/third_party/upb/upb/{mini_table → mini_descriptor/internal}/encode.c +58 -32
  517. data/third_party/upb/upb/{mini_table/encode_internal.h → mini_descriptor/internal/encode.h} +3 -4
  518. data/third_party/upb/upb/{mini_table/encode_internal.hpp → mini_descriptor/internal/encode.hpp} +1 -1
  519. data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +50 -0
  520. data/third_party/upb/upb/{mini_table/common_internal.h → mini_descriptor/internal/wire_constants.h} +3 -23
  521. data/third_party/upb/upb/mini_descriptor/link.c +142 -0
  522. data/third_party/upb/upb/mini_descriptor/link.h +104 -0
  523. data/third_party/upb/upb/mini_table/{types.h → enum.h} +19 -9
  524. data/third_party/upb/upb/mini_table/extension.h +40 -0
  525. data/third_party/upb/upb/mini_table/extension_registry.c +1 -1
  526. data/third_party/upb/upb/mini_table/extension_registry.h +2 -1
  527. data/third_party/upb/upb/mini_table/field.h +118 -0
  528. data/third_party/upb/upb/{json_decode.h → mini_table/file.h} +5 -6
  529. data/third_party/upb/upb/mini_table/{enum_internal.h → internal/enum.h} +7 -19
  530. data/third_party/upb/upb/mini_table/{extension_internal.h → internal/extension.h} +8 -8
  531. data/third_party/upb/upb/mini_table/{field_internal.h → internal/field.h} +10 -66
  532. data/third_party/upb/upb/mini_table/{file_internal.h → internal/file.h} +6 -4
  533. data/third_party/upb/upb/mini_table/internal/message.c +39 -0
  534. data/third_party/upb/upb/mini_table/{message_internal.h → internal/message.h} +14 -37
  535. data/third_party/upb/upb/mini_table/{sub_internal.h → internal/sub.h} +7 -6
  536. data/third_party/upb/upb/mini_table/{common.c → message.c} +2 -33
  537. data/third_party/upb/upb/mini_table/{common.h → message.h} +12 -77
  538. data/third_party/upb/upb/{json_encode.h → mini_table/sub.h} +5 -6
  539. data/third_party/upb/upb/reflection/def.hpp +16 -4
  540. data/third_party/upb/upb/reflection/def_pool_internal.h +1 -1
  541. data/third_party/upb/upb/reflection/desc_state_internal.h +1 -1
  542. data/third_party/upb/upb/reflection/enum_def.c +1 -1
  543. data/third_party/upb/upb/reflection/field_def.c +2 -1
  544. data/third_party/upb/upb/reflection/message.c +2 -2
  545. data/third_party/upb/upb/reflection/message_def.c +3 -1
  546. data/third_party/upb/upb/wire/decode.c +68 -29
  547. data/third_party/upb/upb/wire/decode.h +40 -0
  548. data/third_party/upb/upb/wire/encode.c +23 -13
  549. metadata +44 -27
  550. data/src/core/lib/event_engine/thread_pool/original_thread_pool.cc +0 -256
  551. data/src/core/lib/event_engine/thread_pool/original_thread_pool.h +0 -137
@@ -27,10 +27,12 @@
27
27
 
28
28
  #include <grpc/support/log.h>
29
29
 
30
+ #include "src/core/lib/debug/trace.h"
30
31
  #include "src/core/lib/gprpp/construct_destruct.h"
31
32
  #include "src/core/lib/promise/detail/promise_factory.h"
32
33
  #include "src/core/lib/promise/detail/promise_like.h"
33
34
  #include "src/core/lib/promise/poll.h"
35
+ #include "src/core/lib/promise/trace.h"
34
36
 
35
37
  // A sequence under some traits for some set of callables P, Fs.
36
38
  // P should be a promise-like object that yields a value.
@@ -137,8 +139,18 @@ struct SeqState<Traits, P, F0> {
137
139
  Poll<Result> PollOnce() {
138
140
  switch (state) {
139
141
  case State::kState0: {
142
+ if (grpc_trace_promise_primitives.enabled()) {
143
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/2", this);
144
+ }
140
145
  auto result = prior.current_promise();
141
146
  PromiseResult0* p = result.value_if_ready();
147
+ if (grpc_trace_promise_primitives.enabled()) {
148
+ gpr_log(
149
+ GPR_DEBUG, "seq[%p]: poll step 1/2 gets %s", this,
150
+ p != nullptr
151
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
152
+ : "pending");
153
+ }
142
154
  if (p == nullptr) return Pending{};
143
155
  if (!PromiseResultTraits0::IsOk(*p)) {
144
156
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -154,7 +166,14 @@ struct SeqState<Traits, P, F0> {
154
166
  ABSL_FALLTHROUGH_INTENDED;
155
167
  default:
156
168
  case State::kState1: {
169
+ if (grpc_trace_promise_primitives.enabled()) {
170
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/2", this);
171
+ }
157
172
  auto result = current_promise();
173
+ if (grpc_trace_promise_primitives.enabled()) {
174
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 2/2 gets %s", this,
175
+ result.ready() ? "ready" : "pending");
176
+ }
158
177
  auto* p = result.value_if_ready();
159
178
  if (p == nullptr) return Pending{};
160
179
  return Result(std::move(*p));
@@ -251,8 +270,18 @@ struct SeqState<Traits, P, F0, F1> {
251
270
  Poll<Result> PollOnce() {
252
271
  switch (state) {
253
272
  case State::kState0: {
273
+ if (grpc_trace_promise_primitives.enabled()) {
274
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/3", this);
275
+ }
254
276
  auto result = prior.prior.current_promise();
255
277
  PromiseResult0* p = result.value_if_ready();
278
+ if (grpc_trace_promise_primitives.enabled()) {
279
+ gpr_log(
280
+ GPR_DEBUG, "seq[%p]: poll step 1/3 gets %s", this,
281
+ p != nullptr
282
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
283
+ : "pending");
284
+ }
256
285
  if (p == nullptr) return Pending{};
257
286
  if (!PromiseResultTraits0::IsOk(*p)) {
258
287
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -267,8 +296,18 @@ struct SeqState<Traits, P, F0, F1> {
267
296
  }
268
297
  ABSL_FALLTHROUGH_INTENDED;
269
298
  case State::kState1: {
299
+ if (grpc_trace_promise_primitives.enabled()) {
300
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/3", this);
301
+ }
270
302
  auto result = prior.current_promise();
271
303
  PromiseResult1* p = result.value_if_ready();
304
+ if (grpc_trace_promise_primitives.enabled()) {
305
+ gpr_log(
306
+ GPR_DEBUG, "seq[%p]: poll step 2/3 gets %s", this,
307
+ p != nullptr
308
+ ? (PromiseResultTraits1::IsOk(*p) ? "ready" : "early-error")
309
+ : "pending");
310
+ }
272
311
  if (p == nullptr) return Pending{};
273
312
  if (!PromiseResultTraits1::IsOk(*p)) {
274
313
  return PromiseResultTraits1::template ReturnValue<Result>(
@@ -284,7 +323,14 @@ struct SeqState<Traits, P, F0, F1> {
284
323
  ABSL_FALLTHROUGH_INTENDED;
285
324
  default:
286
325
  case State::kState2: {
326
+ if (grpc_trace_promise_primitives.enabled()) {
327
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 3/3", this);
328
+ }
287
329
  auto result = current_promise();
330
+ if (grpc_trace_promise_primitives.enabled()) {
331
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 3/3 gets %s", this,
332
+ result.ready() ? "ready" : "pending");
333
+ }
288
334
  auto* p = result.value_if_ready();
289
335
  if (p == nullptr) return Pending{};
290
336
  return Result(std::move(*p));
@@ -408,8 +454,18 @@ struct SeqState<Traits, P, F0, F1, F2> {
408
454
  Poll<Result> PollOnce() {
409
455
  switch (state) {
410
456
  case State::kState0: {
457
+ if (grpc_trace_promise_primitives.enabled()) {
458
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/4", this);
459
+ }
411
460
  auto result = prior.prior.prior.current_promise();
412
461
  PromiseResult0* p = result.value_if_ready();
462
+ if (grpc_trace_promise_primitives.enabled()) {
463
+ gpr_log(
464
+ GPR_DEBUG, "seq[%p]: poll step 1/4 gets %s", this,
465
+ p != nullptr
466
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
467
+ : "pending");
468
+ }
413
469
  if (p == nullptr) return Pending{};
414
470
  if (!PromiseResultTraits0::IsOk(*p)) {
415
471
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -424,8 +480,18 @@ struct SeqState<Traits, P, F0, F1, F2> {
424
480
  }
425
481
  ABSL_FALLTHROUGH_INTENDED;
426
482
  case State::kState1: {
483
+ if (grpc_trace_promise_primitives.enabled()) {
484
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/4", this);
485
+ }
427
486
  auto result = prior.prior.current_promise();
428
487
  PromiseResult1* p = result.value_if_ready();
488
+ if (grpc_trace_promise_primitives.enabled()) {
489
+ gpr_log(
490
+ GPR_DEBUG, "seq[%p]: poll step 2/4 gets %s", this,
491
+ p != nullptr
492
+ ? (PromiseResultTraits1::IsOk(*p) ? "ready" : "early-error")
493
+ : "pending");
494
+ }
429
495
  if (p == nullptr) return Pending{};
430
496
  if (!PromiseResultTraits1::IsOk(*p)) {
431
497
  return PromiseResultTraits1::template ReturnValue<Result>(
@@ -440,8 +506,18 @@ struct SeqState<Traits, P, F0, F1, F2> {
440
506
  }
441
507
  ABSL_FALLTHROUGH_INTENDED;
442
508
  case State::kState2: {
509
+ if (grpc_trace_promise_primitives.enabled()) {
510
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 3/4", this);
511
+ }
443
512
  auto result = prior.current_promise();
444
513
  PromiseResult2* p = result.value_if_ready();
514
+ if (grpc_trace_promise_primitives.enabled()) {
515
+ gpr_log(
516
+ GPR_DEBUG, "seq[%p]: poll step 3/4 gets %s", this,
517
+ p != nullptr
518
+ ? (PromiseResultTraits2::IsOk(*p) ? "ready" : "early-error")
519
+ : "pending");
520
+ }
445
521
  if (p == nullptr) return Pending{};
446
522
  if (!PromiseResultTraits2::IsOk(*p)) {
447
523
  return PromiseResultTraits2::template ReturnValue<Result>(
@@ -457,7 +533,14 @@ struct SeqState<Traits, P, F0, F1, F2> {
457
533
  ABSL_FALLTHROUGH_INTENDED;
458
534
  default:
459
535
  case State::kState3: {
536
+ if (grpc_trace_promise_primitives.enabled()) {
537
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 4/4", this);
538
+ }
460
539
  auto result = current_promise();
540
+ if (grpc_trace_promise_primitives.enabled()) {
541
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 4/4 gets %s", this,
542
+ result.ready() ? "ready" : "pending");
543
+ }
461
544
  auto* p = result.value_if_ready();
462
545
  if (p == nullptr) return Pending{};
463
546
  return Result(std::move(*p));
@@ -608,8 +691,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3> {
608
691
  Poll<Result> PollOnce() {
609
692
  switch (state) {
610
693
  case State::kState0: {
694
+ if (grpc_trace_promise_primitives.enabled()) {
695
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/5", this);
696
+ }
611
697
  auto result = prior.prior.prior.prior.current_promise();
612
698
  PromiseResult0* p = result.value_if_ready();
699
+ if (grpc_trace_promise_primitives.enabled()) {
700
+ gpr_log(
701
+ GPR_DEBUG, "seq[%p]: poll step 1/5 gets %s", this,
702
+ p != nullptr
703
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
704
+ : "pending");
705
+ }
613
706
  if (p == nullptr) return Pending{};
614
707
  if (!PromiseResultTraits0::IsOk(*p)) {
615
708
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -624,8 +717,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3> {
624
717
  }
625
718
  ABSL_FALLTHROUGH_INTENDED;
626
719
  case State::kState1: {
720
+ if (grpc_trace_promise_primitives.enabled()) {
721
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/5", this);
722
+ }
627
723
  auto result = prior.prior.prior.current_promise();
628
724
  PromiseResult1* p = result.value_if_ready();
725
+ if (grpc_trace_promise_primitives.enabled()) {
726
+ gpr_log(
727
+ GPR_DEBUG, "seq[%p]: poll step 2/5 gets %s", this,
728
+ p != nullptr
729
+ ? (PromiseResultTraits1::IsOk(*p) ? "ready" : "early-error")
730
+ : "pending");
731
+ }
629
732
  if (p == nullptr) return Pending{};
630
733
  if (!PromiseResultTraits1::IsOk(*p)) {
631
734
  return PromiseResultTraits1::template ReturnValue<Result>(
@@ -640,8 +743,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3> {
640
743
  }
641
744
  ABSL_FALLTHROUGH_INTENDED;
642
745
  case State::kState2: {
746
+ if (grpc_trace_promise_primitives.enabled()) {
747
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 3/5", this);
748
+ }
643
749
  auto result = prior.prior.current_promise();
644
750
  PromiseResult2* p = result.value_if_ready();
751
+ if (grpc_trace_promise_primitives.enabled()) {
752
+ gpr_log(
753
+ GPR_DEBUG, "seq[%p]: poll step 3/5 gets %s", this,
754
+ p != nullptr
755
+ ? (PromiseResultTraits2::IsOk(*p) ? "ready" : "early-error")
756
+ : "pending");
757
+ }
645
758
  if (p == nullptr) return Pending{};
646
759
  if (!PromiseResultTraits2::IsOk(*p)) {
647
760
  return PromiseResultTraits2::template ReturnValue<Result>(
@@ -656,8 +769,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3> {
656
769
  }
657
770
  ABSL_FALLTHROUGH_INTENDED;
658
771
  case State::kState3: {
772
+ if (grpc_trace_promise_primitives.enabled()) {
773
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 4/5", this);
774
+ }
659
775
  auto result = prior.current_promise();
660
776
  PromiseResult3* p = result.value_if_ready();
777
+ if (grpc_trace_promise_primitives.enabled()) {
778
+ gpr_log(
779
+ GPR_DEBUG, "seq[%p]: poll step 4/5 gets %s", this,
780
+ p != nullptr
781
+ ? (PromiseResultTraits3::IsOk(*p) ? "ready" : "early-error")
782
+ : "pending");
783
+ }
661
784
  if (p == nullptr) return Pending{};
662
785
  if (!PromiseResultTraits3::IsOk(*p)) {
663
786
  return PromiseResultTraits3::template ReturnValue<Result>(
@@ -673,7 +796,14 @@ struct SeqState<Traits, P, F0, F1, F2, F3> {
673
796
  ABSL_FALLTHROUGH_INTENDED;
674
797
  default:
675
798
  case State::kState4: {
799
+ if (grpc_trace_promise_primitives.enabled()) {
800
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 5/5", this);
801
+ }
676
802
  auto result = current_promise();
803
+ if (grpc_trace_promise_primitives.enabled()) {
804
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 5/5 gets %s", this,
805
+ result.ready() ? "ready" : "pending");
806
+ }
677
807
  auto* p = result.value_if_ready();
678
808
  if (p == nullptr) return Pending{};
679
809
  return Result(std::move(*p));
@@ -861,8 +991,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4> {
861
991
  Poll<Result> PollOnce() {
862
992
  switch (state) {
863
993
  case State::kState0: {
994
+ if (grpc_trace_promise_primitives.enabled()) {
995
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/6", this);
996
+ }
864
997
  auto result = prior.prior.prior.prior.prior.current_promise();
865
998
  PromiseResult0* p = result.value_if_ready();
999
+ if (grpc_trace_promise_primitives.enabled()) {
1000
+ gpr_log(
1001
+ GPR_DEBUG, "seq[%p]: poll step 1/6 gets %s", this,
1002
+ p != nullptr
1003
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
1004
+ : "pending");
1005
+ }
866
1006
  if (p == nullptr) return Pending{};
867
1007
  if (!PromiseResultTraits0::IsOk(*p)) {
868
1008
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -878,8 +1018,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4> {
878
1018
  }
879
1019
  ABSL_FALLTHROUGH_INTENDED;
880
1020
  case State::kState1: {
1021
+ if (grpc_trace_promise_primitives.enabled()) {
1022
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/6", this);
1023
+ }
881
1024
  auto result = prior.prior.prior.prior.current_promise();
882
1025
  PromiseResult1* p = result.value_if_ready();
1026
+ if (grpc_trace_promise_primitives.enabled()) {
1027
+ gpr_log(
1028
+ GPR_DEBUG, "seq[%p]: poll step 2/6 gets %s", this,
1029
+ p != nullptr
1030
+ ? (PromiseResultTraits1::IsOk(*p) ? "ready" : "early-error")
1031
+ : "pending");
1032
+ }
883
1033
  if (p == nullptr) return Pending{};
884
1034
  if (!PromiseResultTraits1::IsOk(*p)) {
885
1035
  return PromiseResultTraits1::template ReturnValue<Result>(
@@ -894,8 +1044,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4> {
894
1044
  }
895
1045
  ABSL_FALLTHROUGH_INTENDED;
896
1046
  case State::kState2: {
1047
+ if (grpc_trace_promise_primitives.enabled()) {
1048
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 3/6", this);
1049
+ }
897
1050
  auto result = prior.prior.prior.current_promise();
898
1051
  PromiseResult2* p = result.value_if_ready();
1052
+ if (grpc_trace_promise_primitives.enabled()) {
1053
+ gpr_log(
1054
+ GPR_DEBUG, "seq[%p]: poll step 3/6 gets %s", this,
1055
+ p != nullptr
1056
+ ? (PromiseResultTraits2::IsOk(*p) ? "ready" : "early-error")
1057
+ : "pending");
1058
+ }
899
1059
  if (p == nullptr) return Pending{};
900
1060
  if (!PromiseResultTraits2::IsOk(*p)) {
901
1061
  return PromiseResultTraits2::template ReturnValue<Result>(
@@ -910,8 +1070,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4> {
910
1070
  }
911
1071
  ABSL_FALLTHROUGH_INTENDED;
912
1072
  case State::kState3: {
1073
+ if (grpc_trace_promise_primitives.enabled()) {
1074
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 4/6", this);
1075
+ }
913
1076
  auto result = prior.prior.current_promise();
914
1077
  PromiseResult3* p = result.value_if_ready();
1078
+ if (grpc_trace_promise_primitives.enabled()) {
1079
+ gpr_log(
1080
+ GPR_DEBUG, "seq[%p]: poll step 4/6 gets %s", this,
1081
+ p != nullptr
1082
+ ? (PromiseResultTraits3::IsOk(*p) ? "ready" : "early-error")
1083
+ : "pending");
1084
+ }
915
1085
  if (p == nullptr) return Pending{};
916
1086
  if (!PromiseResultTraits3::IsOk(*p)) {
917
1087
  return PromiseResultTraits3::template ReturnValue<Result>(
@@ -926,8 +1096,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4> {
926
1096
  }
927
1097
  ABSL_FALLTHROUGH_INTENDED;
928
1098
  case State::kState4: {
1099
+ if (grpc_trace_promise_primitives.enabled()) {
1100
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 5/6", this);
1101
+ }
929
1102
  auto result = prior.current_promise();
930
1103
  PromiseResult4* p = result.value_if_ready();
1104
+ if (grpc_trace_promise_primitives.enabled()) {
1105
+ gpr_log(
1106
+ GPR_DEBUG, "seq[%p]: poll step 5/6 gets %s", this,
1107
+ p != nullptr
1108
+ ? (PromiseResultTraits4::IsOk(*p) ? "ready" : "early-error")
1109
+ : "pending");
1110
+ }
931
1111
  if (p == nullptr) return Pending{};
932
1112
  if (!PromiseResultTraits4::IsOk(*p)) {
933
1113
  return PromiseResultTraits4::template ReturnValue<Result>(
@@ -943,7 +1123,14 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4> {
943
1123
  ABSL_FALLTHROUGH_INTENDED;
944
1124
  default:
945
1125
  case State::kState5: {
1126
+ if (grpc_trace_promise_primitives.enabled()) {
1127
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 6/6", this);
1128
+ }
946
1129
  auto result = current_promise();
1130
+ if (grpc_trace_promise_primitives.enabled()) {
1131
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 6/6 gets %s", this,
1132
+ result.ready() ? "ready" : "pending");
1133
+ }
947
1134
  auto* p = result.value_if_ready();
948
1135
  if (p == nullptr) return Pending{};
949
1136
  return Result(std::move(*p));
@@ -1164,8 +1351,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5> {
1164
1351
  Poll<Result> PollOnce() {
1165
1352
  switch (state) {
1166
1353
  case State::kState0: {
1354
+ if (grpc_trace_promise_primitives.enabled()) {
1355
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/7", this);
1356
+ }
1167
1357
  auto result = prior.prior.prior.prior.prior.prior.current_promise();
1168
1358
  PromiseResult0* p = result.value_if_ready();
1359
+ if (grpc_trace_promise_primitives.enabled()) {
1360
+ gpr_log(
1361
+ GPR_DEBUG, "seq[%p]: poll step 1/7 gets %s", this,
1362
+ p != nullptr
1363
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
1364
+ : "pending");
1365
+ }
1169
1366
  if (p == nullptr) return Pending{};
1170
1367
  if (!PromiseResultTraits0::IsOk(*p)) {
1171
1368
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -1181,8 +1378,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5> {
1181
1378
  }
1182
1379
  ABSL_FALLTHROUGH_INTENDED;
1183
1380
  case State::kState1: {
1381
+ if (grpc_trace_promise_primitives.enabled()) {
1382
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/7", this);
1383
+ }
1184
1384
  auto result = prior.prior.prior.prior.prior.current_promise();
1185
1385
  PromiseResult1* p = result.value_if_ready();
1386
+ if (grpc_trace_promise_primitives.enabled()) {
1387
+ gpr_log(
1388
+ GPR_DEBUG, "seq[%p]: poll step 2/7 gets %s", this,
1389
+ p != nullptr
1390
+ ? (PromiseResultTraits1::IsOk(*p) ? "ready" : "early-error")
1391
+ : "pending");
1392
+ }
1186
1393
  if (p == nullptr) return Pending{};
1187
1394
  if (!PromiseResultTraits1::IsOk(*p)) {
1188
1395
  return PromiseResultTraits1::template ReturnValue<Result>(
@@ -1198,8 +1405,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5> {
1198
1405
  }
1199
1406
  ABSL_FALLTHROUGH_INTENDED;
1200
1407
  case State::kState2: {
1408
+ if (grpc_trace_promise_primitives.enabled()) {
1409
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 3/7", this);
1410
+ }
1201
1411
  auto result = prior.prior.prior.prior.current_promise();
1202
1412
  PromiseResult2* p = result.value_if_ready();
1413
+ if (grpc_trace_promise_primitives.enabled()) {
1414
+ gpr_log(
1415
+ GPR_DEBUG, "seq[%p]: poll step 3/7 gets %s", this,
1416
+ p != nullptr
1417
+ ? (PromiseResultTraits2::IsOk(*p) ? "ready" : "early-error")
1418
+ : "pending");
1419
+ }
1203
1420
  if (p == nullptr) return Pending{};
1204
1421
  if (!PromiseResultTraits2::IsOk(*p)) {
1205
1422
  return PromiseResultTraits2::template ReturnValue<Result>(
@@ -1214,8 +1431,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5> {
1214
1431
  }
1215
1432
  ABSL_FALLTHROUGH_INTENDED;
1216
1433
  case State::kState3: {
1434
+ if (grpc_trace_promise_primitives.enabled()) {
1435
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 4/7", this);
1436
+ }
1217
1437
  auto result = prior.prior.prior.current_promise();
1218
1438
  PromiseResult3* p = result.value_if_ready();
1439
+ if (grpc_trace_promise_primitives.enabled()) {
1440
+ gpr_log(
1441
+ GPR_DEBUG, "seq[%p]: poll step 4/7 gets %s", this,
1442
+ p != nullptr
1443
+ ? (PromiseResultTraits3::IsOk(*p) ? "ready" : "early-error")
1444
+ : "pending");
1445
+ }
1219
1446
  if (p == nullptr) return Pending{};
1220
1447
  if (!PromiseResultTraits3::IsOk(*p)) {
1221
1448
  return PromiseResultTraits3::template ReturnValue<Result>(
@@ -1230,8 +1457,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5> {
1230
1457
  }
1231
1458
  ABSL_FALLTHROUGH_INTENDED;
1232
1459
  case State::kState4: {
1460
+ if (grpc_trace_promise_primitives.enabled()) {
1461
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 5/7", this);
1462
+ }
1233
1463
  auto result = prior.prior.current_promise();
1234
1464
  PromiseResult4* p = result.value_if_ready();
1465
+ if (grpc_trace_promise_primitives.enabled()) {
1466
+ gpr_log(
1467
+ GPR_DEBUG, "seq[%p]: poll step 5/7 gets %s", this,
1468
+ p != nullptr
1469
+ ? (PromiseResultTraits4::IsOk(*p) ? "ready" : "early-error")
1470
+ : "pending");
1471
+ }
1235
1472
  if (p == nullptr) return Pending{};
1236
1473
  if (!PromiseResultTraits4::IsOk(*p)) {
1237
1474
  return PromiseResultTraits4::template ReturnValue<Result>(
@@ -1246,8 +1483,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5> {
1246
1483
  }
1247
1484
  ABSL_FALLTHROUGH_INTENDED;
1248
1485
  case State::kState5: {
1486
+ if (grpc_trace_promise_primitives.enabled()) {
1487
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 6/7", this);
1488
+ }
1249
1489
  auto result = prior.current_promise();
1250
1490
  PromiseResult5* p = result.value_if_ready();
1491
+ if (grpc_trace_promise_primitives.enabled()) {
1492
+ gpr_log(
1493
+ GPR_DEBUG, "seq[%p]: poll step 6/7 gets %s", this,
1494
+ p != nullptr
1495
+ ? (PromiseResultTraits5::IsOk(*p) ? "ready" : "early-error")
1496
+ : "pending");
1497
+ }
1251
1498
  if (p == nullptr) return Pending{};
1252
1499
  if (!PromiseResultTraits5::IsOk(*p)) {
1253
1500
  return PromiseResultTraits5::template ReturnValue<Result>(
@@ -1263,7 +1510,14 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5> {
1263
1510
  ABSL_FALLTHROUGH_INTENDED;
1264
1511
  default:
1265
1512
  case State::kState6: {
1513
+ if (grpc_trace_promise_primitives.enabled()) {
1514
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 7/7", this);
1515
+ }
1266
1516
  auto result = current_promise();
1517
+ if (grpc_trace_promise_primitives.enabled()) {
1518
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 7/7 gets %s", this,
1519
+ result.ready() ? "ready" : "pending");
1520
+ }
1267
1521
  auto* p = result.value_if_ready();
1268
1522
  if (p == nullptr) return Pending{};
1269
1523
  return Result(std::move(*p));
@@ -1517,9 +1771,19 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1517
1771
  Poll<Result> PollOnce() {
1518
1772
  switch (state) {
1519
1773
  case State::kState0: {
1774
+ if (grpc_trace_promise_primitives.enabled()) {
1775
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/8", this);
1776
+ }
1520
1777
  auto result =
1521
1778
  prior.prior.prior.prior.prior.prior.prior.current_promise();
1522
1779
  PromiseResult0* p = result.value_if_ready();
1780
+ if (grpc_trace_promise_primitives.enabled()) {
1781
+ gpr_log(
1782
+ GPR_DEBUG, "seq[%p]: poll step 1/8 gets %s", this,
1783
+ p != nullptr
1784
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
1785
+ : "pending");
1786
+ }
1523
1787
  if (p == nullptr) return Pending{};
1524
1788
  if (!PromiseResultTraits0::IsOk(*p)) {
1525
1789
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -1536,8 +1800,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1536
1800
  }
1537
1801
  ABSL_FALLTHROUGH_INTENDED;
1538
1802
  case State::kState1: {
1803
+ if (grpc_trace_promise_primitives.enabled()) {
1804
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/8", this);
1805
+ }
1539
1806
  auto result = prior.prior.prior.prior.prior.prior.current_promise();
1540
1807
  PromiseResult1* p = result.value_if_ready();
1808
+ if (grpc_trace_promise_primitives.enabled()) {
1809
+ gpr_log(
1810
+ GPR_DEBUG, "seq[%p]: poll step 2/8 gets %s", this,
1811
+ p != nullptr
1812
+ ? (PromiseResultTraits1::IsOk(*p) ? "ready" : "early-error")
1813
+ : "pending");
1814
+ }
1541
1815
  if (p == nullptr) return Pending{};
1542
1816
  if (!PromiseResultTraits1::IsOk(*p)) {
1543
1817
  return PromiseResultTraits1::template ReturnValue<Result>(
@@ -1553,8 +1827,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1553
1827
  }
1554
1828
  ABSL_FALLTHROUGH_INTENDED;
1555
1829
  case State::kState2: {
1830
+ if (grpc_trace_promise_primitives.enabled()) {
1831
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 3/8", this);
1832
+ }
1556
1833
  auto result = prior.prior.prior.prior.prior.current_promise();
1557
1834
  PromiseResult2* p = result.value_if_ready();
1835
+ if (grpc_trace_promise_primitives.enabled()) {
1836
+ gpr_log(
1837
+ GPR_DEBUG, "seq[%p]: poll step 3/8 gets %s", this,
1838
+ p != nullptr
1839
+ ? (PromiseResultTraits2::IsOk(*p) ? "ready" : "early-error")
1840
+ : "pending");
1841
+ }
1558
1842
  if (p == nullptr) return Pending{};
1559
1843
  if (!PromiseResultTraits2::IsOk(*p)) {
1560
1844
  return PromiseResultTraits2::template ReturnValue<Result>(
@@ -1570,8 +1854,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1570
1854
  }
1571
1855
  ABSL_FALLTHROUGH_INTENDED;
1572
1856
  case State::kState3: {
1857
+ if (grpc_trace_promise_primitives.enabled()) {
1858
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 4/8", this);
1859
+ }
1573
1860
  auto result = prior.prior.prior.prior.current_promise();
1574
1861
  PromiseResult3* p = result.value_if_ready();
1862
+ if (grpc_trace_promise_primitives.enabled()) {
1863
+ gpr_log(
1864
+ GPR_DEBUG, "seq[%p]: poll step 4/8 gets %s", this,
1865
+ p != nullptr
1866
+ ? (PromiseResultTraits3::IsOk(*p) ? "ready" : "early-error")
1867
+ : "pending");
1868
+ }
1575
1869
  if (p == nullptr) return Pending{};
1576
1870
  if (!PromiseResultTraits3::IsOk(*p)) {
1577
1871
  return PromiseResultTraits3::template ReturnValue<Result>(
@@ -1586,8 +1880,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1586
1880
  }
1587
1881
  ABSL_FALLTHROUGH_INTENDED;
1588
1882
  case State::kState4: {
1883
+ if (grpc_trace_promise_primitives.enabled()) {
1884
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 5/8", this);
1885
+ }
1589
1886
  auto result = prior.prior.prior.current_promise();
1590
1887
  PromiseResult4* p = result.value_if_ready();
1888
+ if (grpc_trace_promise_primitives.enabled()) {
1889
+ gpr_log(
1890
+ GPR_DEBUG, "seq[%p]: poll step 5/8 gets %s", this,
1891
+ p != nullptr
1892
+ ? (PromiseResultTraits4::IsOk(*p) ? "ready" : "early-error")
1893
+ : "pending");
1894
+ }
1591
1895
  if (p == nullptr) return Pending{};
1592
1896
  if (!PromiseResultTraits4::IsOk(*p)) {
1593
1897
  return PromiseResultTraits4::template ReturnValue<Result>(
@@ -1602,8 +1906,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1602
1906
  }
1603
1907
  ABSL_FALLTHROUGH_INTENDED;
1604
1908
  case State::kState5: {
1909
+ if (grpc_trace_promise_primitives.enabled()) {
1910
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 6/8", this);
1911
+ }
1605
1912
  auto result = prior.prior.current_promise();
1606
1913
  PromiseResult5* p = result.value_if_ready();
1914
+ if (grpc_trace_promise_primitives.enabled()) {
1915
+ gpr_log(
1916
+ GPR_DEBUG, "seq[%p]: poll step 6/8 gets %s", this,
1917
+ p != nullptr
1918
+ ? (PromiseResultTraits5::IsOk(*p) ? "ready" : "early-error")
1919
+ : "pending");
1920
+ }
1607
1921
  if (p == nullptr) return Pending{};
1608
1922
  if (!PromiseResultTraits5::IsOk(*p)) {
1609
1923
  return PromiseResultTraits5::template ReturnValue<Result>(
@@ -1618,8 +1932,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1618
1932
  }
1619
1933
  ABSL_FALLTHROUGH_INTENDED;
1620
1934
  case State::kState6: {
1935
+ if (grpc_trace_promise_primitives.enabled()) {
1936
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 7/8", this);
1937
+ }
1621
1938
  auto result = prior.current_promise();
1622
1939
  PromiseResult6* p = result.value_if_ready();
1940
+ if (grpc_trace_promise_primitives.enabled()) {
1941
+ gpr_log(
1942
+ GPR_DEBUG, "seq[%p]: poll step 7/8 gets %s", this,
1943
+ p != nullptr
1944
+ ? (PromiseResultTraits6::IsOk(*p) ? "ready" : "early-error")
1945
+ : "pending");
1946
+ }
1623
1947
  if (p == nullptr) return Pending{};
1624
1948
  if (!PromiseResultTraits6::IsOk(*p)) {
1625
1949
  return PromiseResultTraits6::template ReturnValue<Result>(
@@ -1635,7 +1959,14 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6> {
1635
1959
  ABSL_FALLTHROUGH_INTENDED;
1636
1960
  default:
1637
1961
  case State::kState7: {
1962
+ if (grpc_trace_promise_primitives.enabled()) {
1963
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 8/8", this);
1964
+ }
1638
1965
  auto result = current_promise();
1966
+ if (grpc_trace_promise_primitives.enabled()) {
1967
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 8/8 gets %s", this,
1968
+ result.ready() ? "ready" : "pending");
1969
+ }
1639
1970
  auto* p = result.value_if_ready();
1640
1971
  if (p == nullptr) return Pending{};
1641
1972
  return Result(std::move(*p));
@@ -1923,9 +2254,19 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
1923
2254
  Poll<Result> PollOnce() {
1924
2255
  switch (state) {
1925
2256
  case State::kState0: {
2257
+ if (grpc_trace_promise_primitives.enabled()) {
2258
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 1/9", this);
2259
+ }
1926
2260
  auto result =
1927
2261
  prior.prior.prior.prior.prior.prior.prior.prior.current_promise();
1928
2262
  PromiseResult0* p = result.value_if_ready();
2263
+ if (grpc_trace_promise_primitives.enabled()) {
2264
+ gpr_log(
2265
+ GPR_DEBUG, "seq[%p]: poll step 1/9 gets %s", this,
2266
+ p != nullptr
2267
+ ? (PromiseResultTraits0::IsOk(*p) ? "ready" : "early-error")
2268
+ : "pending");
2269
+ }
1929
2270
  if (p == nullptr) return Pending{};
1930
2271
  if (!PromiseResultTraits0::IsOk(*p)) {
1931
2272
  return PromiseResultTraits0::template ReturnValue<Result>(
@@ -1943,9 +2284,19 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
1943
2284
  }
1944
2285
  ABSL_FALLTHROUGH_INTENDED;
1945
2286
  case State::kState1: {
2287
+ if (grpc_trace_promise_primitives.enabled()) {
2288
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 2/9", this);
2289
+ }
1946
2290
  auto result =
1947
2291
  prior.prior.prior.prior.prior.prior.prior.current_promise();
1948
2292
  PromiseResult1* p = result.value_if_ready();
2293
+ if (grpc_trace_promise_primitives.enabled()) {
2294
+ gpr_log(
2295
+ GPR_DEBUG, "seq[%p]: poll step 2/9 gets %s", this,
2296
+ p != nullptr
2297
+ ? (PromiseResultTraits1::IsOk(*p) ? "ready" : "early-error")
2298
+ : "pending");
2299
+ }
1949
2300
  if (p == nullptr) return Pending{};
1950
2301
  if (!PromiseResultTraits1::IsOk(*p)) {
1951
2302
  return PromiseResultTraits1::template ReturnValue<Result>(
@@ -1962,8 +2313,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
1962
2313
  }
1963
2314
  ABSL_FALLTHROUGH_INTENDED;
1964
2315
  case State::kState2: {
2316
+ if (grpc_trace_promise_primitives.enabled()) {
2317
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 3/9", this);
2318
+ }
1965
2319
  auto result = prior.prior.prior.prior.prior.prior.current_promise();
1966
2320
  PromiseResult2* p = result.value_if_ready();
2321
+ if (grpc_trace_promise_primitives.enabled()) {
2322
+ gpr_log(
2323
+ GPR_DEBUG, "seq[%p]: poll step 3/9 gets %s", this,
2324
+ p != nullptr
2325
+ ? (PromiseResultTraits2::IsOk(*p) ? "ready" : "early-error")
2326
+ : "pending");
2327
+ }
1967
2328
  if (p == nullptr) return Pending{};
1968
2329
  if (!PromiseResultTraits2::IsOk(*p)) {
1969
2330
  return PromiseResultTraits2::template ReturnValue<Result>(
@@ -1979,8 +2340,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
1979
2340
  }
1980
2341
  ABSL_FALLTHROUGH_INTENDED;
1981
2342
  case State::kState3: {
2343
+ if (grpc_trace_promise_primitives.enabled()) {
2344
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 4/9", this);
2345
+ }
1982
2346
  auto result = prior.prior.prior.prior.prior.current_promise();
1983
2347
  PromiseResult3* p = result.value_if_ready();
2348
+ if (grpc_trace_promise_primitives.enabled()) {
2349
+ gpr_log(
2350
+ GPR_DEBUG, "seq[%p]: poll step 4/9 gets %s", this,
2351
+ p != nullptr
2352
+ ? (PromiseResultTraits3::IsOk(*p) ? "ready" : "early-error")
2353
+ : "pending");
2354
+ }
1984
2355
  if (p == nullptr) return Pending{};
1985
2356
  if (!PromiseResultTraits3::IsOk(*p)) {
1986
2357
  return PromiseResultTraits3::template ReturnValue<Result>(
@@ -1996,8 +2367,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
1996
2367
  }
1997
2368
  ABSL_FALLTHROUGH_INTENDED;
1998
2369
  case State::kState4: {
2370
+ if (grpc_trace_promise_primitives.enabled()) {
2371
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 5/9", this);
2372
+ }
1999
2373
  auto result = prior.prior.prior.prior.current_promise();
2000
2374
  PromiseResult4* p = result.value_if_ready();
2375
+ if (grpc_trace_promise_primitives.enabled()) {
2376
+ gpr_log(
2377
+ GPR_DEBUG, "seq[%p]: poll step 5/9 gets %s", this,
2378
+ p != nullptr
2379
+ ? (PromiseResultTraits4::IsOk(*p) ? "ready" : "early-error")
2380
+ : "pending");
2381
+ }
2001
2382
  if (p == nullptr) return Pending{};
2002
2383
  if (!PromiseResultTraits4::IsOk(*p)) {
2003
2384
  return PromiseResultTraits4::template ReturnValue<Result>(
@@ -2012,8 +2393,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
2012
2393
  }
2013
2394
  ABSL_FALLTHROUGH_INTENDED;
2014
2395
  case State::kState5: {
2396
+ if (grpc_trace_promise_primitives.enabled()) {
2397
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 6/9", this);
2398
+ }
2015
2399
  auto result = prior.prior.prior.current_promise();
2016
2400
  PromiseResult5* p = result.value_if_ready();
2401
+ if (grpc_trace_promise_primitives.enabled()) {
2402
+ gpr_log(
2403
+ GPR_DEBUG, "seq[%p]: poll step 6/9 gets %s", this,
2404
+ p != nullptr
2405
+ ? (PromiseResultTraits5::IsOk(*p) ? "ready" : "early-error")
2406
+ : "pending");
2407
+ }
2017
2408
  if (p == nullptr) return Pending{};
2018
2409
  if (!PromiseResultTraits5::IsOk(*p)) {
2019
2410
  return PromiseResultTraits5::template ReturnValue<Result>(
@@ -2028,8 +2419,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
2028
2419
  }
2029
2420
  ABSL_FALLTHROUGH_INTENDED;
2030
2421
  case State::kState6: {
2422
+ if (grpc_trace_promise_primitives.enabled()) {
2423
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 7/9", this);
2424
+ }
2031
2425
  auto result = prior.prior.current_promise();
2032
2426
  PromiseResult6* p = result.value_if_ready();
2427
+ if (grpc_trace_promise_primitives.enabled()) {
2428
+ gpr_log(
2429
+ GPR_DEBUG, "seq[%p]: poll step 7/9 gets %s", this,
2430
+ p != nullptr
2431
+ ? (PromiseResultTraits6::IsOk(*p) ? "ready" : "early-error")
2432
+ : "pending");
2433
+ }
2033
2434
  if (p == nullptr) return Pending{};
2034
2435
  if (!PromiseResultTraits6::IsOk(*p)) {
2035
2436
  return PromiseResultTraits6::template ReturnValue<Result>(
@@ -2044,8 +2445,18 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
2044
2445
  }
2045
2446
  ABSL_FALLTHROUGH_INTENDED;
2046
2447
  case State::kState7: {
2448
+ if (grpc_trace_promise_primitives.enabled()) {
2449
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 8/9", this);
2450
+ }
2047
2451
  auto result = prior.current_promise();
2048
2452
  PromiseResult7* p = result.value_if_ready();
2453
+ if (grpc_trace_promise_primitives.enabled()) {
2454
+ gpr_log(
2455
+ GPR_DEBUG, "seq[%p]: poll step 8/9 gets %s", this,
2456
+ p != nullptr
2457
+ ? (PromiseResultTraits7::IsOk(*p) ? "ready" : "early-error")
2458
+ : "pending");
2459
+ }
2049
2460
  if (p == nullptr) return Pending{};
2050
2461
  if (!PromiseResultTraits7::IsOk(*p)) {
2051
2462
  return PromiseResultTraits7::template ReturnValue<Result>(
@@ -2061,7 +2472,14 @@ struct SeqState<Traits, P, F0, F1, F2, F3, F4, F5, F6, F7> {
2061
2472
  ABSL_FALLTHROUGH_INTENDED;
2062
2473
  default:
2063
2474
  case State::kState8: {
2475
+ if (grpc_trace_promise_primitives.enabled()) {
2476
+ gpr_log(GPR_DEBUG, "seq[%p]: begin poll step 9/9", this);
2477
+ }
2064
2478
  auto result = current_promise();
2479
+ if (grpc_trace_promise_primitives.enabled()) {
2480
+ gpr_log(GPR_DEBUG, "seq[%p]: poll step 9/9 gets %s", this,
2481
+ result.ready() ? "ready" : "pending");
2482
+ }
2065
2483
  auto* p = result.value_if_ready();
2066
2484
  if (p == nullptr) return Pending{};
2067
2485
  return Result(std::move(*p));