aegis.qq.comas the reporting domain by default. You can also use
tamaegis.comas the reporting domain.
To connect to a mini program in the production environment, you need to add the reporting domain as a secure domain.
Run the following command to install
aegis-mp-sdk in your npm repository:
Create an Aegis instance and pass in the corresponding configuration in the following steps to initialize the SDK:
To avoid missing any data, you should initialize the SDK as early as possible. If you use
miniprogram-api-promiseto encapsulate the
wx.requestrequest in your mini program project, you should note that Aegis rewrites
wx.requestfor 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:
- Speed test: API speed test.
- Statistics collection and analysis: you can analyze data in multiple dimensions on the Data Overview page in the RUM console.