@gaoding/egg-hlg-metrics
v1.1.1
Published
egg plugin for hlg metrics sdk
Downloads
2
Readme
egg-hlg-metrics
Install
npm i @gaoding/egg-hlg-metrics --save
Usage
// {app_root}/config/plugin.js
exports.hlgMetrics = {
enable: true,
package: '@gaoding/egg-hlg-metrics',
};
Configuration
// {app_root}/config/config.default.js
exports.hlgMetrics = {
outputDebugLog: false, // 是否输出调试日志
serverAddr: '', // 服务器地址
appName: '', // 应用名称
};
see config/config.default.js for more detail.
Example
本插件自安装成功后,自动上报指标数据。