Skip to content

api: support per-route tracing #5672

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

zirain
Copy link
Member

@zirain zirain commented Apr 7, 2025

xref: #5486

@zirain zirain requested a review from a team as a code owner April 7, 2025 04:30
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.22%. Comparing base (096cb8d) to head (2fadbb3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5672      +/-   ##
==========================================
+ Coverage   65.19%   65.22%   +0.02%     
==========================================
  Files         214      214              
  Lines       34321    34321              
==========================================
+ Hits        22377    22386       +9     
+ Misses      10591    10582       -9     
  Partials     1353     1353              

☔ 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.

@zirain zirain changed the title api: support rer-route tracing api: support per-route tracing Apr 7, 2025
@@ -31,6 +31,8 @@ type ProxyTracing struct {
SamplingFraction *gwapiv1.Fraction `json:"samplingFraction,omitempty"`
// CustomTags defines the custom tags to add to each span.
// If provider is kubernetes, pod name and namespace are added by default.
//
Copy link
Contributor

Choose a reason for hiding this comment

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

can we take SamplingRate, SamplingFraction and CustomTags, and put in into another struct which we can embed here and in BackendTelemetry ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we should move to use SamplingFraction and deprecate SamplingRate in the future.

RDS support FractionalPercent directly, so I don't want another convertion here.

Copy link
Contributor

Choose a reason for hiding this comment

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

cool, can you create a embedded struct inside Tracing so SamplingFraction and CustomTags can be reused

@zirain zirain force-pushed the btp-telemetry branch 2 times, most recently from 5265310 to 1126592 Compare April 10, 2025 00:52
@zirain zirain requested a review from arkodg April 10, 2025 08:40
zirain added 2 commits April 15, 2025 15:42
Signed-off-by: zirain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants