@embrace-io/web-sdk
Version:
47 lines (46 loc) • 1.04 kB
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
let _opentelemetry_api = require("@opentelemetry/api");
//#region src/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.ts
var NonRecordingExtendedSpan = class {
_spanContext;
constructor(_spanContext = _opentelemetry_api.INVALID_SPAN_CONTEXT) {
this._spanContext = _spanContext;
}
attributes = {};
fail(_options) {}
spanContext() {
return this._spanContext;
}
setAttribute(_key, _value) {
return this;
}
setAttributes(_attributes) {
return this;
}
removeAttribute(_key) {
return this;
}
addEvent(_name, _attributesOrStartTime, _startTime) {
return this;
}
addLink(_link) {
return this;
}
addLinks(_links) {
return this;
}
setStatus(_status) {
return this;
}
updateName(_name) {
return this;
}
end(_endTime) {}
isRecording() {
return false;
}
recordException(_exception, _time) {}
};
//#endregion
exports.NonRecordingExtendedSpan = NonRecordingExtendedSpan;
//# sourceMappingURL=NonRecordingExtendedSpan.cjs.map