https://github.com/spring-projects-experimental/r2dbc-micrometer-spring-boot
https://github.com/spring-projects-experimental/r2dbc-micrometer-spring-boot
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/spring-projects-experimental/r2dbc-micrometer-spring-boot
- Owner: spring-projects-experimental
- Created: 2022-11-18T21:01:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T06:50:14.000Z (7 months ago)
- Last Synced: 2025-04-04T13:08:47.386Z (22 days ago)
- Language: Java
- Size: 121 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Spring Boot Auto Configuration for R2DBC Observation
Provides Spring Boot 3 auto configuration for R2DBC observation with [Micrometer Observation API](https://micrometer.io/docs/observation).
**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`**.----
## Project Setup
Released artifacts are available in the maven central. Snapshot are available in the spring snapshot repository.
- https://repo.spring.io/snapshot (For snapshot version)### Maven
```xml
org.springframework.experimental
r2dbc-micrometer-spring-boot
[VERSION]
```### Gradle
```groovy
// for snapshot usage
/*
repositories {
maven { url 'https://repo.spring.io/snapshot' }
}
*/dependencies {
implementation 'org.springframework.experimental:r2dbc-micrometer-spring-boot:[VERSION]'
}
```## How to use
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.## License
This project is released under version 2.0 of the [Apache License][l].## Development
Requires JDK 17.
### Release
Push the releasing version to the `release` branch.
[l]: https://www.apache.org/licenses/LICENSE-2.0