Search in sources :

Example 1 with ResinAsyncListener

use of com.navercorp.pinpoint.plugin.resin.ResinAsyncListener in project pinpoint by naver.

the class HttpServletRequestImplInterceptor method doInAfterTrace.

@Override
protected void doInAfterTrace(SpanEventRecorder recorder, Object target, Object[] args, Object result, Throwable throwable) {
    if (validate(target, result, throwable)) {
        final AsyncContext asyncContext = (AsyncContext) result;
        final AsyncListener asyncListener = new ResinAsyncListener(this.traceContext, recorder.recordNextAsyncContext(true));
        asyncContext.addListener(asyncListener);
        if (isDebug) {
            logger.debug("Add async listener {}", asyncListener);
        }
    }
    recorder.recordServiceType(ResinConstants.RESIN_METHOD);
    recorder.recordApi(methodDescriptor);
    recorder.recordException(throwable);
}
Also used : ResinAsyncListener(com.navercorp.pinpoint.plugin.resin.ResinAsyncListener) AsyncListener(javax.servlet.AsyncListener) ResinAsyncListener(com.navercorp.pinpoint.plugin.resin.ResinAsyncListener) AsyncContext(javax.servlet.AsyncContext)

Aggregations

ResinAsyncListener (com.navercorp.pinpoint.plugin.resin.ResinAsyncListener)1 AsyncContext (javax.servlet.AsyncContext)1 AsyncListener (javax.servlet.AsyncListener)1