-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support sampling file reload interval #6440
Conversation
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6440 +/- ##
==========================================
- Coverage 96.27% 96.25% -0.03%
==========================================
Files 369 369
Lines 21048 21051 +3
==========================================
- Hits 20264 20262 -2
- Misses 600 604 +4
- Partials 184 185 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
just one comment
Signed-off-by: Yuri Shkuro <[email protected]>
## Which problem is this PR solving? - Accidentally stumbled upon this when looking at jaegertracing#6431 - Turns out v2 config did not support all the options from v1 ## Description of the changes - Add support for reload interval ## How was this change tested? `go run ./cmd/jaeger` ``` $ curl "http://localhost:5778/?service=x" {"strategyType":0,"probabilisticSampling":{"samplingRate":1}}% ``` Edit cmd/jaeger/sampling-strategies.json to change default to 0.1. Observe server logs showing new values. ``` $ curl "http://localhost:5778/?service=x" {"strategyType":0,"probabilisticSampling":{"samplingRate":0.1}}% ``` --------- Signed-off-by: Yuri Shkuro <[email protected]> Signed-off-by: Yuri Shkuro <[email protected]>
Which problem is this PR solving?
Description of the changes
How was this change tested?
go run ./cmd/jaeger
Edit cmd/jaeger/sampling-strategies.json to change default to 0.1.
Observe server logs showing new values.