Add DDSpanBuilder to helper classes of both instrumentations
MODIFY
dd-java-agent/instrumentation/trace-annotation/src/main/java/datadog/trace/instrumentation/trace_annotation/TraceAnnotationsInstrumentation.java
dd-java-agent/instrumentation/trace-annotation/src/main/java/datadog/trace/instrumentation/trace_annotation/TraceAnnotationsInstrumentation.java
@@ -85,7 +85,9 @@ public final class TraceAnnotationsInstrumentation extends Instrumenter.Default
@Override
public String[] helperClassNames() {
return new String[] {
- "datadog.trace.agent.decorator.BaseDecorator", packageName + ".TraceDecorator",
+ "datadog.trace.agent.decorator.BaseDecorator",
+ "datadog.opentracing.DDTracer$DDSpanBuilder",
+ packageName + ".TraceDecorator",
};
}

MODIFY
dd-java-agent/instrumentation/trace-annotation/src/main/java/datadog/trace/instrumentation/trace_annotation/TraceConfigInstrumentation.java
dd-java-agent/instrumentation/trace-annotation/src/main/java/datadog/trace/instrumentation/trace_annotation/TraceConfigInstrumentation.java
@@ -123,7 +123,9 @@ public class TraceConfigInstrumentation implements Instrumenter {
@Override
public String[] helperClassNames() {
return new String[] {
- "datadog.trace.agent.decorator.BaseDecorator", packageName + ".TraceDecorator",
+ "datadog.trace.agent.decorator.BaseDecorator",
+ "datadog.opentracing.DDTracer$DDSpanBuilder",
+ packageName + ".TraceDecorator",
};
}

Add DDSpanBuilder to helper classes of both instrumentations