Skip to content

Commit cf88c2c

Browse files
committed
chore(core): Clean up
1 parent 057c8d9 commit cf88c2c

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
@@ -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
}

0 commit comments

Comments
 (0)