Real User Monitoring (RUM) of Application Real-Time Monitoring Service (ARMS) enables performance monitoring for minigames on platforms such as WeChat and TikTok. By integrating the node package manager (NPM) package, it captures performance metrics and detects runtime exceptions.
Procedure
Log on to the ARMS console.
In the left-side navigation pane, choose . In the navigation bar at the top, select a region.
On the Applications page, click Add Application.
In the Create Application panel, click Minigames.
In the Minigames panel, enter a unique application name and its description, and click Create.
After an application is created, its endpoint and process ID (pid) are automatically generated.
Install the agent SDK.
Currently, the agent for minigames can be installed only through an NPM package.
Import the NPM package.
npm install @arms/rum-minigameInitialize the SDK.
NoteReplace
pidandendpointin the following code with the pid and endpoint generated in step 5.import armsRum from '@arms/rum-minigame'; armsRum.init({ pid: "your app id", endpoint: "your endpoint",//Example: https://aokcd*****-default-cn.rum.aliyuncs.com });
Configure a secure domain name.
Add the application endpoint to the domain name whitelist in the minigame management console.
Reference
The RUM SDK for minigames of ARMS provides a wide variety of custom configurations to meet your business requirements.