An open API service indexing awesome lists of open source software.

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

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