Capture (instrument) an AWS SDK v3 client with AWS X-Ray when enabled.
Guarded behavior:
When capture is not enabled (based on shouldEnableXray), returns
the original client unchanged and does not load aws-xray-sdk.
When capture is enabled but daemonAddress is missing, throws.
When capture is enabled, synchronously loads aws-xray-sdk via
createRequire (through requireAwsXraySdk) and uses its
captureAWSv3Client helper to instrument the client.
Capture (instrument) an AWS SDK v3 client with AWS X-Ray when enabled.
Guarded behavior:
clientunchanged and does not loadaws-xray-sdk.daemonAddressis missing, throws.aws-xray-sdkviacreateRequire(through requireAwsXraySdk) and uses itscaptureAWSv3Clienthelper to instrument the client.