decord/source/7495_errorCallback.js

39 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 7495
// Function ID: 7496
2026-07-29 08:29:29 +00:00
// Name: errorCallback
2026-08-13 07:00:46 +00:00
// Dependencies: [7496, 7503, 7504, 7527, 7499, 7516]
2026-07-29 08:29:29 +00:00
2026-08-13 07:00:46 +00:00
// Module 7495 (errorCallback)
2026-07-29 08:29:29 +00:00
const require = arg1;
const dependencyMap = arg6;
function errorCallback() {
2026-08-13 07:00:46 +00:00
let obj = require(7504) /* spanTimeInputToSeconds */;
2026-07-29 08:29:29 +00:00
const activeSpan = obj.getActiveSpan();
let rootSpan = activeSpan;
if (activeSpan) {
2026-08-13 07:00:46 +00:00
rootSpan = tmp(7504).getRootSpan(activeSpan);
const tmpResult = tmp(7504);
2026-07-29 08:29:29 +00:00
}
if (rootSpan) {
2026-08-13 07:00:46 +00:00
if (tmp(7527).DEBUG_BUILD) {
const logger = tmp(7499).logger;
2026-07-29 08:29:29 +00:00
const _HermesInternal = HermesInternal;
logger.log("[Tracing] Root span: " + "internal_error" + " -> Global error occurred");
}
obj = { code: null, message: "internal_error" };
2026-08-13 07:00:46 +00:00
obj[0] = tmp(7516).SPAN_STATUS_ERROR;
2026-07-29 08:29:29 +00:00
rootSpan.setStatus(obj);
}
}
let c2 = false;
errorCallback.tag = "sentry_tracingErrorCallback";
arg5.registerSpanErrorInstrumentation = function registerSpanErrorInstrumentation() {
if (!c2) {
c2 = true;
2026-08-13 07:00:46 +00:00
const result = require(7496) /* instrumentError */.addGlobalErrorInstrumentationHandler(errorCallback);
const obj = require(7496) /* instrumentError */;
const result1 = require(7503) /* instrumentUnhandledRejection */.addGlobalUnhandledRejectionInstrumentationHandler(errorCallback);
const obj2 = require(7503) /* instrumentUnhandledRejection */;
2026-07-29 08:29:29 +00:00
}
};