Browse Source

Pull request #13936: REPORT-118629 FRM并行计算偶发埋点记录失败

Merge in DESIGN/design from ~LEVY.XIE/design:release/11.0 to release/11.0

* commit '5853dfb155501fbbdffea0c02658297777386595':
  REPORT-118629 FRM并行计算偶发埋点记录失败
release/11.0
Levy.Xie-解安森 8 months ago
parent
commit
16103381be
  1. 9
      designer-base/src/main/java/com/fr/design/record/analyzer/advice/MonitorAdvice.java

9
designer-base/src/main/java/com/fr/design/record/analyzer/advice/MonitorAdvice.java

@ -88,8 +88,9 @@ public class MonitorAdvice implements DesignerAnalyzerAdvice {
MessageRecorderFactory.getInstance().syncSubmit(message);
}
}
} catch (Exception ignore) {
} catch (Exception ex) {
//埋点信息入库失败应该不能影响业务流程
FineLoggerFactory.getLogger().debug("[Metric] failed to log message.", ex);
} finally {
sessionBinder.detachSession();
}
@ -113,7 +114,11 @@ public class MonitorAdvice implements DesignerAnalyzerAdvice {
}
public static void recordSQLDetail(String uuid) {
DBMeterFactory.getMeter().submit(uuid);
try {
DBMeterFactory.getMeter().submit(uuid);
} catch (Exception e) {
FineLoggerFactory.getLogger().debug("[Metric] failed to log sql detail.", e);
}
}
public static void recordSQL(Compute once, MeasureObject measureObject) {

Loading…
Cancel
Save