Skip to content

Commit f7b9cb0

Browse files
committed
feat(bootstrap): Removing optimization
Unclear of the benefits compared to the existing optimization.
1 parent 32b8a2a commit f7b9cb0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,4 @@ default <T> T get(@Nonnull ContextKey<T> key) {
216216
default <T> Context with(@Nonnull ContextKey<T> key, @Nullable T value) {
217217
return SPAN_KEY == key ? (Context) value : Context.root().with(SPAN_KEY, this, key, value);
218218
}
219-
220-
@Override
221-
default Context with(@Nullable ImplicitContextKeyed value) {
222-
if (value instanceof AgentSpan) {
223-
return (AgentSpan) value;
224-
}
225-
return Context.super.with(value);
226-
}
227219
}

0 commit comments

Comments
 (0)