grpc/bazel
Yash Tibrewal 06b55bdaa4
[RegisteredMethod] Set information on initial metadata about whether method is registered or not (#34432)
Summary - 
On the server-side, we are changing the point at which we decide whether
a method is registered or not from the surface to the transport at the
point where we are done receiving initial metadata and before we invoke
the recv_initial_metadata_ready closures from the filters. The main
motivation for this is to allow filters to check whether the incoming
method is a registered or not. The exact use-case is for observability
where we only want to record the method if it is registered. We store
the information about the registered method in the initial metadata.

On the client-side, we also set information about whether the method is
registered or not in the outgoing initial metadata.

Since we are effectively changing the lookup point of the registered
method, there are slight concerns of this being a potentially breaking
change, so we are guarding this with an experiment to be safe.

Changes - 
* Transport API changes -
* Along with `accept_stream_fn`, a new callback
`registered_method_matcher_cb` will be sent down as a transport op on
the server side. When initial metadata is received on the server side,
this callback is invoked. This happens before invoking the
`recv_initial_metadata_ready` closure.
* Metadata changes -
* We add a new non-serializable metadata trait `GrpcRegisteredMethod()`.
On the client-side, the value is a uintptr_t with a value of 1 if the
call has a registered/known method, or 0, if it's not known. On the
server side, the value is a (ChannelRegisteredMethod*). This metadata
information can be used throughout the stack to check whether a call is
registered or not.
* Server Changes -
* When a new transport connection is accepted, the server sets
`registered_method_matcher_cb` along with `accept_stream_fn`. This
function checks whether the method is registered or not and sets the
RegisteredMethod matcher in the metadata for use later.
* Client Changes -
* Set the metadata on call creation on whether the method is registered
or not.
2023-09-22 13:13:16 -07:00
..
BUILD Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
OWNERS bG6b3V2MNxQ (#30021) 2022-06-21 08:00:32 -07:00
_gevent_test_main.py [Test] Do not use importlib find_module API, removed in Python 3.12 (#33506) 2023-09-06 13:13:12 -07:00
cc_grpc_library.bzl [reland][fuzzing] Client channel resolver fuzzer (#33153) 2023-05-16 17:32:29 -07:00
copts.bzl [build] Enable -Wunused-but-set-variable (#32439) 2023-02-21 13:28:47 -08:00
custom_exec_properties.bzl Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
cython_library.bzl [EventEngine] Disable EventEngine polling in gRPC Python (#33279) 2023-05-30 19:26:44 -07:00
experiments.bzl [RegisteredMethod] Set information on initial metadata about whether method is registered or not (#34432) 2023-09-22 13:13:16 -07:00
generate_cc.bzl Remove returning struct in cc_grpc_library (#32360) 2023-02-14 20:53:53 -08:00
generate_objc.bzl Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
gevent_test.bzl [Python fix-it][Gevent] Enable gevent _dynamic_stubs_test (#32842) 2023-04-12 14:03:31 -07:00
googleapis.BUILD [GSM Observability] Add cloud c++ dependency.. this time for sure (#34071) 2023-08-16 13:35:05 -07:00
grpc_build_system.bzl [build] Exclude some e2e suites from experiments tests (#34404) 2023-09-19 10:20:28 -07:00
grpc_deps.bzl [Observability Testing] register prometheus exporter (#34380) 2023-09-19 16:54:58 -07:00
grpc_extra_deps.bzl [GSM Observability] Add cloud c++ dependency.. this time for sure (#34071) 2023-08-16 13:35:05 -07:00
grpc_python_deps.bzl [Bazel Python3.11] Update Bazel dependencies for Python 3.11 (#33318) 2023-06-01 15:32:16 -07:00
grpc_util.bzl Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
internal_python_rules.bzl Remove Python2 from python_configure.bzl (#28406) 2021-12-28 10:16:14 -08:00
objc_grpc_library.bzl Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
protobuf.bzl [Release] Upmerge v1.55.x branch into master (#33277) 2023-05-30 14:45:06 -07:00
python_rules.bzl [Bazel] Enable grpcio-reflection to be used via Bazel (#31013) 2023-08-16 14:23:23 -07:00
supported_versions.txt [bazel] Upgrade bazel repo-wide to 6.3.2 (#34088) 2023-08-18 10:11:33 +02:00
test_experiments.bzl [experiments] Fix processing of platform specific test tags (#33749) 2023-07-21 16:06:01 -07:00
update_mirror.sh [bazel] Upgrade bazel repo-wide to 6.3.2 (#34088) 2023-08-18 10:11:33 +02:00