Is there a way to enable X-Ray from the serverless.yml for Lambda functions? I've added the X-Ray permissions in the file:
iamRoleStatements:
- Effect: "Allow"
Resource: "*"
Action:
- "xray:*"
But Advanced Tracing still needs to be manually enabled in the AWS console.
It's in development. If you're unwilling to wait until the official functionality is released, you can install the plugin until it's ready.