grpc/doc/python/sphinx
Xuan Wang 40f20c0f48
[Python fix-it][Aysnc Example] Adding examples for aysnc interceptor context propagaton (#32840)
### Description

Fix https://github.com/grpc/grpc/issues/24470.

Adding one example which demonstrate the following use cases:

* Generate RPC ID on client side and propagate to server.
* Context propagation from client to server.
* Context propagation between different server interceptors and the
server handler.

## Use:

1. Start server: `python3 -m async_greeter_server_with_interceptor`
2. Start client: `python3 -m async_greeter_client`

### Expected Logs:

* On client side:

```
Sending request with rpc id: 73bb98beff10c2dd7b9f2252a1e2039e
Greeter client received: Hello, you!
```

* On server side:

```
INFO:root:Starting server on [::]:50051
INFO:root:Interceptor1 called with rpc_id: default
INFO:root:Interceptor2 called with rpc_id: Interceptor1-default
INFO:root:Handle rpc with id Interceptor2-Interceptor1-73bb98beff10c2dd7b9f2252a1e2039e in server handler.
```
2023-05-04 19:31:01 +00:00
..
_static Update sphinx configuration 2020-02-14 11:01:48 -08:00
conf.py [documentation] Fix documentation build script by mocking python dependencies (#32398) 2023-02-15 09:43:20 -08:00
glossary.rst Weaken our promise 2020-04-23 14:16:36 -07:00
grpc.rst [Python fix-it][Aysnc Example] Adding examples for aysnc interceptor context propagaton (#32840) 2023-05-04 19:31:01 +00:00
grpc_admin.rst Add grpcio-admin Python package (#26166) 2021-05-05 13:20:50 -07:00
grpc_asyncio.rst [Python fix-it][Aysnc Example] Adding examples for aysnc interceptor context propagaton (#32840) 2023-05-04 19:31:01 +00:00
grpc_channelz.rst Channelz Python wrapper implementation 2018-11-27 17:27:39 -08:00
grpc_csds.rst Add grpcio-admin Python package (#26166) 2021-05-05 13:20:50 -07:00
grpc_health_checking.rst New Python documentation generation 2018-11-06 18:07:03 -08:00
grpc_reflection.rst Add Python Reflection Client (#29085) 2022-03-29 15:25:25 -07:00
grpc_status.rst Add documentation for 'grpcio-status' package 2019-03-22 17:28:34 -07:00
grpc_testing.rst New Python documentation generation 2018-11-06 18:07:03 -08:00
index.rst Add grpcio-admin Python package (#26166) 2021-05-05 13:20:50 -07:00