Migrate X-Ray TracingHandler to TracingInterceptor
Apache 2.0Replaces withRequestHandlers(new TracingHandler(..)) on an AWS SDK v2 client builder with a TracingInterceptor added to the builder's ClientOverrideConfiguration: a new one when the builder has none, otherwise the existing one, since a second overrideConfiguration would replace the first. TracingHandler(AWSXRay.getGlobalRecorder()) becomes TracingInterceptor(), which uses the same global recorder.
org. openrewrite. aws. sdk. MigrateXRayTracingHandlermod run . --recipe= org. openrewrite. aws. sdk. MigrateXRayTracingHandlerInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.