Amazon API Gateway
Developer Guide

Set Up X-Ray Tracing in API Gateway

To help debug issues related to API request latency, you can enable AWS X-Ray tracing to trace API requests and downstream services. Once enabled, API Gateway will trace API calls in X-Ray. For more information, see Setting Up AWS X-Ray with API Gateway.