Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinZakharov committed May 24, 2024
1 parent ef3aff7 commit 65f7400
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,15 @@ public static DBInfo parseDBInfoFromConnection(final Connection connection) {
}

/**
* The method used to provide raw sql to prevent SQL-injection attacks
* SQL query should never be exposed because it may contain sensitive data.
* The method used to provide raw sql to prevent SQL-injection attacks SQL query should never be
* exposed because it may contain sensitive data.
*/
public AgentSpan onStatementRaw(AgentSpan span, String sql) {
System.out.println("JDBCDecorator.onStatementRaw: " + sql);
BiConsumer<RequestContext, String> sqlQueryCallback =
tracer()
.getCallbackProvider(RequestContextSlot.APPSEC)
.getCallback(EVENTS.databaseSqlQuery());
tracer()
.getCallbackProvider(RequestContextSlot.APPSEC)
.getCallback(EVENTS.databaseSqlQuery());
if (sqlQueryCallback != null) {
RequestContext ctx = span.getRequestContext();
if (ctx != null) {
Expand Down

0 comments on commit 65f7400

Please sign in to comment.