# Enabling XRay Tracing via serverless

**URL:** <https://forum.serverless.com/t/enabling-xray-tracing-via-serverless/13256>\
**Category:** Serverless Architectures\
**Tags:** aws\
**Created:** [November 30, 2020, 12:25pm UTC](https://forum.serverless.com/t/enabling-xray-tracing-via-serverless/13256 "2020-11-30T12:25:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![berimbolo](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@berimbolo](https://forum.serverless.com/u/berimbolo)\
**Post date:** [November 30, 2020, 12:25pm UTC](https://forum.serverless.com/t/enabling-xray-tracing-via-serverless/13256/1 "2020-11-30T12:25:56Z")

</div>

Hi,

I am trying to enable X-Ray tracing for both API Gateway and Lambda using the following in my serverless.yml:

```auto
 tracing:
    lambda: true
    apiGateway: true

```

The lambda entry works but the `apiGateway` option never checks the box for any stage in API gateway and I have to manually go to the stage and check the box and then redeploy.

Does this feature work, is it dependent on a particular version of serverless?

---

<div class="post-metadata">

**Author:** ![beenmeckel](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@beenmeckel](https://forum.serverless.com/u/beenmeckel)\
**Post date:** [February 27, 2021, 9:28pm UTC](https://forum.serverless.com/t/enabling-xray-tracing-via-serverless/13256/2 "2021-02-27T21:28:58Z")

</div>

Yes, mostly. Route53 is not part of the call flow though. Your call does not go “through” Route53 [Kodi](https://kodi.software/) [nox](https://nox.tips/).

---

<div class="post-metadata">

**Author:** ![berimbolo](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@berimbolo](https://forum.serverless.com/u/berimbolo)\
**Post date:** [February 28, 2021, 10:35am UTC](https://forum.serverless.com/t/enabling-xray-tracing-via-serverless/13256/3 "2021-02-28T10:35:02Z")

</div>

Not really sure how this answers my question at all.

---

<div class="post-metadata">

**Author:** ![spongenee](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/spongenee/32/8339_2.png) [@spongenee](https://forum.serverless.com/u/spongenee)\
**Post date:** [April 16, 2025, 10:35pm UTC](https://forum.serverless.com/t/enabling-xray-tracing-via-serverless/13256/4 "2025-04-16T22:35:56Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/2/2c850933d01974a72cfa36b43430289a58b86e77.png)  
were you trying to enable tracing for existing deploys?
