small fixes due to ES instrumentation
MODIFY
dd-java-agent/src/main/resources/otarules.btm
dd-java-agent/src/main/resources/otarules.btm
@@ -81,7 +81,6 @@ AT ENTRY
IF currentSpan() == null
DO
span = getTracer().buildSpan($2.getClass().getSimpleName())
- .asChildOf()
.withTag(io.opentracing.tag.Tags.SPAN_KIND.getKey(), io.opentracing.tag.Tags.SPAN_KIND_CLIENT)
.start();
# decorator.onRequest(span);

MODIFY
dd-trace/src/main/java/com/datadoghq/trace/DDTracer.java
dd-trace/src/main/java/com/datadoghq/trace/DDTracer.java
@@ -238,7 +238,7 @@ public class DDTracer implements io.opentracing.Tracer {
}
public DDTracer.DDSpanBuilder asChildOf(Span span) {
- return asChildOf(span.context());
+ return asChildOf(span==null? null : span.context());
}
public DDTracer.DDSpanBuilder asChildOf(SpanContext spanContext) {

small fixes due to ES instrumentation