Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
Andrea Spacca ec086b4eb3 Bump google.golang.org/api pirms 5 gadiem
..
helloworld_client Bump google.golang.org/api pirms 5 gadiem
helloworld_server Bump google.golang.org/api pirms 5 gadiem
README.md Bump google.golang.org/api pirms 5 gadiem

README.md

Example net/http server and client with OpenCensus

This example uses:

  • net/http to create a server and client.
  • The OpenCensus net/http plugin to instrument the server and client.
  • Debugging exporters to print stats and traces to stdout.
$ go get go.opencensus.io/examples/http/...

First, run the server:

$ go run $(go env GOPATH)/src/go.opencensus.io/examples/http/helloworld_server/main.go

Then, run the client:

$ go run $(go env GOPATH)/src/go.opencensus.io/examples/http/helloworld_client/main.go

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: