Version: v0.23.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: Apache-2.0


Example gRPC server and client with OpenCensus

This example uses:

  • gRPC to create an RPC server and client.
  • The OpenCensus gRPC plugin to instrument the RPC server and client.
  • Debugging exporters to print stats and traces to stdout.
$ go get

First, run the server:

$ go run $(go env GOPATH)/src/

Then, run the client:

$ go run $(go env GOPATH)/src/

You will see traces and stats exported on the stdout. You can use one of the exporters to upload collected data to the backend of your choice.

You can also see the z-pages provided from the server:

  • Traces: http://localhost:8081/debug/tracez
  • RPCs: http://localhost:8081/debug/rpcz


Path Synopsis
Package helloworld is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL