getappmap / appmap-java

AppMap client agent for Java
Other
80 stars 14 forks source link

A Spring Boot app that's configured to use Jetty fails to generate request recordings #265

Closed apotterri closed 5 months ago

apotterri commented 5 months ago

With this in a Spring Boot app's pom.xml

    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      <exclusions>
        <exclusion>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-tomcat</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-jetty</artifactId>
    </dependency>

the mvn spring-boot:run will start an embedded Jetty server to host the app.

The Java agent incorrectly detects this as a Spark server and causes request recording to fail.

appland-release commented 5 months ago

:tada: This issue has been resolved in version 1.26.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: