# Enable Active Tracing via serverless.yml

**URL:** <https://forum.serverless.com/t/enable-active-tracing-via-serverless-yml/6658>\
**Category:** Serverless Framework\
**Tags:** lambda\
**Created:** [December 5, 2018, 8:57pm UTC](https://forum.serverless.com/t/enable-active-tracing-via-serverless-yml/6658 "2018-12-05T20:57:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lobster1234](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/lobster1234/32/2821_2.png) [@lobster1234](https://forum.serverless.com/u/lobster1234)\
**Post date:** [December 5, 2018, 8:57pm UTC](https://forum.serverless.com/t/enable-active-tracing-via-serverless-yml/6658/1 "2018-12-05T20:57:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kamalgill](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/kamalgill/32/3252_2.png) [@kamalgill](https://forum.serverless.com/u/kamalgill)\
**Post date:** [April 22, 2019, 5:04pm UTC](https://forum.serverless.com/t/enable-active-tracing-via-serverless-yml/6658/2 "2019-04-22T17:04:09Z")

</div>

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](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](https://github.com/serverless/serverless/pull/5692/files)
