Skip to content

Commit 815385d

Browse files
committed
delegate
1 parent a7ada65 commit 815385d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,8 @@ public AgentScope activateSpan(AgentSpan span, ScopeSource source, boolean isAsy
932932
@Override
933933
public AgentScope.Continuation captureActiveSpan() {
934934
AgentScope activeScope = this.scopeManager.active();
935-
if (null != activeScope && activeScope.isAsyncPropagating()) {
936-
return scopeManager.captureSpan(activeScope.span());
935+
if (null != activeScope) {
936+
return activeScope.capture();
937937
} else {
938938
return AgentTracer.noopContinuation();
939939
}

0 commit comments

Comments
 (0)