File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
dd-trace-core/src/main/java/datadog/trace/core Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1553,7 +1553,7 @@ private DDSpanContext buildSpanContext() {
15531553
15541554 String parentServiceName = null ;
15551555 // Propagate internal trace.
1556- // Note: if we are not in the context of distributed tracing and we are starting the first
1556+ // Note: if we are not in the context of distributed tracing, and we are starting the first
15571557 // root span, parentContext will be null at this point.
15581558 if (parentContext instanceof DDSpanContext ) {
15591559 final DDSpanContext ddsc = (DDSpanContext ) parentContext ;
@@ -1734,9 +1734,7 @@ private DDSpanContext buildSpanContext() {
17341734 context .setAllTags (tags );
17351735 context .setAllTags (coreTags );
17361736 context .setAllTags (rootSpanTags );
1737- if (contextualTags != null ) {
1738- context .setAllTags (contextualTags );
1739- }
1737+ context .setAllTags (contextualTags );
17401738 return context ;
17411739 }
17421740 }
You can’t perform that action at this time.
0 commit comments