Skip to content

Commit 3b66caa

Browse files
committed
chore(core): Clean up
1 parent 15275c1 commit 3b66caa

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
@@ -1553,7 +1553,7 @@ private DDSpanContext buildSpanContext() {
15531553

15541554
String parentServiceName = null;
15551555
// Propagate internal trace.
1556-
// Note: if we are not in the context of distributed tracing and we are starting the first
1556+
// Note: if we are not in the context of distributed tracing, and we are starting the first
15571557
// root span, parentContext will be null at this point.
15581558
if (parentContext instanceof DDSpanContext) {
15591559
final DDSpanContext ddsc = (DDSpanContext) parentContext;
@@ -1734,9 +1734,7 @@ private DDSpanContext buildSpanContext() {
17341734
context.setAllTags(tags);
17351735
context.setAllTags(coreTags);
17361736
context.setAllTags(rootSpanTags);
1737-
if (contextualTags != null) {
1738-
context.setAllTags(contextualTags);
1739-
}
1737+
context.setAllTags(contextualTags);
17401738
return context;
17411739
}
17421740
}

0 commit comments

Comments
 (0)