decord/source/7772_errorCallback.js

43 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7772
// Function ID: 7773
// Name: errorCallback
// Dependencies: [7773, 7780, 7781, 7804, 7776, 7793]
// Module 7772 (errorCallback)
import instrumentError from "instrumentError" /* 7773 */;
import instrumentUnhandledRejection from "instrumentUnhandledRejection" /* 7780 */;
import spanTimeInputToSeconds from "spanTimeInputToSeconds" /* 7781 */;
require = arg1;
const dependencyMap = arg6;
function errorCallback() {
let obj = spanTimeInputToSeconds;
const activeSpan = obj.getActiveSpan();
let rootSpan = activeSpan;
if (activeSpan) {
rootSpan = tmp(7781).getRootSpan(activeSpan);
const tmpResult = tmp(7781);
}
if (rootSpan) {
if (tmp(7804).DEBUG_BUILD) {
const logger = tmp(7776).logger;
const _HermesInternal = HermesInternal;
logger.log("[Tracing] Root span: " + "internal_error" + " -> Global error occurred");
}
obj = { code: null, message: "internal_error" };
obj[0] = tmp(7793).SPAN_STATUS_ERROR;
rootSpan.setStatus(obj);
}
}
let c2 = false;
errorCallback.tag = "sentry_tracingErrorCallback";
arg5.registerSpanErrorInstrumentation = function registerSpanErrorInstrumentation() {
if (!c2) {
c2 = true;
const result = instrumentError.addGlobalErrorInstrumentationHandler(errorCallback);
const obj = instrumentError;
const result1 = instrumentUnhandledRejection.addGlobalUnhandledRejectionInstrumentationHandler(errorCallback);
const obj2 = instrumentUnhandledRejection;
}
};