Commit Graph

926 Commits

Author SHA1 Message Date
Kevin Wan
36088ea0d4
fix: avoid duplicate in logx plain mode (#4080) 2024-04-17 17:43:22 +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
Kevin Wan
6c8073b691
chore: add more tests (#4042) 2024-04-05 00:13:42 +08: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
linden-in-China
6f3d094eba
opton to option (#4035) 2024-04-03 14:15:21 +00:00
Kevin Wan
bbce95e7e1
fix: didn't count failure in allow method with breaker algorithm (#4008) 2024-03-16 22:19:36 +08:00
Kevin Wan
cc2a7e97f9
chore: coding style, add code for prometheus (#4002) 2024-03-13 20:00:35 +08:00
MarkJoyMa
7d90f906f5
feat: migrate redis breaker into hook (#3982) 2024-03-12 04:21:33 +00:00
Viktor Patchev
f372b98d96
Add: Optimize the error log to be more specific (#3994) 2024-03-11 13:06:50 +08:00
mongobaba
459d3025c5
optimize: change err == xx to errors.Is(err, xx) (#3991) 2024-03-09 12:49:16 +00:00
Kevin Wan
159ecb7386
chore: fix warnings (#3989) 2024-03-08 22:35:17 +08:00
ansoda
69bb746a1d
fix: StopAgent panics when trace agent disabled (#3981)
Co-authored-by: ansoda <ansoda@gmail.com>
2024-03-08 10:28:23 +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
74b87ac9fd
chore: coding style (#3972) 2024-03-05 14:40:10 +08:00
Kevin Wan
25821bdee6
chore: coding style (#3960) 2024-03-03 00:17:38 +08:00
POABOB
be7f93924a
feature: add a mongo registry option to convert type easier. (#3780)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2024-03-02 15:13:44 +00:00
Kevin Wan
45be48a4ee
chore: coding style (#3959) 2024-03-02 22:45:24 +08:00
Kevin Wan
a5d2b971a1
chore: add more tests (#3958) 2024-03-02 21:58:13 +08:00
Qiu shao
9763c8b143
feat:add redis mset func (#3820) 2024-03-02 12:00:25 +00:00
Kevin Wan
4e3f1776dc
chore: coding style (#3957) 2024-03-02 19:09:14 +08:00
fearlessfei
e38036cea2
feat: retry ignore specified errors (#3808) 2024-03-02 18:53:20 +08:00
Kevin Wan
8e97c5819f
chore: add more tests (#3954) 2024-03-02 12:22:55 +08:00
#Suyghur
0ee44c7064
feat(redis): added and impl ZADDNX command (#3944) 2024-03-02 10:15:10 +08:00
Kevin Wan
a1bacd3fc8
feat: a concurrent runner with messages taken in pushing order (#3941) 2024-03-02 10:03:58 +08:00
Kevin Wan
c98d5fdaf4
chore: simplify linux nocgroup logic (#3953) 2024-03-02 07:13:41 +08:00
Kevin Wan
03b6e377d7
chore: add lock for batcherror (#3950) 2024-03-02 00:59:15 +08:00
chentong
ec41880476
fix: BatchError.Add() non thread safe (#3946) 2024-03-01 16:32:39 +00:00
Kevin Wan
5263805b3b
chore: simplify linux nocgroup logic (#3949) 2024-03-02 00:23:52 +08:00
Alex Last
a7363f0c21
feat: add nocgroup build tag for systems without cgroup (#3948) 2024-03-01 15:52:20 +00:00
mongobaba
52e5d85221
feat: add break metrics for sqlx.statement (#3947) 2024-03-01 14:55:32 +00:00
MarkJoyMa
88aab8f635
fix: mapping FillDefault is optional! bug (#3940) 2024-02-27 16:23:47 +00:00
Kevin Wan
0dfaf135dd
feat: support breaker with sql statements (#3936) 2024-02-25 11:24:44 +08:00
Kevin Wan
914bcdcf2b
chore: add tests (#3931) 2024-02-23 23:00:35 +08:00
fffreedom
e38cb0118d
when the Unmarshaler parsing value by fillSliceFromString, if the val… (#3927)
Co-authored-by: danahan <danahan@tencent.com>
2024-02-23 14:00:58 +00:00
Kevin Wan
25a807afb2
chore: add tests (#3921) 2024-02-20 10:11:43 +08:00
Kevin Wan
6be37ad533
chore: optimize coding style and add unit tests (#3917) 2024-02-17 15:50:07 +08:00
Kevin Wan
0f1d4c6bca
optimize: improve performance on log disabled (#3916) 2024-02-17 14:55:48 +08:00
Kevin Wan
1303e0fe6f
feat: optimize circuit breaker algorithm (#3897) 2024-02-15 20:29:24 +08:00
Kevin Wan
9c17499757
optimize: shedding algorithm performance (#3908) 2024-02-15 20:22:22 +08:00
Kevin Wan
2ccef5bb4f
feat: support ScheduleImmediately in TaskRunner (#3896) 2024-02-06 06:26:22 +00:00
Kevin Wan
786a80131e
chore: fix test failure (#3883) 2024-02-01 22:41:05 +08:00
Kevin Wan
c08e741d7a
fix: cpu stat in cgroup v2 (#3857) 2024-01-17 23:35:42 +08:00
MarkJoyMa
dace520654
fix: revert sqlx metric namespace (#3847) 2024-01-14 02:38:10 +00:00
Kevin Wan
44d347d48a
fix: issue #3840 (#3846) 2024-01-14 09:37:01 +08:00
Kevin Wan
408827d876
fix: issue 3840 (#3845) 2024-01-13 23:48:50 +08:00
Kevin Wan
9e33b557b1
chore: refactor redis (#3844) 2024-01-13 23:02:19 +08:00
Kevin Wan
368caa7608
feat: upgrade go-redis to v9 (#3088)
Co-authored-by: cong <zhangcong1992@gmail.com>
2024-01-13 22:40:58 +08:00
Kevin Wan
7822a4c1cb
chore: refactor mapping errors (#3843) 2024-01-13 22:11:19 +08:00
Remember
0441f84606
fix(mapping): call fillSliceValue panic if the value is nil (#3839) 2024-01-13 13:48:43 +00:00
Kevin Wan
81d72b5010
chore: make cpu usage more smooth (#3842) 2024-01-13 19:36:25 +08:00
Kimjin-gd
6ec38ec056
fix: negative float32 overflow when unmarshalling (#3811)
Co-authored-by: kim1.jin <kim1.jin@bkyo.io>
2023-12-23 14:47:11 +00:00
Kevin Wan
27c4908342
chore: coding style (#3796) 2023-12-17 13:44:55 +08:00
李登富
48625fa381
fix endless loop caused by ErrCompacted (#3774)
Co-authored-by: lidengfu <lidengfu@excean.com>
2023-12-17 05:28:19 +00:00
Kevin Wan
83a776a190
chore: upgrade otel, removed ut temporarily because of otel API changes (#3795) 2023-12-17 12:26:48 +08:00
Qiu shao
431f9af43e
feat:add redis ExistsMany method (#3769) 2023-12-16 14:49:16 +08:00
Alex Last
919477ffe4
fix(servicegroup): use logx for shutdown message (#3719) 2023-12-16 06:25:02 +00:00
Summer-lights
400386459c
fix(redis): redis ttl -1 and -2 (#3783) 2023-12-16 05:46:53 +00:00
Kevin Wan
22c98beb24
feat: add dbtest to facility db test (#3768) 2023-12-09 22:52:06 +08:00
Kevin Wan
ede7e683fd
feat: auto stop profiling after one minute (#3742) 2023-11-24 21:27:05 +08:00
Kevin Wan
eb14d1347e
chore: refactor ring (#3739) 2023-11-23 23:57:26 +08:00
POABOB
c220b5d886
fix: prevent ring index overflow (#3738) 2023-11-23 15:44:33 +00:00
Kevin Wan
2f8cffc699
chore: update mongo driver (#3727) 2023-11-19 16:35:25 +08:00
Kevin Wan
07e3e14c0e
chore: remove go build version in fuzz test (#3678) 2023-10-28 20:53:03 +08:00
Rene Leonhardt
34c5f6616c
chore: upgrade go to 1.19 (#3677) 2023-10-28 12:12:04 +00:00
MarkJoyMa
32600f2619
fix: adjust log encode output mode (#3676) 2023-10-28 11:46:52 +00:00
Kevin Wan
a1fca3a1da
chore: upgrade go dependencies (#3657) 2023-10-28 00:19:22 +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
199e86050e
chore: simplify prometheus check (#3672) 2023-10-26 20:32:13 +08:00
#Suyghur
1e2a12b3d6
feat(metric): added Dec() and Sub() in GaugeVec interface (#3666) 2023-10-26 20:13:42 +08:00
唐小鸭
e20ccdd011
Support for resource injection (#3383)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-10-23 13:22:16 +00:00
Kevin Wan
172ff407f3
chore: refactor mongo logs (#3660) 2023-10-23 11:03:55 +08:00
shenbaise9527
a242fec5e1
feat: support for disable mon logs like sqlx (#3606)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-10-22 15:00:02 +00:00
Kevin Wan
42e0a6f90c
chore: refactor errors to use errors.Is (#3654) 2023-10-21 00:00:57 +08:00
Kevin Wan
944e76edb9
chore: refactor errors (#3651) 2023-10-20 14:58:38 +08:00
MarkJoyMa
151768ef82
feat: optimize logx print error (#3649) 2023-10-19 13:46:52 +00:00
Surav Shrestha
50581c7f5c
docs fix typo in core/logx/readme.md (#3650) 2023-10-19 13:33:25 +00:00
kesonan
423597a01c
feat: export devserver.Config (#3638) 2023-10-17 15:38:21 +00:00
Kevin Wan
804a56bd14
fix: optimize logx for less GC objects (#3627) 2023-10-15 23:37:45 +08:00
Kevin Wan
88f60d7736
chore: refactor signal sigterm and sigint (#3632) 2023-10-15 23:24:17 +08:00
#Suyghur
95b7a3d3ce
feat: add the SIGINT signal in signals.go to subscribe the user input ctrl+c to exit the application operation (#3611) 2023-10-15 22:58:15 +08:00
Kevin Wan
d71c0da7b7
chore: refactor error comparison (#3629) 2023-10-15 13:41:06 +00:00
Kevin Wan
fd070fec91
feat: retry with ctx deadline (#3626) 2023-10-15 13:39:44 +00:00
Kevin Wan
4f22034342
fix: unmarshal from number to string with incorrect error message (#3625) 2023-10-15 02:06:00 +00:00
Ikko Eltociear Ashimine
b731aa38af
refactor: update builder.go (#3620) 2023-10-13 07:03:15 +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
5aedd9c076
chore: simplify parsing numbers with overflow (#3610) 2023-10-09 13:00:09 +00:00
Kevin Wan
11a8cbc1e5
chore: rename noOpBreaker to nopBreaker (#3602) 2023-10-06 23:41:09 +08:00
Kevin Wan
421e6617b1
chore: add more tests (#3592) 2023-09-27 22:33:27 +08:00
Kevin Wan
0ee7a271d3
fix: avoid float overflow in mapping.Unmarshal (#3590) 2023-09-26 13:46:34 +00:00
Kevin Wan
4222fd97bc
chore: add test for logging rotate size (#3587) 2023-09-24 22:28:03 +08:00
Kevin Wan
ded2888759
fix: avoid integer overflow in mapping.Unmarshal (#3582) 2023-09-21 14:22:33 +00:00
Kevin Wan
68df0c3620
chore: add more tests (#3575) 2023-09-18 11:01:46 +08:00
xt-inking
5e435b6a76
fix: avoid losing logs before closing (#3573) 2023-09-17 11:38:53 +00:00
Kevin Wan
0dcede6457
chore: refactor log limit in rest (#3572) 2023-09-16 22:33:30 +08:00
Awadabang
cc21f5fae2
update: limit logBrief http body size (#3498)
Co-authored-by: 常公征 <changgz@yealink.com>
2023-09-16 11:58:21 +00:00
Kevin Wan
974252980c
chore: upgrade grpc (#3570) 2023-09-15 23:21:22 +08:00