aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYash Tibrewal <yashkt@google.com>2023-03-27 21:33:28 -0700
committerGitHub <noreply@github.com>2023-03-27 21:33:28 -0700
commitf4280fb262f66d3c0a2bbaf0e0ded7b271a25cb9 (patch)
tree0791ea819486e06d34e77115eaec594bff544c06 /examples
parent7e341a545a2c048796d68f1a5e0e5caab823bd29 (diff)
downloadgrpc-grpc-f4280fb262f66d3c0a2bbaf0e0ded7b271a25cb9.tar.gz
GCP Observability: Fix instructions for README (#32730)
<!-- 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. -->
Diffstat (limited to 'examples')
-rw-r--r--examples/cpp/gcp_observability/helloworld/README.md19
1 files changed, 13 insertions, 6 deletions
diff --git a/examples/cpp/gcp_observability/helloworld/README.md b/examples/cpp/gcp_observability/helloworld/README.md
index 30fd39e5d6..333b86f2eb 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
+```