What is the recommended way to do enable XRAY on a Lambda function using AWS Amplify?
Edit the CloudFormation that Amplify generates
Set TracingConfig's mode to 'Active` in the AWS::Lambda::Function.
Make sure your Lambda's role has permissions for X-Ray
"xray:PutTraceSegments",
"xray:PutTelemetryRecords"