Replies: 2 comments 6 replies
-
Do we need "proper cache" at all? Or we can just use |
Beta Was this translation helpful? Give feedback.
1 reply
-
@ben-manes Can you share your benchmark results here? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been recently looking into how we can separate library instrumentation for DB, e.g. mongodb or lettuce. I found that our current sanitization is in
javaagent-api
https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/javaagent-api/src/main/java/io/opentelemetry/javaagent/instrumentation/api/db
And it's not trivial to move to
instrumentation-api
because it depends onBoundedCache
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-api/src/main/java/io/opentelemetry/javaagent/instrumentation/api/BoundedCache.java
While technically it would work, it would not have any cache, which I guess isn't really acceptable for library instrumentation performance. Does it make sense to shade Caffeine, or similar utilities, into
instrumentation-api
which ends up in bootstrap classloader? Or any other ideas on how to implement this sort of logic to work well with both agent and library?Beta Was this translation helpful? Give feedback.
All reactions