module
Version:
v0.33.0
Opens a new window with list of versions in this module.
Published: Sep 30, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
HTTP Client-Server example
An HTTP server and client instrumented to send traces to Google Cloud Trace.
In order to run this example, you'll need to
- Create a GCP project
- Enable billing
- Enable the Cloud Trace API
- Obtain authentication credentials
- If you run the code on GCE/GKE/Cloud Run, it will receive the necessary authentication credentials automatically.
- If you run in Cloud Shell or outside of GCP, you'll need to have it authenticate as a service account.
- In one terminal, run the server
$ go run ./server
- In another terminal on the same host, run the client
$ go run ./client
- Open Google Cloud Trace and examine the trace that was recorded.
Directories
¶
Click to show internal directories.
Click to hide internal directories.