(ctx context.Context, stmt driver.StmtQueryContext, query string, args []driver.NamedValue)
| 38 | } |
| 39 | |
| 40 | func (in *traceInterceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, args []driver.NamedValue) (context.Context, driver.Rows, error) { |
| 41 | startedAt := time.Now() |
| 42 | rows, err := stmt.QueryContext(ctx, args) |
| 43 | |
| 44 | trackGoID(query) |
| 45 | |
| 46 | logrus.WithField("duration", time.Since(startedAt)).WithField(logrus.ErrorKey, err).Debug("executed sql query ", query, " args: ", args) |
| 47 | |
| 48 | return ctx, rows, err |
| 49 | } |
| 50 | |
| 51 | func (in *traceInterceptor) StmtExecContext(ctx context.Context, stmt driver.StmtExecContext, query string, args []driver.NamedValue) (driver.Result, error) { |
| 52 | startedAt := time.Now() |
nothing calls this directly
no test coverage detected