feat(sqlx): error log print traceId and spanId (#2845)

This commit is contained in:
chen quan
2023-02-11 16:12:14 +08:00
committed by GitHub
parent d7d6eccce6
commit ea7dab3d26
3 changed files with 11 additions and 11 deletions

View File

@@ -139,7 +139,7 @@ func transact(ctx context.Context, db *commonSqlConn, b beginnable,
fn func(context.Context, Session) error) (err error) {
conn, err := db.connProv()
if err != nil {
db.onError(err)
db.onError(ctx, err)
return err
}