How to instrument an abstract function inside a class ? #8395
Replies: 2 comments
-
Hey @meirtolpin11 , The fragment you posted looks correct; can you also post the advice class? You could replace the advice enter/exit methods with some Instrumenting abstract methods definitely works in general, here`s a sample instrumentation that does that in the agent. |
Beta Was this translation helpful? Give feedback.
-
You aren't actually instrumenting the abstract method, as abstract methods don't have a body, but rather the IgnoredTypesConfigurer to override the exclude.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am trying to instrument the
newDocumentBuilder
function insidejavax.xml.parsers.DocumentBuilderFactory
-This is my code snippet -
But unfortunately it's not working and
$NewDocumentBuilder
is never called.What am I doing wrong? it's working with all the other function which are part of
DocumentBuilderFactory
(there are not abstract).So I believe that the reason it's not working is because it's abstract, but I have no idea how to solve that.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions