Skip to content

Fix observation example: drop hardcoded micrometer-tracing-bom import - #203

Merged
Croway merged 1 commit into
apache:mainfrom
Croway:fix-observation-micrometer-version
Sep 4, 2026
Merged

Fix observation example: drop hardcoded micrometer-tracing-bom import#203
Croway merged 1 commit into
apache:mainfrom
Croway:fix-observation-micrometer-version

Conversation

@Croway

@Croway Croway commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • observation/pom.xml imported micrometer-tracing-bom:1.5.0 ahead of spring-boot-dependencies (which manages 1.7.1), forcing micrometer-core down to 1.15.0
  • That older version is missing the JvmMemoryMeterConventions class, so service2 crashed at startup with a ClassNotFoundException (before service1/client could even be reached)
  • Removed the redundant hardcoded micrometer-tracing.version property and BOM import, letting spring-boot-dependencies manage micrometer-tracing/micrometer-core consistently

Test plan

  • mvn dependency:tree -Dincludes=io.micrometer:micrometer-core on service2 now resolves 1.17.1 (from spring-boot-dependencies) instead of 1.15.0
  • Confirmed JvmMemoryMeterConventions is present in the resolved micrometer-core:1.17.1 jar
  • Full reactor build (loggingtracer, client, service1, service2) succeeds
  • Ran service2 with spring-boot:run — starts cleanly (Started Service2Application in 1.483 seconds), no ClassNotFoundException

observation/pom.xml imported micrometer-tracing-bom 1.5.0 ahead of
spring-boot-dependencies (which manages 1.7.1), forcing micrometer-core
down to 1.15.0. That version is missing the JvmMemoryMeterConventions
class, so service2 crashed at startup with a ClassNotFoundException
before service1/client could even be reached. spring-boot-dependencies
already manages micrometer-tracing consistently, so the extra BOM
import is removed instead of pinned to a matching version.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JvQJNT1UYzqUm5HQtkL6Nu
@Croway
Croway merged commit 75e47e8 into apache:main Sep 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant