aegis-sdk uses https://aegis.qq.com as the domain name to be reported by default. You can use the hostUrl parameter to configure the domain name to be reported.
For regions in the Chinese mainland, you can choose https://tamaegis.com as the domain name to be reported.
For Singapore region, you can choose https://rumt-sg.com as the domain name to be reported.aegis-mp-sdk in your npm repository:$ npm install --save aegis-mp-sdk
import Aegis from 'aegis-mp-sdk';const aegis = new Aegis({id: "pGUVFTCZyewxxxxx", // Project keyuin: 'xxx', // User UIN (optional)reportApiSpeed: true, // API speed testspa: true, // Report the PV during page switch});
miniprogram-api-promise to encapsulate the wx.request request in your mini program project, you should note that Aegis rewrites wx.request for API monitoring. Therefore, you must initialize Aegis before importing miniprogram-api-promise; otherwise, Aegis may fail to collect the complete API information.
After you install and initialize the SDK, you can use the following RUM features:Feedback