jabrena / spring-boot-user-beans

A visual way to increase the developer awareness to minimize the number of Beans in memory.
https://jabrena.github.io/spring-boot-user-beans/
Apache License 2.0
52 stars 3 forks source link

Create an issue on Spring Boot about unnamed Beans from Micrometer Core #139

Closed jabrena closed 1 year ago

jabrena commented 1 year ago

In the process to develop this Spring Boot Community Starter (For educational purposes), I discovered that few Beans related to Micrometer Core was created without any name.

It is necessary to create an issue on Spring Boot to fix it. https://github.com/spring-projects/spring-boot/issues https://github.com/micrometer-metrics/micrometer/issues

BeanDocument[beanName=, beanPackage=io.micrometer.core.instrument, dependencies=[MetricsAutoConfiguration]]
BeanDocument[beanName=, beanPackage=io.micrometer.core.instrument.config, dependencies=[HttpClientObservationsAutoConfiguration$MeterFilterConfiguration, ObservationProperties, MetricsProperties]]
BeanDocument[beanName=, beanPackage=io.micrometer.core.instrument.config, dependencies=[WebMvcObservationAutoConfiguration$MeterFilterConfiguration, MetricsProperties, ObservationProperties]]

You can see the case in the following visualization:

image

Test: https://github.com/jabrena/spring-boot-user-beans/blob/main/spring-boot-starter-user-beans/src/test/java/io/github/jabrena/userbeans/UnnamedMicrometerBeanTests.java

jabrena commented 1 year ago

Issue created: https://github.com/spring-projects/spring-boot/issues/36431

jabrena commented 1 year ago

Update the code with the notes from the issue.

jabrena commented 1 year ago

https://github.com/jabrena/spring-boot-user-beans/pull/152