Advice of byte buddy throw java.lang.ClassNotFoundException when using my own class in the custom instrumentation #3275
Unanswered
bgong-mdsol
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Maybe this will hetlp: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/contributing/writing-instrumentation-module.md#ishelperclass ? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I like to write my own instrumentation to add some attributes based on http request. I write a helper class to build additional attributes, and get the exception java.lang.ClassNotFoundException when call it in Advice of byte buddy:
When I run my app with the custom otel javaagent, got the error below, any suggestion?
ERROR: java.lang.ClassNotFoundException: my.javaagent.instrumentation.servlet.AttributesHelper
Beta Was this translation helpful? Give feedback.
All reactions