Skip to content

Remove unused activeScope method #8646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -965,11 +965,6 @@ public AgentSpan activeSpan() {
return scopeManager.activeSpan();
}

@Override
public AgentScope activeScope() {
return scopeManager.active();
}

@Override
public void checkpointActiveForRollback() {
this.scopeManager.checkpointActiveForRollback();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ public static AgentSpan activeSpan() {
return get().activeSpan();
}

/** @deprecated To be removed, do not use. */
@Deprecated
public static AgentScope activeScope() {
return get().activeScope();
}

/**
* Checks whether asynchronous propagation is enabled, meaning this context will propagate across
* asynchronous boundaries.
Expand Down Expand Up @@ -368,8 +362,6 @@ AgentSpan startSpan(

AgentSpan activeSpan();

AgentScope activeScope();

default AgentSpan blackholeSpan() {
final AgentSpan active = activeSpan();
return new BlackHoleSpan(active != null ? active.getTraceId() : DDTraceId.ZERO);
Expand Down Expand Up @@ -539,11 +531,6 @@ public AgentSpan activeSpan() {
return NoopSpan.INSTANCE;
}

@Override
public AgentScope activeScope() {
return null;
}

@Override
public AgentSpan blackholeSpan() {
return NoopSpan.INSTANCE; // no-op tracer stays no-op
Expand Down