OpenFeign / feign

Feign makes writing java http clients easier
Apache License 2.0
9.51k stars 1.93k forks source link

fiegn client does not propagate micrometer-tracing in native (AOT) with springboot 3 #2001

Open guillaume-viland opened 1 year ago

guillaume-viland commented 1 year ago

I have a full working configuration ok for spring boot which correctly propagate traceid from feign client to server, but when pass this to native AOT compilation it stops working: 1) @Observed annotation must be forced on Feign Client when it was not needed in SB3 2) traceid are not propagated looks like something is done by Aspect or Reflection or something not correctly processed on AOT

velo commented 1 year ago

What is native AOT?

guillaume-viland commented 1 year ago

AOT Ahead Of Time compilation of java: https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.native-build-tools

kdavisk6 commented 1 year ago

Feign does not support Ahead of Time compilation and has not been tested officially with native images.