decord/source/1057_browserSessionIntegration.js

37 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1057
2026-07-25 08:10:48 +00:00
// Function ID: 11320
2026-07-20 16:05:17 +00:00
// Name: browserSessionIntegration
2026-07-23 10:11:24 +00:00
// Dependencies: [794, 1004, 1048, 1009]
2026-07-20 16:05:17 +00:00
// Module 1057 (browserSessionIntegration)
2026-07-23 10:11:24 +00:00
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation";
2026-07-20 16:05:17 +00:00
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2026-07-23 10:11:24 +00:00
export const browserSessionIntegration = registerSpanErrorInstrumentation.defineIntegration(() => ({
2026-07-20 16:05:17 +00:00
name: "BrowserSession",
setupOnce() {
2026-07-23 10:11:24 +00:00
if (undefined !== outer1_0(outer1_1[1]).WINDOW.document) {
let obj = outer1_0(outer1_1[0]);
2026-07-20 16:05:17 +00:00
obj = { ignoreDuration: true };
obj.startSession(obj);
2026-07-23 10:11:24 +00:00
outer1_0(outer1_1[0]).captureSession();
let obj3 = outer1_0(outer1_1[0]);
const result = outer1_0(outer1_1[3]).addHistoryInstrumentationHandler((arg0) => {
2026-07-20 16:05:17 +00:00
const from = arg0.from;
if (tmp) {
2026-07-23 10:11:24 +00:00
let obj = outer2_0(outer2_1[0]);
2026-07-20 16:05:17 +00:00
obj = { ignoreDuration: true };
obj.startSession(obj);
2026-07-23 10:11:24 +00:00
outer2_0(outer2_1[0]).captureSession();
const obj3 = outer2_0(outer2_1[0]);
2026-07-20 16:05:17 +00:00
}
});
2026-07-23 10:11:24 +00:00
const obj4 = outer1_0(outer1_1[3]);
} else if (outer1_0(outer1_1[2]).DEBUG_BUILD) {
const debug = outer1_0(outer1_1[0]).debug;
2026-07-20 16:05:17 +00:00
debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
}
}
}));