peachisai commented on code in PR #13119:
URL: https://github.com/apache/skywalking/pull/13119#discussion_r2007566449
##########
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/Analyzer.java:
##########
@@ -374,4 +374,17 @@ private void processRelationClientSide(MeterEntity entity)
{
MetricsStreamProcessor.getInstance().in(metrics);
}
+ public boolean filter(ImmutableMap<String, SampleFamily> sampleFamilies) {
+ if (filterExpression == null) {
+ return true;
+ }
+
+ for (Map.Entry<String, SampleFamily> entry :
sampleFamilies.entrySet()) {
+ if
(!filterExpression.filter(entry.getValue()).equals(SampleFamily.EMPTY)) {
+ return true;
+ }
+ }
Review Comment:
My idea is: If none of the ```SampleFamily``` instances pass through an
analyzer, then the remaining analyzers do not need to continue checking, as
they share the same filter expression. As long as at least one
```SampleFamily``` passes the check, the process should continue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]