Skip to content

spring-projects-experimental/r2dbc-micrometer-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Auto Configuration for R2DBC Observation

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.


Project Setup

Released artifacts are available in the maven central. Snapshot are available in the spring snapshot repository.

Maven

  <!-- 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>

Gradle

// 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.

Development

Requires JDK 17.

Release

Push the releasing version to the release branch.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages