Kevin Wan
5cc9eb0de4
rename sharedcalls to singleflight ( #1017 )
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
56807aabf6
fix golint issues, update codecov settings. ( #1011 )
...
* update codecov settings
* fix golint issues
3 years ago
Kevin Wan
c837dc21bb
refactoring tracing interceptors. ( #1009 )
...
* refactor tracing interceptors
* add stream tracing interceptor
3 years ago
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
3 years ago
Kevin Wan
58874779e7
move opentelemetry into trace package, and refactoring ( #996 )
...
* move opentelemetry into trace package, and refactoring
* rename rewritten package names
3 years ago
Kevin Wan
9bdadf2381
fix golint issues ( #992 )
3 years ago
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>
3 years ago
Kevin Wan
7618139dad
refactor ( #977 )
3 years ago
Kevin Wan
50a6bbe6b9
format coding style ( #970 )
3 years ago
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
3 years ago
SunJun
aa68210cde
修复stream拦截器tracer名问题 ( #944 )
3 years ago
zhoushuguang
280e837c9e
rest otel support ( #943 )
3 years ago
neosu
5b35fa17de
add the opentelemetry tracing ( #908 )
...
* add the opentelemetry tracing
* fix the error sampler config
* 添加stream的链路跟踪
* fix the error field name
3 years ago
Kevin Wan
67ee9e4391
add unit test ( #921 )
3 years ago
Kevin Wan
a21ff71373
fix #889 ( #912 )
3 years ago
Kevin Wan
0ee7654407
fix #792 ( #873 )
3 years ago
Kevin Wan
603c93aa4a
upgrade grpc package ( #845 )
3 years ago
masonchen2014
cb8d9d413a
simplify timeoutinterceptor ( #840 )
...
Co-authored-by: chenmusheng <chenmusheng@laoyuegou.com>
3 years ago
Kevin Wan
3e8cec5c78
upgrade grpc & etcd dependencies ( #771 )
3 years ago
Xavier Cheng
3022f93b6d
Fix a typo ( #729 )
...
alread -> already
4 years ago
Kevin Wan
06eeef2cf3
disable prometheus if not configured ( #663 )
4 years ago
heyanfu
0466af5e49
optimize code ( #637 )
4 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 years ago
zjbztianya
d88da4cc88
Replace contextx.ShrinkDeadline with context.WithTimeout ( #598 )
4 years ago
Kevin Wan
6df7fa619c
fix typo ( #585 )
4 years ago
Kevin Wan
bbb4ce586f
fix golint issues ( #584 )
4 years ago
Kevin Wan
9e6c2ba2c0
avoid goroutine leak after timeout ( #575 )
4 years ago
Kevin Wan
4884a7b3c6
zrpc timeout & unit tests ( #573 )
...
* zrpc timeout & unit tests
4 years ago
Kevin Wan
fcd15c9b17
refactor, and add comments to describe graceful shutdown ( #564 )
4 years ago
Kevin Wan
c4b2cddef7
fix golint issues ( #532 )
4 years ago
Kevin Wan
51de0d0620
fix golint issues in zrpc ( #531 )
4 years ago
Kevin Wan
086113c843
prevent negative timeout settings ( #482 )
...
* prevent negative timeout settings
* fix misleading comment
4 years ago
HarryWang29
d239952d2d
zrpc client support block ( #412 )
4 years ago
Kevin Wan
9602494454
fix issue #469 ( #471 )
4 years ago
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
Kevin Wan
42883d0899
fix golint issues, redis methods ( #455 )
4 years ago
Kevin Wan
ec6132b754
add more tests for zrpc ( #441 )
4 years ago
Kevin Wan
8df7de94e3
add more tests for zrpc ( #321 )
4 years ago
Kevin Wan
7cd0463953
fix lint errors ( #249 )
...
* simplify code, format makefile
* simplify code
* some optimize by kevwan and benying (#240 )
Co-authored-by: 杨志泉 <zhiquan.yang@yiducloud.cn>
* optimization (#241 )
* optimize docker file generation, make docker build faster
* support k8s deployment yaml generation
* fix lint errors
Co-authored-by: benying <31179034+benyingY@users.noreply.github.com>
Co-authored-by: 杨志泉 <zhiquan.yang@yiducloud.cn>
Co-authored-by: bittoy <bittoy@qq.com>
4 years ago
kevin
e6df21e0d2
format code
4 years ago
SunJun
0a2c2d1eca
change grpc interceptor to chain interceptor ( #200 )
...
* change grpc interceptor to chain interceptor
* change server rpc interceptors, del testing code
4 years ago
kevin
bd430baf52
graceful shutdown refined
4 years ago
kevin
d0b76b1d9a
move redistest into redis package
4 years ago
kevin
b004b070d7
refine tests
4 years ago
kevin
1abe21aa2a
export WithUnaryClientInterceptor
4 years ago
kevin
cee170f3e9
fix zrpc client interceptor calling problem
4 years ago
kevin
907efd92c9
let balancer to be customizable
4 years ago
kevin
94645481b1
fix golint issues
4 years ago
kevin
e356025cef
add more tests
4 years ago
kevin
d1b303fe7e
export cache package, add client interceptor customization
4 years ago
kevin
dbca20e3df
add zrpc client interceptor
4 years ago
kevin
33a9db85c8
add unit test, fix interceptor bug
4 years ago
kevin
9277ad77f7
fix typo of prometheus
4 years ago
kevin
a958400595
rename prommetric to prometheous, add unit tests
4 years ago
kevin
bc831b75dd
export AddOptions, AddStreamInterceptors, AddUnaryInterceptors
4 years ago
kevin
0dd8e27557
add more clear error when rpc service is not started
4 years ago
kevin
be9c48da7f
add tracing logs in server side and client side
4 years ago
kevin
0b1ee79d3a
rename rpcx to zrpc
4 years ago