-
There are two kinds of value in the label0 of my counter. data0: {topic: "foo"}, value: 3 Now the "bar" is deprecated, how could we stop to export the data1 to collector? |
Beta Was this translation helpful? Give feedback.
Answered by
jkwatson
Aug 19, 2022
Replies: 1 comment
-
I believe you can accomplish this by configuring a View into your SDK that removes the attribute. See here: https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java#L72 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aaron-ai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe you can accomplish this by configuring a View into your SDK that removes the attribute. See here: https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java#L72