Getting observability using X-Ray
One of the main advantages of using a service mesh is to get observability of the communication between the services. It helps for troubleshooting as well as visibility purposes. The AWS X-Ray service is responsible for helping developers and DevOps engineers quickly understand how application services are performing. When it's integrated with AWS App Mesh, it makes for a more powerful analytical tool.
We use the X-Ray SDK to instrument our application code and share all the incoming and outgoing requests to the X-Ray daemon, which is running as the third container of the deployment. We already installed App Mesh with the X-Ray feature in step 4 of the previous section. We can see the service mapping by performing the following steps:
- Log in to the AWS console and go to the X-Ray service page.
- Click on Service map.