Skip to content

Commit 74e7b48

Browse files
committed
fixed trace injection in the comment
1 parent 5ec3fb6 commit 74e7b48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dd-java-agent/instrumentation/jdbc/src/main/java/datadog/trace/instrumentation/jdbc/StatementInstrumentation.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ public static AgentScope onEnter(
110110
if (injectTraceContext) {
111111
Integer priority = span.forceSamplingDecision();
112112
if (priority != null) {
113-
traceParent = DECORATE.traceParent(span, priority);
113+
if (!isSqlServer) {
114+
traceParent = DECORATE.traceParent(span, priority);
115+
}
114116
// set the dbm trace injected tag on the span
115117
span.setTag(DBM_TRACE_INJECTED, true);
116118
}

0 commit comments

Comments
 (0)