heyehang
a644ec7edd
feature : responses whit context ( #2637 )
2 years ago
chen quan
97a8b3ade5
fix(rest): fix issues#2628 ( #2629 )
2 years ago
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2 years ago
Kevin Wan
9cadab2684
chore: refactor ( #2545 )
...
* chore: refactor
* chore: refactor
2 years ago
chen quan
7fe2492009
feat(trace): support for disabling tracing of specified `spanName` ( #2363 )
2 years ago
Kevin Wan
05a5de7c6d
chore: fix lint errors ( #2520 )
2 years ago
chen quan
111e626a73
refactor: adjust http request slow log format ( #2440 )
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
Kevin Wan
d935c83a54
feat: support baggage propagation in httpc ( #2375 )
...
* feat: support baggage propagation in httpc
* chore: use go 1.16
* chore: use go 1.16
* chore: use go ^1.16
* chore: remove deprecated
2 years ago
maizige
cfda972d50
fix:trace graceful stop,pre loss trace ( #2358 )
2 years ago
Kevin Wan
d9620bb072
chore: remove unused packages ( #2312 )
2 years ago
Kevin Wan
6d2b9fd904
chore: improve codecov ( #1878 )
3 years ago
Kevin Wan
69c2bad410
feat: logx with color ( #1872 )
...
* feat: logx with color
* chore: update logs
* fix test error
* chore: change colors of http codes
* chore: add comments
* chore: use faith/color instead of ascii code color
* chore: update colors
* chore: update colors
* chore: fix duplicated slowcall text
* chore: remove slowcall colors
3 years ago
Kevin Wan
f7a60cdc24
fix: remove deprecated dependencies ( #1837 )
...
* fix: remove deprecated dependencies
* backup
* fix test error
3 years ago
Kevin Wan
2cdff97934
feat: use mongodb official driver instead of mgo ( #1782 )
...
* wip: backup
* wip: backup
* wip: backup
* backup
* backup
* backup
* add more tests
* fix wrong dependency
* fix lint errors
* remove test due to data race
* add tests
* fix test error
* add mon.Model
* add mon.Model unmarshal
* add monc
* add more tests for monc
* add more tests for monc
* add docs for mon and monc packages
* fix doc errors
* chhore: add comment
* chore: fix test bug
* chore: refine tests
* chore: remove primitive.NewObjectID in test code
* chore: rename test files for typo
3 years ago
Kevin Wan
92b450eb11
fix: ignore timeout on websocket ( #1802 )
3 years ago
Kevin Wan
ab01442d46
add more tests ( #1763 )
...
* feat: add goctl docker build scripts
* chore: add more tests
3 years ago
Kevin Wan
3279a7ef0f
feat: add rest/httpc to make http requests governacible ( #1638 )
...
* feat: change x-trace-id to traceparent to follow opentelemetry
* feat: add rest/httpc to make http requests governacible
* chore: remove blank lines
3 years ago
Kevin Wan
842656aa90
feat: log 404 requests with traceid ( #1554 )
3 years ago
Kevin Wan
fdc7f64d6f
chore: update unauthorized callback calling order ( #1469 )
...
* chore: update unauthorized callback calling order
* chore: add comments
3 years ago
Kevin Wan
bf2feee5b7
feat: implement console plain output for debug logs ( #1456 )
...
* feat: implement console plain output for debug logs
* chore: rename console encoding to plain
* chore: refactor names
3 years ago
Kevin Wan
468c237189
chore: upgrade dependencies ( #1444 )
...
* chore: upgrade dependencies
* ci: upgrade go to 1.15
3 years ago
Kevin Wan
ba6a7c9dc8
chore: refactor rest/timeouthandler ( #1415 )
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
3 years ago
Kevin Wan
62266d8f91
fix #1070 ( #1389 )
...
* fix #1070
* test: add more tests
3 years ago
Kevin Wan
cd289465fd
chore: coding style and comments ( #1361 )
...
* chore: coding style and comments
* chore: optimize `ParseJsonBody` (#1353 )
* chore: optimize `ParseJsonBody`
* chore: optimize `ParseJsonBody`
* fix: fix a test
* chore: optimize `ParseJsonBody`
* fix a test
* chore: add comment
* chore: refactor
Co-authored-by: chenquan <chenquan.dev@foxmail.com>
3 years ago
Kevin Wan
6f1d27354a
chore: put error message in error.log for verbose mode ( #1355 )
3 years ago
Kevin Wan
71d40e0c08
Revert "排除客户端中断导致的503错误 ( #1343 )" ( #1351 )
...
This reverts commit 2cdf5e7395
.
3 years ago
Kevin Wan
4ba2ff7cdd
feat: treat client closed requests as code 499 ( #1350 )
...
* feat: treat client closed requests as code 499
* chore: add comments
3 years ago
vic
2cdf5e7395
排除客户端中断导致的503错误 ( #1343 )
3 years ago
Kevin Wan
ebc90720ea
feat: slow threshold customizable in rest ( #1189 )
...
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in rest
3 years ago
chenquan
022c100dc9
Add request method in http log ( #1120 )
...
* Add request method in http log
* Update log format
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
ed15ca04f4
fix: opentelemetry traceid not correct ( #1108 )
3 years ago
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
3 years ago
Kevin Wan
1eb1450c43
downgrade golang-jwt to support go 1.14 ( #1073 )
3 years ago
Kevin Wan
30e49f2939
fix jwt security issue by using golang-jwt package ( #1066 )
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
zhoushuguang
280e837c9e
rest otel support ( #943 )
3 years ago
Kevin Wan
f669e1226c
fix #556 ( #938 )
3 years ago
Kevin Wan
9672298fa8
make sure setting code happen before callback in rest ( #936 )
3 years ago
Kevin Wan
9c1ee50497
refactor ( #920 )
3 years ago
chenquan
7c842f22d0
Add traceId to the response headers ( #919 )
...
* Add traceId to the request headers
* Add test cases
* Update refactor code
3 years ago
Kevin Wan
06eeef2cf3
disable prometheus if not configured ( #663 )
4 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 years ago
Kevin Wan
3c6951577d
make hijack more stable ( #565 )
4 years ago
Kevin Wan
1a1a6f5239
add http hijack methods ( #555 )
4 years ago
Kevin Wan
655ae8034c
fix golint issues in rest ( #529 )
4 years ago