Add CommTagAttribute for metric code generator #6259
BowenYang666
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For Metrics generation, we can add some common tag that can apply to all metrics within this class.
1.
With common tags, metrics defined in this class will all have the common dimension with same value, it's helpful when we want to add some static values.
example code:
2.
When it comes to geneva metrics, we can use this feature to send to different account and namespace.
It will be even greater if we can create a new attribute for geneva account and namespace attribute. Since opentelemetry doesn't support export different metrics to different account and namespace, this maybe a solution.
So with genevaAttribute, the code may look like this:
then we can generate the code and add account and namespace override in Record()
Beta Was this translation helpful? Give feedback.
All reactions