(ctx context.Context, stmt driver.StmtExecContext, query string, args []driver.NamedValue)
| 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() |
| 53 | result, err := stmt.ExecContext(ctx, args) |
| 54 | |
| 55 | trackGoID(query) |
| 56 | |
| 57 | logrus.WithField("duration", time.Since(startedAt)).WithField(logrus.ErrorKey, err).Debug("executed sql query ", query, " args: ", args) |
| 58 | |
| 59 | return result, err |
| 60 | } |
| 61 | |
| 62 | func (in *traceInterceptor) RowsNext(c context.Context, rows driver.Rows, dest []driver.Value) error { |
| 63 | err := rows.Next(dest) |
nothing calls this directly
no test coverage detected