@alicloud-emas/apm
v1.0.0
Published
EMAS_APM
Downloads
70
Readme
@alicloud-emas/apm
EMAS WEB SDK
Installation
npm install @alicloud-emas/apm
Usage
// Import the SDK
import emas_apm from '@ali/emas-web-apm/lib';
// Initialize the SDK
const apm = new window.EMAS.apm({
appKey: 'appKey', // Apply from the console
appSecret: 'appSecret', // Apply from the console
appVersion: 'version', // Custom application version
channel: 'channel', // Custom channel
userNick: 'userNick', // User nickname
userId: 'userId', // User ID
loggerLevel: 'debug', // Log level
});
// Register and use the corresponding plugin
// Please refer to the official EMAS documentation for plugin usage
apm.addPlugin(plugin, {})
License
The MIT License