We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe0cf9 commit 0ff5e7bCopy full SHA for 0ff5e7b
dd-trace-core/src/main/java/datadog/trace/core/scopemanager/ScopeContinuation.java
@@ -3,6 +3,7 @@
3
import datadog.trace.bootstrap.instrumentation.api.AgentScope;
4
import datadog.trace.bootstrap.instrumentation.api.AgentSpan;
5
import datadog.trace.bootstrap.instrumentation.api.AgentTraceCollector;
6
+import datadog.trace.bootstrap.instrumentation.api.AgentTracer.NoopAgentScope;
7
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
8
9
/**
@@ -60,7 +61,7 @@ public AgentScope activate() {
60
61
} else {
62
// continuation cancelled or too many activations; rollback count
63
COUNT.decrementAndGet(this);
- return null;
64
+ return NoopAgentScope.INSTANCE;
65
}
66
67
0 commit comments