Commit Graph

48 Commits (c233a6660149cf0be1642e0dd36058431801da00)

Author SHA1 Message Date
mongobaba 459d3025c5
optimize: change err == xx to errors.Is(err, xx) (#3991) 9 months ago
Kevin Wan e9e55125a9
chore: fix warnings (#3990) 9 months ago
MarkJoyMa c05e03bb5a
feat: add metrics (#3624) 1 year ago
Kevin Wan 922efbfc2d
chore: refactor zrpc timeout (#3671) 1 year ago
vankillua 842c4d81cc
feat: support the specified timeout of rpc methods (#2742)
Co-authored-by: hanzijian <hanzijian@52tt.com>
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
1 year ago
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>
2 years ago
cong 22fad4bb9c
feat(trace): add trace test helpers (#3108) 2 years ago
Kevin Wan f77e2c9cfa
chore: add more tests (#3014) 2 years ago
Shyunn 544aa7c432
Added zrpc server custom serverID for custom registration Key when the service is registered on ETCD. (#3008) 2 years ago
Kevin Wan fbf129d535
chore: add more tests (#3010) 2 years ago
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
2 years ago
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)
2 years ago
#Suyghur 74cc6b55e8
fix: replace Infof() with Errorf() in DurationInterceptor (#2495) (#2497) 2 years ago
Kevin Wan 1f6688e5c1
chore: refactor the imports (#2406) 2 years ago
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>
2 years ago
maizige cfda972d50
fix:trace graceful stop,pre loss trace (#2358) 2 years ago
maizige 05007c86bb
fix:duplicate copy MD (#2304) 2 years ago
Kevin Wan 1b2b7647d6
chore: coding style (#2012) 2 years ago
Atlan af6d37c33d
fix: 修复 clientinterceptors/tracinginterceptor.go 显示接受消息字节为0 (#2003) 2 years ago
Kevin Wan a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 3 years ago
chenquan cf683411ee
feature(retry): Delete retry mechanism (#1279) 3 years ago
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
3 years ago
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
3 years ago
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
3 years ago
Kevin Wan 3cdfcb05f1
add more tests (#1114) 3 years ago
Kevin Wan 9f5bfa0088
add more tests (#1113) 3 years ago
Kevin Wan 2d42c8fa00
test: add more tests (#1112) 3 years ago
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
3 years ago
Kevin Wan c837dc21bb
refactoring tracing interceptors. (#1009)
* refactor tracing interceptors

* add stream tracing interceptor
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 7618139dad
refactor (#977) 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 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 06eeef2cf3
disable prometheus if not configured (#663) 4 years ago
zjbztianya d88da4cc88
Replace contextx.ShrinkDeadline with context.WithTimeout (#598) 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 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 9277ad77f7 fix typo of prometheus 4 years ago
kevin a958400595 rename prommetric to prometheous, add unit tests 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