Skip to content

Conversation

@DMwangnima
Copy link
Contributor

What type of PR is this?

feat

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(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:

@DMwangnima DMwangnima requested review from a team as code owners August 19, 2025 07:44
@DMwangnima DMwangnima marked this pull request as draft August 19, 2025 07:44
@DMwangnima DMwangnima force-pushed the feat/stream_trace_event branch 11 times, most recently from 411f51c to 76ad6fb Compare August 26, 2025 10:06
@codecov
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

❌ Patch coverage is 92.48555% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.24%. Comparing base (024fedb) to head (40c6121).

Files with missing lines Patch % Lines
pkg/remote/trans/ttstream/trace.go 83.78% 4 Missing and 2 partials ⚠️
pkg/remote/trans/nphttp2/grpc/http2_client.go 82.35% 2 Missing and 1 partial ⚠️
pkg/remote/trans/nphttp2/grpc/trace.go 89.65% 2 Missing and 1 partial ⚠️
pkg/remote/trans/nphttp2/grpc/http2_server.go 93.33% 1 Missing ⚠️
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     
Flag Coverage Δ
integration 50.23% <84.39%> (+0.26%) ⬆️
unit 51.33% <79.19%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DMwangnima DMwangnima force-pushed the feat/stream_trace_event branch 4 times, most recently from 03f8bb5 to 7fd571b Compare August 28, 2025 03:49
@DMwangnima DMwangnima marked this pull request as ready for review August 28, 2025 04:06
@DMwangnima DMwangnima force-pushed the feat/stream_trace_event branch 3 times, most recently from 6d38036 to bb16fca Compare September 1, 2025 01:56
@DMwangnima DMwangnima changed the title feat(streaming): extend streaming trace event and gRPC supports more detailed event reporting feat(streaming): extend streaming trace event and gRPC/ttstream supports more detailed event reporting Sep 1, 2025
@DMwangnima DMwangnima force-pushed the feat/stream_trace_event branch 5 times, most recently from 3fce366 to e2e9bd1 Compare September 1, 2025 05:44
// 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)
Copy link
Member

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个记得改下

@DMwangnima DMwangnima force-pushed the feat/stream_trace_event branch from e2e9bd1 to 9714b26 Compare September 2, 2025 06:09
@DMwangnima DMwangnima force-pushed the feat/stream_trace_event branch from 9714b26 to 40c6121 Compare September 2, 2025 06:13
@DMwangnima DMwangnima changed the title feat(streaming): extend streaming trace event and gRPC/ttstream supports more detailed event reporting [WIP] feat(streaming): extend streaming trace event and gRPC/ttstream supports more detailed event reporting Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants