Categorygithub.com/GoogleCloudPlatform/opentelemetry-operations-go/example/trace/http

# 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

  1. Create a GCP project
  2. Enable billing
  3. Enable the Cloud Trace API
  4. 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.
  5. In one terminal, run the server
    $ go run ./server
    
  6. In another terminal on the same host, run the client
    $ go run ./client
    
  7. Open Google Cloud Trace and examine the trace that was recorded. ./cloudtrace.png

# Packages

No description provided by the author
No description provided by the author