Ccheers
a803e9d967
chore(middleware/metrics): if requests and seconds are nil, return directly ( #3298 )
2024-04-27 19:38:14 +08:00
Ccheers
f715eb0bd8
break(metrics): refactor kratos metrics with otel metrics ( #3256 )
2024-04-01 12:03:16 +08:00
kvii
ffa1dca792
fix: logging middleware caller issue #3133 ( #3134 )
...
* fix: logging middleware caller issue #3133
* fix: fix lint issue
2024-03-15 11:15:31 +08:00
Jason
7e2edecabf
deps:update jwt v4 ->v5 ( #3085 )
...
* deps:update jwt v4 ->v5
* update logic
* deps:update jwt v4 ->v5
* update logic
* update go.mod
---------
Co-authored-by: wudongdong <wudongdong@rongma.com>
Co-authored-by: Cluas <Cluas@live.cn>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
2023-12-09 23:12:59 +08:00
Haibo
1f10166028
fix(tracing): use global provider by default, but allow custom providers ( #2803 )
2023-05-08 11:29:02 +08:00
Bin
aed172b8dd
feat: jwt KeyFunc external return ( #2809 )
...
* Update jwt.go
* Update jwt.go
2023-05-04 17:15:36 +08:00
ibrahim albarghouthi
3958f9d5c0
refactor: metadata supports key corresponding to multiple values ( #2772 )
...
* Adding Add/Values fn for transport and metadata layers, fixed tests and included tests to new functionaltieis, updated metadata middleware to append instead of hard set of key-values
* Remove useless function
* Linit fix
---------
Co-authored-by: Ibrahim Barghouthi <ibrahim.barghouthi@cenomi.com>
2023-04-10 14:35:38 +08:00
jessetang
f03f5f8988
fix(middleware/tracing): golang filename modify ( #2727 )
2023-03-26 22:54:30 +08:00
jessetang
9a973d29c2
fix: rectification of non-standard lint codes ( #2746 )
2023-03-21 15:33:08 +08:00
hoslo
19f008b483
feat: Add latency to the recover handler context ( #2653 )
...
* feat: Make recovey log information more abundant
* feat: Add latency to the recover handler context
* feat: Add latency to the recover handler context
* feat: Add latency to the recover handler context
---------
Co-authored-by: shuai_yang <shuai_yang@intsig.net>
2023-02-23 18:26:23 +08:00
LiuDui
08f37391e1
chore: clean up deprecated code ( #2648 )
2023-02-06 11:25:50 +08:00
Juan C. Yamacho H
d12498ed38
feat(middleware): redacter interface for logging ( #2564 )
2023-01-01 20:05:43 +08:00
Ccheers
8732b76386
fix(circuitbreaker): add WithCircuitBreaker to fix WithGroup is useless ( #2535 )
2022-11-29 11:23:02 +08:00
Jesse
54c6fb3631
test(middleware/auth/jwt): add test TestNewContextAndFromContext ( #2447 )
2022-10-18 20:09:03 +08:00
Jesse
b5482d1794
test(middleware/metadata): supplement test and modify code style ( #2448 )
2022-10-18 20:08:18 +08:00
jesse.tang
77d260241c
test(middleware/logging): TestExtractError ( #2443 )
2022-10-14 11:08:42 +08:00
jesse.tang
0ecc2b422f
style: modify declaring empty slices ( #2378 )
...
* fix: modify declaring empty slices
declare an empty slice to var s []int replace s :=[]int{}, https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices
* fix lint
2022-09-27 23:14:29 +08:00
jesse.tang
0e698b248a
cleanup: remove fmt and errors new err ( #2377 )
...
* cleanup: remove fmt and errors new err
* fix lint
* fix style
* modify global variable
2022-09-27 14:12:09 +08:00
jesse.tang
4d95050747
fix: fmt import ( #2379 )
2022-09-27 14:08:08 +08:00
jesse.tang
9737a3c5e4
fix: typo and grammatical errors ( #2368 )
...
* fix: grammar
* fix: grammar
* fix overrode
* translate to English
* translate to English
2022-09-19 10:39:54 +08:00
jesse.tang
f2a33929d0
fix: modify interface check way ( #2375 )
...
* fix: modify interface check way
* fix
2022-09-14 22:05:48 +08:00
Germiniku
cb6176dbbb
feat(tracing) custom tracer name ( #2310 )
...
* feat(log): add tencent cls
fix
update
* refactor(log) use the same interface name
* fix(log) tencent toString
* feat(tracing) custom tracer name
2022-08-24 12:39:20 +08:00
darkweak
c9fbb27b5b
tests(coverage): Increase middleware tests coverage ( #2165 )
...
* tests(coverage): Increase tests coverage
* Lint fix
2022-07-08 19:53:21 +08:00
Tony Chen
dccee86141
log: remove component logger to use global logger ( #2061 )
...
* remove component logger to user global logger
2022-05-27 16:29:07 +08:00
songzhibin97
92ba6a3209
Style:trace ( #2017 )
...
* Update metadata.go
* Update span.go
* Update statsHandler.go
2022-05-21 16:25:13 +08:00
songzhibin97
9e66ac2f5b
Update jwt.go ( #2016 )
2022-05-21 16:24:21 +08:00
Tony Chen
a72fc68ffd
feat: add error cause for statck trace ( #1910 )
...
* add error cause for statck trace
2022-04-10 16:15:34 +08:00
kwanhur
ac99a5c877
style(cmd/errors/examples/middleware/transport): fix common words' spelling mistakes ( #1872 )
...
* matchs to matches
* contraint to constraint
* resovle to resolver
* ser to set
Signed-off-by: kwanhur <huang_hua2012@163.com>
2022-03-10 22:42:44 +08:00
Zhen Wang
4dadafff90
fix(jwt): parse server custom claims ( #1817 )
...
* fix(jwt): parse server custom claims
* fix(jwt): parse server custom claims & use factory pattern
Co-authored-by: 王真 <zhen.wang@yo-star.com>
2022-02-22 14:06:36 +08:00
Tony Chen
6ec695064b
move container group to internal ( #1827 )
2022-02-19 16:48:31 +08:00
haiyux
18315303f0
deps:upgrade go mod version ( #1800 )
...
* deps:upgrade go mod version
2022-01-28 14:56:32 +08:00
haiyux
00c05e82a3
test:remove testify go mod ( #1766 )
...
* test:remove testify go mod
* tidy go mdo
* fix test
2022-01-14 10:02:42 +08:00
realityone
0ed2e0f379
feat(log): add global logger appliance, as process level default logger ( #1761 )
...
* add global logger appliance, as process level default logger
* replace DefaultLogger as global logger
2022-01-12 15:34:49 +08:00
Casper-Mars
76ab0baa56
feat(middleware/auth/jwt): add customer header ( #1752 )
2022-01-07 22:15:47 +08:00
haiyux
2e045c3e42
feat: middleware seletor add ctx match ( #1652 )
...
* feat: middleware seletor add headers match
* fix
* add some annotation
* add ctx seletor
* fix match function
* update match
2021-12-13 21:31:01 +08:00
china小宇
83ebf53b93
fix: circuitbreaker use client context ( #1679 )
2021-12-09 23:20:46 +08:00
spume
0f423be434
fix(middleware/tracing): modify kartos to kratos ( #1628 )
2021-11-12 23:12:00 +08:00
Evan
f9a132c9dd
feat: recovery logger with ctx ( #1601 )
...
Co-authored-by: 曾政 <zengz@weipaitang.com>
2021-11-04 19:40:34 +08:00
longxboy
056812e4b2
feat: add http transport interface ( #1533 )
...
feat: add http transport interface
2021-10-08 11:10:21 +08:00
Bear
5e88a20cd4
fix: 'tokenInfo' might have 'nil' or bad value ( #1534 )
...
* fix: 'tokenInfo' might have 'nil' or bad value
* fix: return the origin err
2021-10-06 13:06:31 +08:00
hotcha
7cc6565d01
fix typo ( #1509 )
2021-09-24 14:21:35 +08:00
Kagaya
04bc0e63ba
test(middleware/tracing): tracing unit test enhancement ( #1484 )
...
* use t.Setenv
* add tracing test
* lint fix
* update go test env to go@1.17
* remove grep
* rename Transport
2021-09-17 04:20:42 +08:00
Tony Chen
6e6526efd9
fix: middleware uses sentinel error ( #1463 )
2021-09-11 18:56:51 +08:00
Casper-Mars
ab5152dbe1
feat(middleware/auth): add auth middleware ( #1274 )
...
* add auth middleware
2021-09-10 10:49:18 +08:00
Tony Chen
b38c1145cf
fix(middleware/circuitbreaker): add breaker group ( #1453 )
...
* add breaker group
* update aegis to v0.1.1
2021-09-09 10:40:53 +08:00
yuemoxi
8823a1c618
feat:middleware selector add func match ( #1329 )
...
* feat:middleware selector add func match
2021-09-06 22:04:42 +08:00
Tony Chen
1ac50be94c
fix: sra to aegis ( #1420 )
...
* fix: sra to aegis
2021-09-05 22:42:38 +08:00
Kagaya
de55281108
feat(middleware/ratelimit): add rate limiter middleware ( #1271 )
...
* add ratelimit middleware
2021-09-05 21:32:36 +08:00
Kagaya
47f039792b
feat(middleware/breaker): add circuit breaker middleware ( #1299 )
...
* add breaker middleware
2021-09-05 21:15:06 +08:00
Windfarer
0ec3ff0b46
refactor: move plugins to contrib dir ( #1399 )
...
* move to contrib dir
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-09-01 13:40:14 +08:00