use of com.pamirs.pradar.interceptor.SpanRecord in project LinkAgent by shulieTech.
the class AreospikeOperateInterceptor method afterTrace.
@Override
public SpanRecord afterTrace(Advice advice) {
SpanRecord spanRecord = new SpanRecord();
spanRecord.setResponse(advice.getReturnObj());
return spanRecord;
}
use of com.pamirs.pradar.interceptor.SpanRecord in project LinkAgent by shulieTech.
the class AreospikeScanAllInterceptor method exceptionTrace.
@Override
public SpanRecord exceptionTrace(Advice advice) {
SpanRecord spanRecord = new SpanRecord();
spanRecord.setResponse(advice.getThrowable());
spanRecord.setResultCode(ResultCode.INVOKE_RESULT_FAILED);
return spanRecord;
}
use of com.pamirs.pradar.interceptor.SpanRecord in project LinkAgent by shulieTech.
the class AreospikeScanAllInterceptor method afterTrace.
@Override
public SpanRecord afterTrace(Advice advice) {
SpanRecord spanRecord = new SpanRecord();
spanRecord.setResponse(advice.getReturnObj());
return spanRecord;
}
use of com.pamirs.pradar.interceptor.SpanRecord in project LinkAgent by shulieTech.
the class AreospikeScanNodeInterceptor method beforeTrace.
@Override
public SpanRecord beforeTrace(Advice advice) {
SpanRecord spanRecord = new SpanRecord();
spanRecord.setService(getService(advice.getBehaviorName(), advice.getParameterArray()));
spanRecord.setMethod(getMethod(advice.getParameterArray()));
spanRecord.setRemoteIp(getRemoteIp(advice.getTarget()));
spanRecord.setRequest(advice.getParameterArray());
return spanRecord;
}
use of com.pamirs.pradar.interceptor.SpanRecord in project LinkAgent by shulieTech.
the class AreospikeScanNodeInterceptor method afterTrace.
@Override
public SpanRecord afterTrace(Advice advice) {
SpanRecord spanRecord = new SpanRecord();
spanRecord.setResponse(advice.getReturnObj());
return spanRecord;
}
Aggregations