Debugging the API / Axios errors using DataDog
Whenever we see API errors or Axios failures in Datadog, we need to proceed with the following steps to debug the issue.
Go to the logs section in Datadog.
In the search section, choose the desired cluster by typing “cluster_name”. The cluster names will show up in the dropdown, select the cluster (Eg - opsera-prod-platform, honeywell-prod-platform).
Additionally, search for the string ‘pipeline id’ or any other ID obtained from the customer.
Change the time range according to the situation. It is located at the top right.
Select the “opsera-nodeapi” service from the facets in the left corner.
Look for the logs type Error or Warnings which can be selected from the Status section.
Check the selected log for any service name (Eg - API gateway, Bitbucket)
If the error has any of the services, then search for the logs for those services from the service facet.