【文件属性】:
文件名称:hapi-sentry:一个用于请求错误记录到Sentry的hapi插件
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-14 13:14:30
hapi sentry npm-package hapi-sentry hapi-plugin
骑兵
一个hapi用于将请求错误记录到。
用法
像这样使用hapi插件:
const server = hapi . server ( ) ;
await server . register ( {
plugin : require ( 'hapi-sentry' ) ,
options : {
client : { dsn : 'dsn-here' } ,
} ,
} ) ;
选项
您可以在注册时传递的插件选项如下:
财产
类型
描述
baseUri
细绳
用作捕获的URL的基础
scope.tags
目的
随每个事件发送的标签数组
scope.tags.name
细绳
标签名称
scope.tags.value
任何
标签的值
scope.extra
目的
任意格式的对象,将在每个事件中作为额外数据发送
client
目的
必需一个已经初始化(使用
【文件预览】:
hapi-sentry-master
----.gitignore(31B)
----package.json(1KB)
----LICENSE(1KB)
----index.js(4KB)
----test.js(10KB)
----.github()
--------workflows()
----README.md(7KB)
----schema.js(1KB)
----renovate.json(354B)