From f4280fb262f66d3c0a2bbaf0e0ded7b271a25cb9 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Mon, 27 Mar 2023 21:33:28 -0700 Subject: [PATCH] GCP Observability: Fix instructions for README (#32730) --- .../gcp_observability/helloworld/README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/examples/cpp/gcp_observability/helloworld/README.md b/examples/cpp/gcp_observability/helloworld/README.md index 30fd39e5d67..333b86f2eb4 100644 --- a/examples/cpp/gcp_observability/helloworld/README.md +++ b/examples/cpp/gcp_observability/helloworld/README.md @@ -21,12 +21,19 @@ GCP Observability configuration value. This is needed by both client and server. Sample configurations are provided with the example. -1. To start the observability-enabled example server on its default port of - 50051, run: `$ export +To start the observability-enabled example server on its default port of 50051, +run the following from the `grpc` directory: + +``` +$ export GRPC_GCP_OBSERVABILITY_CONFIG_FILE="$(pwd)/examples/cpp/gcp_observability/helloworld/server_config.json" - $ bazel run examples/cpp/gcp_observability/helloworld:greeter_server` +$ tools/bazel run examples/cpp/gcp_observability/helloworld:greeter_server +``` + +In a different terminal window, run the observability-enabled example client: -2. In a different terminal window, run the observability-enabled example - client: `$ export +``` +$ export GRPC_GCP_OBSERVABILITY_CONFIG_FILE="$(pwd)/examples/cpp/gcp_observability/helloworld/client_config.json" - $ bazel run examples/cpp/gcp_observability/helloworld:greeter_client` +$ tools/bazel run examples/cpp/gcp_observability/helloworld:greeter_client +```