Migrate New Relic Agent to OpenTelemetry

MSAL

Migrate from New Relic Java Agent annotations to OpenTelemetry annotations. Replace @Trace annotations with @WithSpan annotations.

org.openrewrite.java.spring.opentelemetry.MigrateNewRelicToOpenTelemetry
mod run . --recipe=org.openrewrite.java.spring.opentelemetry.MigrateNewRelicToOpenTelemetry

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. Add Gradle or Maven dependency io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:2.x
  2. Change type Trace to WithSpan
  3. Change type NewRelic to GlobalOpenTelemetry