Switched to extending JpaRepository
Switched to extending JpaRepository rather than CrudRepository, so that multiple spring data integrations can coexist.
Since JpaRepository redefines findAll, this required one update to the test.  The other references to CrudRepositopry remain unchanged since JpaRepository extends CrudRepository without redefining those methods.
MODIFY
dd-java-agent/instrumentation/spring-data/src/test/groovy/SpringJpaTest.groovy
dd-java-agent/instrumentation/spring-data/src/test/groovy/SpringJpaTest.groovy
@@ -25,7 +25,7 @@ class SpringJpaTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
- operationName "CrudRepository.findAll"
+ operationName "JpaRepository.findAll"
serviceName "spring-data"
errored false
tags {

MODIFY
dd-java-agent/instrumentation/spring-data/src/test/java/spring/jpa/JpaCustomerRepository.java
dd-java-agent/instrumentation/spring-data/src/test/java/spring/jpa/JpaCustomerRepository.java
package spring.jpa;
import java.util.List;
-import org.springframework.data.repository.CrudRepository;
-public interface JpaCustomerRepository extends CrudRepository<JpaCustomer, Long> {
+import org.springframework.data.jpa.repository.JpaRepository;
+public interface JpaCustomerRepository extends JpaRepository<JpaCustomer, Long> {
List<JpaCustomer> findByLastName(String lastName);
}

Switched to extending JpaRepository

Switched to extending JpaRepository rather than CrudRepository, so that multiple spring data integrations can coexist.

Since JpaRepository redefines findAll, this required one update to the test.  The other references to CrudRepositopry remain unchanged since JpaRepository extends CrudRepository without redefining those methods.