@cloudcare/browser-core 3.2.8 → 3.2.9
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/package.json +2 -2
- package/types/index.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcare/browser-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.9",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"author": "dataflux",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"description": "DataFlux RUM Web 端数据指标监控",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "b613ce3dff95ad63a9c937e014f032769b1bc9e3"
|
|
26
26
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -177,6 +177,11 @@ export interface RumBaseInitConfiguration extends InitConfiguration {
|
|
|
177
177
|
* @returns 返回 key: value 对象, 请求添加的额外 key
|
|
178
178
|
*/
|
|
179
179
|
injectTraceHeader?: (content: any) => { [key: string]: string } | undefined
|
|
180
|
+
/**
|
|
181
|
+
* traceId 生成器,覆盖 SDK 内部traceId 实现,默认不配置。
|
|
182
|
+
* @returns 返回对应 traceType 类型的traceId。
|
|
183
|
+
*/
|
|
184
|
+
generateTraceId?: () => string
|
|
180
185
|
/**
|
|
181
186
|
* 是否开启 longAnimationFrame 采集,覆盖 longtask 采集,目前调试阶段
|
|
182
187
|
*/
|