How can I locate online problems?

更新时间: 2026-04-01 06:52:28

To locate online problems in Function Compute, enable Simple Log Service and add logging logic to your function code. Once logging is active, you can search logs or filter by request ID to isolate the exact invocation that failed.

For more information, see Grant an event source permissions to access Function Compute.

Enable logging

Before you can search logs or use request IDs, enable Simple Log Service for your function:

  1. Open Simple Log Service and confirm the service is activated.

  2. Add logging statements to your function code. Use structured logging (key-value pairs rather than plain strings) so you can filter logs by field later.

Locate a failed invocation

After logging is enabled, use one of the following methods to find the root cause of an online problem.

Search logs by keyword

In Simple Log Service, enter a keyword in the search bar to find log entries related to the problem.

Look up a request ID

Every Function Compute invocation is assigned a unique request ID. If a caller reports a failed request, ask for the request ID and search for it directly in Simple Log Service to locate the related log entry.

上一篇: FAQ about function debugging 下一篇: Why does my Node.js function time out?
阿里云首页 函数计算 相关技术圈