OpenFeign / OpenFeign/feign

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

Open
#2,001 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feedback provided
Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Spring Boot 3 Feign client configuration described in the issue under native AOT compilation, then compare tracing behavior with the working JVM build. The issue is done when trace IDs propagate from the Feign client to the server without requiring a forced @Observed annotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend-api-design, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.