Troubleshooting via Instance Metrics and Logs
Serverless Cloud abstracts away infrastructure and all the concerns related to it. However, applications can experience issues or might not perform as expected for various reasons. Serverless Cloud provides built-in metrics and logs support to help developers resolve issues fast. When you click on an instance, Serverless Cloud shows some high-level metrics such as invocations, error and throttle counts, and average durations.
If you notice an issue, you can switch to either the Logs view to dig deeper, or the Metrics view to track the metrics over time with charts.
Logs View
This view is presented as a tab in the Instance details view to let developers see the logs that the selected instance is producing. Note that logs of an instance are completely isolated from other instances of the same app or the other apps.
Here you can check out the logs to understand the issues. You can select different time intervals and see a filtered view of the logs.
As a side note, Serverless Cloud allows developers to see the logs from their developer sandbox when Cloud Shell is active but this view is the only way to see logs of preview instances and stages.
Metrics View
This view is presented as a tab in the Instance Details view aiming to help developers track the change in metrics over time. Here you can get a general view of what’s going on with your app on Serverless Cloud.