spring-cloud / spring-cloud/spring-cloud-gateway

StackOverflowError when enabling automatic context propagation in Spring Boot 3.5.6 (Micrometer / Reactor)

Open
#3,934 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.