Require the OpenTelemetry Go SDK instead of newrelic-telemetry-sdk-go
ProprietaryRequire go.opentelemetry.io/otel v1.46.0 and go.opentelemetry.io/otel/metric once the source records through them, and drop github.com/newrelic/newrelic-telemetry-sdk-go once nothing imports it. Exporting to New Relic also needs an OTLP exporter and go.opentelemetry.io/otel/sdk, which the hand-written provider wiring pulls in. Does not sync go.sum, so a go mod tidy is still needed.
org. openrewrite. golang. migration. UpdateNewRelicTelemetryDependencymod run . --recipe= org. openrewrite. golang. migration. UpdateNewRelicTelemetryDependencyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.