Skip to content

Commit

Permalink
jdbc
Browse files Browse the repository at this point in the history
  • Loading branch information
songlonqi-java committed Jan 9, 2024
1 parent db258d8 commit 99bd821
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ public void onStart(AttributesBuilder attributes, Context parentContext, REQUEST
if (this.args == null || this.args.getArgs()==null){
return;
}
StringBuilder sb = new StringBuilder();
for (Map.Entry<Integer,String> entry : args.getArgs().entrySet()) {
internalSet(attributes, AttributeKey.stringKey("origin_sql_"+entry.getKey()),entry.getValue());
sb.append(entry.getKey()).append(":").append(entry.getValue()).append(" ");
}
internalSet(attributes, AttributeKey.stringKey("origin_sql_args"),sb.toString());
}

@Override
Expand Down

0 comments on commit 99bd821

Please sign in to comment.