This repository was archived by the owner on Oct 3, 2023. It is now read-only.
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Go exporter should detect GKE resource labels automatically #261
Open
Description
Right now the Go Stackdriver exporter does not send GKE resource labels to Cloud Trace.
There are a few ways we can get resource labels:
- We can get detected resource labels from: https://github.com/census-ecosystem/opencensus-go-resource/blob/87ca538ec76b3961839940406845ef624d794fa8/gke/gke.go#L30
- We can also use Kubernetes Operator (https://github.com/census-ecosystem/kubernetes-operator).
Solution:
Automatically detect GKE resource labels and attach them to the span attributes.
Related issue: census-ecosystem/kubernetes-operator#14