public class TraceAnnotationsManager extends Object
It loads all the scripts contained in all the 'oatrules.btm' resource files then instrument all the methods annoted with the @Trace.
| Constructor and Description |
|---|
TraceAnnotationsManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
finishInitialization(ClassLoader classLoader)
This method is separated out from initialize to allow Spring Boot's LaunchedURLClassLoader to
call it once it is loaded.
|
static void |
initialize(org.jboss.byteman.agent.Retransformer trans)
This method initializes the manager.
|
static void |
loadAnnotationsRules(String... scannedPackages)
Find all the methods annoted with @Trace and inject rules
|
static List<String> |
loadRules(String rulesFileName,
ClassLoader classLoader)
This method loads any OpenTracing Agent rules (otarules.btm) found as resources within the
supplied classloader.
|
static void |
uninstallScripts(List<String> installedScripts,
List<String> patterns)
Uninstall some scripts from a list of patterns.
|
public static void initialize(org.jboss.byteman.agent.Retransformer trans)
trans - The ByteMan retransformerpublic static void finishInitialization(ClassLoader classLoader)
classLoader - public static void uninstallScripts(List<String> installedScripts, List<String> patterns) throws Exception
patterns - not case sensitive (eg. "mongo", "apache http", "elasticsearch", etc...])Exceptionpublic static List<String> loadRules(String rulesFileName, ClassLoader classLoader)
classLoader - The classloaderpublic static void loadAnnotationsRules(String... scannedPackages)