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;
}
Aggregations