wu-sheng commented on code in PR #13119:
URL: https://github.com/apache/skywalking/pull/13119#discussion_r2005541990


##########
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:
   I think we should check all Sample Family, if one of them could pass the 
filter, we should let this file's analyzers 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]

Reply via email to