Skip to content

Commit

Permalink
[CSM Observability] Add option to use Xds server (grpc#38194)
Browse files Browse the repository at this point in the history
We already have the option to use Xds credentials based on `secure_mode`
flag, this PR add the ability to create Xds server based on the same
flag.
<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
  • Loading branch information
XuanWang-Amos authored Nov 26, 2024
1 parent fb03c50 commit a428e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/python/observability/csm/csm_greeter_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def _run(
csm_plugin = _prepare_csm_observability_plugin(prometheus_endpoint)
csm_plugin.register_global()
server = grpc.server(
futures.ThreadPoolExecutor(max_workers=_THREAD_POOL_SIZE)
futures.ThreadPoolExecutor(max_workers=_THREAD_POOL_SIZE),
xds=secure_mode,
)
_configure_test_server(server, port, secure_mode, server_id)
server.start()
Expand Down

0 comments on commit a428e2c

Please sign in to comment.