Skip to content

Commit e99adf5

Browse files
committed
flip order of comment append condition in JDBC instrumentation
1 parent 6f2b59e commit e99adf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public static String onEnter(
127127
traceConfig(activeSpan()).getServiceMapping().getOrDefault(dbService, dbService);
128128
}
129129

130-
boolean append = "sqlserver".equals(dbInfo.getType()) || DECORATE.shouldAppendSqlComment();
130+
boolean append = DECORATE.shouldAppendSqlComment() || "sqlserver".equals(dbInfo.getType());
131131
sql =
132132
SQLCommenter.inject(
133133
sql, dbService, dbInfo.getType(), dbInfo.getHost(), dbInfo.getDb(), null, append);

0 commit comments

Comments
 (0)