515 lines
28 KiB
JavaScript
515 lines
28 KiB
JavaScript
/* Metro module 7403; source: unknown; dependencies: [57, 77, 7396, 7402, 7391, 7404, 7374, 7386, 7387, 7388, 7381, 7379, 7397, 7369, 7401, 7405, 7407, 7398, 7408, 7410, 7384] */
|
|
import * as Module00057Module from './module-00057.js'; /* Metro dependency 57 */
|
|
import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */
|
|
import * as Module07374Module from './module-07374.js'; /* Metro dependency 7374 */
|
|
import * as Module07387Module from './module-07387.js'; /* Metro dependency 7387 */
|
|
import * as Module07388Module from './module-07388.js'; /* Metro dependency 7388 */
|
|
import * as Module07391Module from './module-07391.js'; /* Metro dependency 7391 */
|
|
import * as Module07396Module from './module-07396.js'; /* Metro dependency 7396 */
|
|
import * as SentryNonRecordingSpanModule from './module-07402-SentryNonRecordingSpan.js'; /* Metro dependency 7402 */
|
|
import * as HandleCallbackErrorsModule from './module-07404-handleCallbackErrors.js'; /* Metro dependency 7404 */
|
|
import * as SentrySpanModule from './module-07410-SentrySpan.js'; /* Metro dependency 7410 */
|
|
|
|
function _fun59648(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:6, offset: 0x016ee85b, size: 231 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const withActiveSpan_596492 = withActiveSpan_59649;
|
|
const getActiveSpanWrapper_59656 = function(a0) {
|
|
var env0_0 = a0;
|
|
return a0 !== undefined ? _fun59657 : _fun59658;
|
|
};
|
|
let env0_2 = Module00057Module;
|
|
let env0_3 = Module00077Module;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.continueTrace = continueTrace_59659;
|
|
exports.startInactiveSpan = function(a0) {
|
|
var env0_0 = a0;
|
|
var value2 = getAcs_59653();
|
|
if (value2.startInactiveSpan) {
|
|
return value2.startInactiveSpan(a0);
|
|
}
|
|
var env0_1 = parseSentrySpanArguments_59652(a0);
|
|
var env0_2 = a0.forceTransaction;
|
|
var parentSpan = a0.parentSpan;
|
|
var env0_3 = parentSpan;
|
|
return (a0.scope ? _fun59662 : parentSpan !== undefined ? _fun59663 : _fun59664)(_fun59665);
|
|
};
|
|
exports.startNewTrace = startNewTrace_59666;
|
|
exports.startSpan = startSpan_59668;
|
|
exports.startSpanManual = startSpanManual_59674;
|
|
exports.suppressTracing = suppressTracing_59680;
|
|
exports.withActiveSpan = withActiveSpan_596492;
|
|
function withActiveSpan_59649(a0, a1) { // fn#59649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:139, offset: 0x016ee942, size: 90 bytes, params: 3, frame: 17
|
|
var r0;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
var value;
|
|
const acs_59653 = getAcs_59653();
|
|
if (acs_59653.withActiveSpan) {
|
|
r0 = acs_59653.withActiveSpan(a0, a1);
|
|
} else {
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.withScope(_fun59650);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun59650(a0) { // fn#59650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:248, offset: 0x00d660ec, size: 63 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__;
|
|
value = undefined;
|
|
Module07391Module._setSpanForScope(a0, env0_0 || value);
|
|
return require(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function createChildOrRootSpan_59651({parentSpan, spanArguments, forceTransaction, scope}) { // fn#59651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:313, offset: 0x016ee99c, size: 862 bytes, params: 2, frame: 27
|
|
var r2;
|
|
var r0;
|
|
const SentryNonRecordingSpan = (SentryNonRecordingSpanModule).SentryNonRecordingSpan;
|
|
var sentryNonRecordingSpan;
|
|
var isolationScope;
|
|
var value3;
|
|
var spanId;
|
|
var traceId;
|
|
var object;
|
|
var SentrySpan;
|
|
var Object;
|
|
var value8;
|
|
var sentrySpan;
|
|
var client;
|
|
var value14;
|
|
var dsc;
|
|
var parentSpanId;
|
|
var sampled;
|
|
var _startRootSpan_59654Binding;
|
|
var value15;
|
|
var dynamicSamplingContextFromSpan;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value;
|
|
if ((require(7401) /* metro dependency 7401 */).hasTracingEnabled()) {
|
|
isolationScope = (require(7396) /* metro dependency 7396 */).getIsolationScope();
|
|
if (parentSpan) {
|
|
if (forceTransaction) {
|
|
if (parentSpan) {
|
|
dynamicSamplingContextFromSpan = (require(7405) /* metro dependency 7405 */).getDynamicSamplingContextFromSpan(parentSpan);
|
|
value17 = parentSpan.spanContext();
|
|
traceId = value17.traceId;
|
|
spanId = value17.spanId;
|
|
value18 = (require(7374) /* metro dependency 7374 */).spanIsSampled(parentSpan);
|
|
_startRootSpan_59654Binding = _startRootSpan_59654;
|
|
Object = global.Object;
|
|
value19 = _startRootSpan_59654Binding(Object.assign({traceId: traceId, parentSpanId: spanId},
|
|
spanArguments),
|
|
scope,
|
|
value18);
|
|
(require(7405) /* metro dependency 7405 */).freezeDscOnSpan(value19,
|
|
dynamicSamplingContextFromSpan);
|
|
r0 = value19;
|
|
} else {
|
|
Object = global.Object;
|
|
value14 = Object.assign({}, isolationScope.getPropagationContext(), scope.getPropagationContext());
|
|
traceId = value14.traceId;
|
|
dsc = value14.dsc;
|
|
parentSpanId = value14.parentSpanId;
|
|
sampled = value14.sampled;
|
|
_startRootSpan_59654Binding = _startRootSpan_59654;
|
|
Object = global.Object;
|
|
value15 = _startRootSpan_59654Binding(Object.assign({traceId: traceId, parentSpanId: parentSpanId},
|
|
spanArguments),
|
|
scope, sampled);
|
|
if (dsc) {
|
|
(require(7405) /* metro dependency 7405 */).freezeDscOnSpan(value15, dsc);
|
|
r0 = value15;
|
|
} else {
|
|
r0 = value15;
|
|
}
|
|
}
|
|
} else {
|
|
value3 = parentSpan.spanContext();
|
|
spanId = value3.spanId;
|
|
traceId = value3.traceId;
|
|
r2 = !scope.getScopeData().sdkProcessingMetadata[env0_4] && (require(7374) /* metro dependency 7374 */).spanIsSampled(parentSpan);
|
|
if (r2) {
|
|
SentrySpan = (require(7410) /* metro dependency 7410 */).SentrySpan;
|
|
Object = global.Object;
|
|
value8 = Object.assign({}, spanArguments, {parentSpanId: spanId, traceId: traceId, sampled: r2});
|
|
sentrySpan = new SentrySpan();
|
|
} else {
|
|
object = {traceId: traceId};
|
|
sentryNonRecordingSpan = new SentryNonRecordingSpan();
|
|
}
|
|
(require(7374) /* metro dependency 7374 */).addChildSpanToSpan(parentSpan, r0);
|
|
client = (require(7396) /* metro dependency 7396 */).getClient();
|
|
if (client) {
|
|
client.emit('spanStart', r0);
|
|
if (spanArguments.endTimestamp) {
|
|
client.emit('spanEnd', r0);
|
|
}
|
|
}
|
|
(require(7374) /* metro dependency 7374 */).addChildSpanToSpan(parentSpan, r0);
|
|
}
|
|
} else if (parentSpan) {
|
|
dynamicSamplingContextFromSpan = (require(7405) /* metro dependency 7405 */).getDynamicSamplingContextFromSpan(parentSpan);
|
|
value17 = parentSpan.spanContext();
|
|
traceId = value17.traceId;
|
|
spanId = value17.spanId;
|
|
value18 = (require(7374) /* metro dependency 7374 */).spanIsSampled(parentSpan);
|
|
_startRootSpan_59654Binding = _startRootSpan_59654;
|
|
Object = global.Object;
|
|
value19 = _startRootSpan_59654Binding(Object.assign({traceId: traceId, parentSpanId: spanId},
|
|
spanArguments),
|
|
scope,
|
|
value18);
|
|
(require(7405) /* metro dependency 7405 */).freezeDscOnSpan(value19, dynamicSamplingContextFromSpan);
|
|
r0 = value19;
|
|
} else {
|
|
Object = global.Object;
|
|
value14 = Object.assign({}, isolationScope.getPropagationContext(), scope.getPropagationContext());
|
|
traceId = value14.traceId;
|
|
dsc = value14.dsc;
|
|
parentSpanId = value14.parentSpanId;
|
|
sampled = value14.sampled;
|
|
_startRootSpan_59654Binding = _startRootSpan_59654;
|
|
Object = global.Object;
|
|
value15 = _startRootSpan_59654Binding(Object.assign({traceId: traceId, parentSpanId: parentSpanId},
|
|
spanArguments),
|
|
scope, sampled);
|
|
if (dsc) {
|
|
(require(7405) /* metro dependency 7405 */).freezeDscOnSpan(value15, dsc);
|
|
r0 = value15;
|
|
} else {
|
|
r0 = value15;
|
|
}
|
|
}
|
|
value = require(7407) /* metro dependency 7407 */;
|
|
value.logSpanStart(r0);
|
|
value = require(7398) /* metro dependency 7398 */;
|
|
value.setCapturedScopesOnSpan(r0, scope, isolationScope);
|
|
return r0;
|
|
}
|
|
value = Object.create(SentryNonRecordingSpan.prototype, {constructor: {value: SentryNonRecordingSpan}});
|
|
sentryNonRecordingSpan = new SentryNonRecordingSpan();
|
|
return sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value;
|
|
}
|
|
|
|
function parseSentrySpanArguments_59652(a0) { // fn#59652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:1522, offset: 0x00d665ef, size: 131 bytes, params: 2, frame: 15
|
|
var moduleValue;
|
|
const r5 = a0.experimental || ({});
|
|
const Object = global.Object;
|
|
let value = Object.assign({isStandalone: r5.standalone}, a0);
|
|
if (a0.startTime) {
|
|
value = global.Object.assign({}, value);
|
|
moduleValue = require(7374) /* metro dependency 7374 */;
|
|
value.startTimestamp = moduleValue.spanTimeInputToSeconds(a0.startTime);
|
|
delete value.startTime;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function getAcs_59653() { // fn#59653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:1771, offset: 0x00d66672, size: 60 bytes, params: 1, frame: 13
|
|
let value = Module07387Module;
|
|
value = value.getMainCarrier();
|
|
return (Module07388Module).getAsyncContextStrategy(value);
|
|
}
|
|
|
|
function _startRootSpan_59654(a0, a1, a2) { // fn#59654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:1862, offset: 0x016eecfa, size: 418 bytes, params: 4, frame: 27
|
|
const client = (Module07396Module).getClient();
|
|
let r7 = client && client.getOptions();
|
|
r7 = !r7 ? {} : r7;
|
|
const name = a0.name;
|
|
const r11 = name === undefined ? '' : name;
|
|
const attributes = a0.attributes;
|
|
const getScopeData = a1.getScopeData;
|
|
const value6 = env0_2(Reflect.apply(getScopeData, a1,
|
|
[]).sdkProcessingMetadata[env0_4] ? [false] : (require(7408) /* metro dependency 7408 */).sampleSpan(r7,
|
|
{name: r11, parentSampled: a2, attributes: attributes, transactionContext: {name: r11, parentSampled: a2}}), 2);
|
|
const property = value6[0];
|
|
const property2 = value6[1];
|
|
const SentrySpan = (SentrySpanModule).SentrySpan;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object = {};
|
|
const Object2 = global.Object;
|
|
const assign2 = Object2.assign;
|
|
const binding = env0_3;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = (require(7384) /* metro dependency 7384 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
object.attributes = Reflect.apply(assign2, Object2, [binding({}, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'custom'),
|
|
a0.attributes]);
|
|
object.sampled = property;
|
|
const sentrySpan = new SentrySpan(Reflect.apply(assign, Object, [{}, a0, object]));
|
|
if (property2 !== undefined) {
|
|
sentrySpan.setAttribute((require(7384) /* metro dependency 7384 */).SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
|
|
property2);
|
|
}
|
|
if (client) {
|
|
client.emit('spanStart', sentrySpan);
|
|
}
|
|
return sentrySpan;
|
|
}
|
|
|
|
function getParentSpan_59655(a0) { // fn#59655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:2429, offset: 0x016eee9c, size: 136 bytes, params: 2, frame: 14
|
|
var r0;
|
|
var client;
|
|
var value;
|
|
const value2 = (Module07391Module)._getSpanForScope(a0);
|
|
if (value2) {
|
|
client = (require(7396) /* metro dependency 7396 */).getClient();
|
|
r0 = client ? client.getOptions() : {};
|
|
if (r0.parentSpanIsAlwaysRootSpan) {
|
|
value = require(7374) /* metro dependency 7374 */;
|
|
value = value.getRootSpan(value2);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
}
|
|
|
|
function getActiveSpanWrapper_59656(a0) { // fn#59656, offset: 0x016eef24, size: 29 bytes, params: 2, frame: 3
|
|
const env0_0 = a0;
|
|
return a0 !== undefined ? _fun59657 : function(a0) {
|
|
return a0();
|
|
};
|
|
function _fun59657(a0) { // fn#59657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:2653, offset: 0x00d0fc8f, size: 27 bytes, params: 2, frame: 13
|
|
return withActiveSpan_59649(env0_0, a0);
|
|
}
|
|
|
|
}
|
|
|
|
function continueTrace_59659(a0, a1) { // fn#59659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:2733, offset: 0x016eef41, size: 151 bytes, params: 3, frame: 18
|
|
const env0_0 = a1;
|
|
const asyncContextStrategy = (Module07388Module).getAsyncContextStrategy((Module07387Module).getMainCarrier());
|
|
if (asyncContextStrategy.continueTrace) {
|
|
return asyncContextStrategy.continueTrace(a0, a1);
|
|
}
|
|
const env0_1 = a0.sentryTrace;
|
|
const env0_2 = a0.baggage;
|
|
return (Module07396Module).withScope(_fun59660);
|
|
function _fun59660(a0) { // fn#59660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:2934, offset: 0x016eefd8, size: 72 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__;
|
|
value = Reflect.apply((require(7381) /* metro dependency 7381 */).propagationContextFromHeaders, value,
|
|
[sentryTrace, baggage]);
|
|
a0.setPropagationContext(value);
|
|
return require();
|
|
}
|
|
|
|
}
|
|
|
|
function startInactiveSpan_59661(a0) { // fn#59661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3058, offset: 0x016ef020, size: 121 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const acs_59653 = getAcs_59653();
|
|
if (acs_59653.startInactiveSpan) {
|
|
return acs_59653.startInactiveSpan(a0);
|
|
}
|
|
const env0_1 = parseSentrySpanArguments_59652(a0);
|
|
const env0_2 = a0.forceTransaction;
|
|
return (a0.scope ? _fun59662 : a0.parentSpan !== undefined ? function(a0) {
|
|
return withActiveSpan_59649(parentSpan, a0);
|
|
} : _fun59664)(_fun59665);
|
|
function _fun59662(a0) { // fn#59662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3241, offset: 0x00d66be3, size: 55 bytes, params: 2, frame: 13
|
|
let value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
return value.withScope(env0_0.scope, a0);
|
|
}
|
|
|
|
function _fun59663(a0) { // fn#59663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3301, offset: 0x00d66c1a, size: 27 bytes, params: 2, frame: 13
|
|
return withActiveSpan_59649(parentSpan, a0);
|
|
}
|
|
|
|
function _fun59665() { // fn#59665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3367, offset: 0x016ef099, size: 152 bytes, params: 1, frame: 16
|
|
const value = environment.__proto__;
|
|
const currentScope = (Module07396Module).getCurrentScope();
|
|
const parentSpan_59655 = getParentSpan_59655(currentScope);
|
|
return env0_0.onlyIfParent ? parentSpan_59655 ? createChildOrRootSpan_59651({parentSpan: parentSpan_59655,
|
|
spanArguments: env0_1, forceTransaction: forceTransaction,
|
|
scope: currentScope}) : new (require(7402) /* metro dependency 7402 */).SentryNonRecordingSpan() : createChildOrRootSpan_59651({parentSpan: parentSpan_59655,
|
|
spanArguments: env0_1, forceTransaction: forceTransaction, scope: currentScope});
|
|
}
|
|
|
|
}
|
|
|
|
function startNewTrace_59666(a0) { // fn#59666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3592, offset: 0x016ef131, size: 52 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
return (Module07396Module).withScope(_fun59667);
|
|
function _fun59667(a0) { // fn#59667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3644, offset: 0x016ef165, size: 175 bytes, params: 2, frame: 18
|
|
var logger;
|
|
const setPropagationContext = a0.setPropagationContext;
|
|
const object = {};
|
|
object.traceId = (require(7379) /* metro dependency 7379 */).generateTraceId();
|
|
Reflect.apply(setPropagationContext, a0, [object]);
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
logger = (require(7369) /* metro dependency 7369 */).logger;
|
|
logger.info('Starting a new trace with id ' + a0.getPropagationContext().traceId);
|
|
}
|
|
return withActiveSpan_59649(null, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function startSpan_59668(a0, a1) { // fn#59668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3876, offset: 0x016ef214, size: 130 bytes, params: 3, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const acs_59653 = getAcs_59653();
|
|
if (acs_59653.startSpan) {
|
|
return acs_59653.startSpan(a0, a1);
|
|
}
|
|
const env0_2 = parseSentrySpanArguments_59652(a0);
|
|
const env0_3 = a0.forceTransaction;
|
|
const env0_4 = a0.parentSpan;
|
|
return Module07396Module.withScope(a0.scope, _fun59669);
|
|
function _fun59669() { // fn#59669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4058, offset: 0x016ef296, size: 35 bytes, params: 1, frame: 11
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
return getActiveSpanWrapper_59656(parentSpan)(_fun59670);
|
|
function _fun59670() { // fn#59670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4101, offset: 0x016ef2b9, size: 230 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var childOrRootSpan_59651;
|
|
var sentryNonRecordingSpan;
|
|
const value = environment.__proto__.__proto__;
|
|
const currentScope = (Module07396Module).getCurrentScope();
|
|
const parentSpan_59655 = getParentSpan_59655(currentScope);
|
|
if (env1_0.onlyIfParent) {
|
|
if (parentSpan_59655) {
|
|
childOrRootSpan_59651 = createChildOrRootSpan_59651({parentSpan: parentSpan_59655, spanArguments: env1_2,
|
|
forceTransaction: forceTransaction, scope: currentScope});
|
|
} else {
|
|
sentryNonRecordingSpan = new (require(7402) /* metro dependency 7402 */).SentryNonRecordingSpan();
|
|
}
|
|
} else {
|
|
childOrRootSpan_59651 = createChildOrRootSpan_59651({parentSpan: parentSpan_59655, spanArguments: env1_2,
|
|
forceTransaction: forceTransaction, scope: currentScope});
|
|
}
|
|
(Module07391Module)._setSpanForScope(currentScope, childOrRootSpan_59651);
|
|
return (HandleCallbackErrorsModule).handleCallbackErrors(_fun59671, _fun59672, _fun59673);
|
|
function _fun59671() { // fn#59671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4368, offset: 0x00d66e77, size: 23 bytes, params: 1, frame: 11
|
|
return require(env0_0);
|
|
}
|
|
|
|
function _fun59672() { // fn#59672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4394, offset: 0x00d66e8e, size: 147 bytes, params: 1, frame: 15
|
|
var setStatus;
|
|
var object;
|
|
const status = Module07374Module.spanToJSON(env0_0).status;
|
|
let binding = env0_0;
|
|
const isRecording2 = binding.isRecording();
|
|
if (!(isRecording2 ? status && status !== 'ok' : !isRecording2)) {
|
|
binding = env0_0;
|
|
setStatus = binding.setStatus;
|
|
object = {};
|
|
object.code = (require(7386) /* metro dependency 7386 */).SPAN_STATUS_ERROR;
|
|
object.message = 'internal_error';
|
|
Reflect.apply(setStatus, binding, [object]);
|
|
}
|
|
}
|
|
|
|
function _fun59673() { // fn#59673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4545, offset: 0x016ef39f, size: 18 bytes, params: 1, frame: 9
|
|
return env0_0.end();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function startSpanManual_59674(a0, a1) { // fn#59674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4599, offset: 0x016ef3b1, size: 130 bytes, params: 3, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const acs_59653 = getAcs_59653();
|
|
if (acs_59653.startSpanManual) {
|
|
return acs_59653.startSpanManual(a0, a1);
|
|
}
|
|
const env0_2 = parseSentrySpanArguments_59652(a0);
|
|
const env0_3 = a0.forceTransaction;
|
|
const env0_4 = a0.parentSpan;
|
|
return Module07396Module.withScope(a0.scope, _fun59675);
|
|
function _fun59675() { // fn#59675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4799, offset: 0x016ef433, size: 35 bytes, params: 1, frame: 11
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
return getActiveSpanWrapper_59656(parentSpan)(_fun59676);
|
|
function _fun59676() { // fn#59676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:4842, offset: 0x016ef456, size: 233 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var childOrRootSpan_59651;
|
|
var sentryNonRecordingSpan;
|
|
const value = environment.__proto__.__proto__;
|
|
const currentScope = (Module07396Module).getCurrentScope();
|
|
const parentSpan_59655 = getParentSpan_59655(currentScope);
|
|
if (env1_0.onlyIfParent) {
|
|
if (parentSpan_59655) {
|
|
childOrRootSpan_59651 = createChildOrRootSpan_59651({parentSpan: parentSpan_59655, spanArguments: env1_2,
|
|
forceTransaction: forceTransaction, scope: currentScope});
|
|
} else {
|
|
sentryNonRecordingSpan = new (require(7402) /* metro dependency 7402 */).SentryNonRecordingSpan();
|
|
}
|
|
} else {
|
|
childOrRootSpan_59651 = createChildOrRootSpan_59651({parentSpan: parentSpan_59655, spanArguments: env1_2,
|
|
forceTransaction: forceTransaction, scope: currentScope});
|
|
}
|
|
(Module07391Module)._setSpanForScope(currentScope, childOrRootSpan_59651);
|
|
return (HandleCallbackErrorsModule).handleCallbackErrors(_fun59678, _fun59679);
|
|
function finishAndSetSpan() { // fn#59677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:5042, offset: 0x00d66f21, size: 20 bytes, params: 1, frame: 9
|
|
env0_0.end();
|
|
}
|
|
|
|
function _fun59678() { // fn#59678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:5145, offset: 0x016ef53f, size: 28 bytes, params: 1, frame: 13
|
|
return require(env0_0, finishAndSetSpan);
|
|
}
|
|
|
|
function _fun59679() { // fn#59679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:5188, offset: 0x00d66e8e, size: 147 bytes, params: 1, frame: 15
|
|
var setStatus;
|
|
var object;
|
|
const status = Module07374Module.spanToJSON(env0_0).status;
|
|
let binding = env0_0;
|
|
const isRecording2 = binding.isRecording();
|
|
if (!(isRecording2 ? status && status !== 'ok' : !isRecording2)) {
|
|
binding = env0_0;
|
|
setStatus = binding.setStatus;
|
|
object = {};
|
|
object.code = (require(7386) /* metro dependency 7386 */).SPAN_STATUS_ERROR;
|
|
object.message = 'internal_error';
|
|
Reflect.apply(setStatus, binding, [object]);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function suppressTracing_59680(a0) { // fn#59680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:5364, offset: 0x016ef55b, size: 82 bytes, params: 2, frame: 15
|
|
var r0;
|
|
const env0_0 = a0;
|
|
var value;
|
|
const acs_59653 = getAcs_59653();
|
|
if (acs_59653.suppressTracing) {
|
|
r0 = acs_59653.suppressTracing(a0);
|
|
} else {
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.withScope(_fun59681);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun59681(a0) { // fn#59681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:5472, offset: 0x016ef5ad, size: 51 bytes, params: 2, frame: 17
|
|
a0.setSDKProcessingMetadata(env1_3({}, env1_4, true));
|
|
return env0_0();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun59658(a0) { // fn#59658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:2693, offset: 0x00c78604, size: 11 bytes, params: 2, frame: 9
|
|
return a0();
|
|
}
|
|
|
|
function _fun59664(a0) { // fn#59664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7581:3341, offset: 0x00c78604, size: 11 bytes, params: 2, frame: 9
|
|
return a0();
|
|
}
|
|
|
|
global.__d(_fun59648, 7403, [57, 77, 7396, 7402, 7391, 7404, 7374, 7386, 7387, 7388, 7381, 7379, 7397, 7369, 7401,
|
|
7405, 7407, 7398, 7408, 7410,
|
|
7384]) /* metro module 7403, dependencies: [57, 77, 7396, 7402, 7391, 7404, 7374, 7386, 7387, 7388, 7381, 7379, 7397, 7369, 7401, 7405, 7407, 7398, 7408, 7410, 7384] */;
|