diff options
| author | Yang Song <songy23@users.noreply.github.com> | 2018-03-17 16:53:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-17 16:53:41 -0700 |
| commit | 8bce79cde63190d3703af222782871533f7ea1a8 (patch) | |
| tree | b2a61bd985c557b9ef5b0240576b6724019c4899 /examples/README.md | |
| parent | afd18e36232e74823c867f0a13b3d39ac313221d (diff) | |
| download | platform_external_opencensus-java-8bce79cde63190d3703af222782871533f7ea1a8.tar.gz platform_external_opencensus-java-8bce79cde63190d3703af222782871533f7ea1a8.tar.bz2 platform_external_opencensus-java-8bce79cde63190d3703af222782871533f7ea1a8.zip | |
Add a gRPC Hello World example. (#1044)
Diffstat (limited to 'examples/README.md')
| -rw-r--r-- | examples/README.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/README.md b/examples/README.md index e7a270c4..62324f20 100644 --- a/examples/README.md +++ b/examples/README.md @@ -78,3 +78,33 @@ $ ./target/appassembler/bin/QuickStart ``` $ ./bazel-bin/QuickStart ``` + +## To run "gRPC Hello World" example use + +Please note all the arguments are optional. If you do not specify these arguments, default values +will be used: + +* host and serverPort will be "localhost:50051" +* user will be "world" +* cloudProjectId will be null (which means no stats/spans will be exported to Stackdriver) +* server zPagePort will be 3000 +* client zPagePort will be 3001 +* Prometheus port will be 9090 + + +However, if you want to specify any of these arguements, please make sure they are in order. + +### Gradle +``` +$ ./build/install/opencensus-examples/bin/HelloWorldServer serverPort cloudProjectId zPagePort prometheusPort +$ ./build/install/opencensus-examples/bin/HelloWorldClient user host serverPort cloudProjectId zPagePort +``` + +### Maven +``` +$ ./target/appassembler/bin/HelloWorldServer serverPort cloudProjectId zPagePort prometheusPort +$ ./target/appassembler/bin/HelloWorldClient user host serverPort cloudProjectId zPagePort +``` + +### Bazel +TODO
\ No newline at end of file |
