Migrate Spring Cloud Sleuth 3.1 to Micrometer Tracing 1.0
MSALSpring Cloud Sleuth has been discontinued and only compatible with Spring Boot 2.x.
org. openrewrite. java. spring. cloud2022. MigrateCloudSleuthToMicrometerTracingmod run . --recipe= org. openrewrite. java. spring. cloud2022. MigrateCloudSleuthToMicrometerTracingInstall 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.
- Add
logging.pattern.levelfortraceIdandspanId - Change Gradle or Maven dependency
org.springframework.cloud:spring-cloud-starter-sleuth - Change Gradle or Maven dependency
org.springframework.cloud:spring-cloud-sleuth-otel-dependencies - Change Gradle or Maven dependency
org.springframework.cloud:spring-cloud-sleuth-api - Change Gradle or Maven dependency
org.springframework.cloud:spring-cloud-sleuth-autoconfigure - Change Gradle or Maven dependency
org.springframework.cloud:spring-cloud-sleuth-otel-autoconfigure - Change Gradle or Maven dependency
org.springframework.cloud:spring-cloud-sleuth-zipkin - Add Gradle or Maven dependency
org.springframework.boot:spring-boot-starter-actuator:3.0.x - Add Gradle or Maven dependency
io.micrometer:micrometer-tracing:1.0.x - Add Gradle or Maven dependency
org.springframework.boot:spring-boot-starter-aop:3.0.x - Remove a Gradle or Maven dependency
org.springframework.cloud:spring-cloud-sleuth-* - Remove Maven managed dependency
org.springframework.cloud:spring-cloud-sleuth-* - Remove redundant explicit dependency and plugin versions
- Change type
SpanFiltertoSpanExportingPredicate - Change type
SpanIgnoringSpanFiltertoSpanIgnoringSpanExportingPredicate - Rename package name
org.springframework.cloud.sleuth.autoconfigtoorg.springframework.boot.actuate.autoconfigure.tracing - Rename package name
org.springframework.cloud.sleuthtoio.micrometer.tracing - Change the key of a Spring application property
- Change the key of a Spring application property
- Delete a Spring configuration property
spring.sleuth.supports-join - Delete a Spring configuration property
spring.sleuth.trace-id128 - Change the key of a Spring application property
- Delete a Spring configuration property
spring.sleuth.sampler.rate - Change the key of a Spring application property
- Change the key of a Spring application property
- Change the key of a Spring application property
- Change the key of a Spring application property
- Change the key of a Spring application property