Coder Social home page Coder Social logo

Comments (6)

anuraaga avatar anuraaga commented on June 29, 2024

Hi @mat-rumian - the aws java agent is almost the same binary as the OpenTelemetry upstream one so it's really surprising if they have different performance. I tried with the upstream one a while ago and found it to have similar 40-50s overhead with normal functions, and around 10s with provisioned concurrency. Can you confirm the function configuration was the same when trying the two agents? I'll try to confirm on my end too.

from aws-otel-java-instrumentation.

anuraaga avatar anuraaga commented on June 29, 2024

@mat-rumian - I tried the upstream agent and had similar performance profiles to the AWS distro. No provisioning, ~60s, with provisioning, ~10s. This is unfortunately just the nature of doing significant bytecode manipulation at runtime I'm afraid.

One trick to try could be to disable instrumentation by default and only enable the ones you need, using -Dotel.instrumentation.common.default-enabled=false. For example, this enables only annotatinon processing

https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/suppressing-instrumentation.md#enable-manual-instrumentation-only

from aws-otel-java-instrumentation.

drissamri avatar drissamri commented on June 29, 2024

Will this be improved going forward? Are there any plans to do more things at build time instead of runtime? (as Quarkus, Micronaut and such are doing)

from aws-otel-java-instrumentation.

anuraaga avatar anuraaga commented on June 29, 2024

@drissamri I have heard that Quarkus team is working on being able to run a java agent during compile time which would probably make the Java agent practical on lambda, even without provisioned concurrency! I'm not sure of a roadmap or any issues to follow related to it, my understanding is the effort just started.

from aws-otel-java-instrumentation.

github-actions avatar github-actions commented on June 29, 2024

This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled

from aws-otel-java-instrumentation.

github-actions avatar github-actions commented on June 29, 2024

This issue was closed because it has been marked as stale for 30 days with no activity.

from aws-otel-java-instrumentation.

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.