Coder Social home page Coder Social logo

Comments (3)

anuraaga avatar anuraaga commented on September 17, 2024

The relevant code is here which does reschedule.

https://github.com/open-telemetry/opentelemetry-java-contrib/blob/main/aws-xray/src/main/java/io/opentelemetry/contrib/awsxray/AwsXrayRemoteSampler.java#L147

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

from opentelemetry-java-contrib.

willarmiros avatar willarmiros commented on September 17, 2024

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 FINE level logs to see if some weird exception is occurring?

from opentelemetry-java-contrib.

felixscheinost avatar felixscheinost commented on September 17, 2024

I think this issue is still open. I set some breakpoints. The problem is that scheduleSamplerUpdate throws an exception in the following line

    long delay = pollingIntervalNanos + RANDOM.nextInt(jitterNanos);

The reason is that in my case jitterNanos = -1294967296, so negative, which isn't allowed.

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.

from opentelemetry-java-contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.