Serverless Framework Function Has X-Ray Tracing

Serverless Framework Function is a way of running code without provisioning or managing servers.
Tracing is a way of collecting and analyzing data about the performance and behavior of your serverless application.
You can enable Tracing for your Serverless Function by adding a tracing property to your function configuration in your serverless.yml file.
The tracing property can be 'Active' but not 'PassThrough'.

One possible reason you should enable Tracing for your Serverless Framework Function with the value 'Active' is to gain more insight into the execution of your function and its dependencies.
With tracing enabled, you can use AWS X-Ray to trace user requests through your function, identify bottlenecks and errors, monitor service health and latency, and optimize your code and resources.

Risk Level: medium
Platform: AWS Serverless
Spectral Rule ID: SLFW011

REMEDIATION

In functions.function_name, set tracing to 'Active'

functions:
  example:
    handler: handler.example
    onError: arn:aws:sns:us-east-1:XXXXXX:example
    tags:
      foo: bar
    role: arn:aws:iam::XXXXXX:role/role
-   tracing: PassThrough
+   tracing: Active

Read more: