-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow suppressing all metrics #2490
Conversation
would it be more convenient to turn off one telemetry kind in one kill-switch config? customers need to indicate which ones to exclude.. if they want all of them, that's lots of exclude or regular expressions. |
} | ||
} | ||
return false; | ||
return metricFilters.stream().anyMatch(metricFilter -> metricFilter.exclude(metricName)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have noticed that this method is called from a loop in the AgentMetricExporter
class. If the number of iterations could be high, I would prefer to avoid creating a stream at each iteration, to limit heap allocation.
* Allow suppressing all metrics * Remove stream
* Allow suppressing all metrics * Remove stream
* Allow suppressing all metrics * Remove stream
Resolves #1905