

# Amazon AppSync and Amazon X-Ray
<a name="xray-services-appsync"></a>

You can enable and trace requests for Amazon AppSync. For more information, see [Tracing with Amazon X-Ray](https://docs.amazonaws.cn/appsync/latest/devguide/x-ray-tracing.html) for instructions.

When X-Ray tracing is enabled for an Amazon AppSync API, an Amazon Identity and Access Management [service-linked role](https://docs.amazonaws.cn/IAM/latest/UserGuide/using-service-linked-roles.html) is automatically created in your account with the appropriate permissions. This allows Amazon AppSync to send traces to X-Ray in a secure way.