@blueking/open-telemetry 0.0.11 → 0.0.13
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/README.md +9 -7
- package/dist/bk-rum.global.js +1 -1
- package/dist/bk-rum.global.js.map +1 -1
- package/dist/index.js +261 -260
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/skills/bk-rum-otele/SKILL.md +108 -0
- package/skills/bk-rum-otele/evals/evals.json +29 -0
- package/skills/bk-rum-otele/references/api.md +228 -0
- package/skills/bk-rum-otele/references/concepts.md +227 -0
- package/skills/bk-rum-otele/references/configuration.md +318 -0
- package/skills/bk-rum-otele/references/custom-plugin.md +158 -0
- package/skills/bk-rum-otele/references/data-model.md +122 -0
- package/skills/bk-rum-otele/references/framework-integration.md +149 -0
- package/skills/bk-rum-otele/references/getting-started.md +179 -0
- package/skills/bk-rum-otele/references/plugins.md +451 -0
- package/skills/bk-rum-otele/references/privacy.md +117 -0
- package/skills/bk-rum-otele/references/telemetry-reference.md +228 -0
- package/skills/bk-rum-otele/references/troubleshooting.md +239 -0
package/dist/index.js
CHANGED
|
@@ -119,41 +119,42 @@ function E(e) {
|
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region src/core/config.ts
|
|
122
|
-
var D = "http://localhost:4318", ie = 60 * 1e3, ae = "unknown_service", O = (e) => e.replace(/\/+$/, ""), oe =
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
var D = "http://localhost:4318", ie = 60 * 1e3, ae = "unknown_service", O = (e) => e.replace(/\/+$/, ""), oe = {
|
|
123
|
+
traces: "rum",
|
|
124
|
+
metrics: "metrics",
|
|
125
|
+
logs: "logs"
|
|
126
|
+
}, se = (e, t) => `${O(e || D)}/${oe[t]}`, k = (e, t) => {
|
|
126
127
|
var n, r, i, a, o;
|
|
127
128
|
let s = e == null || (n = e.signals) == null ? void 0 : n[t], c = e == null || (r = e.signals) == null || (r = r.endpoints) == null ? void 0 : r[t], l = e != null && e.token || e != null && e.headers || s != null && s.headers ? E(E(E({}, e != null && e.token ? { Authorization: `Bearer ${e.token}` } : {}), (i = e == null ? void 0 : e.headers) == null ? {} : i), (a = s == null ? void 0 : s.headers) == null ? {} : a) : void 0;
|
|
128
129
|
return {
|
|
129
130
|
concurrencyLimit: s == null ? void 0 : s.concurrencyLimit,
|
|
130
|
-
endpoint: c ? O(c) :
|
|
131
|
+
endpoint: c ? O(c) : se((o = s == null ? void 0 : s.endpoint) == null ? e == null ? void 0 : e.endpoint : o, t),
|
|
131
132
|
headers: l,
|
|
132
133
|
timeoutMillis: s == null ? void 0 : s.timeoutMillis
|
|
133
134
|
};
|
|
134
|
-
},
|
|
135
|
+
}, ce = (e) => typeof e != "number" || !Number.isFinite(e) ? 1 : Math.max(0, Math.min(1, e)), le = (e) => e, ue = (e) => e, de = (e) => {
|
|
135
136
|
try {
|
|
136
137
|
return new URL(e, typeof location > "u" ? "http://localhost" : location.href).pathname || "/";
|
|
137
138
|
} catch (t) {
|
|
138
139
|
return e || "/";
|
|
139
140
|
}
|
|
140
|
-
},
|
|
141
|
+
}, fe = (e) => {
|
|
141
142
|
var t, n;
|
|
142
143
|
return {
|
|
143
144
|
environment: (t = e == null ? void 0 : e.environment) == null ? "production" : t,
|
|
144
145
|
name: (n = e == null ? void 0 : e.name) == null ? ae : n,
|
|
145
146
|
version: e == null ? void 0 : e.version
|
|
146
147
|
};
|
|
147
|
-
},
|
|
148
|
+
}, pe = (e) => E(E({
|
|
148
149
|
[x.deploymentEnvironmentName]: e.environment,
|
|
149
150
|
"rum.provider": "blueking",
|
|
150
151
|
[x.serviceName]: e.name
|
|
151
|
-
}, e.version ? { [x.serviceVersion]: e.version } : {}), {}, { "telemetry.sdk.language": "webjs" }),
|
|
152
|
+
}, e.version ? { [x.serviceVersion]: e.version } : {}), {}, { "telemetry.sdk.language": "webjs" }), me = (e) => ({
|
|
152
153
|
endpoint: O((e == null ? void 0 : e.endpoint) || D),
|
|
153
154
|
traces: k(e, "traces"),
|
|
154
155
|
metrics: k(e, "metrics"),
|
|
155
156
|
logs: k(e, "logs")
|
|
156
|
-
}),
|
|
157
|
+
}), he = (e) => ({ rate: ce(e == null ? void 0 : e.rate) }), ge = (e) => {
|
|
157
158
|
var t, n, r, i, a, o, s, c, l, u, d, f;
|
|
158
159
|
return {
|
|
159
160
|
getPageAttributes: (t = (n = e.attributes) == null ? void 0 : n.page) == null ? (() => ({
|
|
@@ -165,34 +166,34 @@ var D = "http://localhost:4318", ie = 60 * 1e3, ae = "unknown_service", O = (e)
|
|
|
165
166
|
getCustomAttributes: (s = (c = e.attributes) == null ? void 0 : c.custom) == null ? (() => ({})) : s,
|
|
166
167
|
getViewPathGroup: (t) => {
|
|
167
168
|
var n, r, i;
|
|
168
|
-
return (n = (r = e.route) == null || (i = r.getPathGroup) == null ? void 0 : i.call(r, t)) == null ?
|
|
169
|
+
return (n = (r = e.route) == null || (i = r.getPathGroup) == null ? void 0 : i.call(r, t)) == null ? de(t) : n;
|
|
169
170
|
},
|
|
170
|
-
redactAttributes: (l = (u = e.privacy) == null ? void 0 : u.redactAttributes) == null ?
|
|
171
|
-
redactUrl: (d = (f = e.privacy) == null ? void 0 : f.redactUrl) == null ?
|
|
171
|
+
redactAttributes: (l = (u = e.privacy) == null ? void 0 : u.redactAttributes) == null ? le : l,
|
|
172
|
+
redactUrl: (d = (f = e.privacy) == null ? void 0 : f.redactUrl) == null ? ue : d
|
|
172
173
|
};
|
|
173
|
-
},
|
|
174
|
+
}, _e = (e) => {
|
|
174
175
|
var t, n, r, i, a, o;
|
|
175
|
-
let s =
|
|
176
|
+
let s = fe(e.app);
|
|
176
177
|
return {
|
|
177
178
|
app: s,
|
|
178
179
|
autoStart: (t = e.autoStart) == null ? !0 : t,
|
|
179
180
|
debug: (n = e.debug) == null ? !1 : n,
|
|
180
181
|
enabled: (r = e.enabled) == null ? !0 : r,
|
|
181
|
-
hooks:
|
|
182
|
+
hooks: ge(e),
|
|
182
183
|
instrumentations: (i = e.instrumentations) == null ? {} : i,
|
|
183
184
|
metricIntervalMillis: ie,
|
|
184
185
|
plugins: (a = e.plugins) == null ? {} : a,
|
|
185
|
-
resourceAttributes:
|
|
186
|
-
sampling:
|
|
186
|
+
resourceAttributes: pe(s),
|
|
187
|
+
sampling: he(e.sampling),
|
|
187
188
|
spanBatch: e.spanBatch,
|
|
188
189
|
spanProcessor: (o = e.spanProcessor) == null ? "batch" : o,
|
|
189
|
-
transport:
|
|
190
|
+
transport: me(e.transport),
|
|
190
191
|
user: e.user
|
|
191
192
|
};
|
|
192
193
|
};
|
|
193
194
|
//#endregion
|
|
194
195
|
//#region \0@oxc-project+runtime@0.128.0/helpers/asyncToGenerator.js
|
|
195
|
-
function
|
|
196
|
+
function ve(e, t, n, r, i, a, o) {
|
|
196
197
|
try {
|
|
197
198
|
var s = e[a](o), c = s.value;
|
|
198
199
|
} catch (e) {
|
|
@@ -207,10 +208,10 @@ function A(e) {
|
|
|
207
208
|
return new Promise(function(r, i) {
|
|
208
209
|
var a = e.apply(t, n);
|
|
209
210
|
function o(e) {
|
|
210
|
-
|
|
211
|
+
ve(a, r, i, o, s, "next", e);
|
|
211
212
|
}
|
|
212
213
|
function s(e) {
|
|
213
|
-
|
|
214
|
+
ve(a, r, i, o, s, "throw", e);
|
|
214
215
|
}
|
|
215
216
|
o(void 0);
|
|
216
217
|
});
|
|
@@ -218,7 +219,7 @@ function A(e) {
|
|
|
218
219
|
}
|
|
219
220
|
//#endregion
|
|
220
221
|
//#region src/core/plugin.ts
|
|
221
|
-
var
|
|
222
|
+
var ye = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !== !1, be = (e) => e, xe = class {
|
|
222
223
|
constructor(e) {
|
|
223
224
|
w(this, "plugins", void 0), w(this, "startedPlugins", []), this.plugins = e;
|
|
224
225
|
}
|
|
@@ -245,7 +246,7 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
245
246
|
start(e) {
|
|
246
247
|
var t = this;
|
|
247
248
|
return A(function* () {
|
|
248
|
-
for (let r of t.plugins) if (
|
|
249
|
+
for (let r of t.plugins) if (ye(r, e.config)) try {
|
|
249
250
|
yield r.init(e), t.startedPlugins.push(r);
|
|
250
251
|
} catch (t) {
|
|
251
252
|
if (e.config.debug) {
|
|
@@ -255,39 +256,39 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
255
256
|
}
|
|
256
257
|
})();
|
|
257
258
|
}
|
|
258
|
-
},
|
|
259
|
+
}, Se = () => typeof window > "u" ? "http://localhost" : window.location.origin, j = (e) => {
|
|
259
260
|
try {
|
|
260
|
-
return new URL(e,
|
|
261
|
+
return new URL(e, Se()).href;
|
|
261
262
|
} catch (t) {
|
|
262
263
|
return e;
|
|
263
264
|
}
|
|
264
|
-
},
|
|
265
|
-
let n = (e) =>
|
|
265
|
+
}, Ce = (e) => e.length > 1 ? e.replace(/\/+$/, "") : e, we = (e, t) => {
|
|
266
|
+
let n = (e) => Ce(e.replace(/[?#].*$/, ""));
|
|
266
267
|
return n(e) === n(t);
|
|
267
|
-
},
|
|
268
|
+
}, Te = (e) => {
|
|
268
269
|
try {
|
|
269
|
-
return new URL(e,
|
|
270
|
+
return new URL(e, Se()).origin === Se();
|
|
270
271
|
} catch (e) {
|
|
271
272
|
return !1;
|
|
272
273
|
}
|
|
273
|
-
},
|
|
274
|
-
let n =
|
|
274
|
+
}, Ee = (e, t) => {
|
|
275
|
+
let n = j(t);
|
|
275
276
|
return [
|
|
276
277
|
e.transport.traces.endpoint,
|
|
277
278
|
e.transport.metrics.endpoint,
|
|
278
279
|
e.transport.logs.endpoint
|
|
279
|
-
].some((e) =>
|
|
280
|
-
}, M = (e, t) =>
|
|
281
|
-
if (
|
|
280
|
+
].some((e) => we(n, j(e)));
|
|
281
|
+
}, M = (e, t) => Ee(e, t), De = (e, t) => e === "all" ? !0 : typeof e == "function" ? e(t) : (Array.isArray(e) ? e : [e]).some((e) => typeof e == "string" ? t.includes(e) : e.test(t)), Oe = (e, t) => {
|
|
282
|
+
if (Te(t)) return !0;
|
|
282
283
|
let n = e.instrumentations.propagateTraceHeaderUrls;
|
|
283
|
-
return n ?
|
|
284
|
-
},
|
|
285
|
-
for (let n of
|
|
284
|
+
return n ? De(n, j(t)) : !1;
|
|
285
|
+
}, ke = ["http.url", "url.full"], Ae = (e) => {
|
|
286
|
+
for (let n of ke) {
|
|
286
287
|
var t;
|
|
287
288
|
let r = (t = e.attributes) == null ? void 0 : t[n];
|
|
288
289
|
if (typeof r == "string") return r;
|
|
289
290
|
}
|
|
290
|
-
},
|
|
291
|
+
}, je = class {
|
|
291
292
|
constructor(e, t) {
|
|
292
293
|
this.inner = e, this.config = t;
|
|
293
294
|
}
|
|
@@ -295,8 +296,8 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
295
296
|
return this.inner.forceFlush();
|
|
296
297
|
}
|
|
297
298
|
onEnd(e) {
|
|
298
|
-
let t =
|
|
299
|
-
t &&
|
|
299
|
+
let t = Ae(e);
|
|
300
|
+
t && Ee(this.config, t) || this.inner.onEnd(e);
|
|
300
301
|
}
|
|
301
302
|
onStart(e, t) {
|
|
302
303
|
this.inner.onStart(e, t);
|
|
@@ -304,7 +305,7 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
304
305
|
shutdown() {
|
|
305
306
|
return this.inner.shutdown();
|
|
306
307
|
}
|
|
307
|
-
},
|
|
308
|
+
}, Me = class {
|
|
308
309
|
constructor(e = {}, t) {
|
|
309
310
|
w(this, "attributes", {}), w(this, "setOptionalAttribute", (e, t) => {
|
|
310
311
|
if (t === void 0) {
|
|
@@ -348,7 +349,7 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
348
349
|
resource: "resource",
|
|
349
350
|
route: "route",
|
|
350
351
|
vital: "vital"
|
|
351
|
-
},
|
|
352
|
+
}, Ne = (e) => e < 100 ? "<100ms" : e < 500 ? "100~500ms" : e < 2e3 ? "500ms~2s" : ">2s", Pe = (e) => `${Math.trunc(e / 100)}xx`, Fe = (e) => e === 408 || e === 504 ? N.timeout : typeof e == "number" && e >= 400 ? N.error : N.success, Ie = (e) => e === 408 || e === 504 ? "network_timeout" : typeof e != "number" || e < 400 ? "none" : e >= 500 ? "http_5xx" : "http_4xx", Le = (e) => e === "good" ? N.success : N.warning, Re = (e, t) => {
|
|
352
353
|
if (!e) return {};
|
|
353
354
|
try {
|
|
354
355
|
let n = new URL(e, typeof location > "u" ? "http://localhost" : location.href), r = t == null ? n.pathname : t;
|
|
@@ -368,27 +369,27 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
368
369
|
[x.spanSubtype]: i,
|
|
369
370
|
[x.result]: r,
|
|
370
371
|
[x.errorType]: t
|
|
371
|
-
}, e === void 0 ? {} : { [x.durationBucket]:
|
|
372
|
-
let o =
|
|
372
|
+
}, e === void 0 ? {} : { [x.durationBucket]: Ne(e) }), n === void 0 ? {} : { [x.eventLabel]: n }), o === void 0 ? {} : { [x.targetLabel]: o }), s === void 0 ? {} : { [x.targetValue]: s }), c === void 0 ? {} : { [x.traceScene]: c }), ze = ({ duration: e, method: t, statusCode: n, subtype: r, url: i, urlPathTemplate: a }) => {
|
|
373
|
+
let o = Re(i, a);
|
|
373
374
|
return E(E(E(E(E({}, F({
|
|
374
375
|
duration: e,
|
|
375
|
-
errorType:
|
|
376
|
+
errorType: Ie(n),
|
|
376
377
|
eventLabel: "API 调用",
|
|
377
|
-
result:
|
|
378
|
+
result: Fe(n),
|
|
378
379
|
spanSubtype: r,
|
|
379
380
|
spanType: P.http,
|
|
380
381
|
targetLabel: o.label,
|
|
381
382
|
targetValue: n
|
|
382
383
|
})), t ? { "http.request.method": t.toUpperCase() } : {}), o.domain ? { [x.targetDomain]: o.domain } : {}), o.pathTemplate ? { [x.targetPathTemplate]: o.pathTemplate } : {}), typeof n == "number" ? {
|
|
383
384
|
"http.response.status_code": n,
|
|
384
|
-
[x.statusClass]:
|
|
385
|
+
[x.statusClass]: Pe(n)
|
|
385
386
|
} : {});
|
|
386
|
-
},
|
|
387
|
+
}, Be = ({ duration: e, initiatorType: t = "other", responseStatus: n, transferSize: r, url: i, urlPathTemplate: a }) => {
|
|
387
388
|
var o;
|
|
388
|
-
let s =
|
|
389
|
+
let s = Re(i, a), c = typeof n == "number" ? Fe(n) : N.success;
|
|
389
390
|
return E(E(E(E({}, F({
|
|
390
391
|
duration: e,
|
|
391
|
-
errorType: typeof n == "number" ?
|
|
392
|
+
errorType: typeof n == "number" ? Ie(n) : "none",
|
|
392
393
|
eventLabel: "静态资源",
|
|
393
394
|
result: c,
|
|
394
395
|
spanSubtype: t,
|
|
@@ -397,20 +398,20 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
397
398
|
targetValue: r
|
|
398
399
|
})), s.domain ? { [x.targetDomain]: s.domain } : {}), s.pathTemplate ? { [x.targetPathTemplate]: s.pathTemplate } : {}), typeof n == "number" ? {
|
|
399
400
|
"http.response.status_code": n,
|
|
400
|
-
[x.statusClass]:
|
|
401
|
+
[x.statusClass]: Pe(n)
|
|
401
402
|
} : {});
|
|
402
|
-
},
|
|
403
|
+
}, Ve = [
|
|
403
404
|
"click",
|
|
404
405
|
"submit",
|
|
405
406
|
"keydown"
|
|
406
|
-
],
|
|
407
|
+
], He = (e) => e instanceof Element ? e : void 0, Ue = (e) => {
|
|
407
408
|
var t;
|
|
408
409
|
if (!e) return;
|
|
409
410
|
let n = ((t = e.textContent) == null ? void 0 : t.trim()) || e.getAttribute("aria-label") || e.getAttribute("title") || "";
|
|
410
411
|
return n ? n.slice(0, 32) : void 0;
|
|
411
|
-
},
|
|
412
|
+
}, We = (e = {}) => {
|
|
412
413
|
var t;
|
|
413
|
-
let n = [], r = (t = e.eventNames) == null ?
|
|
414
|
+
let n = [], r = (t = e.eventNames) == null ? Ve : t;
|
|
414
415
|
return {
|
|
415
416
|
name: "action",
|
|
416
417
|
init(e) {
|
|
@@ -420,7 +421,7 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
420
421
|
passive: !0
|
|
421
422
|
}, i = (t) => {
|
|
422
423
|
var n;
|
|
423
|
-
let r =
|
|
424
|
+
let r = He(t.target), i = Ue(r), a = r == null ? void 0 : r.tagName.toLowerCase();
|
|
424
425
|
e.startSpan(`action.${t.type}`, E(E(E(E({}, e.config.hooks.getPageAttributes()), F({
|
|
425
426
|
errorType: "none",
|
|
426
427
|
eventLabel: "用户操作",
|
|
@@ -441,7 +442,7 @@ var ve = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
|
|
|
441
442
|
};
|
|
442
443
|
//#endregion
|
|
443
444
|
//#region \0@oxc-project+runtime@0.128.0/helpers/objectWithoutPropertiesLoose.js
|
|
444
|
-
function
|
|
445
|
+
function Ge(e, t) {
|
|
445
446
|
if (e == null) return {};
|
|
446
447
|
var n = {};
|
|
447
448
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -452,9 +453,9 @@ function We(e, t) {
|
|
|
452
453
|
}
|
|
453
454
|
//#endregion
|
|
454
455
|
//#region \0@oxc-project+runtime@0.128.0/helpers/objectWithoutProperties.js
|
|
455
|
-
function
|
|
456
|
+
function Ke(e, t) {
|
|
456
457
|
if (e == null) return {};
|
|
457
|
-
var n, r, i =
|
|
458
|
+
var n, r, i = Ge(e, t);
|
|
458
459
|
if (Object.getOwnPropertySymbols) {
|
|
459
460
|
var a = Object.getOwnPropertySymbols(e);
|
|
460
461
|
for (r = 0; r < a.length; r++) n = a[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
@@ -463,14 +464,14 @@ function Ge(e, t) {
|
|
|
463
464
|
}
|
|
464
465
|
//#endregion
|
|
465
466
|
//#region src/core/telemetry-attributes.ts
|
|
466
|
-
var
|
|
467
|
-
let t =
|
|
467
|
+
var qe = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Je = (e) => {
|
|
468
|
+
let t = qe(e);
|
|
468
469
|
return t ? { [x.viewUrlPathGroup]: t } : {};
|
|
469
|
-
}, I = (e) =>
|
|
470
|
+
}, I = (e) => Je(e[x.viewUrlPathGroup]), L = (e, t) => {
|
|
470
471
|
var n;
|
|
471
472
|
let r = x.viewUrlPathGroup, { [r]: i } = e;
|
|
472
|
-
return E(E({},
|
|
473
|
-
},
|
|
473
|
+
return E(E({}, Ke(e, [r].map(C))), Je((n = qe(i)) == null ? t : n));
|
|
474
|
+
}, Ye = "body", Xe = 3e3, Ze = .8, Qe = [
|
|
474
475
|
"[data-loading=\"true\"]",
|
|
475
476
|
"[aria-busy=\"true\"]",
|
|
476
477
|
".loading",
|
|
@@ -484,42 +485,42 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
484
485
|
[.75, .25],
|
|
485
486
|
[.25, .75],
|
|
486
487
|
[.75, .75]
|
|
487
|
-
],
|
|
488
|
+
], $e = (e, t) => typeof e == "number" && Number.isFinite(e) && e >= 0 ? e : t, et = (e, t) => typeof e != "number" || !Number.isFinite(e) ? t : Math.max(0, Math.min(1, e)), tt = (e) => {
|
|
488
489
|
if (!e) return "";
|
|
489
490
|
let t = e.tagName.toLowerCase();
|
|
490
491
|
return e.id ? `${t}#${e.id}` : t;
|
|
491
|
-
},
|
|
492
|
+
}, nt = (e, t) => e ? t.some((t) => {
|
|
492
493
|
try {
|
|
493
494
|
return e.matches(t) || !!e.closest(t);
|
|
494
495
|
} catch (e) {
|
|
495
496
|
return !1;
|
|
496
497
|
}
|
|
497
|
-
}) : !1,
|
|
498
|
+
}) : !1, rt = (e) => {
|
|
498
499
|
if (typeof document > "u") return () => {};
|
|
499
500
|
if (document.readyState === "complete" || document.readyState === "interactive") return e(), () => {};
|
|
500
501
|
let t = () => {
|
|
501
502
|
document.removeEventListener("DOMContentLoaded", t), e();
|
|
502
503
|
};
|
|
503
504
|
return document.addEventListener("DOMContentLoaded", t), () => document.removeEventListener("DOMContentLoaded", t);
|
|
504
|
-
},
|
|
505
|
+
}, it = (e = {}) => {
|
|
505
506
|
var t, n;
|
|
506
507
|
let r, i, a = !1, o = {
|
|
507
|
-
checkDelay:
|
|
508
|
+
checkDelay: $e(e.checkDelay, Xe),
|
|
508
509
|
ignoreSelectors: (t = e.ignoreSelectors) == null ? [] : t,
|
|
509
|
-
rootSelector: (n = e.rootSelector) == null ?
|
|
510
|
-
threshold:
|
|
510
|
+
rootSelector: (n = e.rootSelector) == null ? Ye : n,
|
|
511
|
+
threshold: et(e.threshold, Ze)
|
|
511
512
|
};
|
|
512
513
|
return {
|
|
513
514
|
name: "blank-screen",
|
|
514
515
|
init(e) {
|
|
515
516
|
if (typeof window > "u" || typeof document > "u") return;
|
|
516
|
-
let { checkDelay: t, rootSelector: n, threshold: s } = o, c = [...
|
|
517
|
+
let { checkDelay: t, rootSelector: n, threshold: s } = o, c = [...Qe, ...o.ignoreSelectors], l = e.meter.createCounter("browser.blank_screen.count", { description: "Number of suspected blank screen detections" }), u = () => {
|
|
517
518
|
try {
|
|
518
519
|
var t, r;
|
|
519
520
|
let i = document.querySelector(n), a = 0, o = 0;
|
|
520
521
|
for (let [e, t] of R) {
|
|
521
522
|
let n = document.elementFromPoint(window.innerWidth * e, window.innerHeight * t);
|
|
522
|
-
if (
|
|
523
|
+
if (nt(n, c)) {
|
|
523
524
|
o += 1;
|
|
524
525
|
continue;
|
|
525
526
|
}
|
|
@@ -527,7 +528,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
527
528
|
}
|
|
528
529
|
let u = R.length - o;
|
|
529
530
|
if (u === 0) return;
|
|
530
|
-
let d = a / u, f = d >= s, p =
|
|
531
|
+
let d = a / u, f = d >= s, p = tt(document.elementFromPoint(window.innerWidth / 2, window.innerHeight / 2)), m = E(E({}, F({
|
|
531
532
|
errorType: f ? "blank_screen" : "none",
|
|
532
533
|
eventLabel: "白屏",
|
|
533
534
|
result: f ? N.error : N.success,
|
|
@@ -554,7 +555,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
554
555
|
}
|
|
555
556
|
}
|
|
556
557
|
};
|
|
557
|
-
i =
|
|
558
|
+
i = rt(() => {
|
|
558
559
|
a || (r = window.setTimeout(u, t));
|
|
559
560
|
});
|
|
560
561
|
},
|
|
@@ -562,11 +563,11 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
562
563
|
a = !0, i == null || i(), i = void 0, r !== void 0 && typeof window < "u" && (window.clearTimeout(r), r = void 0);
|
|
563
564
|
}
|
|
564
565
|
};
|
|
565
|
-
},
|
|
566
|
+
}, at = ["http.url", "url.full"], ot = ["http.status_code", "http.response.status_code"], st = ["http.method", "http.request.method"], ct = (e) => ({ test: e }), z = (e) => typeof location > "u" ? void 0 : e.config.hooks.getViewPathGroup(location.href), lt = (e, t, n) => {
|
|
566
567
|
var r;
|
|
567
568
|
t.setAttributes(e.applyRedact(E(E({}, L(e.getRuntimeAttributes(), z(e))), e.config.hooks.getPageAttributes())));
|
|
568
569
|
let i;
|
|
569
|
-
for (let n of
|
|
570
|
+
for (let n of at) {
|
|
570
571
|
var a;
|
|
571
572
|
let r = (a = t.attributes) == null ? void 0 : a[n];
|
|
572
573
|
if (typeof r == "string") {
|
|
@@ -574,24 +575,24 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
574
575
|
typeof a == "string" && (i = a, t.setAttribute(n, a));
|
|
575
576
|
}
|
|
576
577
|
}
|
|
577
|
-
let o =
|
|
578
|
+
let o = ot.map((e) => {
|
|
578
579
|
var n;
|
|
579
580
|
return (n = t.attributes) == null ? void 0 : n[e];
|
|
580
|
-
}).find((e) => typeof e == "number"), s =
|
|
581
|
+
}).find((e) => typeof e == "number"), s = st.map((e) => {
|
|
581
582
|
var n;
|
|
582
583
|
return (n = t.attributes) == null ? void 0 : n[e];
|
|
583
|
-
}).find((e) => typeof e == "string"), c = (r = i) == null ?
|
|
584
|
+
}).find((e) => typeof e == "string"), c = (r = i) == null ? at.map((e) => {
|
|
584
585
|
var n;
|
|
585
586
|
return (n = t.attributes) == null ? void 0 : n[e];
|
|
586
587
|
}).find((e) => typeof e == "string") : r;
|
|
587
|
-
t.setAttributes(e.applyRedact(
|
|
588
|
+
t.setAttributes(e.applyRedact(ze({
|
|
588
589
|
method: s,
|
|
589
590
|
statusCode: o,
|
|
590
591
|
subtype: n,
|
|
591
592
|
url: c,
|
|
592
593
|
urlPathTemplate: c ? e.config.hooks.getViewPathGroup(c) : void 0
|
|
593
594
|
})));
|
|
594
|
-
},
|
|
595
|
+
}, ut = (e, t, n) => {
|
|
595
596
|
let r = z(e);
|
|
596
597
|
t.setAttributes(e.applyRedact(E(E(E({}, L(e.getRuntimeAttributes(), r)), e.config.hooks.getPageAttributes()), F({
|
|
597
598
|
errorType: "none",
|
|
@@ -601,9 +602,9 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
601
602
|
targetLabel: r,
|
|
602
603
|
traceScene: "page_load"
|
|
603
604
|
}))));
|
|
604
|
-
},
|
|
605
|
+
}, dt = (e, t, n) => {
|
|
605
606
|
let r = e.config.hooks.redactUrl(n.name);
|
|
606
|
-
t.setAttributes(e.applyRedact(E(E(E(E({}, L(e.getRuntimeAttributes(), z(e))), e.config.hooks.getPageAttributes()),
|
|
607
|
+
t.setAttributes(e.applyRedact(E(E(E(E({}, L(e.getRuntimeAttributes(), z(e))), e.config.hooks.getPageAttributes()), Be({
|
|
607
608
|
duration: n.duration,
|
|
608
609
|
initiatorType: n.initiatorType || "other",
|
|
609
610
|
responseStatus: n.responseStatus,
|
|
@@ -611,7 +612,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
611
612
|
url: r,
|
|
612
613
|
urlPathTemplate: e.config.hooks.getViewPathGroup(n.name)
|
|
613
614
|
})), {}, { "url.full": r })));
|
|
614
|
-
},
|
|
615
|
+
}, ft = (e = {}) => {
|
|
615
616
|
var t, n, r, i;
|
|
616
617
|
let a = [], o = {
|
|
617
618
|
documentLoad: (t = e.documentLoad) == null ? !0 : t,
|
|
@@ -624,7 +625,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
624
625
|
enabled: !!(o.documentLoad || o.fetch || o.xhr || o.userInteraction),
|
|
625
626
|
init(e) {
|
|
626
627
|
return A(function* () {
|
|
627
|
-
let t = [
|
|
628
|
+
let t = [ct((t) => M(e.config, t))], n = [ct((t) => Oe(e.config, t))], [r, i, s, c] = yield Promise.all([
|
|
628
629
|
o.documentLoad ? import("@opentelemetry/instrumentation-document-load") : Promise.resolve(null),
|
|
629
630
|
o.fetch ? import("@opentelemetry/instrumentation-fetch") : Promise.resolve(null),
|
|
630
631
|
o.xhr ? import("@opentelemetry/instrumentation-xml-http-request") : Promise.resolve(null),
|
|
@@ -633,18 +634,18 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
633
634
|
if (r && a.push(new r.DocumentLoadInstrumentation({
|
|
634
635
|
semconvStabilityOptIn: "http",
|
|
635
636
|
applyCustomAttributesOnSpan: {
|
|
636
|
-
documentLoad: (t) =>
|
|
637
|
-
documentFetch: (t) =>
|
|
638
|
-
resourceFetch: (t, n) =>
|
|
637
|
+
documentLoad: (t) => ut(e, t, "navigate"),
|
|
638
|
+
documentFetch: (t) => ut(e, t, "document_fetch"),
|
|
639
|
+
resourceFetch: (t, n) => dt(e, t, n)
|
|
639
640
|
}
|
|
640
641
|
})), i && a.push(new i.FetchInstrumentation({
|
|
641
|
-
applyCustomAttributesOnSpan: (t) =>
|
|
642
|
+
applyCustomAttributesOnSpan: (t) => lt(e, t, "fetch"),
|
|
642
643
|
ignoreUrls: t,
|
|
643
644
|
propagateTraceHeaderCorsUrls: n,
|
|
644
645
|
semconvStabilityOptIn: "http",
|
|
645
646
|
ignoreNetworkEvents: !1
|
|
646
647
|
})), s && a.push(new s.XMLHttpRequestInstrumentation({
|
|
647
|
-
applyCustomAttributesOnSpan: (t) =>
|
|
648
|
+
applyCustomAttributesOnSpan: (t) => lt(e, t, "xhr"),
|
|
648
649
|
ignoreUrls: t,
|
|
649
650
|
propagateTraceHeaderCorsUrls: n,
|
|
650
651
|
semconvStabilityOptIn: "http",
|
|
@@ -663,11 +664,11 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
663
664
|
}
|
|
664
665
|
}
|
|
665
666
|
};
|
|
666
|
-
},
|
|
667
|
+
}, pt = (e) => {
|
|
667
668
|
let t = 5381;
|
|
668
669
|
for (let n = 0; n < e.length; n++) t = t * 33 ^ e.charCodeAt(n);
|
|
669
670
|
return (t >>> 0).toString(36);
|
|
670
|
-
},
|
|
671
|
+
}, mt = (e, t) => {
|
|
671
672
|
let n = /* @__PURE__ */ new Map(), r = 0, i = (t) => {
|
|
672
673
|
if (!(t - r < e)) {
|
|
673
674
|
r = t;
|
|
@@ -689,18 +690,18 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
689
690
|
count: o.count
|
|
690
691
|
});
|
|
691
692
|
} };
|
|
692
|
-
},
|
|
693
|
-
if (t) return
|
|
694
|
-
},
|
|
693
|
+
}, ht = 6e4, gt = 5, _t = /^https?:|^\/\//i, vt = (e, t) => {
|
|
694
|
+
if (t) return _t.test(t) ? e(t) : t;
|
|
695
|
+
}, yt = () => {
|
|
695
696
|
let e;
|
|
696
697
|
return {
|
|
697
698
|
name: "csp-violation",
|
|
698
699
|
init(t) {
|
|
699
700
|
if (typeof window > "u" || typeof document > "u") return;
|
|
700
|
-
let n =
|
|
701
|
-
let r =
|
|
701
|
+
let n = mt(ht, gt), r = (e) => {
|
|
702
|
+
let r = pt(`${e.violatedDirective}|${e.blockedURI}|${e.sourceFile}|${e.lineNumber}`), i = n.allow(r);
|
|
702
703
|
if (!i.allowed) return;
|
|
703
|
-
let a =
|
|
704
|
+
let a = vt(t.config.hooks.redactUrl, e.blockedURI), o = e.sourceFile ? t.config.hooks.redactUrl(e.sourceFile) : void 0, s = i.count === 1;
|
|
704
705
|
t.startSpan("csp.violation", E(E(E({}, t.config.hooks.getPageAttributes()), F({
|
|
705
706
|
errorType: "csp",
|
|
706
707
|
eventLabel: "CSP 错误",
|
|
@@ -730,7 +731,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
730
731
|
e == null || e(), e = void 0;
|
|
731
732
|
}
|
|
732
733
|
};
|
|
733
|
-
},
|
|
734
|
+
}, B = (e) => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `${e}-${Date.now()}-${Math.random().toString(16).slice(2)}`, bt = "BK_RUM_DEVICE_ID", xt = 250, St = () => navigator.connection, Ct = () => navigator.userAgentData, wt = (e) => {
|
|
734
735
|
for (let [t, n] of [
|
|
735
736
|
["Edge", /Edg\/([\d.]+)/],
|
|
736
737
|
["Chrome", /Chrome\/([\d.]+)/],
|
|
@@ -747,21 +748,21 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
747
748
|
name: "Other",
|
|
748
749
|
version: void 0
|
|
749
750
|
};
|
|
750
|
-
},
|
|
751
|
+
}, Tt = (e, t) => {
|
|
751
752
|
let n = `${t == null ? "" : t} ${e}`;
|
|
752
753
|
return /iphone|ipad|ipod/i.test(n) ? "iOS" : /android/i.test(n) ? "Android" : /mac/i.test(n) ? "macOS" : /win/i.test(n) ? "Windows" : /linux/i.test(n) ? "Linux" : "Other";
|
|
753
|
-
},
|
|
754
|
+
}, Et = (e) => {
|
|
754
755
|
let t = null;
|
|
755
756
|
try {
|
|
756
757
|
t = window.localStorage.getItem(e);
|
|
757
758
|
} catch (e) {}
|
|
758
759
|
if (t) return t;
|
|
759
|
-
let n =
|
|
760
|
+
let n = B("device");
|
|
760
761
|
try {
|
|
761
762
|
window.localStorage.setItem(e, n);
|
|
762
763
|
} catch (e) {}
|
|
763
764
|
return n;
|
|
764
|
-
},
|
|
765
|
+
}, Dt = () => {
|
|
765
766
|
var e, t;
|
|
766
767
|
return typeof window > "u" ? {} : {
|
|
767
768
|
"browser.viewport.width": window.innerWidth,
|
|
@@ -769,8 +770,8 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
769
770
|
"browser.screen.width": (e = window.screen) == null ? void 0 : e.width,
|
|
770
771
|
"browser.screen.height": (t = window.screen) == null ? void 0 : t.height
|
|
771
772
|
};
|
|
772
|
-
},
|
|
773
|
-
let e =
|
|
773
|
+
}, Ot = () => {
|
|
774
|
+
let e = St();
|
|
774
775
|
return e ? {
|
|
775
776
|
"network.effective_type": e.effectiveType,
|
|
776
777
|
"network.connection_type": e.type,
|
|
@@ -778,9 +779,9 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
778
779
|
"network.rtt": e.rtt,
|
|
779
780
|
"network.save_data": e.saveData
|
|
780
781
|
} : {};
|
|
781
|
-
},
|
|
782
|
+
}, kt = () => {
|
|
782
783
|
if (typeof navigator > "u") return {};
|
|
783
|
-
let e =
|
|
784
|
+
let e = Ct(), t = navigator.userAgent, n = wt(t), r = Tt(t, e == null ? void 0 : e.platform), i = e != null && e.mobile || /mobi|android|iphone|ipad|ipod/i.test(t) ? "mobile" : "desktop";
|
|
784
785
|
return {
|
|
785
786
|
"device.memory": navigator.deviceMemory,
|
|
786
787
|
"device.cpu_cores": navigator.hardwareConcurrency,
|
|
@@ -794,29 +795,29 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
794
795
|
"user_agent.version": n.version,
|
|
795
796
|
"user_agent.os.name": r
|
|
796
797
|
};
|
|
797
|
-
},
|
|
798
|
+
}, At = (e, t) => {
|
|
798
799
|
let n;
|
|
799
800
|
return () => {
|
|
800
801
|
n !== void 0 && window.clearTimeout(n), n = window.setTimeout(() => {
|
|
801
802
|
n = void 0, e();
|
|
802
803
|
}, t);
|
|
803
804
|
};
|
|
804
|
-
},
|
|
805
|
+
}, jt = (e = {}) => {
|
|
805
806
|
var t;
|
|
806
|
-
let n = [], r = (t = e.storageKey) == null ?
|
|
807
|
+
let n = [], r = (t = e.storageKey) == null ? bt : t;
|
|
807
808
|
return {
|
|
808
809
|
name: "device",
|
|
809
810
|
init(e) {
|
|
810
|
-
let t = typeof window > "u" ?
|
|
811
|
-
if (e.setRuntimeAttributes(E(E(E({ "device.id": t },
|
|
812
|
-
let i =
|
|
813
|
-
e.setRuntimeAttributes(
|
|
814
|
-
},
|
|
811
|
+
let t = typeof window > "u" ? B("device") : Et(r);
|
|
812
|
+
if (e.setRuntimeAttributes(E(E(E({ "device.id": t }, kt()), Dt()), Ot())), typeof window > "u") return;
|
|
813
|
+
let i = At(() => {
|
|
814
|
+
e.setRuntimeAttributes(Dt());
|
|
815
|
+
}, xt);
|
|
815
816
|
window.addEventListener("resize", i), window.addEventListener("orientationchange", i), n.push(() => window.removeEventListener("resize", i), () => window.removeEventListener("orientationchange", i));
|
|
816
|
-
let a =
|
|
817
|
+
let a = St();
|
|
817
818
|
if (a && typeof a.addEventListener == "function") {
|
|
818
819
|
let t = () => {
|
|
819
|
-
e.setRuntimeAttributes(
|
|
820
|
+
e.setRuntimeAttributes(Ot());
|
|
820
821
|
};
|
|
821
822
|
a.addEventListener("change", t), n.push(() => {
|
|
822
823
|
var e;
|
|
@@ -831,7 +832,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
831
832
|
}
|
|
832
833
|
}
|
|
833
834
|
};
|
|
834
|
-
},
|
|
835
|
+
}, Mt = 6e4, Nt = 5, Pt = (e, t) => typeof e == "number" && Number.isFinite(e) && e > 0 ? e : t, Ft = (e) => {
|
|
835
836
|
if (e instanceof Error) return e.message;
|
|
836
837
|
if (typeof e == "string") return e;
|
|
837
838
|
try {
|
|
@@ -839,30 +840,30 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
839
840
|
} catch (t) {
|
|
840
841
|
return String(e);
|
|
841
842
|
}
|
|
842
|
-
},
|
|
843
|
+
}, It = (e) => {
|
|
843
844
|
var t;
|
|
844
845
|
return e instanceof Error ? (t = e.stack) == null ? "" : t : "";
|
|
845
|
-
},
|
|
846
|
+
}, Lt = (e) => e.slice(0, 80), Rt = (e) => {
|
|
846
847
|
var t, n;
|
|
847
848
|
return (t = (n = e.split("\n").find((e) => e.trim().startsWith("at "))) == null ? void 0 : n.trim()) == null ? "" : t;
|
|
848
|
-
},
|
|
849
|
-
let c =
|
|
849
|
+
}, zt = (e) => e === "unhandledrejection" ? "promise" : e === "resource" ? "resource_load" : "js", Bt = ({ context: e, error: n, exceptionType: r, extra: i = {}, source: a, spanName: o, throttle: s }) => {
|
|
850
|
+
let c = Ft(n), l = It(n), u = pt(`${a}|${c}|${l.slice(0, 256)}`), d = s.allow(u);
|
|
850
851
|
if (!d.allowed) return;
|
|
851
852
|
let f = n instanceof Error ? n : {
|
|
852
853
|
message: c,
|
|
853
854
|
name: r == null ? a : r
|
|
854
855
|
}, p = E(E(E(E({}, e.config.hooks.getPageAttributes()), e.config.hooks.getErrorAttributes()), F({
|
|
855
|
-
errorType:
|
|
856
|
+
errorType: zt(a),
|
|
856
857
|
eventLabel: "错误",
|
|
857
858
|
result: N.error,
|
|
858
|
-
spanSubtype:
|
|
859
|
+
spanSubtype: zt(a),
|
|
859
860
|
spanType: P.error,
|
|
860
861
|
targetLabel: n instanceof Error ? n.name : r == null ? a : r
|
|
861
862
|
})), {}, {
|
|
862
863
|
"exception.message": c,
|
|
863
|
-
[x.exceptionMessageShort]:
|
|
864
|
+
[x.exceptionMessageShort]: Lt(c),
|
|
864
865
|
"exception.stacktrace": l,
|
|
865
|
-
[x.exceptionStackTopFrame]:
|
|
866
|
+
[x.exceptionStackTopFrame]: Rt(l),
|
|
866
867
|
"exception.type": n instanceof Error ? n.name : r == null ? a : r,
|
|
867
868
|
[x.exceptionFingerprint]: u,
|
|
868
869
|
"error.handled": !1,
|
|
@@ -873,16 +874,16 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
873
874
|
code: t.ERROR,
|
|
874
875
|
message: c
|
|
875
876
|
}), m.end();
|
|
876
|
-
},
|
|
877
|
-
let t = [], n =
|
|
877
|
+
}, Vt = (e = {}) => {
|
|
878
|
+
let t = [], n = Pt(e.windowMs, Mt), r = Pt(e.maxPerWindow, Nt);
|
|
878
879
|
return {
|
|
879
880
|
name: "error",
|
|
880
881
|
init(e) {
|
|
881
882
|
if (typeof window > "u") return;
|
|
882
|
-
let i =
|
|
883
|
+
let i = mt(n, r), a = (t) => {
|
|
883
884
|
var n;
|
|
884
885
|
let r = !t.error && !t.filename && t.message === "Script error.";
|
|
885
|
-
|
|
886
|
+
Bt({
|
|
886
887
|
context: e,
|
|
887
888
|
throttle: i,
|
|
888
889
|
spanName: "browser.error",
|
|
@@ -895,7 +896,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
895
896
|
}, r ? { "error.cross_origin": !0 } : {})
|
|
896
897
|
});
|
|
897
898
|
}, o = (t) => {
|
|
898
|
-
|
|
899
|
+
Bt({
|
|
899
900
|
context: e,
|
|
900
901
|
throttle: i,
|
|
901
902
|
spanName: "browser.unhandledrejection",
|
|
@@ -908,7 +909,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
908
909
|
let n = t.target;
|
|
909
910
|
if (!(n instanceof Element)) return;
|
|
910
911
|
let r = n, a = r.src || r.href || n.currentSrc || "";
|
|
911
|
-
|
|
912
|
+
Bt({
|
|
912
913
|
context: e,
|
|
913
914
|
throttle: i,
|
|
914
915
|
spanName: "browser.resource_error",
|
|
@@ -930,13 +931,13 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
930
931
|
}
|
|
931
932
|
}
|
|
932
933
|
};
|
|
933
|
-
},
|
|
934
|
+
}, Ht = 10 * 1024, Ut = 10, Wt = (e) => e.body, Gt = (e, t) => typeof e == "number" && Number.isFinite(e) && e > 0 ? e : t, V = /* @__PURE__ */ new WeakMap(), Kt = (e, t) => e.length <= t ? {
|
|
934
935
|
body: e,
|
|
935
936
|
truncated: !1
|
|
936
937
|
} : {
|
|
937
938
|
body: e.slice(0, t),
|
|
938
939
|
truncated: !0
|
|
939
|
-
},
|
|
940
|
+
}, qt = (e, t) => {
|
|
940
941
|
if (!e) return;
|
|
941
942
|
if (e instanceof Headers) return e.get(t) || void 0;
|
|
942
943
|
let n = t.toLowerCase();
|
|
@@ -946,30 +947,30 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
946
947
|
}
|
|
947
948
|
let i = Object.keys(e).find((e) => e.toLowerCase() === n);
|
|
948
949
|
return i ? e[i] : void 0;
|
|
949
|
-
},
|
|
950
|
+
}, Jt = (e) => {
|
|
950
951
|
let t = {};
|
|
951
952
|
return e.forEach((e, n) => {
|
|
952
953
|
t[n] = e instanceof File ? `[File name=${e.name} type=${e.type || "unknown"} size=${e.size}]` : e;
|
|
953
954
|
}), JSON.stringify(t);
|
|
954
|
-
},
|
|
955
|
+
}, Yt = function() {
|
|
955
956
|
var e = A(function* (e) {
|
|
956
|
-
return e == null ? "" : typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : e instanceof FormData ?
|
|
957
|
+
return e == null ? "" : typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : e instanceof FormData ? Jt(e) : e instanceof Blob ? e.text() : e instanceof ArrayBuffer || ArrayBuffer.isView(e) ? new TextDecoder().decode(e) : e instanceof Document ? new XMLSerializer().serializeToString(e) : String(e);
|
|
957
958
|
});
|
|
958
959
|
return function(t) {
|
|
959
960
|
return e.apply(this, arguments);
|
|
960
961
|
};
|
|
961
|
-
}(),
|
|
962
|
+
}(), Xt = function() {
|
|
962
963
|
var e = A(function* (e, t, n) {
|
|
963
|
-
let r = yield
|
|
964
|
-
if (r) return E(E({},
|
|
964
|
+
let r = yield Yt(e);
|
|
965
|
+
if (r) return E(E({}, Kt(r, t)), {}, { contentType: n });
|
|
965
966
|
});
|
|
966
967
|
return function(t, n, r) {
|
|
967
968
|
return e.apply(this, arguments);
|
|
968
969
|
};
|
|
969
|
-
}(),
|
|
970
|
+
}(), H = function() {
|
|
970
971
|
var e = A(function* (e, t, n) {
|
|
971
972
|
try {
|
|
972
|
-
return yield
|
|
973
|
+
return yield Xt(e, t, n);
|
|
973
974
|
} catch (e) {
|
|
974
975
|
return;
|
|
975
976
|
}
|
|
@@ -977,20 +978,20 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
977
978
|
return function(t, n, r) {
|
|
978
979
|
return e.apply(this, arguments);
|
|
979
980
|
};
|
|
980
|
-
}(),
|
|
981
|
+
}(), Zt = (e) => e instanceof Request ? e.url : String(e), Qt = (e, t) => t != null && t.method ? t.method : e instanceof Request ? e.method : "GET", $t = (e, t, n) => t != null && t.body ? () => H(t.body, n, qt(t.headers, "content-type")) : (e instanceof Request, () => Promise.resolve(void 0)), en = function() {
|
|
981
982
|
var e = A(function* (e, t) {
|
|
982
983
|
try {
|
|
983
984
|
let n = e.headers.get("content-type") || void 0, r = e.headers.get("content-length");
|
|
984
985
|
if (r) {
|
|
985
986
|
let e = Number(r);
|
|
986
|
-
if (Number.isFinite(e) && e > t *
|
|
987
|
+
if (Number.isFinite(e) && e > t * Ut) return {
|
|
987
988
|
body: "",
|
|
988
989
|
contentType: n,
|
|
989
990
|
truncated: !0
|
|
990
991
|
};
|
|
991
992
|
}
|
|
992
993
|
let i = e.clone();
|
|
993
|
-
return
|
|
994
|
+
return H(i.body ? yield i.text() : "", t, n);
|
|
994
995
|
} catch (e) {
|
|
995
996
|
return;
|
|
996
997
|
}
|
|
@@ -998,28 +999,28 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
998
999
|
return function(t, n) {
|
|
999
1000
|
return e.apply(this, arguments);
|
|
1000
1001
|
};
|
|
1001
|
-
}(),
|
|
1002
|
-
if (e.responseType === "" || e.responseType === "text") return E(E({},
|
|
1003
|
-
if (e.responseType === "json") return E(E({},
|
|
1004
|
-
},
|
|
1002
|
+
}(), tn = (e, t) => {
|
|
1003
|
+
if (e.responseType === "" || e.responseType === "text") return E(E({}, Kt(e.responseText || "", t)), {}, { contentType: e.getResponseHeader("content-type") || void 0 });
|
|
1004
|
+
if (e.responseType === "json") return E(E({}, Kt(JSON.stringify(e.response), t)), {}, { contentType: e.getResponseHeader("content-type") || void 0 });
|
|
1005
|
+
}, nn = (e, t, n) => {
|
|
1005
1006
|
if (n) return e.redact(E(E({}, t), {}, {
|
|
1006
1007
|
body: n.body,
|
|
1007
1008
|
truncated: n.truncated
|
|
1008
1009
|
}));
|
|
1009
1010
|
}, U = ({ config: e, context: t, duration: n, error: r, method: i, request: a, response: s, status: c, subtype: l, url: u }) => {
|
|
1010
|
-
let d = !!r || typeof c == "number" && c >= 400, f = i.toUpperCase(), p = d ?
|
|
1011
|
+
let d = !!r || typeof c == "number" && c >= 400, f = i.toUpperCase(), p = d ? nn(e, {
|
|
1011
1012
|
contentType: a == null ? void 0 : a.contentType,
|
|
1012
1013
|
method: f,
|
|
1013
1014
|
status: c,
|
|
1014
1015
|
type: "request",
|
|
1015
1016
|
url: u
|
|
1016
|
-
}, a) : void 0, m = d ?
|
|
1017
|
+
}, a) : void 0, m = d ? nn(e, {
|
|
1017
1018
|
contentType: s == null ? void 0 : s.contentType,
|
|
1018
1019
|
method: f,
|
|
1019
1020
|
status: c,
|
|
1020
1021
|
type: "response",
|
|
1021
1022
|
url: u
|
|
1022
|
-
}, s) : void 0, h = E(E(E({}, t.config.hooks.getPageAttributes()),
|
|
1023
|
+
}, s) : void 0, h = E(E(E({}, t.config.hooks.getPageAttributes()), ze({
|
|
1023
1024
|
duration: n,
|
|
1024
1025
|
method: f,
|
|
1025
1026
|
statusCode: c,
|
|
@@ -1045,11 +1046,11 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1045
1046
|
body: d ? "HTTP request completed with error" : "HTTP request completed",
|
|
1046
1047
|
attributes: h
|
|
1047
1048
|
});
|
|
1048
|
-
},
|
|
1049
|
+
}, rn = (e = {}) => {
|
|
1049
1050
|
var t;
|
|
1050
1051
|
let n = [], r = {
|
|
1051
|
-
maxBodySize:
|
|
1052
|
-
redact: (t = e.redact) == null ?
|
|
1052
|
+
maxBodySize: Gt(e.maxBodySize, Ht),
|
|
1053
|
+
redact: (t = e.redact) == null ? Wt : t
|
|
1053
1054
|
};
|
|
1054
1055
|
return {
|
|
1055
1056
|
name: "http-body",
|
|
@@ -1059,9 +1060,9 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1059
1060
|
if (typeof i == "function") {
|
|
1060
1061
|
let a = function() {
|
|
1061
1062
|
var n = A(function* (n, a) {
|
|
1062
|
-
let o =
|
|
1063
|
+
let o = Zt(n);
|
|
1063
1064
|
if (M(e.config, o)) return i(n, a);
|
|
1064
|
-
let s =
|
|
1065
|
+
let s = Qt(n, a), c = $t(n, a, t), l = performance.now();
|
|
1065
1066
|
try {
|
|
1066
1067
|
let u = yield i(n, a), d = performance.now() - l, f = u.status >= 400;
|
|
1067
1068
|
return U({
|
|
@@ -1070,7 +1071,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1070
1071
|
duration: d,
|
|
1071
1072
|
method: s,
|
|
1072
1073
|
request: f ? yield c() : void 0,
|
|
1073
|
-
response: f ? yield
|
|
1074
|
+
response: f ? yield en(u, t) : void 0,
|
|
1074
1075
|
status: u.status,
|
|
1075
1076
|
subtype: "fetch",
|
|
1076
1077
|
url: o
|
|
@@ -1099,13 +1100,13 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1099
1100
|
}
|
|
1100
1101
|
let a = XMLHttpRequest.prototype.open, o = XMLHttpRequest.prototype.send, s = XMLHttpRequest.prototype.setRequestHeader, c = function(e, t, ...n) {
|
|
1101
1102
|
var r;
|
|
1102
|
-
return
|
|
1103
|
+
return V.set(this, {
|
|
1103
1104
|
method: e,
|
|
1104
1105
|
startTime: performance.now(),
|
|
1105
1106
|
url: String(t)
|
|
1106
1107
|
}), a.call(this, e, t, (r = n[0]) == null ? !0 : r, n[1], n[2]);
|
|
1107
1108
|
}, l = function(e, t) {
|
|
1108
|
-
let n =
|
|
1109
|
+
let n = V.get(this);
|
|
1109
1110
|
if (n) {
|
|
1110
1111
|
var r;
|
|
1111
1112
|
let i = e.toLowerCase(), a = (r = n.requestHeaders) == null ? {} : r, o = a[i];
|
|
@@ -1114,22 +1115,22 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1114
1115
|
return s.call(this, e, t);
|
|
1115
1116
|
}, u = function(n) {
|
|
1116
1117
|
var i = this;
|
|
1117
|
-
let a =
|
|
1118
|
+
let a = V.get(this);
|
|
1118
1119
|
if (a) {
|
|
1119
1120
|
var s;
|
|
1120
1121
|
a.requestBody = n, a.requestContentType = (s = a.requestHeaders) == null ? void 0 : s["content-type"];
|
|
1121
1122
|
}
|
|
1122
1123
|
return this.addEventListener("abort", () => {
|
|
1123
|
-
let e =
|
|
1124
|
+
let e = V.get(this);
|
|
1124
1125
|
e && (e.aborted = !0);
|
|
1125
1126
|
}, { once: !0 }), this.addEventListener("error", () => {
|
|
1126
|
-
let e =
|
|
1127
|
+
let e = V.get(this);
|
|
1127
1128
|
e && (e.networkError = !0);
|
|
1128
1129
|
}, { once: !0 }), this.addEventListener("loadend", () => {
|
|
1129
1130
|
A(function* () {
|
|
1130
|
-
let n =
|
|
1131
|
+
let n = V.get(i);
|
|
1131
1132
|
if (!n || M(e.config, n.url) || n.aborted) return;
|
|
1132
|
-
let a = n.networkError || i.status >= 400, o = a ?
|
|
1133
|
+
let a = n.networkError || i.status >= 400, o = a ? tn(i, t) : void 0, s = a ? yield H(n.requestBody, t, n.requestContentType) : void 0;
|
|
1133
1134
|
U({
|
|
1134
1135
|
config: r,
|
|
1135
1136
|
context: e,
|
|
@@ -1156,8 +1157,8 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1156
1157
|
}
|
|
1157
1158
|
}
|
|
1158
1159
|
};
|
|
1159
|
-
},
|
|
1160
|
-
let t, n =
|
|
1160
|
+
}, an = 50, on = (e, t) => typeof e == "number" && Number.isFinite(e) && e >= 0 ? e : t, sn = (e = {}) => {
|
|
1161
|
+
let t, n = on(e.threshold, an);
|
|
1161
1162
|
return {
|
|
1162
1163
|
name: "long-task",
|
|
1163
1164
|
init(e) {
|
|
@@ -1209,11 +1210,11 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1209
1210
|
toUrl: n
|
|
1210
1211
|
};
|
|
1211
1212
|
for (let e of Array.from(W)) e(r);
|
|
1212
|
-
}, sn = () => {
|
|
1213
|
-
X("popstate", G || Y());
|
|
1214
1213
|
}, cn = () => {
|
|
1215
|
-
X("
|
|
1214
|
+
X("popstate", G || Y());
|
|
1216
1215
|
}, ln = () => {
|
|
1216
|
+
X("hashchange", G || Y());
|
|
1217
|
+
}, un = () => {
|
|
1217
1218
|
J || typeof window > "u" || typeof history > "u" || (J = !0, G = Y(), K = history.pushState, q = history.replaceState, history.pushState = function(e, t, n) {
|
|
1218
1219
|
let r = G || Y(), i = K == null ? void 0 : K.apply(this, [
|
|
1219
1220
|
e,
|
|
@@ -1228,22 +1229,22 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1228
1229
|
n
|
|
1229
1230
|
]);
|
|
1230
1231
|
return X("replaceState", r), i;
|
|
1231
|
-
}, window.addEventListener("popstate",
|
|
1232
|
-
},
|
|
1233
|
-
!J || typeof window > "u" || typeof history > "u" || (K && (history.pushState = K), q && (history.replaceState = q), window.removeEventListener("popstate",
|
|
1234
|
-
},
|
|
1235
|
-
W.delete(e), W.size === 0 &&
|
|
1236
|
-
}),
|
|
1232
|
+
}, window.addEventListener("popstate", cn), window.addEventListener("hashchange", ln));
|
|
1233
|
+
}, dn = () => {
|
|
1234
|
+
!J || typeof window > "u" || typeof history > "u" || (K && (history.pushState = K), q && (history.replaceState = q), window.removeEventListener("popstate", cn), window.removeEventListener("hashchange", ln), K = void 0, q = void 0, J = !1, G = "");
|
|
1235
|
+
}, fn = (e) => typeof window > "u" || typeof history > "u" ? () => {} : (un(), W.add(e), () => {
|
|
1236
|
+
W.delete(e), W.size === 0 && dn();
|
|
1237
|
+
}), pn = () => typeof location > "u" ? "" : location.href, mn = () => {
|
|
1237
1238
|
let e = [];
|
|
1238
1239
|
return {
|
|
1239
1240
|
name: "page-view",
|
|
1240
1241
|
init(t) {
|
|
1241
1242
|
if (typeof window > "u") return;
|
|
1242
1243
|
let n = "", r, i = (e, i = n) => {
|
|
1243
|
-
let a =
|
|
1244
|
+
let a = pn();
|
|
1244
1245
|
if (a === n) return;
|
|
1245
1246
|
r == null || r.setAttribute("view.end_reason", e), r == null || r.end(), n = a;
|
|
1246
|
-
let o =
|
|
1247
|
+
let o = B("view"), s = t.config.hooks.getViewPathGroup(a), c = e === "load" ? "initial_load" : "route_change", l = t.config.hooks.redactUrl(a), u = t.config.hooks.redactUrl(i);
|
|
1247
1248
|
t.setView({
|
|
1248
1249
|
id: o,
|
|
1249
1250
|
loadingType: c,
|
|
@@ -1266,7 +1267,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1266
1267
|
"event.source": e
|
|
1267
1268
|
}, d ? { "document.referrer": t.config.hooks.redactUrl(document.referrer || "") } : {});
|
|
1268
1269
|
r = t.startSpan("browser.view", f), t.startSpan("browser.page_view", E({}, f)).end();
|
|
1269
|
-
}, a =
|
|
1270
|
+
}, a = fn((e) => {
|
|
1270
1271
|
i(e.source, e.fromUrl);
|
|
1271
1272
|
});
|
|
1272
1273
|
i("load");
|
|
@@ -1282,7 +1283,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1282
1283
|
}
|
|
1283
1284
|
}
|
|
1284
1285
|
};
|
|
1285
|
-
},
|
|
1286
|
+
}, hn = (e) => e.transferSize === 0 && e.decodedBodySize > 0 ? !0 : void 0, gn = () => {
|
|
1286
1287
|
let e, t = /* @__PURE__ */ new Set();
|
|
1287
1288
|
return {
|
|
1288
1289
|
name: "resource",
|
|
@@ -1295,7 +1296,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1295
1296
|
if (t.has(r)) return;
|
|
1296
1297
|
t.add(r);
|
|
1297
1298
|
let i = n.config.hooks.redactUrl(e.name), a = e.duration;
|
|
1298
|
-
n.startSpan("browser.resource", E(E(E({}, n.config.hooks.getPageAttributes()),
|
|
1299
|
+
n.startSpan("browser.resource", E(E(E({}, n.config.hooks.getPageAttributes()), Be({
|
|
1299
1300
|
duration: a,
|
|
1300
1301
|
initiatorType: e.initiatorType || "other",
|
|
1301
1302
|
responseStatus: e.responseStatus,
|
|
@@ -1305,7 +1306,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1305
1306
|
})), {}, {
|
|
1306
1307
|
"url.full": i,
|
|
1307
1308
|
[x.transferSize]: e.transferSize,
|
|
1308
|
-
[x.cacheHit]:
|
|
1309
|
+
[x.cacheHit]: hn(e),
|
|
1309
1310
|
[x.nextHopProtocol]: e.nextHopProtocol,
|
|
1310
1311
|
initiator_type: e.initiatorType || "other",
|
|
1311
1312
|
"resource.encoded_body_size": e.encodedBodySize,
|
|
@@ -1327,7 +1328,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1327
1328
|
e == null || e.disconnect(), e = void 0, t.clear();
|
|
1328
1329
|
}
|
|
1329
1330
|
};
|
|
1330
|
-
},
|
|
1331
|
+
}, _n = () => {
|
|
1331
1332
|
let e = [], t = !1;
|
|
1332
1333
|
return {
|
|
1333
1334
|
name: "route-timing",
|
|
@@ -1357,7 +1358,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1357
1358
|
}), { startTime: s }).end();
|
|
1358
1359
|
};
|
|
1359
1360
|
requestAnimationFrame(() => requestAnimationFrame(() => setTimeout(c, 0)));
|
|
1360
|
-
}, a =
|
|
1361
|
+
}, a = fn((e) => {
|
|
1361
1362
|
e.fromUrl !== e.toUrl && i(e.source, e.fromUrl, e.toUrl);
|
|
1362
1363
|
});
|
|
1363
1364
|
e.push(a);
|
|
@@ -1369,32 +1370,32 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1369
1370
|
}
|
|
1370
1371
|
}
|
|
1371
1372
|
};
|
|
1372
|
-
},
|
|
1373
|
+
}, vn = 1800 * 1e3, yn = 1440 * 60 * 1e3, bn = 6e4, xn = 5e3, Sn = [
|
|
1373
1374
|
"click",
|
|
1374
1375
|
"keydown",
|
|
1375
1376
|
"scroll",
|
|
1376
1377
|
"mousemove",
|
|
1377
1378
|
"touchstart"
|
|
1378
|
-
],
|
|
1379
|
+
], Cn = (e, t) => typeof e == "number" && Number.isFinite(e) && e > 0 ? e : t, wn = (e, t) => typeof e == "number" && Number.isFinite(e) && e > 0 && e <= t + xn, Tn = (e, t) => {
|
|
1379
1380
|
if (!e) return null;
|
|
1380
1381
|
try {
|
|
1381
1382
|
let n = JSON.parse(e);
|
|
1382
|
-
if (typeof (n == null ? void 0 : n.id) == "string" &&
|
|
1383
|
+
if (typeof (n == null ? void 0 : n.id) == "string" && wn(n.ts, t) && wn(n.startedAt, t)) return n;
|
|
1383
1384
|
} catch (e) {}
|
|
1384
1385
|
return null;
|
|
1385
|
-
},
|
|
1386
|
+
}, En = (e, t) => {
|
|
1386
1387
|
if (typeof window > "u") return null;
|
|
1387
1388
|
let n = null;
|
|
1388
1389
|
try {
|
|
1389
1390
|
n = window.localStorage.getItem(e);
|
|
1390
1391
|
} catch (e) {}
|
|
1391
|
-
let r =
|
|
1392
|
+
let r = Tn(n, t);
|
|
1392
1393
|
if (r) return r;
|
|
1393
1394
|
try {
|
|
1394
1395
|
n = window.sessionStorage.getItem(e);
|
|
1395
1396
|
} catch (e) {}
|
|
1396
|
-
return r =
|
|
1397
|
-
},
|
|
1397
|
+
return r = Tn(n, t), r;
|
|
1398
|
+
}, Dn = (e, t) => {
|
|
1398
1399
|
if (typeof window > "u") return;
|
|
1399
1400
|
let n = JSON.stringify(t);
|
|
1400
1401
|
try {
|
|
@@ -1403,23 +1404,23 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1403
1404
|
try {
|
|
1404
1405
|
window.localStorage.setItem(e, n);
|
|
1405
1406
|
} catch (e) {}
|
|
1406
|
-
},
|
|
1407
|
-
let r = Date.now(), i =
|
|
1407
|
+
}, On = (e, t, n) => {
|
|
1408
|
+
let r = Date.now(), i = En(e, r);
|
|
1408
1409
|
if (i) {
|
|
1409
1410
|
let a = r - i.ts >= t, o = r - i.startedAt >= n;
|
|
1410
1411
|
if (!a && !o) {
|
|
1411
1412
|
let t = E(E({}, i), {}, { ts: r });
|
|
1412
|
-
return
|
|
1413
|
+
return Dn(e, t), {
|
|
1413
1414
|
id: t.id,
|
|
1414
1415
|
rotated: !1
|
|
1415
1416
|
};
|
|
1416
1417
|
}
|
|
1417
1418
|
let s = a ? "inactivity" : "maxLifetime", c = {
|
|
1418
|
-
id:
|
|
1419
|
+
id: B("session"),
|
|
1419
1420
|
startedAt: r,
|
|
1420
1421
|
ts: r
|
|
1421
1422
|
};
|
|
1422
|
-
return
|
|
1423
|
+
return Dn(e, c), {
|
|
1423
1424
|
id: c.id,
|
|
1424
1425
|
prevId: i.id,
|
|
1425
1426
|
reason: s,
|
|
@@ -1427,24 +1428,24 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1427
1428
|
};
|
|
1428
1429
|
}
|
|
1429
1430
|
let a = {
|
|
1430
|
-
id:
|
|
1431
|
+
id: B("session"),
|
|
1431
1432
|
startedAt: r,
|
|
1432
1433
|
ts: r
|
|
1433
1434
|
};
|
|
1434
|
-
return
|
|
1435
|
+
return Dn(e, a), {
|
|
1435
1436
|
id: a.id,
|
|
1436
1437
|
reason: "init",
|
|
1437
1438
|
rotated: !0
|
|
1438
1439
|
};
|
|
1439
|
-
},
|
|
1440
|
+
}, kn = (e) => {
|
|
1440
1441
|
let t = "";
|
|
1441
1442
|
try {
|
|
1442
1443
|
t = new URL(e).host;
|
|
1443
1444
|
} catch (n) {
|
|
1444
1445
|
t = e;
|
|
1445
1446
|
}
|
|
1446
|
-
return `bk_ot_session__${
|
|
1447
|
-
},
|
|
1447
|
+
return `bk_ot_session__${pt(t || "default")}`;
|
|
1448
|
+
}, An = (e, t) => {
|
|
1448
1449
|
if (!t.rotated || !t.reason) return;
|
|
1449
1450
|
let n = Date.now();
|
|
1450
1451
|
e.emitLog({
|
|
@@ -1458,38 +1459,38 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1458
1459
|
"session.rotate.reason": t.reason
|
|
1459
1460
|
}, t.prevId ? { "session.previous_id": t.prevId } : {})
|
|
1460
1461
|
});
|
|
1461
|
-
},
|
|
1462
|
-
let t = [], n =
|
|
1462
|
+
}, jn = (e = {}) => {
|
|
1463
|
+
let t = [], n = Cn(e.inactivityMs, vn), r = Cn(e.maxLifetimeMs, yn);
|
|
1463
1464
|
return {
|
|
1464
1465
|
name: "session",
|
|
1465
1466
|
init(i) {
|
|
1466
1467
|
var a;
|
|
1467
|
-
let o = (a = e.storageKey) == null ?
|
|
1468
|
+
let o = (a = e.storageKey) == null ? kn(i.config.transport.endpoint) : a, s = "", c = () => {
|
|
1468
1469
|
if (typeof window > "u") {
|
|
1469
|
-
s || (s =
|
|
1470
|
+
s || (s = B("session"), i.setRuntimeAttributes({
|
|
1470
1471
|
[x.sessionHasReplay]: !1,
|
|
1471
1472
|
[x.sessionId]: s
|
|
1472
1473
|
}));
|
|
1473
1474
|
return;
|
|
1474
1475
|
}
|
|
1475
|
-
let e =
|
|
1476
|
+
let e = On(o, n, r);
|
|
1476
1477
|
i.setRuntimeAttributes({
|
|
1477
1478
|
[x.sessionHasReplay]: !1,
|
|
1478
1479
|
[x.sessionId]: e.id
|
|
1479
|
-
}), e.id !== s && (s = e.id,
|
|
1480
|
+
}), e.id !== s && (s = e.id, An(i, e));
|
|
1480
1481
|
};
|
|
1481
1482
|
if (c(), typeof window > "u" || typeof document > "u") return;
|
|
1482
1483
|
let l = Date.now(), u = () => {
|
|
1483
1484
|
let e = Date.now();
|
|
1484
|
-
e - l <
|
|
1485
|
+
e - l < bn || (l = e, c());
|
|
1485
1486
|
}, d = {
|
|
1486
1487
|
capture: !0,
|
|
1487
1488
|
passive: !0
|
|
1488
1489
|
};
|
|
1489
|
-
|
|
1490
|
+
Sn.forEach((e) => {
|
|
1490
1491
|
window.addEventListener(e, u, d);
|
|
1491
1492
|
}), t.push(() => {
|
|
1492
|
-
|
|
1493
|
+
Sn.forEach((e) => {
|
|
1493
1494
|
window.removeEventListener(e, u, d);
|
|
1494
1495
|
});
|
|
1495
1496
|
});
|
|
@@ -1499,7 +1500,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1499
1500
|
document.addEventListener("visibilitychange", f), t.push(() => document.removeEventListener("visibilitychange", f));
|
|
1500
1501
|
let p = (e) => {
|
|
1501
1502
|
if (e.storageArea !== window.localStorage || e.key !== o || !e.newValue) return;
|
|
1502
|
-
let t = Date.now(), n =
|
|
1503
|
+
let t = Date.now(), n = Tn(e.newValue, t);
|
|
1503
1504
|
if (!(!n || n.id === s)) {
|
|
1504
1505
|
s = n.id;
|
|
1505
1506
|
try {
|
|
@@ -1517,18 +1518,18 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1517
1518
|
}
|
|
1518
1519
|
}
|
|
1519
1520
|
};
|
|
1520
|
-
},
|
|
1521
|
-
if (typeof performance > "u") return
|
|
1521
|
+
}, Mn = "unknown", Nn = (e) => e ? e.replace(/_/g, "-") : Mn, Pn = () => {
|
|
1522
|
+
if (typeof performance > "u") return Mn;
|
|
1522
1523
|
let e = performance.getEntriesByType("navigation")[0];
|
|
1523
|
-
return
|
|
1524
|
-
},
|
|
1524
|
+
return Nn(e == null ? void 0 : e.type);
|
|
1525
|
+
}, Fn = (e, t) => {
|
|
1525
1526
|
var n;
|
|
1526
1527
|
return {
|
|
1527
1528
|
"rum.navigation.type": (n = e.navigationType) == null ? t : n,
|
|
1528
1529
|
[x.vitalMetric]: e.name.toLowerCase(),
|
|
1529
1530
|
[x.vitalRating]: e.rating
|
|
1530
1531
|
};
|
|
1531
|
-
},
|
|
1532
|
+
}, In = (e, t) => {
|
|
1532
1533
|
var n;
|
|
1533
1534
|
let r = (n = e.attribution) == null ? {} : n, i = {}, a = (e) => r[e], o = (e, t, n) => {
|
|
1534
1535
|
t != null && (typeof t == "string" || typeof t == "number" || typeof t == "boolean") && (i[e] = typeof t == "string" && n ? n(t) : t);
|
|
@@ -1552,7 +1553,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1552
1553
|
default: break;
|
|
1553
1554
|
}
|
|
1554
1555
|
return i;
|
|
1555
|
-
},
|
|
1556
|
+
}, Ln = () => {
|
|
1556
1557
|
let e = !1;
|
|
1557
1558
|
return {
|
|
1558
1559
|
name: "web-vitals",
|
|
@@ -1570,7 +1571,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1570
1571
|
return;
|
|
1571
1572
|
}
|
|
1572
1573
|
if (e) return;
|
|
1573
|
-
let { onCLS: i, onFCP: a, onINP: o, onLCP: s, onTTFB: c } = n, l =
|
|
1574
|
+
let { onCLS: i, onFCP: a, onINP: o, onLCP: s, onTTFB: c } = n, l = Pn(), u = t.meter.createHistogram("browser.web_vital.cls", {
|
|
1574
1575
|
unit: "1",
|
|
1575
1576
|
description: "Cumulative Layout Shift"
|
|
1576
1577
|
}), d = t.meter.createHistogram("browser.web_vital.duration", {
|
|
@@ -1578,11 +1579,11 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1578
1579
|
description: "Web Vitals duration metrics, including FCP, INP, LCP and TTFB"
|
|
1579
1580
|
}), f = (e) => {
|
|
1580
1581
|
let n = e.name.toLowerCase();
|
|
1581
|
-
t.startSpan("browser.web_vital", E(E(E(E(E({}, t.config.hooks.getPageAttributes()), t.config.hooks.getMetricAttributes()),
|
|
1582
|
+
t.startSpan("browser.web_vital", E(E(E(E(E({}, t.config.hooks.getPageAttributes()), t.config.hooks.getMetricAttributes()), Fn(e, l)), F({
|
|
1582
1583
|
duration: e.name === "CLS" ? void 0 : e.value,
|
|
1583
1584
|
errorType: e.rating === "good" ? "none" : "slow",
|
|
1584
1585
|
eventLabel: "Web 指标",
|
|
1585
|
-
result:
|
|
1586
|
+
result: Le(e.rating),
|
|
1586
1587
|
spanSubtype: n,
|
|
1587
1588
|
spanType: P.vital,
|
|
1588
1589
|
targetLabel: n,
|
|
@@ -1592,12 +1593,12 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1592
1593
|
[x.vitalValue]: e.value,
|
|
1593
1594
|
[x.vitalRating]: e.rating,
|
|
1594
1595
|
"vital.id": e.id
|
|
1595
|
-
},
|
|
1596
|
+
}, In(e, t.config.hooks.redactUrl))).end();
|
|
1596
1597
|
}, p = (n) => {
|
|
1597
|
-
e || !Number.isFinite(n.value) || (d.record(n.value, t.applyRedact(E(E(E(E({}, t.config.hooks.getPageAttributes()), t.config.hooks.getMetricAttributes()), I(t.getRuntimeAttributes())),
|
|
1598
|
+
e || !Number.isFinite(n.value) || (d.record(n.value, t.applyRedact(E(E(E(E({}, t.config.hooks.getPageAttributes()), t.config.hooks.getMetricAttributes()), I(t.getRuntimeAttributes())), Fn(n, l)))), f(n));
|
|
1598
1599
|
};
|
|
1599
1600
|
i((n) => {
|
|
1600
|
-
e || !Number.isFinite(n.value) || (u.record(n.value, t.applyRedact(E(E(E(E({}, t.config.hooks.getPageAttributes()), t.config.hooks.getMetricAttributes()), I(t.getRuntimeAttributes())),
|
|
1601
|
+
e || !Number.isFinite(n.value) || (u.record(n.value, t.applyRedact(E(E(E(E({}, t.config.hooks.getPageAttributes()), t.config.hooks.getMetricAttributes()), I(t.getRuntimeAttributes())), Fn(n, l)))), f(n));
|
|
1601
1602
|
}), a(p), o(p), s(p), c(p);
|
|
1602
1603
|
})();
|
|
1603
1604
|
},
|
|
@@ -1605,7 +1606,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1605
1606
|
e = !0;
|
|
1606
1607
|
}
|
|
1607
1608
|
};
|
|
1608
|
-
},
|
|
1609
|
+
}, Rn = 64 * 1024, zn = 6e4, Bn = 5, Vn = (e) => e == null ? 0 : typeof e == "string" ? e.length > Rn || typeof TextEncoder > "u" ? e.length : new TextEncoder().encode(e).byteLength : e instanceof ArrayBuffer || ArrayBuffer.isView(e) ? e.byteLength : typeof Blob < "u" && e instanceof Blob ? e.size : 0, Hn = (e, t) => {
|
|
1609
1610
|
let n = {
|
|
1610
1611
|
"network.protocol.name": "websocket",
|
|
1611
1612
|
"url.full": t(e)
|
|
@@ -1618,9 +1619,9 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1618
1619
|
metricAttributes: r,
|
|
1619
1620
|
spanAttributes: n
|
|
1620
1621
|
};
|
|
1621
|
-
},
|
|
1622
|
+
}, Un = (e, n) => {
|
|
1622
1623
|
var r;
|
|
1623
|
-
let { bytesCounter: i, connectDurationHistogram: a, context: s, errorCounter: c, errorThrottle: l, isDisposed: u, messageCounter: d, url: f } = n, { metricAttributes: p, spanAttributes: m } =
|
|
1624
|
+
let { bytesCounter: i, connectDurationHistogram: a, context: s, errorCounter: c, errorThrottle: l, isDisposed: u, messageCounter: d, url: f } = n, { metricAttributes: p, spanAttributes: m } = Hn(f, s.config.hooks.redactUrl), h = s.applyRedact(E(E({}, s.config.hooks.getMetricAttributes()), p)), g = (r = m["server.address"]) == null ? m["url.full"] : r, _ = s.startSpan("websocket.connect", E(E(E({}, m), F({
|
|
1624
1625
|
errorType: "none",
|
|
1625
1626
|
eventLabel: "WebSocket",
|
|
1626
1627
|
spanSubtype: "websocket",
|
|
@@ -1649,7 +1650,7 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1649
1650
|
}), e.addEventListener("message", (e) => {
|
|
1650
1651
|
if (u()) return;
|
|
1651
1652
|
let t = E(E({}, h), {}, { "websocket.direction": "in" });
|
|
1652
|
-
d.add(1, t), i.add(
|
|
1653
|
+
d.add(1, t), i.add(Vn(e.data), t);
|
|
1653
1654
|
}), e.addEventListener("error", () => {
|
|
1654
1655
|
if (u()) return;
|
|
1655
1656
|
let e = y ? "runtime" : "connect";
|
|
@@ -1695,11 +1696,11 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1695
1696
|
e.send = (e) => {
|
|
1696
1697
|
if (!u()) {
|
|
1697
1698
|
let t = E(E({}, h), {}, { "websocket.direction": "out" });
|
|
1698
|
-
d.add(1, t), i.add(
|
|
1699
|
+
d.add(1, t), i.add(Vn(e), t);
|
|
1699
1700
|
}
|
|
1700
1701
|
return ee(e);
|
|
1701
1702
|
};
|
|
1702
|
-
},
|
|
1703
|
+
}, Wn = () => {
|
|
1703
1704
|
let e, t, n = !1;
|
|
1704
1705
|
return {
|
|
1705
1706
|
name: "websocket",
|
|
@@ -1713,12 +1714,12 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1713
1714
|
}), s = r.meter.createCounter("browser.websocket.error.count", { description: "Total number of WebSocket error events" }), c = r.meter.createHistogram("browser.websocket.connect.duration", {
|
|
1714
1715
|
unit: "ms",
|
|
1715
1716
|
description: "WebSocket connection establishment duration (only successful connects)"
|
|
1716
|
-
}), l =
|
|
1717
|
+
}), l = mt(zn, Bn), u = () => n;
|
|
1717
1718
|
t = new Proxy(i, { construct(e, t, i) {
|
|
1718
1719
|
let d = Reflect.construct(e, t, i);
|
|
1719
1720
|
if (n) return d;
|
|
1720
1721
|
let f = t[0] == null ? "" : String(t[0]);
|
|
1721
|
-
return !f || M(r.config, f) ||
|
|
1722
|
+
return !f || M(r.config, f) || Un(d, {
|
|
1722
1723
|
bytesCounter: o,
|
|
1723
1724
|
connectDurationHistogram: c,
|
|
1724
1725
|
context: r,
|
|
@@ -1734,45 +1735,45 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1734
1735
|
n = !0, typeof window < "u" && e && window.WebSocket === t && (window.WebSocket = e), t = void 0, e = void 0;
|
|
1735
1736
|
}
|
|
1736
1737
|
};
|
|
1737
|
-
}, Z = "BK_RUM_SAMPLING",
|
|
1738
|
+
}, Z = "BK_RUM_SAMPLING", Gn = /* @__PURE__ */ new Map(), Kn = (e) => Gn.get(e), qn = (e, t) => (Gn.set(e, t), t), Jn = ({ sampling: e }) => {
|
|
1738
1739
|
if (e.rate <= 0) return !1;
|
|
1739
1740
|
if (e.rate >= 1) return !0;
|
|
1740
1741
|
try {
|
|
1741
1742
|
let t = sessionStorage.getItem(Z);
|
|
1742
1743
|
if (t) return t === "1";
|
|
1743
1744
|
let n = Math.random() < e.rate;
|
|
1744
|
-
return sessionStorage.setItem(Z, n ? "1" : "0"),
|
|
1745
|
+
return sessionStorage.setItem(Z, n ? "1" : "0"), qn(Z, n), n;
|
|
1745
1746
|
} catch (t) {
|
|
1746
|
-
let n =
|
|
1747
|
-
return typeof n == "boolean" ? n :
|
|
1747
|
+
let n = Kn(Z);
|
|
1748
|
+
return typeof n == "boolean" ? n : qn(Z, Math.random() < e.rate);
|
|
1748
1749
|
}
|
|
1749
|
-
},
|
|
1750
|
+
}, Yn = (e) => ({
|
|
1750
1751
|
url: e.endpoint,
|
|
1751
1752
|
headers: e.headers,
|
|
1752
1753
|
concurrencyLimit: e.concurrencyLimit,
|
|
1753
1754
|
timeoutMillis: e.timeoutMillis
|
|
1754
|
-
}),
|
|
1755
|
+
}), Xn = "bk-rum", Q = (e, t, n) => n ? new Proxy(e, { get(e, n, r) {
|
|
1755
1756
|
if (n === "export") return (n, r) => {
|
|
1756
1757
|
var i;
|
|
1757
1758
|
return (i = globalThis.console) == null || i.log(`[bk-ot][${t}]`, n), e.export(n, r);
|
|
1758
1759
|
};
|
|
1759
1760
|
let i = Reflect.get(e, n, r);
|
|
1760
1761
|
return typeof i == "function" ? i.bind(e) : i;
|
|
1761
|
-
} }) : e,
|
|
1762
|
-
...$(e.device, !0,
|
|
1763
|
-
...$(e.session, !0,
|
|
1764
|
-
...$(e.pageView, !0,
|
|
1765
|
-
...$(e.httpBody, !1,
|
|
1766
|
-
...$(e.error, !0,
|
|
1767
|
-
...$(e.webVitals, !0,
|
|
1768
|
-
...$(e.resource, !0,
|
|
1769
|
-
...$(e.blankScreen, !0,
|
|
1770
|
-
...$(e.action, !1,
|
|
1771
|
-
...$(e.websocket, !1,
|
|
1772
|
-
...$(e.longTask, !1,
|
|
1773
|
-
...$(e.cspViolation, !1,
|
|
1774
|
-
...$(e.routeTiming, !1,
|
|
1775
|
-
],
|
|
1762
|
+
} }) : e, Zn = (e) => [ft(e.instrumentations)], Qn = (e, t) => e === void 0 ? t : e !== !1, $n = (e) => typeof e == "object" && e ? e : void 0, $ = (e, t, n) => Qn(e, t) ? [n($n(e))] : [], er = (e) => [
|
|
1763
|
+
...$(e.device, !0, jt),
|
|
1764
|
+
...$(e.session, !0, jn),
|
|
1765
|
+
...$(e.pageView, !0, mn),
|
|
1766
|
+
...$(e.httpBody, !1, rn),
|
|
1767
|
+
...$(e.error, !0, Vt),
|
|
1768
|
+
...$(e.webVitals, !0, Ln),
|
|
1769
|
+
...$(e.resource, !0, gn),
|
|
1770
|
+
...$(e.blankScreen, !0, it),
|
|
1771
|
+
...$(e.action, !1, We),
|
|
1772
|
+
...$(e.websocket, !1, Wn),
|
|
1773
|
+
...$(e.longTask, !1, sn),
|
|
1774
|
+
...$(e.cspViolation, !1, yt),
|
|
1775
|
+
...$(e.routeTiming, !1, _n)
|
|
1776
|
+
], tr = class {
|
|
1776
1777
|
assertBeforeStart(e) {
|
|
1777
1778
|
if (this.phase !== "idle") throw Error(`[bk-ot] ${e}() must be called before start(); set autoStart: false before registration.`);
|
|
1778
1779
|
}
|
|
@@ -1872,11 +1873,11 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1872
1873
|
kind: e.INTERNAL,
|
|
1873
1874
|
startTime: r == null ? void 0 : r.startTime,
|
|
1874
1875
|
attributes: this.applyRedact(E(E({}, this.getRuntimeAttributes()), n))
|
|
1875
|
-
})), w(this, "tracer", void 0), w(this, "use", (e) => (this.assertBeforeStart("use"), this.sampled && this.plugins.push(e), this)), w(this, "useInstrumentation", (e) => (this.assertBeforeStart("useInstrumentation"), this.config.enabled && this.registeredInstrumentations.push(e), this)), this.config =
|
|
1876
|
-
let T = m(this.config.resourceAttributes), D = Q(new f(
|
|
1876
|
+
})), w(this, "tracer", void 0), w(this, "use", (e) => (this.assertBeforeStart("use"), this.sampled && this.plugins.push(e), this)), w(this, "useInstrumentation", (e) => (this.assertBeforeStart("useInstrumentation"), this.config.enabled && this.registeredInstrumentations.push(e), this)), this.config = _e(o), this.sampled = this.config.enabled && Jn(this.config);
|
|
1877
|
+
let T = m(this.config.resourceAttributes), D = Q(new f(Yn(this.config.transport.traces)), "traces", this.config.debug), ie = Q(new d(Yn(this.config.transport.metrics)), "metrics", this.config.debug), ae = Q(new u(Yn(this.config.transport.logs)), "logs", this.config.debug), O = new je(this.config.spanProcessor === "simple" ? new ee(D) : new y(D, this.config.spanBatch), this.config), oe = new v({
|
|
1877
1878
|
exporter: ie,
|
|
1878
1879
|
exportIntervalMillis: this.config.metricIntervalMillis
|
|
1879
|
-
}),
|
|
1880
|
+
}), se = new h(ae);
|
|
1880
1881
|
this.tracerProvider = new ne({
|
|
1881
1882
|
resource: T,
|
|
1882
1883
|
sampler: new b({ root: new te(+!!this.sampled) }),
|
|
@@ -1886,12 +1887,12 @@ var Ke = (e) => typeof e == "string" && e.length > 0 ? e : void 0, qe = (e) => {
|
|
|
1886
1887
|
readers: [oe]
|
|
1887
1888
|
}), this.loggerProvider = new g({
|
|
1888
1889
|
resource: T,
|
|
1889
|
-
processors: [
|
|
1890
|
-
}), this.tracer = this.tracerProvider.getTracer(
|
|
1890
|
+
processors: [se]
|
|
1891
|
+
}), this.tracer = this.tracerProvider.getTracer(Xn), this.meter = this.meterProvider.getMeter(Xn), this.logger = this.loggerProvider.getLogger(Xn), this.runtimeContext = new Me({ "rum.sampled": this.sampled }, this.config.user), this.registeredInstrumentations = this.config.enabled ? [...(re = this.config.instrumentations.custom) == null ? [] : re] : [], this.plugins = [...this.config.enabled ? Zn(this.config) : [], ...this.sampled ? [...er(this.config.plugins), ...(C = this.config.plugins.custom) == null ? [] : C] : []], this.pluginManager = new xe(this.plugins), this.config.autoStart && this.start().catch((e) => {
|
|
1891
1892
|
var t;
|
|
1892
1893
|
(t = globalThis.console) == null || t.warn("[bk-ot] auto start failed:", e);
|
|
1893
1894
|
});
|
|
1894
1895
|
}
|
|
1895
1896
|
};
|
|
1896
1897
|
//#endregion
|
|
1897
|
-
export {
|
|
1898
|
+
export { tr as BkOpenTelemetry, je as FilteringSpanProcessor, x as RUM_ATTRIBUTES, N as RUM_SPAN_RESULT, P as RUM_SPAN_TYPE, Me as RumRuntimeContext, F as buildRumSpanAttributes, We as createActionPlugin, it as createBlankScreenPlugin, ft as createCommonInstrumentationsPlugin, yt as createCspViolationPlugin, jt as createDevicePlugin, Vt as createErrorPlugin, rn as createHttpBodyPlugin, sn as createLongTaskPlugin, mn as createPageViewPlugin, be as createPlugin, gn as createResourcePlugin, _n as createRouteTimingPlugin, jn as createSessionPlugin, Wn as createWebSocketPlugin, Ln as createWebVitalsPlugin, Ne as getDurationBucket, _e as resolveConfig };
|