Skip to content

Cyclic dependency around auto-configuration of JDBC instrumentation #2169

@jonatan-ivanov

Description

@jonatan-ivanov

Starting from Spring Boot 2.7.0-RC1 (see spring-projects/spring-boot#30282) DataSource beans depend on Micrometer's MeterRegistry (since Boot auto-configures a Micrometer binder that uses the DataSource). Because of TraceDataSourceDecoratorBeanPostProcessor (that post processes DataSource beans), DataSource instances depend on Sleuth's Tracer. If Zipkin is used, the Tracer depends on Micrometer's MeterRegistry since we auto-configure Micrometer support for Zipkin.

A simplified view of the issue:
MeterRegistry -> DataSource -> Tracer -> MeterRegistry

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions