File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
dd-java-agent/instrumentation/wildfly-9/src/test/java/test Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1111import net .bytebuddy .asm .Advice ;
1212import org .jboss .modules .Module ;
1313
14+ /**
15+ * This instrumentation is to hack the way the jboss module classloader is loading SPI services. In
16+ * fact, in test we have a classloader different from the one usually used when launching wildfly.
17+ * In particular, we do not want to have SPI load services defined outside the jboss classloader
18+ * module, otherwise this class won't be found afterwards.
19+ */
1420@ AutoService (InstrumenterModule .class )
1521public class ModulePatchInstrumentation extends InstrumenterModule .Tracing
1622 implements Instrumenter .ForSingleType , Instrumenter .HasMethodAdvice {
Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ excludedClassesCoverage += [
7676 " datadog.trace.bootstrap.instrumentation.api.AgentTracer.NoopTraceConfig" ,
7777 " datadog.trace.bootstrap.instrumentation.api.AgentTracer.TracerAPI" ,
7878 " datadog.trace.bootstrap.instrumentation.api.Backlog" ,
79+ " datadog.trace.bootstrap.instrumentation.api.ClassloaderConfigurationOverrides" ,
80+ " datadog.trace.bootstrap.instrumentation.api.ClassloaderConfigurationOverrides.Lazy" ,
81+ " datadog.trace.bootstrap.instrumentation.api.ClassloaderConfigurationOverrides.ContextualInfo" ,
7982 " datadog.trace.bootstrap.instrumentation.api.StatsPoint" ,
8083 " datadog.trace.bootstrap.instrumentation.api.Schema" ,
8184 " datadog.trace.bootstrap.instrumentation.api.ScopeSource" ,
You can’t perform that action at this time.
0 commit comments