-
Notifications
You must be signed in to change notification settings - Fork 874
[WIP] feat(streaming): extend streaming trace event and gRPC/ttstream supports more detailed event reporting #1835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
411f51c to
76ad6fb
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1835 +/- ##
===========================================
+ Coverage 49.97% 61.24% +11.27%
===========================================
Files 321 387 +66
Lines 26774 34833 +8059
===========================================
+ Hits 13379 21333 +7954
- Misses 12095 12216 +121
+ Partials 1300 1284 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
03f8bb5 to
7fd571b
Compare
6d38036 to
bb16fca
Compare
3fce366 to
e2e9bd1
Compare
| // we need to execute handleCtx synchronously to ensure that | ||
| // after the handleStream callback completes (i.e., when this Stream becomes visible at the gRPC layer), | ||
| // tracing-related information such as spans contained within ctx can be directly utilized. | ||
| rCtx, ri, serviceName, methodName, ok := t.handleCtx(svrTrans, s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接拿个新的原子变量,在ctx初始化完成后,set到stream.eventCtx这样的字段里就可以了,不用拆分函数
| cd .. | ||
| rm -rf kitex-tests | ||
| git clone --depth=1 https://github.com/cloudwego/kitex-tests.git | ||
| git clone -b test/streaming_trace --depth=1 https://github.com/DMwangnima/kitex-tests.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个记得改下
e2e9bd1 to
9714b26
Compare
9714b26 to
40c6121
Compare
What type of PR is this?
feat
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: