SleeplessBot
a93c24ce84
Add method label for prometheus middleware metrics ( #3226 )
...
Co-authored-by: 蓝益尤 <lan.yiyou@intellif.com>
2 years ago
Kevin Wan
3da740b7fc
chore: remove unnecessary code ( #3161 )
2 years ago
chen quan
ce4eb6ed61
fix: fixed #2945 ( #2953 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
Kevin Wan
60a13f1e53
chore: add more tests ( #3018 )
2 years ago
sniperwzq
3e093bf34e
defines the method to customize http server ( #2171 )
2 years ago
Kevin Wan
238c830f17
fix: timeout not working if greater than global rest timeout ( #2926 )
2 years ago
Kevin Wan
4d7fa08b0b
feat: support **struct in mapping ( #2784 )
...
* feat: support **struct in mapping
* chore: fix test failure
2 years ago
cong
f9619328f2
refactor(rest): use static config for trace ignore paths. ( #2773 )
2 years ago
Kevin Wan
ade6f9ee46
feat: add middlewares config for rest ( #2765 )
...
* feat: add middlewares config for rest
* chore: disable logs in tests
* chore: enable verbose in tests
2 years ago
Kevin Wan
dd294e8cd6
fix : #2700 , timeout not enough for writing responses ( #2738 )
...
* fix : #2700 , timeout not enough for writing responses
* fix: test fail
* chore: add comments
2 years ago
Kevin Wan
47c49de94e
feat: rest.WithChain to replace builtin middlewares ( #2033 )
...
* feat: rest.WithChain to replace builtin middlewares
* chore: add comments
* chore: refine code
2 years ago
Kevin Wan
018ca82048
chore: refactor to simplify disabling builtin middlewares ( #2031 )
...
* chore: refactor to simplify disabling builtin middlewares
* chore: rename methods
2 years ago
magickeha
6976ba7e13
add user middleware chain function ( #1913 )
...
* add user middleware chain function
* fix staticcheck SA4006
* chang code Implementation style
Co-authored-by: kemq1 <kemq1@spdb.com.cn>
2 years ago
Kevin Wan
af05219b70
test: make tests stable ( #1968 )
...
* test: make tests stable
* test: fix fails
3 years ago
Kevin Wan
f366e1d936
chore: make print pretty ( #1967 )
3 years ago
Kevin Wan
b6b96d9dad
feat: print routes ( #1964 )
...
* feat: print rest routes
* feat: print rest routes
3 years ago
Kevin Wan
6b1e15cab1
chore: update k8s.io/client-go for security reason, go is upgrade to 1.16 ( #1912 )
...
* chore: fix jwt dependency security issue
* chore: update clickhouse driver
* chore: fix a security issue
* chore: update dependencies
3 years ago
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
3 years ago
Xiaoju Jiang
321dc2d410
Added support for setting the parameter size accepted by the interface and custom timeout and maxbytes in API file ( #1713 )
...
* Added support for setting the parameter size accepted by the interface
* support custom timeout and maxbytes in API file
* support timeout used unit
* remove goctl maxBytes
3 years ago
Kevin Wan
3b7ca86e4f
chore: add unit tests ( #1615 )
...
* test: add more tests
* test: add more tests
3 years ago
Kevin Wan
842656aa90
feat: log 404 requests with traceid ( #1554 )
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
3 years ago
Kevin Wan
c28e01fed3
feat: support CORS by using rest.WithCors(...) ( #1212 )
...
* feat: support CORS by using rest.WithCors(...)
* chore: add comments
* refactor: lowercase unexported methods
* ci: fix lint errors
3 years ago
Kevin Wan
3ede597a15
feat: support customizing timeout for specific route ( #1203 )
...
* feat: support customizing timeout for specific route
* test: add more tests
3 years ago
Kevin Wan
769d06c8ab
refactor: simplify tls config in rest ( #1181 )
3 years ago
Howie
cd1f8da13f
[update] add plugin config ( #1180 )
...
Signed-off-by: lihaowei <haoweili35@gmail.com>
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
zhoushuguang
280e837c9e
rest otel support ( #943 )
3 years ago
noel
faf4d7e3bb
modify the order of PrometheusHandler ( #670 )
...
* modify the order of PrometheusHandler
* modify the order of PrometheusHandler
4 years ago
Kevin Wan
655ae8034c
fix golint issues in rest ( #529 )
4 years ago
Kevin Wan
03b5fd4a10
fix golint issues ( #458 )
4 years ago
kevin
5e87b33b23
support https in rest
4 years ago
kevin
737cd4751a
rename NewPatRouter to NewRouter
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
2b1466e41e
add more tests
4 years ago
kevin
054d9b5540
rename rest files
4 years ago