-
Hi, Problem statementMy target application has many shaded opensource libs. DetailI ran across a bit of a road block with auto instrumentation of my company's runtime library because the code I am trying to instrument is an "agent-like" jar called DME which has shaded quite a few opensource libraries. Example:
This is old code, luckily it had been upgraded to run in a 1.8 runtime, but making any changes to it is not an option. A lot of these shaded libraries are ones that Otel auto instrumentation looks for and uses. A few others that are shaded:
IdeasThe only approach I can think of is to create my own orphan build and apply the exact shading rules to the opentelemetry-javaagent classes so that the names of these classes bundled in opentelemetry-javaagent-all.jar now match exactly with the Is there any recommendations or ideas for handling target applications with shaded libraries? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I may be overthinking, the instrumentation module should have what I need,maybe through the helper class mechanics or the class loader matching to find the right classes to apply Advice. After a class match is made, the instrumentation's Advice will take over with no need to alter the class names internally . |
Beta Was this translation helpful? Give feedback.
I may be overthinking, the instrumentation module should have what I need,maybe through the helper class mechanics or the class loader matching to find the right classes to apply Advice. After a class match is made, the instrumentation's Advice will take over with no need to alter the class names internally .