use of com.creditease.monitor.log.DataLogger in project uavstack by uavorg.
the class AbstractSlowOperHandler method doCap.
@Override
public void doCap(InvokeChainContext context, Object[] args) {
Span span = (Span) args[0];
DataLogger invokeChainLogger = this.getAppInvokeChainLogger(span.getAppid());
if (invokeChainLogger == null) {
return;
}
SlowOperSpan slowOperSpan = this.spanFactory.getRemoveSlowOperSpanFromContext(this.getSlowOperSpanKey(span));
if (slowOperSpan == null) {
return;
}
SlowOperContext slowOperContext = (SlowOperContext) args[1];
buildSpanContent(slowOperContext, slowOperSpan);
invokeChainLogger.logData(slowOperSpan.toString());
}
use of com.creditease.monitor.log.DataLogger in project uavstack by uavorg.
the class MqRabbitConsumerSlowOperHandler method doCap.
@Override
public void doCap(InvokeChainContext context, Object[] args) {
Span span = (Span) args[0];
DataLogger invokeChainLogger = this.getAppInvokeChainLogger(span.getAppid());
if (invokeChainLogger == null) {
return;
}
SlowOperSpan slowOperSpan = this.spanFactory.getRemoveSlowOperSpanFromContext(this.getSlowOperSpanKey(span));
invokeChainLogger.logData(slowOperSpan.toString());
}
Aggregations