-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having AspectJ and Micrometer on the classpath is not a strong enough signal to enable support for Micrometer observation annotations #39128
Comments
It seems like that might have been forgotten in the release notes? I like this change but have not perceived it as a noteworthy change in the release notes/blog. It does show up under "bugfixes". https://github.com/spring-projects/spring-boot/releases/tag/v3.2.2 I think the notes should be updated to highlight that change better? |
Thanks, @DRoppelt. Looks like we missed this during the release. I've added a Noteworthy Changes section to the top of the release notes for 3.2.2. |
hey @wilkinsona, just noticed that the release notes are incorrect. It says the property is |
Thanks @DarkAtra, I've edited the notes. |
I think that may be a mistake in the code as we have |
My mistake, I've created #39600 to fix that. |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [nu.ndw.nls.springboot:openapi](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | build | patch | `3.2.6` -> `3.2.8` | | [nu.ndw.nls.springboot:oauth2-client-credentials](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | compile | patch | `3.2.6` -> `3.2.8` | | [nu.ndw.nls.springboot:test](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | test | patch | `3.2.6` -> `3.2.8` | | [nu.ndw.nls.springboot:security](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | compile | patch | `3.2.6` -> `3.2.8` | | [nu.ndw.nls.springboot:messaging](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | compile | patch | `3.2.6` -> `3.2.8` | | [nu.ndw.nls.springboot:datadog](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | compile | patch | `3.2.6` -> `3.2.8` | | [nu.ndw:nls-nwb-data-access-jooq](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | compile | patch | `4.2.5` -> `4.2.6` | | [org.springframework.boot:spring-boot-starter-parent](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | patch | `3.2.1` -> `3.2.2` | --- ### Release Notes <details> <summary>spring-projects/spring-boot (org.springframework.boot:spring-boot-starter-parent)</summary> ### [`v3.2.2`](https://github.com/spring-projects/spring-boot/releases/tag/v3.2.2) [Compare Source](spring-projects/spring-boot@v3.2.1...v3.2.2) #### 🐞 Bug Fixes - SslBundle implementations do not provide useful toString() results [#​39167](spring-projects/spring-boot#39167) - JarEntry.getComment() returns incorrect result from NestedJarFile instances [#​39166](spring-projects/spring-boot#39166) - Mixing PEM and JKS certificate material in server.ssl properties does not work [#​39158](spring-projects/spring-boot#39158) - Having AspectJ and Micrometer on the classpath is not a strong enough signal to enable support for Micrometer observation annotations [#​39128](spring-projects/spring-boot#39128) - Actuator endpoints with no operations that use selectors are not accessible when mapped to / [#​39122](spring-projects/spring-boot#39122) - Spring Boot 3.2 app that uses WebFlux, Security, and Actuator may fail to start due to a missing authentication manager [#​39096](spring-projects/spring-boot#39096) - management.observations.http.server.requests.name no longer has any effect [...
As of #37626, Spring Boot 3.2 auto-configures AspectJ handlers to support observation annotations like
@Timed
and@Counted
withMetricsAspectsAutoConfiguration
. Spring Boot 3.3 will expand that for tracing annotations inMicrometerTracingAutoConfiguration
.Right now those auto-configurations are conditional on the presence of Micrometer and AspectJ, but we've found that those aspects are quite broadly applied and can significant startup time difference. While this is a fine feature to support, we should restrict a bit its application to ensure that it's only applied when developers choose to. The Aspectj dependency can come from many use cases and is not a good indicator for applications opting-in for this feature.
We should add a
management.observations.annotations.enabled
configuration property and introduce it with a defaultfalse
value. While this changes behavior, we're still early in the 3.2.x generation and this is a impact big enough that we're considering this a bug. We'll make this noteworthy in the release notes.The text was updated successfully, but these errors were encountered: