Skip to content

Commit ea2894e

Browse files
committed
chore: Clean up
1 parent 5b031c9 commit ea2894e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)