Kevin Wan
0dfaf135dd
feat: support breaker with sql statements ( #3936 )
9 months ago
Kevin Wan
bff5b81ad9
feat: support using session to execute statements in transaction ( #3252 )
2 years ago
guoguangwu
ca4ce7bce8
fix : misspelled word ( #3075 )
2 years ago
chen quan
ea7dab3d26
feat(sqlx): error log print traceId and spanId ( #2845 )
2 years ago
Kevin Wan
ae87114282
chore: change interface{} to any ( #2818 )
...
* chore: change interface{} to any
* chore: update goctl version to 1.5.0
* chore: update goctl deps
2 years ago
chen quan
e567a0c718
refactor: refactor trace in redis & sql & mongo ( #1865 )
...
* refactor: refactor tracing in redis & sql & mongo
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix: fix some tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: add missing content
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: adjust `log` and `return`
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: simpler span name
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
3 years ago
chen quan
162e9cef86
feat: add trace in redis & mon & sql ( #1799 )
...
* feat: add sub spanId with redis
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* add tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add sub spanId in sql
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add sub spanId in mon
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: optimize code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add breaker in warpSession
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: optimize code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* test: add tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix: fix typo
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
3 years ago
Kevin Wan
607bae27fa
feat: support ctx in sqlx/sqlc, listed in ROADMAP ( #1535 )
...
* feat: support ctx in sqlx/sqlc
* chore: update roadmap
* fix: context.Canceled should be acceptable
* use %w to wrap errors
* chore: remove unused vars
3 years ago
yedf2
6aba5f74fc
feat: add NewSessionFromTx to interact with other orm ( #1202 )
...
Co-authored-by: yedongfu <dongfuye@163.com>
3 years ago
Kevin Wan
f070d447ef
refactor for better error reporting on sql error ( #1016 )
...
* refactor for better error reporting on sql error
* fix errors
* add docs
3 years ago
Kevin Wan
f6d9e19ecb
expose sql.DB to let orm operate on it ( #1015 )
...
* expose sql.DB to let orm operate on it
* add missing RawDB methods
* add NewSqlConnFromDB for cooperate with dtm
3 years ago
Kevin Wan
5b22823018
fix bug that empty query in transaction ( #801 )
3 years ago
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
kevin
7e3a369a8f
initial import
4 years ago