Skip to content

Commit 6ab4a61

Browse files
committed
chore(core): Clean up
1 parent b5d3043 commit 6ab4a61

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

0 commit comments

Comments
 (0)