Provides Spring Boot 3 auto configuration for R2DBC observation with Micrometer Observation API.
UPDATE:
Spring Boot 3.2
now includes built-in auto-configuration for r2dbc-proxy
observability.
For earlier versions, this project offers seamless auto-configuration for Spring Boot 3.0
and 3.1
.
Released artifacts are available in the maven central. Snapshot are available in the spring snapshot repository.
- https://repo.spring.io/snapshot (For snapshot version)
<!-- For snapshot
<repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
-->
<dependencies>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>r2dbc-micrometer-spring-boot</artifactId>
<version>[VERSION]</version>
</dependency>
<dependencies>
// for snapshot usage
/*
repositories {
maven { url 'https://repo.spring.io/snapshot' }
}
*/
dependencies {
implementation 'org.springframework.experimental:r2dbc-micrometer-spring-boot:[VERSION]'
}
Spring Boot automatically picks up the R2dbcObservationAutoConfiguration
class when the jar file is added to the classpath.
In addition, r2dbc.observation.enabled
property can toggle the auto configuration for the R2DBC observation.
OR, use spring.autoconfigure.exclude
property from Spring Boot for excluding the auto configuration.
This project is released under version 2.0 of the Apache License.
Requires JDK 17.
Push the releasing version to the release
branch.