
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
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
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.