@Override
public void logSQL(int connectionId, String now, long elapsed, Category category, String prepared, String sql) {
if (sql != null && !sql.isEmpty()) {
RequestTrace request = RequestMonitor.getRequest();
if (request != null) {
request.dbCallCompleted(elapsed);
trackDbMetrics(elapsed);
addSqlToCallStack(elapsed, prepared, sql);
}
}
}