Skip to content

Commit abb3f64

Browse files
committed
Remove unused activeScope method (#8531)
1 parent a5e925f commit abb3f64

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,11 +954,6 @@ public AgentSpan activeSpan() {
954954
return scopeManager.activeSpan();
955955
}
956956

957-
@Override
958-
public AgentScope activeScope() {
959-
return scopeManager.active();
960-
}
961-
962957
@Override
963958
public void checkpointActiveForRollback() {
964959
this.scopeManager.checkpointActiveForRollback();

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,6 @@ public static AgentSpan activeSpan() {
179179
return get().activeSpan();
180180
}
181181

182-
/** @deprecated To be removed, do not use. */
183-
@Deprecated
184-
public static AgentScope activeScope() {
185-
return get().activeScope();
186-
}
187-
188182
/**
189183
* Checks whether asynchronous propagation is enabled, meaning this context will propagate across
190184
* asynchronous boundaries.
@@ -355,8 +349,6 @@ AgentSpan startSpan(
355349

356350
AgentSpan activeSpan();
357351

358-
AgentScope activeScope();
359-
360352
default AgentSpan blackholeSpan() {
361353
final AgentSpan active = activeSpan();
362354
return new BlackHoleSpan(active != null ? active.getTraceId() : DDTraceId.ZERO);
@@ -523,11 +515,6 @@ public AgentSpan activeSpan() {
523515
return NoopSpan.INSTANCE;
524516
}
525517

526-
@Override
527-
public AgentScope activeScope() {
528-
return null;
529-
}
530-
531518
@Override
532519
public AgentSpan blackholeSpan() {
533520
return NoopSpan.INSTANCE; // no-op tracer stays no-op

0 commit comments

Comments
 (0)