census-instrumentation / opencensus-java

A stats collection and distributed tracing framework
https://opencensus.io
Apache License 2.0
672 stars 201 forks source link

Support for excluding detected resource labels for Stackdriver Trace #2076

Open MeenaGuptaIwasaki opened 3 years ago

MeenaGuptaIwasaki commented 3 years ago

I have spans to which I want to attach a lot of custom labels. However the automatically detected resource labels for a project running in GKE uses up 16 of the 32 maximum labels that Stackdriver Trace allows.

Is there currently a way to prevent these labels from being populated in a span? I didn't see one but I could be missing it.

Otherwise is this a feature we could consider?