onerror event in the wx object to capture project errors. Then, it parses errors and analyze the heaps and stacks to automatically report the error information to the backend service. In this case, the report level is error; therefore, when the number of automatically reported errors reaches the threshold, Aegis will automatically trigger an alarm to help you find the exceptions promptly. As the report level is error, automatic reporting will also affect the project score.wx.request/qq.request and listen on each API request. If statusCode does not exist or is greater than 400, the request will be considered a failure, timeout, or abortion.wx.request/qq.request, such as miniprogram-api-promise, in your project, or you also perform encapsulation, you must initialize Aegis before importing the library; otherwise, API failures cannot be listened on.apiDetail parameter in the API calling to enable reporting of such information.new Aegis({api: {apiDetail: true,},});
retcode Exceptionwx.request/qq.request to get the API response. It also tries to get the retcode of the request in the response. If the retcode doesn't meet the expectation, the request will be considered exceptional and will be reported.Feedback