Search in sources :

Example 1 with AsyncStateSupport

use of com.navercorp.pinpoint.bootstrap.context.AsyncStateSupport in project pinpoint by naver.

the class SpanAsyncEventSimpleAroundInterceptor method finishAsyncState.

private void finishAsyncState(final AsyncTraceId asyncTraceId) {
    if (asyncTraceId instanceof AsyncStateSupport) {
        final AsyncStateSupport asyncStateSupport = (AsyncStateSupport) asyncTraceId;
        AsyncState asyncState = asyncStateSupport.getAsyncState();
        asyncState.finish();
        if (isDebug) {
            logger.debug("finished asyncState. asyncTraceId={}", asyncTraceId);
        }
    }
}
Also used : AsyncState(com.navercorp.pinpoint.bootstrap.context.AsyncState) AsyncStateSupport(com.navercorp.pinpoint.bootstrap.context.AsyncStateSupport)

Aggregations

AsyncState (com.navercorp.pinpoint.bootstrap.context.AsyncState)1 AsyncStateSupport (com.navercorp.pinpoint.bootstrap.context.AsyncStateSupport)1