Enable Java 15 for akka http instrumentation
MODIFY
instrumentation/akka-http-10.0/javaagent/akka-http-10.0-javaagent.gradle
instrumentation/akka-http-10.0/javaagent/akka-http-10.0-javaagent.gradle
-ext {
- // TODO remove once Scala/akka supports Java 15
- // https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html
- maxJavaVersionForTests = JavaVersion.VERSION_14
-}
-
apply from: "$rootDir/gradle/instrumentation.gradle"
apply from: "$rootDir/gradle/test-with-scala.gradle"
apply plugin: 'org.unbroken-dome.test-sets'

MODIFY
instrumentation/akka-http-10.0/javaagent/src/test/groovy/AkkaHttpClientInstrumentationTest.groovy
instrumentation/akka-http-10.0/javaagent/src/test/groovy/AkkaHttpClientInstrumentationTest.groovy
@@ -58,7 +58,7 @@ class AkkaHttpClientInstrumentationTest extends HttpClientTest {
Http.get(system).singleRequest(null, materializer)
then:
- thrown NullPointerException
+ def e = thrown NullPointerException
assertTraces(1) {
trace(0, 1) {
span(0) {
@@ -66,7 +66,7 @@ class AkkaHttpClientInstrumentationTest extends HttpClientTest {
name "HTTP request"
kind CLIENT
errored true
- errorEvent(NullPointerException)
+ errorEvent(NullPointerException, e.getMessage())
}
}
}

Enable Java 15 for akka http instrumentation (#1869)