decord/source/6367_errorCallback.js

39 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 6367
// Function ID: 6368
2026-07-29 08:29:29 +00:00
// Name: errorCallback
2026-07-31 08:44:05 +00:00
// Dependencies: [6368, 6375, 6376, 6399, 6371, 6388]
2026-07-29 08:29:29 +00:00
2026-07-31 08:44:05 +00:00
// Module 6367 (errorCallback)
2026-07-29 08:29:29 +00:00
const require = arg1;
const dependencyMap = arg6;
function errorCallback() {
2026-07-31 08:44:05 +00:00
let obj = require(6376) /* spanTimeInputToSeconds */;
2026-07-29 08:29:29 +00:00
const activeSpan = obj.getActiveSpan();
let rootSpan = activeSpan;
if (activeSpan) {
2026-07-31 08:44:05 +00:00
rootSpan = tmp(6376).getRootSpan(activeSpan);
const tmpResult = tmp(6376);
2026-07-29 08:29:29 +00:00
}
if (rootSpan) {
2026-07-31 08:44:05 +00:00
if (tmp(6399).DEBUG_BUILD) {
const logger = tmp(6371).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-07-31 08:44:05 +00:00
obj[0] = tmp(6388).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-07-31 08:44:05 +00:00
const result = require(6368) /* instrumentError */.addGlobalErrorInstrumentationHandler(errorCallback);
const obj = require(6368) /* instrumentError */;
const result1 = require(6375) /* instrumentUnhandledRejection */.addGlobalUnhandledRejectionInstrumentationHandler(errorCallback);
const obj2 = require(6375) /* instrumentUnhandledRejection */;
2026-07-29 08:29:29 +00:00
}
};