Kevin Wan
6340e24c17
chore: add tests ( #2774 )
2023-01-09 23:48:31 +08:00
Kevin Wan
74e0676617
feat: add config to truncate long log content ( #2767 )
2023-01-09 09:39:30 +08:00
Kevin Wan
0c786ca849
chore: remove simple methods, inlined ( #2768 )
2023-01-09 00:55:13 +08:00
Kevin Wan
26c541b9cb
feat: add middlewares config for zrpc ( #2766 )
...
* feat: add middlewares config for zrpc
* chore: add tests
* chore: improve codecov
* chore: improve codecov
2023-01-08 19:34:05 +08:00
Kevin Wan
fdc57d07d7
fix : #2672 ( #2681 )
...
* fix : #2672
* chore: fix more cases
* chore: update deps
* chore: update deps
* chore: refactor
* chore: refactor
* chore: refactor
2022-12-11 00:41:50 +08:00
re-dylan
ef22042f4d
feat: add dev server and health ( #2665 )
...
* feat: add dev server and health
* fix: fix ci
* fix: fix comment.
* feat: add enabled
* remove no need test
* feat: mv devServer to internal
* feat: default enable pprof
Co-authored-by: dylan.wang <dylan.wang@yijinin.com>
2022-12-10 20:40:23 +08:00
benqi
3604659027
fix: fix client side in zeromicro#2109 (zeromicro#2116) ( #2659 )
...
* fix: fix client side in zeromicro#2109 (zeromicro#2116)
* fix: fix client side in zeromicro#2109 (zeromicro#2116)
* fix: fix client side in zeromicro#2109 (zeromicro#2116)
2022-12-04 00:25:52 +08:00
bigrocs
90828a0d4a
The default port is used when there is no port number for k8s ( #2598 )
...
* k8s 没有端口号时使用默认端口
* Modify the not port test
2022-11-27 09:00:11 +08:00
Kevin Wan
1677a4dceb
feat: conf inherit ( #2568 )
...
* feat: add ValuerWithParent
* feat: make etcd config inherit from parents
* chore: add more tests
* chore: add more tests
* chore: add more comments
* chore: refactor
* chore: add more comments
* fix: fix duplicated code and refactor
* fix: remove unnecessary code
* fix: fix test case for removing print
* feat: support partial inherit
2022-11-08 15:27:48 +08:00
Kevin Wan
46e236fef7
chore: add more tests ( #2547 )
2022-10-23 10:54:41 +08:00
chowyu12
c92a2d1b77
feat: remove info log when disable log ( #2525 )
...
* add go-grpc_opt and go_opt for grpc new command
* feat: remove log when disable log
Co-authored-by: zhouyy <zhouyy@ickey.cn>
2022-10-22 22:07:17 +08:00
Kevin Wan
05a5de7c6d
chore: fix lint errors ( #2520 )
2022-10-17 06:30:58 +08:00
#Suyghur
74cc6b55e8
fix: replace Infof() with Errorf() in DurationInterceptor ( #2495 ) ( #2497 )
2022-10-11 21:45:31 +08:00
Kevin Wan
773b59106b
chore: remove init if possible ( #2485 )
2022-10-06 23:57:56 +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
da80662b0f
chore: refactor ( #2365 )
2022-09-07 11:18:52 +08:00
maizige
cfda972d50
fix:trace graceful stop,pre loss trace ( #2358 )
2022-09-07 10:33:01 +08:00
maizige
5d4ae201d0
Fix/del server interceptor duplicate copy md 20220827 ( #2309 )
...
* fix:grpc server interceptor duplicate copy MD
* modify wrong comments
2022-08-27 18:55:40 +08:00
maizige
05007c86bb
fix:duplicate copy MD ( #2304 )
2022-08-27 12:18:23 +08:00
MarkJoyMa
040c9e0954
feat: rpc add health check function configuration optional ( #2288 )
...
* feat: rpc add health check function configuration optional
* update config field name
2022-08-23 13:44:21 +08:00
Kevin Wan
a987512c7b
feat: more meaningful error messages, close body on httpc requests ( #2238 )
...
* feat: more meaningful error messages, close body on httpc requests
* fix: test failure
2022-08-07 16:09:54 +08:00
benqi
5d7919a9f5
fix: remove invalid log fields in notLoggingContentMethods ( #2187 )
2022-07-24 22:18:04 +08:00
Kevin Wan
9b334b5428
chore: let logx.SetWriter can be called anytime ( #2186 )
2022-07-24 14:15:57 +08:00
benqi
edbf1a3b63
fix: fix switch doesn't work bug ( #2183 )
2022-07-23 12:15:37 +08:00
Kevin Wan
92145b56dc
chore: refactoring ( #2182 )
2022-07-22 23:16:38 +08:00
Kevin Wan
1410f7dc20
fix #2109 ( #2116 )
2022-07-09 15:05:59 +08:00
Kevin Wan
1b2b7647d6
chore: coding style ( #2012 )
2022-06-14 07:25:54 +08:00
Atlan
af6d37c33d
fix: 修复 clientinterceptors/tracinginterceptor.go 显示接受消息字节为0 ( #2003 )
2022-06-14 00:11:10 +08:00
Kevin Wan
ed1c937998
feat: convert grpc errors to http status codes ( #1997 )
...
* feat: convert grpc errors to http status codes
* chore: circuit break include unimplemented grpc error
* chore: add reference link in comments
2022-06-11 23:07:26 +08:00
Kevin Wan
321a20add6
chore: update roadmap ( #1948 )
2022-06-02 09:28:29 +08:00
kunyu
65098d4737
Delete duplicated crash recover logic. ( #1950 )
...
* Update statinterceptor.go
* Update statinterceptor_test.go
2022-06-01 22:53:05 +08:00
Kevin Wan
ca88b69d24
feat: set default connection idle time for grpc servers ( #1922 )
...
* feat: set default connection idle time for grpc servers
* feat: add grpc health check
2022-05-21 19:38:27 +08:00
Kevin Wan
e80a64fa67
feat: support WithStreamClientInterceptor for zrpc clients ( #1907 )
...
* feat: support WithStreamClientInterceptor for zrpc clients
* fix: data race
2022-05-14 19:58:17 +08:00
Kevin Wan
ec1de4f48d
test: add codecov ( #1861 )
...
* test: add codecov
* test: add codecov
2022-05-03 21:22:15 +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
f21970c117
test: add more tests ( #1856 )
2022-05-02 21:24:20 +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
Kevin Wan
ec3e02624c
feat: upgrade grpc to 1.46, and remove the deprecated grpc.WithBalancerName ( #1820 )
2022-04-24 22:42:40 +08:00
chen quan
c6ab11b14f
chore: use grpc.WithTransportCredentials and insecure.NewCredentials() instead of grpc.WithInsecure ( #1798 )
...
Signed-off-by: chenquan <chenquan.dev@gmail.com>
2022-04-18 14:15:09 +08:00
Kevin Wan
3b7ca86e4f
chore: add unit tests ( #1615 )
...
* test: add more tests
* test: add more tests
2022-03-04 17:54:09 +08:00
Kevin Wan
900bc96420
test: add more tests ( #1604 )
2022-03-02 21:19:04 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
Kevin Wan
a7aeb8ac0e
feat: support tls for etcd client ( #1390 )
...
* feat: support tls for etcd client
* chore: fix typo
* refactor: rename TrustedCAFile to CACertFile
* docs: add comments
* fix: missing tls registration
* feat: add InsecureSkipVerify config for testing
2022-01-02 20:23:50 +08:00
Kevin Wan
c19d2637ea
feat: implement fx.NoneMatch, fx.First, fx.Last ( #1402 )
...
* chore: use workers from options in fx.unlimitedWalk
* feat: add fx.NoneMatch
* feat: add fx.First, fx.Last
* chore: add more comments
* docs: add mr readme
2022-01-02 13:33:15 +08:00
BYT0723
af3fb2b04d
fix: go issue 16206 ( #1298 )
2021-12-07 15:52:37 +08:00
Kevin Wan
9d528dddd6
feat: support third party orm to interact with go-zero ( #1286 )
...
* fixes #987
* chore: fix test failure
* chore: add comments
* feat: support third party orm to interact with go-zero
* chore: refactor
2021-12-01 20:22:15 +08:00
Kevin Wan
d828c3f37e
feat: add etcd resolver scheme, fix discov minor issue ( #1281 )
2021-11-28 20:08:18 +08:00
Kevin Wan
038491b7bc
chore: cleanup zRPC retry code ( #1280 )
2021-11-27 18:39:52 +08:00
chenquan
cf683411ee
feature(retry): Delete retry mechanism ( #1279 )
2021-11-27 11:32:33 +08:00
Kevin Wan
2d4c29ea7c
Revert "Revert "feat: enable retry for zrpc ( #1237 )"" ( #1246 )
2021-11-16 10:29:31 +08:00
Kevin Wan
67db40ed4f
Revert "feat: enable retry for zrpc ( #1237 )" ( #1245 )
...
This reverts commit 09eb53f308
.
2021-11-15 23:30:31 +08:00
Kevin Wan
09eb53f308
feat: enable retry for zrpc ( #1237 )
2021-11-14 22:33:01 +08:00
Kevin Wan
57d2f22c24
feat: disable grpc retry, enable it in v1.2.4 ( #1233 )
2021-11-13 15:38:43 +08:00
Kevin Wan
d011316997
test: add more tests ( #1209 )
2021-11-07 11:41:24 +08:00
Kevin Wan
3c894a3fb7
feat: simplify the grpc tls authentication ( #1199 )
2021-11-02 20:42:22 +08:00
Kevin Wan
1ece3a498f
feat: use WithBlock() by default, NonBlock can be set in config or WithNonBlock() ( #1198 )
2021-11-02 19:02:02 +08:00
Kevin Wan
ba43214dae
feat: slow threshold customizable in zrpc ( #1191 )
...
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in zrpc
2021-11-01 15:04:38 +08:00
Kevin Wan
8230474667
test: add more tests ( #1179 )
2021-10-31 11:33:13 +08:00
Kevin Wan
27f553bf84
docs: update roadmap ( #1178 )
2021-10-31 11:13:45 +08:00
Kevin Wan
59b9687f31
feat: support auth account for etcd ( #1174 )
2021-10-31 09:05:38 +08:00
Kevin Wan
c1a8ccda11
feat: support ssl on zrpc, simplify the config ( #1175 )
2021-10-30 23:15:39 +08:00
workman-Lu
9df6786b09
support RpcClient Vertify With Unilateralism and Mutual ( #647 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2021-10-30 22:07:15 +08:00
Kevin Wan
eda8230521
chore: reorg imports, format code, make MaxRetires default to 0 ( #1165 )
...
* chore: reverse the order of stopping services
* chore: reverse the order of stopping services
* chore: reorg imports, format code
* chore: format code, and refactor
* feat: change MaxRetries default to 0, disable retry
2021-10-27 20:57:18 +08:00
chenquan
462ddbb145
Add grpc retry ( #1160 )
...
* Add grpc retry
* Update grpc retry
* Add tests
* Fix a bug
* Add api && some tests
* Add comment
* Add double check
* Add server retry quota
* Update optimize code
* Fix bug
* Update optimize code
* Update optimize code
* Fix bug
2021-10-27 19:46:07 +08:00
Kevin Wan
a40fa405e4
test: add more tests ( #1149 )
2021-10-19 23:48:25 +08:00
Kevin Wan
9b114e3251
test: add more tests ( #1119 )
2021-10-08 17:31:37 +08:00
Kevin Wan
4c6234f108
add more tests ( #1115 )
...
* add more tests
* fix lint errors
2021-10-04 21:08:44 +08:00
Kevin Wan
3cdfcb05f1
add more tests ( #1114 )
2021-10-04 20:02:25 +08:00
Kevin Wan
9f5bfa0088
add more tests ( #1113 )
2021-10-04 14:14:25 +08:00
Kevin Wan
2d42c8fa00
test: add more tests ( #1112 )
2021-10-03 21:30:48 +08:00
Kevin Wan
10e7922597
feat: opentelemetry integration, removed self designed tracing ( #1111 )
...
* feat: opentelemetry integration, removed self designed tracing
* feat: support zipkin on opentelemetry integration
* feat: support zipkin on opentelemetry integration, enable it in conf
* style: format code
* fix: support logx without exporter configured
* fix: check return values
* refactor: simplify code
* refactor: simplify opentelemetry integration
* ci: fix staticcheck errors
2021-10-03 20:53:50 +08:00
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
2021-09-29 13:09:20 +08:00
Kevin Wan
8403ed16ae
ci: add Lint check on commits ( #1086 )
...
* ci: add Lint check on commits
* ci: fix Lint script error
* test: fix go vet errors
* test: fix go vet errors, remove gofumpt to check go vet
* test: fix go vet errors, try gofumpt
* test: fix go vet errors, try gofumpt, round 1
* test: fix go vet errors, try gofumpt, round 2
* ci: fix Lint errors
2021-09-23 19:57:05 +08:00
Kevin Wan
a5407479a6
upgrade grpc version & replace github.com/golang/protobuf/protoc-gen-go with google.golang.org/protobuf ( #1065 )
2021-09-19 21:37:55 +08:00
Kevin Wan
5cc9eb0de4
rename sharedcalls to singleflight ( #1017 )
2021-09-09 18:06:27 +08:00
Kevin Wan
f070d447ef
refactor for better error reporting on sql error ( #1016 )
...
* refactor for better error reporting on sql error
* fix errors
* add docs
2021-09-09 15:43:33 +08:00
Kevin Wan
56807aabf6
fix golint issues, update codecov settings. ( #1011 )
...
* update codecov settings
* fix golint issues
2021-09-07 22:33:02 +08:00
Kevin Wan
c837dc21bb
refactoring tracing interceptors. ( #1009 )
...
* refactor tracing interceptors
* add stream tracing interceptor
2021-09-07 17:58:22 +08:00
Kevin Wan
bdec5f2349
use sdktrace instead of trace for opentelemetry to avoid conflicts ( #1005 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
2021-09-07 12:02:41 +08:00
Kevin Wan
58874779e7
move opentelemetry into trace package, and refactoring ( #996 )
...
* move opentelemetry into trace package, and refactoring
* rename rewritten package names
2021-09-05 22:18:35 +08:00
Kevin Wan
9bdadf2381
fix golint issues ( #992 )
2021-09-04 12:16:30 +08:00
Kevin Wan
20f665ede8
implement k8s service discovery ( #988 )
...
* implement k8s service discovery
* simplify code
* use default namespace if not provided
* disable codecov bot comment
* ignore adhoc dir
* simplify building target in NewClient
* reformat code
* Fix filepath (#990 )
* format code, and reorg imports (#991 )
* add more unit test
Co-authored-by: anqiansong <anqiansong@gmail.com>
2021-09-04 10:27:08 +08:00
Kevin Wan
7618139dad
refactor ( #977 )
2021-08-31 12:04:09 +08:00
Kevin Wan
50a6bbe6b9
format coding style ( #970 )
2021-08-28 12:11:11 +08:00
chenquan
dfb3cb510a
Fix context error in grpc ( #962 )
...
* Fix context error in rpc
* Add a test case
* Optimize judgment conditions
* Add customized breaker errors for the client and server
* Update method signature
* Delete customized breaker errors
* Delete the wrong test case
2021-08-28 12:07:14 +08:00
SunJun
aa68210cde
修复stream拦截器tracer名问题 ( #944 )
2021-08-24 15:17:53 +08:00
zhoushuguang
280e837c9e
rest otel support ( #943 )
2021-08-24 10:04:12 +08:00
neosu
5b35fa17de
add the opentelemetry tracing ( #908 )
...
* add the opentelemetry tracing
* fix the error sampler config
* 添加stream的链路跟踪
* fix the error field name
2021-08-22 10:03:56 +08:00
Kevin Wan
67ee9e4391
add unit test ( #921 )
2021-08-17 17:09:26 +08:00
Kevin Wan
a21ff71373
fix #889 ( #912 )
2021-08-15 15:33:45 +08:00
Kevin Wan
0ee7654407
fix #792 ( #873 )
2021-08-04 18:45:05 +08:00
Kevin Wan
603c93aa4a
upgrade grpc package ( #845 )
2021-07-24 22:29:02 +08:00
masonchen2014
cb8d9d413a
simplify timeoutinterceptor ( #840 )
...
Co-authored-by: chenmusheng <chenmusheng@laoyuegou.com>
2021-07-24 21:51:46 +08:00
Kevin Wan
3e8cec5c78
upgrade grpc & etcd dependencies ( #771 )
2021-06-21 09:05:20 +08:00
Xavier Cheng
3022f93b6d
Fix a typo ( #729 )
...
alread -> already
2021-05-28 23:39:07 +08:00
Kevin Wan
06eeef2cf3
disable prometheus if not configured ( #663 )
2021-04-30 15:09:49 +08:00
heyanfu
0466af5e49
optimize code ( #637 )
2021-04-18 22:49:03 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
2021-04-15 19:49:17 +08:00
zjbztianya
d88da4cc88
Replace contextx.ShrinkDeadline with context.WithTimeout ( #598 )
2021-04-05 21:20:35 +08:00