Migrate to Micrometer 1.13

MSAL

Migrate applications to the latest Micrometer 1.13 release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions as described in the Micrometer 1.13 migration guide.

org.openrewrite.micrometer.UpgradeMicrometer_1_13
mod run . --recipe=org.openrewrite.micrometer.UpgradeMicrometer_1_13

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Upgrade Gradle or Maven dependency versions io.micrometer:*:1.13.x
  2. Rename package name io.micrometer.prometheus to io.micrometer.prometheusmetrics
  3. Change type CollectorRegistry to PrometheusRegistry