Adapt test to new DDTracer constructor and unserializable field
MODIFY
dd-trace-ot/src/main/java/datadog/opentracing/DDSpan.java
dd-trace-ot/src/main/java/datadog/opentracing/DDSpan.java
@@ -142,11 +142,13 @@ public class DDSpan implements Span, MutableSpan {
@Override
@Deprecated
+ @JsonIgnore
public MutableSpan getRootSpan() {
return getApplicationRootSpan();
}
@Override
+ @JsonIgnore
public MutableSpan getApplicationRootSpan() {
return context().getTrace().getRootSpan();
}

MODIFY
dd-trace-ot/src/test/groovy/datadog/opentracing/decorators/SpanDecoratorTest.groovy
dd-trace-ot/src/test/groovy/datadog/opentracing/decorators/SpanDecoratorTest.groovy
@@ -49,6 +49,7 @@ class SpanDecoratorTest extends Specification {
new AllSampler(),
"some-runtime-id",
emptyMap(),
+ emptyMap(),
mapping,
emptyMap()
)
@@ -80,6 +81,7 @@ class SpanDecoratorTest extends Specification {
new AllSampler(),
"some-runtime-id",
emptyMap(),
+ emptyMap(),
mapping,
emptyMap()
)
@@ -126,6 +128,7 @@ class SpanDecoratorTest extends Specification {
new AllSampler(),
"some-runtime-id",
emptyMap(),
+ emptyMap(),
mapping,
emptyMap()
)

MODIFY
dd-trace-ot/src/test/groovy/datadog/trace/DDTracerTest.groovy
dd-trace-ot/src/test/groovy/datadog/trace/DDTracerTest.groovy
@@ -29,8 +29,6 @@ class DDTracerTest extends Specification {
@Rule
public final EnvironmentVariables environmentVariables = new EnvironmentVariables()
- private final String INTERNAL_HOST_NAME = "_dd.hostname"
-
def setupSpec() {
// assert that a trace agent isn't running locally as that messes up the test.
try {

Adapt test to new DDTracer constructor and unserializable field