micro-sentry:将微小错误发送到Sentry服务

时间:2021-05-17 05:18:31
【文件属性】:
文件名称:micro-sentry:将微小错误发送到Sentry服务
文件大小:27KB
文件格式:ZIP
更新时间:2021-05-17 05:18:31
JavaScript 微哨兵 micro-sentry允许您将错误发送给 。 安装 $ npm install --save micro-sentry 或者 $ yarn add micro-sentry 例子 const sendToSentry = require('micro-sentry'); const url = 'https://:@sentry.io/'; module.exports = sendToSentry(url)(async (request, response) => { throw Error('This will be sent to Sentry!'); }); 发展 $ git clone https://github.com/tanmulabs/micro-sentry.git $ cd micro-sentry
【文件预览】:
micro-sentry-master
----package.json(540B)
----test()
--------index.spec.js(2KB)
----LICENSE(1KB)
----package-lock.json(97KB)
----src()
--------index.js(802B)
----.gitignore(884B)
----CODE_OF_CONDUCT.md(3KB)
----README.md(602B)

网友评论