Class ClassLoaderMatcher

java.lang.Object
io.opentelemetry.javaagent.tooling.muzzle.ClassLoaderMatcher

public class ClassLoaderMatcher extends Object
This class verifies that a given ClassLoader satisfies all expectations of a given InstrumentationModule. It is used to make sure than a module's transformations can be safely applied to a given class loader.
See Also:
  • Method Details

    • matchesAll

      public static Map<String,List<Mismatch>> matchesAll(ClassLoader classLoader, boolean injectHelpers, Set<String> excludedInstrumentationNames)
      For all InstrumentationModules found in the current thread's context class loader calls matches(InstrumentationModule, ClassLoader, boolean) and returns the aggregated result.

      The returned map will be empty if and only if no instrumentation modules were found.