Kevin Wan
bfddb9dae4
feat: add errorx.In to facility error checking ( #4105 )
2024-04-27 20:43:45 +08:00
Kevin Wan
d371ab5479
feat: use breaker with ctx to prevent deadline exceeded ( #4091 )
...
Signed-off-by: kevin <wanjunfeng@gmail.com>
2024-04-18 23:18:49 +08:00
Kevin Wan
1540bdc4c9
optimize: improve breaker algorithm on recovery time ( #4077 )
2024-04-18 22:33:25 +08:00
Kevin Wan
927f8bc821
fix: fix ignored context.DeadlineExceeded ( #4066 )
2024-04-11 11:14:20 +08:00
Kevin Wan
682460c1c8
fix: fix ignored scanner.Err() ( #4063 )
2024-04-10 17:28:52 +08:00
Kevin Wan
a66ae0d4c4
fix: timeout on query should return context.DeadlineExceeded ( #4060 )
2024-04-10 04:17:39 +00:00
fearlessfei
968727412d
add custom health response information ( #4034 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2024-04-03 14:33:55 +00:00
Kevin Wan
d184f96b13
chore: coding style ( #3987 )
2024-03-08 16:11:28 +08:00
MarkJoyMa
c7dacb0146
fix: mysql WithAcceptable bug ( #3986 )
2024-03-08 04:23:41 +00:00
Kevin Wan
5263805b3b
chore: simplify linux nocgroup logic ( #3949 )
2024-03-02 00:23:52 +08:00
mongobaba
52e5d85221
feat: add break metrics for sqlx.statement ( #3947 )
2024-03-01 14:55:32 +00:00
Kevin Wan
0dfaf135dd
feat: support breaker with sql statements ( #3936 )
2024-02-25 11:24:44 +08:00
MarkJoyMa
dace520654
fix: revert sqlx metric namespace ( #3847 )
2024-01-14 02:38:10 +00:00
Kevin Wan
22c98beb24
feat: add dbtest to facility db test ( #3768 )
2023-12-09 22:52:06 +08:00
Kevin Wan
9394e59597
chore: update goctl version to 1.6.0 ( #3674 )
2023-10-27 21:59:35 +08:00
MarkJoyMa
c05e03bb5a
feat: add metrics ( #3624 )
2023-10-26 15:51:28 +00:00
Kevin Wan
42e0a6f90c
chore: refactor errors to use errors.Is ( #3654 )
2023-10-21 00:00:57 +08:00
Kevin Wan
d71c0da7b7
chore: refactor error comparison ( #3629 )
2023-10-15 13:41:06 +00:00
Kevin Wan
abd1fa96a9
fix: UpdateStmt doesn't update the statement correctly in sqlx/bulkinserter.go ( #3607 )
2023-10-09 21:57:26 +08:00
Kevin Wan
c3f57e9b0a
chore: fix potential nil pointer errors ( #3454 )
2023-07-30 21:37:41 +08:00
Kevin Wan
ff04356704
fix: format error should not trigger circuit breaker in sqlx ( #3437 )
2023-07-23 20:40:03 +08:00
chen quan
b71453985c
feat(sqlx): support for custom Acceptable function ( #3405 )
2023-07-10 01:16:45 +00:00
Kevin Wan
cd0f3726ed
chore: add more tests ( #3288 )
2023-05-27 21:49:11 +08:00
me-cs
0217044900
update:Use the Milliseconds method of duration to get the number of milliseconds ( #3285 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-05-26 14:32:46 +00:00
Kevin Wan
55e2c7ee83
chore: add more tests ( #3258 )
2023-05-18 23:11:32 +08:00
Kevin Wan
bff5b81ad9
feat: support using session to execute statements in transaction ( #3252 )
2023-05-17 14:15:24 +00:00
cong
22fad4bb9c
feat(trace): add trace test helpers ( #3108 )
2023-04-08 14:52:25 +00:00
guoguangwu
ca4ce7bce8
fix : misspelled word ( #3075 )
2023-03-29 02:25:26 +00:00
Kevin Wan
cca45be3c5
chore: refactor orm code ( #3015 )
2023-03-11 18:03:20 +08:00
YK.xiong
e735915d89
fix QueryRowsPartial getTaggedFieldValueMap func ( #2884 )
...
Co-authored-by: yongkun.xiong <weilone@vip.qq.com>
2023-03-11 07:28:09 +00:00
qiying.wang
148afcf1a7
chore: remove redundant prefix of "error: " in error creation
2023-03-02 12:46:19 +00:00
Kevin Wan
a5e5f04bcf
chore: reformat code ( #2925 )
2023-02-26 09:35:59 +08:00
chenquan
3bc40d9eaf
fix: fixed the bug that old trace instances may be fetched
2023-02-22 13:01:22 +00:00
cong
64ab00e8e3
refactor: simplify sqlx fail fast ping and simplify miniredis setup in test ( #2897 )
...
* chore(redistest): simplify miniredis setup in test
* refactor(sqlx): simplify sqlx fail fast ping
* chore: close connection if not available
2023-02-19 17:18:19 +08:00
chen quan
ea7dab3d26
feat(sqlx): error log print traceId and spanId ( #2845 )
2023-02-11 16:12:14 +08:00
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
2023-01-24 16:32:02 +08:00
Kevin Wan
367afb544c
feat: support ptr of ptr of ... in mapping ( #2779 )
...
* feat: support ptr of ptr of ... in mapping
* feat: support ptr of ptr of time.Duration in mapping
* feat: support ptr of ptr of json.Number in mapping
* chore: improve setting in mapping
* feat: support ptr of ptr encoding.TextUnmarshaler in mapping
* chore: add more tests
* fix: string ptr
* chore: update tests
2023-01-12 15:56:51 +08:00
swliao425
a515a3c735
chore: sqlx's metric name is different from redis ( #2505 )
2022-10-13 22:52:36 +08:00
Kevin Wan
1f6688e5c1
chore: refactor the imports ( #2406 )
2022-09-17 20:06:23 +08:00
dawn_zhou
ae7f1aabdd
feat: mysql and redis metric support ( #2355 )
...
* feat: mysql and redis metric support
* feat: mysql and redis metric support
* feat: mysql and redis metric support
Co-authored-by: dawn.zhou <dawn.zhou@yijinin.com>
2022-09-17 19:35:30 +08:00
Kevin Wan
8ed22eafdd
fix #2240 ( #2263 )
2022-08-14 19:49:47 +08:00
Kevin Wan
1568c3be0e
fix: time repr wrapper ( #2255 )
2022-08-11 22:39:54 +08:00
Kevin Wan
1e717f9f5c
feat: add toml config ( #1899 )
2022-05-13 23:17:43 +08:00
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>
2022-05-13 12:32:34 +08:00
Kevin Wan
1a38eddffe
refactor: simplify the code ( #1835 )
2022-04-27 10:44:24 +08:00
Kevin Wan
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
2022-04-27 00:01:31 +08:00
Kevin Wan
bc3c9484d1
chore: refactor ( #1814 )
2022-04-22 09:37:09 +08:00
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>
2022-04-22 09:04:44 +08:00
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
2022-03-31 21:39:02 +08:00
mlr3000
32c88b6352
feat: support oracle :N dynamic parameters ( #1552 )
...
* chore:use struct pointer
* feat: support oracle :N dynamic parameters
* Update utils.go
* Update utils.go
* Update utils.go
pg argIndex will not always go up
* Update utils_test.go
* Keep the original
* Update utils_test.go
2022-03-12 18:49:07 +08:00