use of com.navercorp.pinpoint.bootstrap.context.AsyncState 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);
}
}
}
use of com.navercorp.pinpoint.bootstrap.context.AsyncState in project pinpoint by naver.
the class AsyncContextSpanEventEndPointInterceptor method finishAsyncState.
private void finishAsyncState(final AsyncContext asyncContext) {
if (asyncContext instanceof AsyncStateSupport) {
final AsyncStateSupport asyncStateSupport = (AsyncStateSupport) asyncContext;
AsyncState asyncState = asyncStateSupport.getAsyncState();
asyncState.finish();
if (isDebug) {
logger.debug("finished asyncState. asyncTraceId={}", asyncContext);
}
}
}
use of com.navercorp.pinpoint.bootstrap.context.AsyncState in project pinpoint by naver.
the class AsyncListenerInterceptorHelper method finish.
private void finish() {
if (this.asyncContext instanceof AsyncStateSupport) {
final AsyncStateSupport asyncStateSupport = (AsyncStateSupport) this.asyncContext;
AsyncState asyncState = asyncStateSupport.getAsyncState();
asyncState.finish();
}
}
use of com.navercorp.pinpoint.bootstrap.context.AsyncState in project pinpoint by naver.
the class WrappedAsyncSpanEventRecorder method recordNextAsyncContext.
@Override
public AsyncContext recordNextAsyncContext(boolean asyncStateSupport) {
if (asyncStateSupport) {
final TraceRoot traceRoot = this.traceRoot;
final AsyncId asyncIdObject = getNextAsyncId();
final boolean isDisabled = isOverflowState();
final AsyncState asyncState = this.asyncState;
asyncState.setup();
final AsyncContext asyncContext = asyncContextFactory.newAsyncContext(traceRoot, asyncIdObject, isDisabled, asyncState);
return asyncContext;
}
return recordNextAsyncContext();
}
use of com.navercorp.pinpoint.bootstrap.context.AsyncState in project pinpoint by naver.
the class AsyncContextSpanEventEndPointInterceptor method finishAsyncState.
private void finishAsyncState(final AsyncContext asyncContext) {
if (asyncContext instanceof AsyncStateSupport) {
final AsyncStateSupport asyncStateSupport = (AsyncStateSupport) asyncContext;
AsyncState asyncState = asyncStateSupport.getAsyncState();
asyncState.finish();
if (isDebug) {
logger.debug("finished asyncState. asyncTraceId={}", asyncContext);
}
}
}
Aggregations