For the latest stable version, please use Micrometer 1.14.2!

Installing

Micrometer comes with a Bill of Materials (BOM), which is a project that manages all the project versions for consistency.

The following example shows the required dependency for Micrometer Observation in Gradle:

implementation platform('io.micrometer:micrometer-bom:latest.release')
implementation 'io.micrometer:micrometer-observation'

The following example shows the required dependency in Maven:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.micrometer</groupId>
            <artifactId>micrometer-bom</artifactId>
            <version>${micrometer.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
      <groupId>io.micrometer</groupId>
      <artifactId>micrometer-observation</artifactId>
    </dependency>
</dependencies>