PersistenceConfig -> JpaPersistenceConfig
MODIFY
dd-java-agent/instrumentation/spring-data/src/test/groovy/SpringJpaTest.groovy
dd-java-agent/instrumentation/spring-data/src/test/groovy/SpringJpaTest.groovy
@@ -4,12 +4,12 @@ import io.opentracing.tag.Tags
import org.springframework.context.annotation.AnnotationConfigApplicationContext
import spring.jpa.Customer
import spring.jpa.CustomerRepository
-import spring.jpa.PersistenceConfig
+import spring.jpa.JpaPersistenceConfig
class SpringJpaTest extends AgentTestRunner {
def "test CRUD"() {
// moved inside test -- otherwise, miss the opportunity to instrument
- def context = new AnnotationConfigApplicationContext(PersistenceConfig)
+ def context = new AnnotationConfigApplicationContext(JpaPersistenceConfig)
def repo = context.getBean(CustomerRepository)
// when Spring JPA sets up, it issues metadata queries -- clear those traces

RENAME
dd-java-agent/instrumentation/spring-data/src/test/java/spring/jpa/PersistenceConfig.java
dd-java-agent/instrumentation/spring-data/src/test/java/spring/jpa/JpaPersistenceConfig.java
@@ -13,7 +13,7 @@ import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import org.springframework.transaction.PlatformTransactionManager;
@EnableJpaRepositories(basePackages = "spring/jpa")
-public class PersistenceConfig {
+public class JpaPersistenceConfig {
@Bean(name = "transactionManager")
public PlatformTransactionManager dbTransactionManager() {

PersistenceConfig -> JpaPersistenceConfig