-
Notifications
You must be signed in to change notification settings - Fork 437
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
@@ -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. | |||
// |
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.
can we take SamplingRate, SamplingFraction and CustomTags, and put in into another struct which we can embed here and in BackendTelemetry ?
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.
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.
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.
cool, can you create a embedded struct inside Tracing
so SamplingFraction
and CustomTags
can be reused
5265310
to
1126592
Compare
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
xref: #5486