Add null check on span type
Null spanTypes cause the tag to be removed.
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/decorator/BaseDecorator.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/decorator/BaseDecorator.java
@@ -50,7 +50,9 @@ public abstract class BaseDecorator {
public Span afterStart(final Span span) {
assert span != null;
+ if (spanType() != null) {
span.setTag(DDTags.SPAN_TYPE, spanType());
+ }
Tags.COMPONENT.set(span, component());
if (traceAnalyticsEnabled) {
span.setTag(DDTags.ANALYTICS_SAMPLE_RATE, traceAnalyticsSampleRate);

Add null check on span type

Null spanTypes cause the tag to be removed.