Commit Graph

91 Commits

Author SHA1 Message Date
Kevin Wan
496a2f341e
test: add more tests (#1163)
* chore: reverse the order of stopping services

* chore: reverse the order of stopping services

* test: add more tests
2021-10-25 21:10:08 +08:00
Kevin Wan
5636bf4955
test: add more tests (#1150) 2021-10-20 17:50:01 +08:00
chenquan
022c100dc9
Add request method in http log (#1120)
* Add request method in http log

* Update log format
2021-10-12 21:50:30 +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
ed15ca04f4
fix: opentelemetry traceid not correct (#1108) 2021-10-01 22:44:37 +08:00
Kevin Wan
65905b914d
ci: add reviewdog (#1096) 2021-09-29 13:09:20 +08:00
Kevin Wan
1eb1450c43
downgrade golang-jwt to support go 1.14 (#1073) 2021-09-21 13:42:45 +08:00
Kevin Wan
30e49f2939
fix jwt security issue by using golang-jwt package (#1066) 2021-09-19 22:33:35 +08:00
Kevin Wan
6476da4a18
rest log with context (#998) 2021-09-05 22:58:42 +08:00
Allen Liu
3b683fd498
feat: change logger to traceLogger for getting traceId when recovering (#374) 2021-09-05 22:40:10 +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
407a6cbf9c
format coding style (#983) 2021-09-01 19:52:56 +08:00
Vee Zhang
76fc1ef460
httpx.Error response without body (#982)
* httpx.Error support response without body

* fix doc
2021-09-01 19:33:33 +08:00
Kevin Wan
7618139dad
refactor (#977) 2021-08-31 12:04:09 +08:00
zhoushuguang
280e837c9e
rest otel support (#943) 2021-08-24 10:04:12 +08:00
Kevin Wan
f669e1226c
fix #556 (#938) 2021-08-22 23:36:35 +08:00
Kevin Wan
9672298fa8
make sure setting code happen before callback in rest (#936) 2021-08-22 09:27:20 +08:00
Kevin Wan
9c1ee50497
refactor (#920) 2021-08-17 10:24:12 +08:00
chenquan
7c842f22d0
Add traceId to the response headers (#919)
* Add traceId to the request headers

* Add test cases

* Update refactor code
2021-08-17 10:12:08 +08:00
Kevin Wan
fc04ad7854
export pathvar for user-defined routers (#911)
* refactor

* export pathvar for user-defined routers
2021-08-14 22:57:28 +08:00
Kevin Wan
54d57c7d4b
refactor rest code (#895) 2021-08-10 17:59:33 +08:00
voidint
28a7c9d38f
fix http header binding failure bug #885 (#887) 2021-08-10 17:38:03 +08:00
fangjianwei
b812e74d6f
Fixed http listener error. (#843) 2021-07-24 12:57:56 +08:00
Chen Quan
22a1315136
[WIP]Add parse headers info (#805)
* Add parse headers info

* Update parse headers info
2021-07-07 23:20:09 +08:00
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool (#697)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-18 14:43:09 +08:00
noel
faf4d7e3bb
modify the order of PrometheusHandler (#670)
* modify the order of PrometheusHandler

* modify the order of PrometheusHandler
2021-05-08 17:11:16 +08:00
Kevin Wan
06eeef2cf3
disable prometheus if not configured (#663) 2021-04-30 15:09:49 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. (#628) 2021-04-15 19:49:17 +08:00
另维64
7e087de6e6
doc: fix spell mistake (#627) 2021-04-14 17:58:27 +08:00
Kevin Wan
3c6951577d
make hijack more stable (#565) 2021-03-15 20:11:09 +08:00
Kevin Wan
fcd15c9b17
refactor, and add comments to describe graceful shutdown (#564) 2021-03-14 08:51:10 +08:00
Kevin Wan
1a1a6f5239
add http hijack methods (#555) 2021-03-09 21:30:45 +08:00
Kevin Wan
655ae8034c
fix golint issues in rest (#529) 2021-03-01 19:15:35 +08:00
Kevin Wan
ad32f9de23
fix golint issues in core/threading (#524) 2021-02-26 16:27:04 +08:00
hao
2087ac1e89
修正http转发头字段值错误 (#521) 2021-02-26 16:17:30 +08:00
Kevin Wan
395a1db22f
add more tests for rest (#462) 2021-02-10 23:08:48 +08:00
Kevin Wan
03b5fd4a10
fix golint issues (#458) 2021-02-09 14:03:19 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks (#457) 2021-02-09 13:50:21 +08:00
Kevin Wan
42883d0899
fix golint issues, redis methods (#455) 2021-02-09 10:58:11 +08:00
Kevin Wan
54414db91d
fix golint issues, exported doc (#451) 2021-02-08 21:31:56 +08:00
FengZhang
a8b550e7ef
Modify the http content-length max range : 30MB --> 32MB (#424)
Because we are programmer :)
2021-01-30 18:49:33 +08:00
FengZhang
cbfbebed00
modify the maximum content-length to 30MB (#413) 2021-01-29 22:14:48 +08:00
Kevin Wan
e97e1f10db
simplify code with http.Flusher type conversion (#325)
* simplify code with http.Flusher type conversion

* simplify code with http.Flusher type conversion, better version
2020-12-29 10:25:55 +08:00
jichangyun
0bd2a0656c
The ResponseWriters defined in rest.handler add Flush interface. (#318) 2020-12-28 21:30:24 +08:00
Kevin Wan
bf21203297
add more tests (#320) 2020-12-27 12:26:31 +08:00
Kevin Wan
ae98375194
add more tests (#319) 2020-12-26 20:30:02 +08:00
Kevin Wan
82d1ccf376
fixes #286 (#315) 2020-12-25 19:47:27 +08:00
Kevin Wan
99596a4149
fix issue #266 (#275)
* optimize dockerfile

* fix issue #266
2020-12-11 16:12:33 +08:00
bittoy
88ec89bdbd
optimization (#241) 2020-12-02 15:00:07 +08:00