Skip to content

fix(observability): use Spring Boot 4 packages in ObservabilityAutoConfiguration afterName - #1850

Open
arimu1 wants to merge 1 commit into
embabel:mainfrom
arimu1:fix/1808-observability-boot4-afternames
Open

fix(observability): use Spring Boot 4 packages in ObservabilityAutoConfiguration afterName#1850
arimu1 wants to merge 1 commit into
embabel:mainfrom
arimu1:fix/1808-observability-boot4-afternames

Conversation

@arimu1

@arimu1 arimu1 commented Aug 1, 2026

Copy link
Copy Markdown

Summary

ObservabilityAutoConfiguration ordered itself after Spring Boot observation/tracing via afterName strings that still pointed at Boot 3 org.springframework.boot.actuate.autoconfigure.* paths.

On Spring Boot 4 those classes live under org.springframework.boot.micrometer.*. Boot silently ignores unknown afterName entries, so the ordering guarantee against Boot's observation/tracing autoconfiguration was lost (no compile/runtime failure).

Changes

  • Update afterName to:
    • org.springframework.boot.micrometer.tracing.autoconfigure.MicrometerTracingAutoConfiguration
    • org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration
  • Unit test pins the Boot 4 FQCNs and rejects leftover Boot 3 actuate paths; verifies observation class still resolves on the module classpath.

Fixes #1808

Test plan

AI disclosure

Human-reviewed fix. Implementation assisted by AI (Grok / Cursor implementator wave). Author: arimu1.

ObservabilityAutoConfiguration still pointed afterName at Boot 3
actuate.autoconfigure paths. Under Boot 4 those classes moved to
spring-boot-micrometer-*, so ordering relative to Boot observation
and tracing autoconfig was silently dropped.

Update afterName to the Boot 4 FQCNs and pin them with a unit test.

Fixes embabel#1808

Signed-off-by: arimu1 <19286898+arimu1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ObservabilityAutoConfiguration: update stale afterName strings to Spring Boot 4 packages

2 participants