Latest version requires at least 1 bean
MODIFY
dd-java-agent/instrumentation/cdi-1.2/src/test/groovy/CDIContainerTest.groovy
dd-java-agent/instrumentation/cdi-1.2/src/test/groovy/CDIContainerTest.groovy
import datadog.trace.agent.test.AgentTestRunner
+import datadog.trace.instrumentation.TestBean
import org.jboss.weld.environment.se.Weld
import org.jboss.weld.environment.se.WeldContainer
import org.jboss.weld.environment.se.threading.RunnableDecorator
@@ -9,7 +10,8 @@ class CDIContainerTest extends AgentTestRunner {
given:
Weld builder = new Weld()
.disableDiscovery()
- .decorators(RunnableDecorator)
+ .addDecorator(RunnableDecorator)
+ .addBeanClass(TestBean)
when:
WeldContainer container = builder.initialize()

ADD
dd-java-agent/instrumentation/cdi-1.2/src/test/java/datadog/trace/instrumentation/TestBean.java
+package datadog.trace.instrumentation;
+
+public class TestBean {
+
+ private String someField;
+
+ public String getSomeField() {
+ return someField;
+ }
+
+ public void setSomeField(final String someField) {
+ this.someField = someField;
+ }
+}

Latest version requires at least 1 bean