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.
- package/dist/index.cjs.js +28 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +28 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +28 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
* 性能监控配置
|