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.

-->
pull/32732/head
Yash Tibrewal 2 years ago committed by GitHub
parent 7e341a545a
commit f4280fb262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      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
```

Loading…
Cancel
Save