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 @@ -1557,7 +1557,7 @@ private DDSpanContext buildSpanContext() {
15571557
15581558 String parentServiceName = null ;
15591559 // Propagate internal trace.
1560- // Note: if we are not in the context of distributed tracing and we are starting the first
1560+ // Note: if we are not in the context of distributed tracing, and we are starting the first
15611561 // root span, parentContext will be null at this point.
15621562 if (parentContext instanceof DDSpanContext ) {
15631563 final DDSpanContext ddsc = (DDSpanContext ) parentContext ;
@@ -1738,9 +1738,7 @@ private DDSpanContext buildSpanContext() {
17381738 context .setAllTags (tags );
17391739 context .setAllTags (coreTags );
17401740 context .setAllTags (rootSpanTags );
1741- if (contextualTags != null ) {
1742- context .setAllTags (contextualTags );
1743- }
1741+ context .setAllTags (contextualTags );
17441742 return context ;
17451743 }
17461744 }
You can’t perform that action at this time.
0 commit comments