// Module ID: 683 // Function ID: 684 // Dependencies: [684, 688, 689, 705, 714, 716] // Exports: registerSpanErrorInstrumentation // Module 683 import spanToJSON from "spanToJSON" /* 684 */; import instrumentError from "instrumentError" /* 714 */; import instrumentUnhandledRejection from "instrumentUnhandledRejection" /* 716 */; require = arg1; const dependencyMap = arg6; Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" }); let c2 = false; export const registerSpanErrorInstrumentation = function registerSpanErrorInstrumentation() { if (!c2) { function errorCallback() { const activeSpan = spanToJSON.getActiveSpan(); let rootSpan = activeSpan; if (activeSpan) { rootSpan = tmp(tmp2[0]).getRootSpan(activeSpan); const tmpResult = tmp(tmp2[0]); } if (rootSpan) { if (tmp(tmp2[1]).DEBUG_BUILD) { const debug = tmp(tmp2[2]).debug; const _HermesInternal = HermesInternal; debug.log("[Tracing] Root span: " + "internal_error" + " -> Global error occurred"); } const obj2 = { code: tmp(tmp2[3]).SPAN_STATUS_ERROR, message: "internal_error" }; rootSpan.setStatus(obj2); } } errorCallback.tag = "sentry_tracingErrorCallback"; c2 = true; const result = instrumentError.addGlobalErrorInstrumentationHandler(errorCallback); const result1 = instrumentUnhandledRejection.addGlobalUnhandledRejectionInstrumentationHandler(errorCallback); } };