Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Micrometer Instrumentation for Micrometer version 1.5 and higher

This module provides a Micrometer registry which sends Micrometer metrics to the OpenTelemetry Metrics SDK.

Quickstart

Add these dependencies to your project

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")

Usage

The instrumentation library provides an implementation of MeterRegistry to bridge Micrometer API to OpenTelemetry Metrics.

MeterRegistry meterRegistry = OpenTelemetryMeterRegistry.builder(openTelemetry).build();