Skip to content

I've added a new module, but I'm having trouble getting it to instrument all methods of a specific class. What should I do? #11882

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

You must be logged in to vote

Turn on debug logging. You'll probably see something like

[otel.javaagent 2024-07-23 09:28:06:230 +0300] [Test worker] ERROR io.opentelemetry.javaagent.testing.bytebuddy.TestAgentListener - Unexpected instrumentation error when instrumenting org.apache.http.impl.client.AbstractHttpClient on jdk.internal.loader.ClassLoaders$AppClassLoader@5679c6c6
java.lang.IllegalStateException: Cannot catch exception during constructor call for protected org.apache.http.impl.client.AbstractHttpClient(org.apache.http.conn.ClientConnectionManager,org.apache.http.params.HttpParams)
	at net.bytebuddy.asm.Advice.doWrap(Advice.java:614)
	at net.bytebuddy.asm.Advice.wrap(Advice.java:569)
	at net.bytebuddy.asm.A…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JangCool
Comment options

Answer selected by JangCool
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