darewreck
darewreck

Reputation: 2614

Is the header X-Cloud-Trace-Context set for GKE?

I'm trying to figure out what headers does GKE provide. With AppEngine, X-Cloud-Trace-Context is appended to the headers of each request. However, if the application is deployed to GKE, it looks like X-Cloud-Trace-Context is not set.

Thanks, Derek

Upvotes: 1

Views: 1232

Answers (1)

dustinmoris
dustinmoris

Reputation: 3361

The GCLB definitely sends the X-Cloud-Trace-Context to GKE services. I parse that header myself in order to continue the trace which gets started by the load balancer.

Are you using the Google Cloud L7 load balancer as your ingress controller or have you set up something else like nginx or Traefik?

Upvotes: 2

Related Questions