decord/source/6307_errorCallback.js

38 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6307
// Function ID: 56724
2026-07-23 10:11:24 +00:00
// Name: errorCallback
2026-07-25 08:10:48 +00:00
// Dependencies: [6308, 6315, 6316, 6339, 6311, 6328]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 6307 (errorCallback)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
function errorCallback() {
2026-07-25 08:10:48 +00:00
let obj = require(6316) /* spanTimeInputToSeconds */;
2026-07-23 10:11:24 +00:00
const activeSpan = obj.getActiveSpan();
let rootSpan = activeSpan;
if (activeSpan) {
2026-07-25 08:10:48 +00:00
rootSpan = require(6316) /* spanTimeInputToSeconds */.getRootSpan(activeSpan);
const obj3 = require(6316) /* spanTimeInputToSeconds */;
2026-07-23 10:11:24 +00:00
}
if (rootSpan) {
2026-07-25 08:10:48 +00:00
if (require(6339).DEBUG_BUILD) {
const logger = require(6311) /* consoleSandbox */.logger;
2026-07-23 10:11:24 +00:00
const _HermesInternal = HermesInternal;
logger.log("[Tracing] Root span: " + "internal_error" + " -> Global error occurred");
}
2026-07-25 08:10:48 +00:00
obj = { code: require(6328) /* getSpanStatusFromHttpCode */.SPAN_STATUS_ERROR, message: "internal_error" };
2026-07-23 10:11:24 +00:00
rootSpan.setStatus(obj);
}
}
let c2 = false;
errorCallback.tag = "sentry_tracingErrorCallback";
arg5.registerSpanErrorInstrumentation = function registerSpanErrorInstrumentation() {
if (!c2) {
c2 = true;
2026-07-25 08:10:48 +00:00
const result = require(6308) /* instrumentError */.addGlobalErrorInstrumentationHandler(errorCallback);
const obj = require(6308) /* instrumentError */;
const result1 = require(6315) /* instrumentUnhandledRejection */.addGlobalUnhandledRejectionInstrumentationHandler(errorCallback);
const obj2 = require(6315) /* instrumentUnhandledRejection */;
2026-07-23 10:11:24 +00:00
}
};