how to add more dimensions to all metrics with custom extension? #7765
-
I want to add some environment variables as dimensions to all metrics of a service, how can I do that with custom extensions? |
Beta Was this translation helpful? Give feedback.
Answered by
mateuszrzeszutek
Feb 13, 2023
Replies: 1 comment 1 reply
-
If you're using environment variables (which are constant for a single execution of a program), how about adding them to the resource attributes? Resource attributes are attached to all telemetry emitted by the agent, metrics included. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tuhao1020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're using environment variables (which are constant for a single execution of a program), how about adding them to the resource attributes? Resource attributes are attached to all telemetry emitted by the agent, metrics included.