Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Jun 30, 2023
1 parent 5015808 commit 494f3e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/usf/traceapi/core/DataSourceWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Connection getConnection(String username, String password) throws SQLExce
private Connection getConnection(SQLSupplier<Connection> cnSupp) throws SQLException {
var out = new OutcomingQuery();
DatabaseActionTracer tracer = out::append;
out.setStart(ofEpochMilli(currentTimeMillis()));
var beg = currentTimeMillis();
try {
var cn = tracer.connection(cnSupp);
var meta = cn.getMetaData();
Expand All @@ -67,6 +67,7 @@ private Connection getConnection(SQLSupplier<Connection> cnSupp) throws SQLExcep
out.setEnd(ofEpochMilli(currentTimeMillis()));
}
finally {
out.setStart(ofEpochMilli(beg));
out.setThreadName(threadName());
var req = localTrace.get();
if(nonNull(req)) {
Expand Down

0 comments on commit 494f3e1

Please sign in to comment.