From 8a42d43e487f22814e5c51e273aeae27ee23c1af Mon Sep 17 00:00:00 2001 From: jaehong-kim Date: Fri, 19 May 2023 11:14:02 +0900 Subject: [PATCH] [#9958] fix duplicated active trace --- .../pinpoint/profiler/context/DefaultBaseTraceFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DefaultBaseTraceFactory.java b/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DefaultBaseTraceFactory.java index cf450659c456..d6f6dc452856 100644 --- a/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DefaultBaseTraceFactory.java +++ b/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DefaultBaseTraceFactory.java @@ -137,8 +137,7 @@ public Trace continueAsyncContextTraceObject(TraceRoot traceRoot, LocalAsyncId l @Override public Trace continueDisableAsyncContextTraceObject(LocalTraceRoot traceRoot) { - final ActiveTraceHandle handle = registerActiveTrace(traceRoot); - final AsyncState asyncState = newAsyncState(traceRoot, handle, ListenableAsyncState.AsyncStateListener.EMPTY); + final AsyncState asyncState = newAsyncState(traceRoot, ActiveTraceHandle.EMPTY_HANDLE, ListenableAsyncState.AsyncStateListener.EMPTY); SpanRecorder spanRecorder = recorderFactory.newDisableSpanRecorder(traceRoot); SpanEventRecorder spanEventRecorder = recorderFactory.newDisableSpanEventRecorder(traceRoot, asyncState);