Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import datadog.trace.agent.tooling.InstrumenterModule;
import datadog.trace.bootstrap.CallDepthThreadLocalMap;
import datadog.trace.bootstrap.Constants;
import java.util.Set;
import net.bytebuddy.asm.Advice;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.matcher.ElementMatcher;
Expand All @@ -31,14 +32,19 @@
* for the classes that we have put in the bootstrap class loader.
*/
@AutoService(InstrumenterModule.class)
public final class ClassloadingInstrumentation extends InstrumenterModule.Tracing
public final class ClassloadingInstrumentation extends InstrumenterModule
implements Instrumenter.ForBootstrap,
Instrumenter.ForTypeHierarchy,
Instrumenter.HasMethodAdvice {
public ClassloadingInstrumentation() {
super("classloading");
}

@Override
public boolean isApplicable(Set<TargetSystem> enabledSystems) {
return true;
}

@Override
protected boolean defaultEnabled() {
return true;
Expand Down