-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make GlobalIgnoresMatcher configurable #1952
Comments
any proposals how to make the global ignore matchers configurable? |
Do you think a simple csv property of excluded prefixes could cut it? So we wouldn't be able to filter on the exclude, but it is the simplest form of configurability I think. Wondering if it's enough for the use case. |
There are two use cases: 1. adding more exclusion patterns and 2. including some classes that the upstream excludes (my use-case). Given how the exclusion is written it will be better to provide a customized implementation. A programmatic SPI will be probably more flexible and optimized. Here is some proposal: interface GlobalIgnoresMatcherProvider {
<T extends TypeDescription> ElementMatcher.Junction<T> type();
ElementMatcher.Junction.AbstractBase<ClassLoader> classloader();
// or order
int priority();
} The matcher with the highest priority/order will be installed. |
Is your feature request related to a problem? Please describe.
I want to instrument
java.io.InputStream
andjava.io.OutputStream
e.g. https://github.com/hypertrace/javaagent/blob/c320487308481c4ca7a90ec0f5b054ea1788e7c2/instrumentation/java-streams/src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/java/inputstream/InputStreamInstrumentationModule.java#L71The core configuration ignores almost all types from
java.
package, hence my instrumentation does not work on e.g.ByteArrayInputStream
etc.opentelemetry-java-instrumentation/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/matcher/GlobalIgnoresMatcher.java
Line 105 in 4e52b3e
Describe the solution you'd like
Make the
GlobalIgnoresMatcher
configurable.The text was updated successfully, but these errors were encountered: