From 10fc1e79e0464c63238919865295f5c5e8f611b5 Mon Sep 17 00:00:00 2001 From: Jaehong-Kim Date: Mon, 22 May 2023 09:59:53 +0900 Subject: [PATCH] [#9962] backport: 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);