
Security News
NIST Officially Stops Enriching Most CVEs as Vulnerability Volume Skyrockets
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.
skywalking-mointor
Advanced tools
基于skywalking-client-js的加工封装,旨在于将skywalking一些没集成进上报内容的内容进行加工封装,集中到上报请求中,比如:ua信息、用户信息、自定义参数等。
npm 下载
npm install skywalking-mointor
config参数:
config = {
collector: 'http://127.0.0.1:8080', // 上报的skywalking地址
serviceName: '管理系统', // 应用名称
serviceVersion: '2.0.0', // 应用的版本
userId: '19920938', // 用户id
sessionId: '883938103', // 会话Id
vueInstance: app, // vue实例
}
main.js使用
import skywalkingMointor from "skywalking-mointor"; //引入
const skywalingMonitor = new skywalkingMointor(config);
skywalingMonitor.initMointorSky();// 初始化
捕获错误上报,在vue提供的框架层面的捕获错误函数app.config.errorHandler
基于vue的框架
app.config.errorHandler = (error) => {
console.log(error)
skywalingMonitor.handleErrorSky(error)
}
如果是其他框架,
skywalking-client-js原生提供了方法,可以使用
const handleError = skywalingMonitor.clientNativeMethod();
... 处理错误的方式
see:https://github.com/apache/skywalking-client-js
页面性能上报方法
skywalingMonitors.handlePerformanceSky();
后续功能继续补充
FAQs
use skywakling-client-js and add resource ua
The npm package skywalking-mointor receives a total of 1 weekly downloads. As such, skywalking-mointor popularity was classified as not popular.
We found that skywalking-mointor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.