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
Kevin Wan
3c0dc8435e
chore: improve codecov ( #2828 )
2023-01-29 21:39:54 +08:00
MarkJoyMa
fde05ccb28
feat: add MustNewRedis ( #2824 )
...
* feat: add MustNewRedis
* feat: add MustNewRedis
* feat: add MustNewRedis
* x
* x
* fix ut
* x
* x
* x
* x
* x
2023-01-29 18:03:05 +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
5f02e623f5
chore: add more tests ( #2795 )
...
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
2023-01-15 21:32:41 +08:00
Kevin Wan
963b52fb1b
chore: add more tests ( #2794 )
2023-01-15 15:28:27 +08:00
Kevin Wan
02265d0bfe
chore: add more tests ( #2792 )
...
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
2023-01-15 00:16:12 +08:00
Kevin Wan
b2571883ca
chore: refactor ( #2785 )
...
* chore: refactor
* chore: refactor
2023-01-13 14:04:37 +08:00
Alonexy
00ff50c2cc
add zset withsocre float ( #2689 )
...
* add zset withsocre float
* update
* add IncrbyFloat,HincrbyFloat
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-01-12 22:37:14 +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
#Suyghur
69d355eb4b
feat(redis): add zscan command implementation ( #2729 ) ( #2751 )
2023-01-04 13:44:17 +08:00
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2022-11-04 21:55:17 +08:00
Kevin Wan
9cadab2684
chore: refactor ( #2545 )
...
* chore: refactor
* chore: refactor
2022-10-22 22:52:40 +08:00
swliao425
b21162d638
fix: redis's pipeline logs are not printed completely ( #2538 )
...
* fix: redis's pipeline logs are not printed completely
* add unit test
Signed-off-by: liaoshiwei <liaoshiwei@uniontech.com>
Signed-off-by: liaoshiwei <liaoshiwei@uniontech.com>
2022-10-22 21:57:40 +08:00
Kevin Wan
1bc138bd34
chore: refactor to reduce duplicated code ( #2477 )
2022-10-01 21:45:53 +08:00
#Suyghur
0c66e041b5
feat(redis):add timeout method to extend blpop ( #2472 )
2022-10-01 20:53:54 +08:00
dawn_zhou
d640544a40
refactor: redis error for prometheus metric label ( #2412 )
...
Co-authored-by: dawn.zhou <dawn.zhou@yijinin.com>
2022-09-20 21:13:33 +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
maizige
cfda972d50
fix:trace graceful stop,pre loss trace ( #2358 )
2022-09-07 10:33:01 +08:00
chen quan
0316b6e10e
feat(redis): add ZaddFloat & ZaddFloatCtx ( #2291 )
2022-08-24 21:02:16 +08:00
Kevin Wan
91b8effb24
chore: refactor redislock ( #2210 )
...
* chore: refactor redislock
* chore: add more tests
2022-07-30 19:46:10 +08:00
cong
4879d4dfcd
feat(redislock): support set context ( #2208 )
...
* feat(redislock): support set context
* chore: fix test
2022-07-30 18:38:36 +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
ac321fc146
feat: add fields with logx methods, support using third party logging libs. ( #1847 )
...
* backup
* simplify
* chore: remove unused pool
* chore: fix lint errors
* chore: use strings.Builder instead of bytes.Buffer
* test: add more tests
* chore: fix reviewdog
* test: fix data race
* feat: make logger customizable
* chore: fix reviewdog
* test: fix fails
* chore: fix set writer twice
* chore: use context instead of golang.org context
* chore: specify uint32 for level types
2022-05-03 17:34:26 +08:00
Kevin Wan
f7a60cdc24
fix: remove deprecated dependencies ( #1837 )
...
* fix: remove deprecated dependencies
* backup
* fix test error
2022-04-27 21:34:54 +08:00
chen quan
22b157bb6c
chore: optimize code ( #1818 )
...
Signed-off-by: chenquan <chenquan.dev@gmail.com>
2022-04-23 22:02:04 +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
杨圆建
d58cf7a12a
fix: Hdel check result & Pfadd check result ( #1801 )
2022-04-18 17:38:36 +08:00
Kevin Wan
e0fa8d820d
feat: return original value of setbit in redis ( #1746 )
2022-04-02 20:25:51 +08:00
Kevin Wan
278cd123c8
feat: remove reentrance in redislock, timeout bug ( #1704 )
2022-03-24 16:17:01 +08:00
Kevin Wan
ec271db7a0
chore: refactor code ( #1699 )
2022-03-23 18:24:44 +08:00
benqi
bbac994c8a
feat: add getset command in redis and kv ( #1693 )
2022-03-23 18:02:56 +08:00
Kevin Wan
9e113909b3
ignore context.Canceled for redis breaker ( #1545 )
2022-02-15 21:31:30 +08:00
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
2022-02-09 17:22:52 +08:00
Kevin Wan
822ee2e1c5
feat: update go-redis to v8, support ctx in redis methods ( #1507 )
...
* feat: update go-redis to v8, support ctx in redis methods
* fix compile errors
* chore: remove unused const
* chore: add tracing log on redis
2022-02-09 11:06:06 +08:00
Kevin Wan
0fdd8f54eb
ci: add test for win ( #1503 )
...
* ci: add test for win
* ci: update check names
* ci: use go build instead of go test to verify win test
* fix: windows test failure
* chore: disable logs in tests
2022-02-05 00:06:23 +08:00
shenbaise9527
13db7a1931
feat: 支持redis的LTrim方法 ( #1443 )
2022-01-16 10:27:34 +08:00
Kevin Wan
eb4b86137a
fix: golint issue ( #1423 )
2022-01-08 16:06:56 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
Kevin Wan
8745ed9c61
chore: add 1s for tolerance in redislock ( #1367 )
2021-12-25 19:44:27 +08:00
种豆得豆
836726e710
fix redis try-lock bug ( #1366 )
...
#issue_id: 1338
Co-authored-by: zhangwei <>
2021-12-25 19:20:53 +08:00
Kevin Wan
4ccdf4ec72
chore: format code ( #1327 )
2021-12-15 13:43:05 +08:00
CrazyZard
a7bd993c0c
commit missing method for redis ( #1325 )
...
* commit `decr ` `decrby` `lindex` missing method for redis
* fix(store_test):TestRedis_DecrBy
* add unit tests for redis commands. And put the functions in alphabetical order
* put the functions in alphabetical order
* add `lindex` unit test
* sort func
2021-12-15 13:15:39 +08:00
Kevin Wan
4f5c30e083
chore: remove unused const ( #1224 )
2021-11-10 21:45:42 +08:00
an
3a510a9138
chore: redislock use stringx.randn replace randomStr func ( #1220 )
2021-11-10 21:14:21 +08:00
Kevin Wan
e8efcef108
update dependencies. ( #1210 )
...
* chore: update dependencies
* chore: update dependencies
* chore: update dependencies
* chore: update dependencies
* chore: fix test failure
2021-11-07 16:38:20 +08:00
Kevin Wan
785d100be9
feat: slow threshold customizable in sqlx ( #1188 )
2021-11-01 08:37:44 +08:00