This module provides a Micrometer registry which sends Micrometer metrics to the OpenTelemetry Metrics SDK.
Replace OPENTELEMETRY_VERSION
with the latest
release.
For Maven, add to your pom.xml
dependencies:
<dependencies>
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-micrometer-1.5</artifactId>
<version>OPENTELEMETRY_VERSION</version>
</dependency>
</dependencies>
For Gradle, add to your dependencies:
implementation("io.opentelemetry.instrumentation:opentelemetry-micrometer-1.5:OPENTELEMETRY_VERSION")
The instrumentation library provides an implementation of MeterRegistry
to bridge Micrometer API to OpenTelemetry Metrics.
MeterRegistry meterRegistry = OpenTelemetryMeterRegistry.builder(openTelemetry).build();