sobey-monitor-sdk 1.1.16 → 1.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,6 +104,12 @@ export interface ErrorMonitorConfig {
104
104
  * 任一规则匹配时将上报 http_error
105
105
  */
106
106
  businessErrorRules?: BusinessErrorRule[];
107
+ /**
108
+ * 要监听的 HTTP 错误状态码列表
109
+ * 如果不配置或为空数组,则默认不捕获 HTTP 错误
110
+ * 例如: [404, 500, 502, 503, 504]
111
+ */
112
+ httpErrorStatusCodes?: number[];
107
113
  }
108
114
  /**
109
115
  * 性能监控配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sobey-monitor-sdk",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "前端全方位监控 SDK,支持错误监控、性能监控、用户行为回溯。适合单页面应用及多端环境。",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",