-
Notifications
You must be signed in to change notification settings - Fork 132
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
X-Ray Remote Sampler does not poll for new rules #133
Comments
The relevant code is here which does reschedule. I know @wangzlei saw some behavior that indicated this may not be happening but just wondering if you were able to confirm the repro steps? During initial testing I could confirm dynamic update of the rules and code hasn't changed since so wondering if it's a corner case |
I have not confirmed the repro steps, and I wasn't looking at that code which does look good. Maybe @wangzlei can either provide a repro or enable |
I think this issue is still open. I set some breakpoints. The problem is that long delay = pollingIntervalNanos + RANDOM.nextInt(jitterNanos); The reason is that in my case Why is it negative? In my case polling interval nanos is the default of 300 s = 3 * 10^11 ns. 3 * 10^11 / 100 = 3 * 10^9 which is bigger than Integer.MAX_VALUE. |
Description
Currently, the X-Ray sampler only polls the
GetSamplingRules
once on startup:opentelemetry-java-contrib/aws-xray/src/main/java/io/opentelemetry/contrib/awsxray/XraySamplerClient.java
Line 62 in b5d88e2
This is problematic because if a customer creates a new sampling rule, it will never be picked up by the application until it is redeployed.
Steps to reproduce
Expectation
Instead, the remote sampler should poll the
GetSamplingRules
API periodically, every 5 minutes.cc @anuraaga
The text was updated successfully, but these errors were encountered: