fix: use correct jetty version
MODIFY
dd-java-agent/instrumentation/jetty-9/jetty-9.gradle
dd-java-agent/instrumentation/jetty-9/jetty-9.gradle
@@ -27,10 +27,8 @@ dependencies {
compile deps.autoservice
testCompile project(':dd-java-agent:testing')
- testCompile group: 'org.eclipse.jetty', name: 'jetty-server', version: '8.2.0.v20160908'
- testCompile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '8.2.0.v20160908'
- testCompile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: '8.0.41'
- testCompile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version: '8.0.41'
+ testCompile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.4.6.v20170531'
+ testCompile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.4.6.v20170531'
testCompile project(':dd-java-agent:instrumentation:okhttp-3') // used in the tests
testCompile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.6.0'

MODIFY
dd-java-agent/instrumentation/sparkjava/src/main/java/datadog/trace/instrumentation/sparkjava/RoutesInstrumentation.java
dd-java-agent/instrumentation/sparkjava/src/main/java/datadog/trace/instrumentation/sparkjava/RoutesInstrumentation.java
@@ -28,7 +28,7 @@ public class RoutesInstrumentation extends Instrumenter.Configurable {
.transform(
DDAdvice.create()
.advice(
- named("find") // HttpMethod httpMethod, String path, String acceptType
+ named("find")
.and(takesArgument(0, named("spark.route.HttpMethod")))
.and(takesArgument(1, named("String")))
.and(takesArgument(2, named("String")))

fix: use correct jetty version