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 @@ -1546,7 +1546,7 @@ private DDSpanContext buildSpanContext() {
15461546
15471547 String parentServiceName = null ;
15481548 // Propagate internal trace.
1549- // Note: if we are not in the context of distributed tracing and we are starting the first
1549+ // Note: if we are not in the context of distributed tracing, and we are starting the first
15501550 // root span, parentContext will be null at this point.
15511551 if (parentContext instanceof DDSpanContext ) {
15521552 final DDSpanContext ddsc = (DDSpanContext ) parentContext ;
@@ -1727,9 +1727,7 @@ private DDSpanContext buildSpanContext() {
17271727 context .setAllTags (tags );
17281728 context .setAllTags (coreTags );
17291729 context .setAllTags (rootSpanTags );
1730- if (contextualTags != null ) {
1731- context .setAllTags (contextualTags );
1732- }
1730+ context .setAllTags (contextualTags );
17331731 return context ;
17341732 }
17351733 }
You can’t perform that action at this time.
0 commit comments