spring-cloud / spring-cloud/spring-cloud-gateway
StackOverflowError when enabling automatic context propagation in Spring Boot 3.5.6 (Micrometer / Reactor)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.9k
- Forks
- 3.5k
- Avg merge
- 20h 57m
- Merged PRs (30d)
- 8
Description
I’m facing a StackOverflowError in a Spring Boot 3.5.6 application when enabling automatic context propagation — either via Hooks.enableAutomaticContextPropagation() in code or the equivalent YAML tracing properties.
The issue doesn’t occur at startup but only when I access the application through my frontend (localhost:3000), which makes REST API calls to the backend.
Without automatic propagation enabled, everything works fine.
Does anyone have any idea about this issue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by reproducing the StackOverflowError with Spring Boot 3.5.6, automatic context propagation, and a frontend request to the backend, then capture the stack trace and isolate the Micrometer/Reactor path. Done means the request no longer overflows with either enabling method, with a regression test or minimal reproducer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100