Add null check on span type
Null spanTypes cause the tag to be removed.
@@ -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);
