Skip to content

Commit

Permalink
Cache OTel sanitized SQL alongside JDBC prepared SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Aug 15, 2024
1 parent c51e672 commit 8ed8273
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private SqlStatementSanitizer(boolean sanitizationEnabled) {

public SqlStatementInfo sanitize(String statement) {
if (sanitizationEnabled) {
DBQueryInfo dbQueryInfo = DBQueryInfo.ofStatement(statement);
DBQueryInfo dbQueryInfo = DBQueryInfo.ofPreparedStatement(statement);
return SqlStatementInfo.create(
dbQueryInfo.getSql().toString(), dbQueryInfo.getOperation().toString(), null);
} else {
Expand Down

0 comments on commit 8ed8273

Please sign in to comment.