aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-05-26 12:34:43 +0100
committerGitHub <noreply@github.com>2022-05-26 12:34:43 +0100
commit9e46d5025a5a817a618ffc79d6aae5970e6498d2 (patch)
treeebc967ebebff53cff2cb18b7b93b9dbd9b0c6459 /internal
parent5a878b6e14c6c6243f5b7e574501b66a03046b6f (diff)
Upgrade various dependencies (#2496)
* Upgrade various dependencies * Yaml dependency too
Diffstat (limited to 'internal')
-rw-r--r--internal/sqlutil/trace.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/sqlutil/trace.go b/internal/sqlutil/trace.go
index c1673861..7b637106 100644
--- a/internal/sqlutil/trace.go
+++ b/internal/sqlutil/trace.go
@@ -37,7 +37,7 @@ type traceInterceptor struct {
sqlmw.NullInterceptor
}
-func (in *traceInterceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, args []driver.NamedValue) (driver.Rows, error) {
+func (in *traceInterceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, args []driver.NamedValue) (context.Context, driver.Rows, error) {
startedAt := time.Now()
rows, err := stmt.QueryContext(ctx, args)
@@ -45,7 +45,7 @@ func (in *traceInterceptor) StmtQueryContext(ctx context.Context, stmt driver.St
logrus.WithField("duration", time.Since(startedAt)).WithField(logrus.ErrorKey, err).Debug("executed sql query ", query, " args: ", args)
- return rows, err
+ return ctx, rows, err
}
func (in *traceInterceptor) StmtExecContext(ctx context.Context, stmt driver.StmtExecContext, query string, args []driver.NamedValue) (driver.Result, error) {