Files
discord-decomp/sources/by-id/module-07402-SentryNonRecordingSpan.js
T
2026-07-28 01:06:53 +03:00

55 lines
2.9 KiB
JavaScript

/* Metro module 7402; source: unknown; dependencies: [6, 7, 7379, 7374] */
import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */
function _fun59634(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7580:6, offset: 0x016ee6d3, size: 101 bytes, params: 8, frame: 17
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.SentryNonRecordingSpan = _fun59635();
function _fun59635() { // fn#59635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7580:109, offset: 0x016ee738, size: 291 bytes, params: 1, frame: 15
return CreateClassModule(SentryNonRecordingSpan_59636, [{key: 'spanContext', value: function() {
var object = {spanId: this._spanId, traceId: this._traceId};
object.traceFlags = require(dependencyMap[3]).TRACE_FLAG_NONE;
return object;
}}, {key: 'end', value: function(a0) {
}}, {key: 'setAttribute', value: function(a0, a1) {
return this;
}}, {key: 'setAttributes', value: function(a0) {
return this;
}}, {key: 'setStatus', value: function(a0) {
return this;
}}, {key: 'updateName', value: function(a0) {
return this;
}}, {key: 'isRecording', value: function() {
return false;
}}, {key: 'addEvent', value: function(a0, a1, a2) {
return this;
}}, {key: 'addLink', value: function(a0) {
return this;
}}, {key: 'addLinks', value: function(a0) {
return this;
}}, {key: 'recordException', value: function(a0, a1) {
}}]);
function SentryNonRecordingSpan_59636() { // fn#59636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7580:143, offset: 0x00d62b84, size: 144 bytes, params: 1, frame: 17
let r1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
let value = environment.__proto__;
env1_2(this, SentryNonRecordingSpan_59636);
this._traceId = r1.traceId || (require(7379) /* metro dependency 7379 */).generateTraceId();
const spanId = r1.spanId;
if (spanId) {
r1 = spanId;
} else {
value = require(7379) /* metro dependency 7379 */;
value = value.generateSpanId();
r1 = value;
}
this._spanId = r1;
}
}
}
global.__d(_fun59634, 7402, [6, 7, 7379, 7374]) /* metro module 7402, dependencies: [6, 7, 7379, 7374] */;