Adding common tags to all metrics #8719
-
Hi all! Any way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You could try using a resource attribute https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#opentelemetry-resource |
Beta Was this translation helpful? Give feedback.
-
Hi @laurit |
Beta Was this translation helpful? Give feedback.
OTLP definitely captures all resource attributes -- if you're not seeing them in your chosen observability backend it may be that it does not support resource attributes.
The Prometheus exporter unfortunately has a limited support for resource attributes, see open-telemetry/opentelemetry-java#5529