3.0.0 • Published 12 months ago

saic-monitoring v3.0.0

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

saic-monitoring

配置项

参数说明类型默认值版本
dsn接口上报数据的地址,告诉 SDK 将事件发送到哪里string
apikey项目唯一标识string
userId用户 idstring
disabled是否禁用 SDKbooleanfalse
performance是否获取页面性能指标booleanfalse
recordScreen是否开启录屏booleanfalse
recordScreentime单次录屏时长(需 recordScreen 为 true 才有效)number10
recordScreenTypeList上报录屏的错误列表,默认会上报所有错误发生时的录屏信息array'error', 'unhandledrejection', 'resource','fetch', 'xhr'
whiteScreen是否开启白屏检测booleanfalse

默认开启配置

参数说明类型默认值版本
xhr是否监控 xhr 请求booleantrue
fetch是否监控 fetch 请求booleantrue
click是否监控 click 事件booleantrue
error是否监听 error 事件booleantrue
unhandledrejection是否监控 unhandledrejectionbooleantrue
history是否监听路由 history 模式变化booleantrue
hashchange是否监听路由 hash 模式变化booleantrue