67 lines
2.6 KiB
React
67 lines
2.6 KiB
React
/* Metro module 870; source: unknown; dependencies: [77, 828, 832, 833, 848] */
|
|
function _fun9353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:997:6, offset: 0x00d64651, size: 104 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const env0_2 = require(77) /* metro dependency 77 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.setMeasurement = setMeasurement;
|
|
exports.timedEventsToMeasurements = function(a0) {
|
|
if (a0) {
|
|
if (a0.length !== 0) {
|
|
a0.forEach(_fun9356);
|
|
return {};
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
function setMeasurement(a0, a1, a2) { // fn#9354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:997:122, offset: 0x00d646b9, size: 301 bytes, params: 4, frame: 24
|
|
var r5;
|
|
var r3;
|
|
var value;
|
|
var addEvent;
|
|
var binding;
|
|
if (arguments.length > 3) {
|
|
if (arguments[3] !== undefined) {
|
|
r5 = arguments[3];
|
|
} else {
|
|
value = require(828) /* metro dependency 828 */;
|
|
value = value.getActiveSpan();
|
|
r5 = value;
|
|
}
|
|
} else {
|
|
value = require(828) /* metro dependency 828 */;
|
|
value = value.getActiveSpan();
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
value = require(828) /* metro dependency 828 */;
|
|
value = value.getRootSpan(r5);
|
|
r3 = value;
|
|
} else {
|
|
r3 = r5;
|
|
}
|
|
if (r3) {
|
|
if ((require(832) /* metro dependency 832 */).DEBUG_BUILD) {
|
|
(require(833) /* metro dependency 833 */).debug.log('[Measurement] Setting measurement on root span: ' + a0 + ' = ' + a1 + ' ' + a2);
|
|
}
|
|
addEvent = r3.addEvent;
|
|
binding = env0_2;
|
|
Reflect.apply(addEvent, r3, [a0, binding(binding({},
|
|
(require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, a1),
|
|
(require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, a2)]);
|
|
}
|
|
}
|
|
|
|
function timedEventsToMeasurements(a0) { // fn#9355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:997:537, offset: 0x00d647e6, size: 46 bytes, params: 2, frame: 12
|
|
if (a0) {
|
|
if (a0.length !== 0) {
|
|
a0.forEach(_fun9356);
|
|
return {};
|
|
}
|
|
}
|
|
}
|
|
|