Posted On: Feb 7, 2020
You can now enable AWS X-Ray for your APIs in AWS AppSync, making it easier to trace and analyze user requests as they travel through the APIs to the backend data sources.
AWS X-Ray helps developers analyze and debug distributed applications, such as those built using a microservices architecture and multiple data sources. With X-Ray, you can understand how your application and its underlying services are performing to identify and troubleshoot the root cause of performance issues and errors.
You can now enable AWS X-Ray on your AWS AppSync APIs to get an end-to-end view of the entire request and visibility on the performance bottlenecks in their components and modules. Using AWS X-Ray traces, you can better analyze, triage and troubleshoot issues and errors in your APIs and their backend services.
The Info object in GraphQL allows to retrieve data about the current GraphQL request. GraphQL requests can have different selection set fields that specify the shape of the expected results depending on the client. The info object is particularly useful if you want to implement specific logic according to different fields in a particular request. You can now access the Info object in AWS AppSync resolver mapping templates using $context.info, allowing to easily view specific fields and variables for each request, and forward the object to backend data sources with useful information about different requests from different clients. You can find more information on how to leverage the info object with AppSync resolvers in our documentation as well as our blog post.
For more information on AWS AppSync visit our product page. To learn about AWS X-Ray, please click here. You can also learn more about how to enable AWS X-Ray for AWS AppSync in our documentation. This feature is accessible in all available AWS AppSync and AWS X-Ray regions.