Class HelperClassPredicate
- java.lang.Object
-
- io.opentelemetry.javaagent.tooling.muzzle.HelperClassPredicate
-
public final class HelperClassPredicate extends Object
-
-
Constructor Summary
Constructors Constructor Description HelperClassPredicate(Predicate<String> additionalLibraryHelperClassPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisHelperClass(String className)Defines which classes are treated by muzzle as "internal", "helper" instrumentation classes.booleanisLibraryClass(String className)
-
-
-
Method Detail
-
isHelperClass
public boolean isHelperClass(String className)
Defines which classes are treated by muzzle as "internal", "helper" instrumentation classes.This set of classes is defined by a package naming convention: all javaagent and library instrumentation classes are treated as "helper" classes and are subjected to the reference collection process. All others (including
instrumentation-apiandjavaagent-instrumentation-apimodules are not scanned for references (but references to them are collected).Aside from "standard" instrumentation helper class packages, instrumentation modules can pass an additional predicate to include instrumentation helper classes from 3rd party packages.
-
isLibraryClass
public boolean isLibraryClass(String className)
-
-