@serverless-devs/tracker-core
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

OSCS Status

自定义监控探针

本探针依赖于 aliyun SLS 进行数据上报

使用方式

初始化探针

import core from "@serverless-devs/tracker-core";
// 初始化探针
core.init(productName, {
  slsRegion: "cn-hangzhou",
  slsProject: "store",
  ...initOptions,
});

使用探针

  1. 使用全局的变量
window.CN_TRACKER.send({
  name: "create-app",
});
  1. 使用局部的变量
import core from "@serverless-devs/tracker-core";
core.send({
  name: "create-app",
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.00
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @serverless-devs/tracker-core

Weekly Downloads

0

Version

0.2.0

License

ISC

Unpacked Size

495 kB

Total Files

25

Last publish

Collaborators

  • serverlessfans
  • heimanba
  • xsahxl