Skip to content

Commit

Permalink
[pinpoint-apm#9962] backport: fix duplicated active trace
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehong-kim committed May 22, 2023
1 parent 90e7711 commit aaaafad
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aaaafad

Please # to comment.