Skip to content

Commit

Permalink
[INLONG-11396][Audit] Add monitoring of pulsar producer creation fail…
Browse files Browse the repository at this point in the history
…ure for Audit Proxy (#11399)
  • Loading branch information
doleyzi authored Oct 23, 2024
1 parent 1bdc9e2 commit d50ed3b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import org.apache.inlong.audit.consts.AttributeConstants;
import org.apache.inlong.audit.file.ConfigManager;
import org.apache.inlong.audit.metric.MetricsManager;
import org.apache.inlong.audit.sink.EventStat;
import org.apache.inlong.audit.utils.LogCounter;
import org.apache.inlong.common.constant.MQType;
Expand Down Expand Up @@ -160,6 +161,7 @@ public boolean sendMessage(String topic, Event event,

if (producer == null) {
logger.error("Get producer is null!");
MetricsManager.getInstance().addSendFailed(1);
return false;
}

Expand Down

0 comments on commit d50ed3b

Please sign in to comment.