Enable Active Tracing via serverless.yml

Hi there,

Is there a way to specify the “Enable Active Tracing” flag for the lambda in serverless.yml? That flag is available on lambda console under Debugging and error handling. This allows the lambda traces to show up in X-Ray.

-cheers,
Manish

Serverless Framework version 1.39.1 or later natively supports enabling X-Ray tracing… see https://serverless.com/framework/docs/providers/aws/guide/functions/#aws-x-ray-tracing

Version 1.41.0 added the ability to trace API Gateway requests, see https://github.com/serverless/serverless/pull/5692/files