Skip to content

Commit a1a175c

Browse files
authored
Remove unused activeScope method (#8531) (#8646)
1 parent 6d3edeb commit a1a175c

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

Diff for: dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java

-5
Original file line numberDiff line numberDiff line change
@@ -965,11 +965,6 @@ public AgentSpan activeSpan() {
965965
return scopeManager.activeSpan();
966966
}
967967

968-
@Override
969-
public AgentScope activeScope() {
970-
return scopeManager.active();
971-
}
972-
973968
@Override
974969
public void checkpointActiveForRollback() {
975970
this.scopeManager.checkpointActiveForRollback();

Diff for: internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/AgentTracer.java

-13
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,6 @@ public static AgentSpan activeSpan() {
189189
return get().activeSpan();
190190
}
191191

192-
/** @deprecated To be removed, do not use. */
193-
@Deprecated
194-
public static AgentScope activeScope() {
195-
return get().activeScope();
196-
}
197-
198192
/**
199193
* Checks whether asynchronous propagation is enabled, meaning this context will propagate across
200194
* asynchronous boundaries.
@@ -368,8 +362,6 @@ AgentSpan startSpan(
368362

369363
AgentSpan activeSpan();
370364

371-
AgentScope activeScope();
372-
373365
default AgentSpan blackholeSpan() {
374366
final AgentSpan active = activeSpan();
375367
return new BlackHoleSpan(active != null ? active.getTraceId() : DDTraceId.ZERO);
@@ -539,11 +531,6 @@ public AgentSpan activeSpan() {
539531
return NoopSpan.INSTANCE;
540532
}
541533

542-
@Override
543-
public AgentScope activeScope() {
544-
return null;
545-
}
546-
547534
@Override
548535
public AgentSpan blackholeSpan() {
549536
return NoopSpan.INSTANCE; // no-op tracer stays no-op

0 commit comments

Comments
 (0)