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 @@ -1548,7 +1548,7 @@ private DDSpanContext buildSpanContext() {
15481548 String parentServiceName = null ;
15491549 boolean isRemote = false ; // TODO Simplify?
15501550 // Propagate internal trace.
1551- // Note: if we are not in the context of distributed tracing and we are starting the first
1551+ // Note: if we are not in the context of distributed tracing, and we are starting the first
15521552 // root span, parentContext will be null at this point.
15531553 if (parentContext instanceof DDSpanContext ) {
15541554 final DDSpanContext ddsc = (DDSpanContext ) parentContext ;
@@ -1731,9 +1731,7 @@ private DDSpanContext buildSpanContext() {
17311731 context .setAllTags (tags );
17321732 context .setAllTags (coreTags );
17331733 context .setAllTags (rootSpanTags );
1734- if (contextualTags != null ) {
1735- context .setAllTags (contextualTags );
1736- }
1734+ context .setAllTags (contextualTags );
17371735 return context ;
17381736 }
17391737 }
You can’t perform that action at this time.
0 commit comments