aloyszhang commented on code in PR #10038:
URL: https://github.com/apache/inlong/pull/10038#discussion_r1574039967


##########
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/metrics/audit/AuditUtils.java:
##########
@@ -92,12 +96,21 @@ public static void initAudit() {
     /**
      * Add audit metric
      */
+    public static void add(int auditID, String inlongGroupId, String 
inlongStreamId,
+            long logTime, int count, long size, long version) {
+        if (!IS_AUDIT) {
+            return;
+        }
+        AuditOperator.getInstance()
+                .add(auditID, DEFAULT_AUDIT_TAG, inlongGroupId, 
inlongStreamId, logTime, count, size, version);
+    }
+
     public static void add(int auditID, String inlongGroupId, String 
inlongStreamId,
             long logTime, int count, long size) {
         if (!IS_AUDIT) {
             return;
         }

Review Comment:
   duplicated check



-- 
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