Search in sources :

Example 1 with AsyncStorage

use of com.navercorp.pinpoint.profiler.context.storage.AsyncStorage in project pinpoint by naver.

the class DefaultBaseTraceFactory method continueAsyncTraceObject.

// internal async trace.
@Override
public Trace continueAsyncTraceObject(AsyncTraceId traceId, int asyncId, long startTime) {
    final TraceId parentTraceId = traceId.getParentTraceId();
    final Storage storage = storageFactory.createStorage();
    final Storage asyncStorage = new AsyncStorage(storage);
    final Trace trace = new DefaultTrace(callStackFactory, asyncStorage, parentTraceId, AtomicIdGenerator.UNTRACKED_ID, asyncIdGenerator, true, spanFactory, recorderFactory);
    final AsyncTrace asyncTrace = new AsyncTrace(trace, asyncId, traceId.nextAsyncSequence(), startTime);
    return asyncTrace;
}
Also used : Trace(com.navercorp.pinpoint.bootstrap.context.Trace) AsyncStorage(com.navercorp.pinpoint.profiler.context.storage.AsyncStorage) Storage(com.navercorp.pinpoint.profiler.context.storage.Storage) TraceId(com.navercorp.pinpoint.bootstrap.context.TraceId) AsyncTraceId(com.navercorp.pinpoint.bootstrap.context.AsyncTraceId) AsyncStorage(com.navercorp.pinpoint.profiler.context.storage.AsyncStorage)

Aggregations

AsyncTraceId (com.navercorp.pinpoint.bootstrap.context.AsyncTraceId)1 Trace (com.navercorp.pinpoint.bootstrap.context.Trace)1 TraceId (com.navercorp.pinpoint.bootstrap.context.TraceId)1 AsyncStorage (com.navercorp.pinpoint.profiler.context.storage.AsyncStorage)1 Storage (com.navercorp.pinpoint.profiler.context.storage.Storage)1