Skip to content

Does agent check all classes when they are loaded into jvm? #10071

Answered by laurit
tuhao1020 asked this question in Q&A
Discussion options

You must be logged in to vote

Agent needs to inspect all loaded classes to determine whether they need to be transformed, this can be expensive when you create a lot of class loaders (specially when you are running an old version as we have improved this in the last year). To ignore classes you can use https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/extension/ignore/IgnoredTypesConfigurer.java SPI in an agent extension. If you are creating a lot of class loaders then try

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tuhao1020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants