getappmap / appmap-java

AppMap client agent for Java
Other
81 stars 15 forks source link

Calls to some Java packages failing to record #172

Closed brikelly closed 1 year ago

brikelly commented 1 year ago

A Slack community user reported that his calls to packages using feign were not showing up in his maps. He sent in this test case (spring-petclinic-feign.zip),a modified Pet Clinic, which demonstrates the issue.

Even though the appmap.yml specifies that we should map package org.springframework.samples.petclinic, none of the calls to org.springframework.samples.petclinic.controller.FactsController show up. Same for org.springframework.samples.petclinic.service.FactsService.

Use the maven file to build and package the app as a jar, then run with: java -javaagent:appmap-1.15.4.jar -jar target/spring-petclinic-0.0.1-SNAPSHOT.jar

Then start recording, call the following APIs: http://localhost:8080/facts http://localhost:8080/vets

After stopping recording, the generated AppMaps will look like this: feign_2.appmap.json.zip. They should show things like calls to the external Facts service but do not.

I captured AppMap debug logging for this, attached here. debug.log.zip

appland-release commented 1 year ago

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

The release is available on:

Your semantic-release bot :package::rocket: