longxboy
f65a0a9134
feat: enhance tracing ( #1300 )
...
* feat: enhance tracing
* fix go lint
2021-08-05 18:51:20 +08:00
zwhyb
6aba247990
add selector code annotation ( #1275 )
2021-07-29 13:36:52 +08:00
Tony Chen
623fc5cb3f
update version to v2.1.0-dev ( #1249 )
...
* update version to v2.1.0-dev
* fix pkg ordering
* upgrade kratos version
2021-07-25 22:29:16 +08:00
zwhyb
7977deac65
middleware/selector ( #1244 )
...
* middleware selector client and support array
2021-07-25 21:58:40 +08:00
longxboy
545ffd1084
add response header ( #1119 )
...
* add response header
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-29 15:33:18 +08:00
opensite
01409cfb78
kratos/typs(trace): the world spelling corrects ( #1116 )
2021-06-28 11:11:03 +08:00
包子
4a6eb3e47f
Fix rename tracing.WithPropagators to tracing.WithPropagator ( #1095 )
...
* Fix rename tracing.WithPropagators to tracing.WithPropagator
2021-06-22 22:39:55 +08:00
miya
b22bc26a02
middleware/tracing: add test ( #1083 )
2021-06-19 23:47:40 +08:00
Tony Chen
51a3a32502
middleware/metadata: add md test ( #1064 )
...
* add metadata test
2021-06-15 21:41:55 +08:00
Tony Chen
6ee0607f03
transport: add transport kind ( #1059 )
...
* add transport kind
2021-06-15 11:05:13 +08:00
longxboy
68e7f4854c
add range ( #1052 )
...
* add range
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-14 11:07:46 +08:00
Tony Chen
8d8cd8c8a8
Middleware/metadata v2 ( #1050 )
...
* add middleware metadata
* add transport header
* add transport carrier
Co-authored-by: longXboy <longxboy@gmail.com>
2021-06-14 00:59:07 +08:00
Tony Chen
1b13abd136
transport/http: add http route ( #1029 )
...
* add http route
* fix http context
* add HTTP middleware
Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-12 18:30:17 +08:00
longxboy
736385c8e6
Feat/uni transport ( #1028 )
...
* add metadata incoming&outgoing
* regenerate proto
* uni transport
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-11 15:05:57 +08:00
miya
c551448bbd
error.Code def support http , mw/log&metrics update ( #1015 )
...
* mw/metrics add tag
2021-06-08 11:28:02 +08:00
miya
544e08f729
mw/log: http code 0 ( #1010 )
...
* fix middleware/log default code
2021-06-07 12:38:57 +08:00
miya
0f011ad688
add test recovery ( #1004 )
...
* add middle/validate test
* add middle/recovery test
2021-06-04 12:38:54 +08:00
miya
97946ddcbd
add middle/validate test ( #1002 )
2021-06-03 22:51:40 +08:00
longXboy
6c70049d2f
delete trace
2021-06-03 19:20:34 +08:00
longXboy
bf00542cb0
fix loggin middleware
2021-06-03 19:20:34 +08:00
Tony Chen
5ed0c006a0
clean access logging ( #996 )
2021-06-03 13:49:13 +08:00
longxboy
930d1f6cf7
get req from ctx ( #975 )
...
Co-authored-by: longXboy <longxboy@gmail.com>
2021-05-31 22:17:47 +08:00
Tony Chen
66412031fd
errors: refactor status code ( #948 )
...
* refactor status code
2021-05-25 15:01:53 +08:00
Tony Chen
cc0221b5ce
errors: add errors coder ( #946 )
...
* add errors coder
* rename internal http to httputil
* add errors proto
2021-05-25 00:56:31 +08:00
Tony Chen
ef6e52d1ba
add multiple middlewares ( #936 )
2021-05-20 23:30:50 +08:00
dowenliu-xyz
aab0d5aa43
fix tracing: call tracer.End() in closure. ( #928 )
2021-05-18 20:37:49 +08:00
Tony Chen
ba5b8d1ee3
api/metadata: clean package ( #926 )
...
* clean api proto
* fix nil trace_id
2021-05-18 10:29:33 +08:00
longxboy
8f8b861f7d
add default propagation for trace ( #919 )
...
* add default propagation for trace
* add trace carrier
2021-05-17 17:23:41 +08:00
Tony Chen
d78eb3ee4b
log: add level printer ( #918 )
...
* add level printer
* fix helper args
* fix test
* Update README.md
2021-05-17 16:34:28 +08:00
dowenliu-xyz
24b1ca6bc3
tracing: set tracing status after request. ( #911 )
2021-05-15 16:18:52 +08:00
miya
dc0f4ed9b8
mw/logging:enhance req.(fmt.Stringer) ( #898 )
2021-05-06 20:51:38 +08:00
Tony Chen
7c6f53132f
api/errors: refactor to grpc statas ( #880 )
...
* refactor to grpc status
2021-04-28 23:09:27 +08:00
包子
f33bd70d75
middleware/logging client add traceid ( #878 )
2021-04-28 16:23:55 +08:00
包子
b8d5d709e9
middleware/logging add traceid to the printed log,modify the example code and update the dependent version ( #877 )
...
* middleware/logging add traceid to the printed log,modify the example code and update the dependent version
* Fix the problem that the configuration could not use arrays
2021-04-28 14:30:51 +08:00
Tony Chen
7c3212c306
transport/http: uses gRPC status to the HTTP error. ( #870 )
...
* uses gRPC status to the HTTP error.
2021-04-28 00:37:50 +08:00
包子
b03c810dce
fix middleware/logging unable to print params ( #868 )
...
fix middleware/logging unable to print params
2021-04-27 15:44:35 +08:00
Tony Chen
e1c84ece84
refactor errors ( #863 )
2021-04-26 16:17:04 +08:00
Tony Chen
3780f70c91
examples: update mod ( #862 )
...
* fix examples errors
2021-04-25 22:26:31 +08:00
Tony Chen
9806191b7f
errors: Error v2 ( #860 )
...
* refactor api errors
2021-04-25 20:19:23 +08:00
Cluas
3636179347
fix: typo and avoid collides with log package name ( #819 )
2021-04-10 09:43:08 +08:00
Mikado
1b16831cf6
adjust trace middleware and fix blog's trace middleware use case ( #791 )
...
* middleware: adjust trace middleware
* examples: fix blog's trace middleware use case
2021-03-18 20:10:43 +08:00
Mikado
dcd4131d10
middleware: trace middleware change to using OpenTelemetry ( #781 )
2021-03-17 20:29:01 +08:00
Tony Chen
f86c91849b
fix lint check ( #746 )
2021-03-05 22:40:38 +08:00
Tony Chen
330d878aa3
http: fix request context ( #745 )
...
* fix request context
* fix recovery logger
2021-03-05 19:13:31 +08:00
storyicon
0008794b80
display error messages ( #727 )
...
Signed-off-by: storyicon <storyicon@foxmail.com>
2021-02-25 09:43:49 +08:00
chenzhihui
283313c2a1
Merge branch 'main' of github.com:go-kratos/kratos into main
2021-02-21 17:35:38 +08:00
chenzhihui
1ee7e70939
add request params
2021-02-21 17:35:10 +08:00
realotz
db2b8bcba0
repair tracing opentracing.HTTPHeadersCarrier panic ( #714 )
...
* fix tracing carrier panic
2021-02-20 23:07:46 +08:00
chenzhihui
e25ebc73bc
fix client context
2021-02-20 23:04:59 +08:00
chenzhihui
1de3a6607f
add metrics options
2021-02-18 22:25:02 +08:00