decord/source/856_SentryNonRecordingSpan.js
2026-08-24 06:08:38 +00:00

108 lines
2.2 KiB
JavaScript

// Module ID: 856
// Function ID: 857
// Name: SentryNonRecordingSpan
// Dependencies: [41, 42, 829, 819]
// Module 856 (SentryNonRecordingSpan)
import closure_2 from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
const SentryNonRecordingSpan = require;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
class SentryNonRecordingSpan {
constructor() {
obj = global;
if (global === undefined) {
obj = {};
}
self = this;
tmp = closure_2(this, SentryNonRecordingSpan);
traceId = obj.traceId;
if (!traceId) {
tmp2 = SentryNonRecordingSpan;
tmp3 = closure_1;
obj2 = require("generateSpanId");
traceId = obj2.generateTraceId();
}
self._traceId = traceId;
spanId = obj.spanId;
if (!spanId) {
tmp4 = SentryNonRecordingSpan;
tmp5 = closure_1;
obj3 = require("generateSpanId");
spanId = obj3.generateSpanId();
}
self._spanId = spanId;
return;
}
}
const items = [
{
key: "spanContext",
value: function spanContext() {
return { spanId: this._spanId, traceId: this._traceId, traceFlags: SentryNonRecordingSpan(819).TRACE_FLAG_NONE };
}
},
{
key: "end",
value: function end(arg0) {
}
},
{
key: "setAttribute",
value: function setAttribute(arg0, arg1) {
return this;
}
},
{
key: "setAttributes",
value: function setAttributes(arg0) {
return this;
}
},
{
key: "setStatus",
value: function setStatus(arg0) {
return this;
}
},
{
key: "updateName",
value: function updateName(arg0) {
return this;
}
},
{
key: "isRecording",
value: function isRecording() {
return false;
}
},
{
key: "addEvent",
value: function addEvent(arg0, arg1, arg2) {
return this;
}
},
{
key: "addLink",
value: function addLink(arg0) {
return this;
}
},
{
key: "addLinks",
value: function addLinks(arg0) {
return this;
}
},
{
key: "recordException",
value: function recordException(arg0, arg1) {
}
}
];
export const SentryNonRecordingSpan = _createClass(SentryNonRecordingSpan, items);