UNPKG

@embrace-io/web-sdk

Version:
3 lines (2 loc) 1.13 kB
import{KEY_EMB_ERROR_CODE as t}from"../../constants/attributes.js";var n=function(){function n(t){this._span=t}return n.prototype.addEvent=function(t,n,e){return this._span.addEvent(t,n,e),this},n.prototype.addLink=function(t){return this._span.addLink(t),this},n.prototype.addLinks=function(t){return this._span.addLinks(t),this},n.prototype.end=function(t){this._span.end(t)},n.prototype.isRecording=function(){return this._span.isRecording()},n.prototype.recordException=function(t,n){this._span.recordException(t,n)},n.prototype.setAttribute=function(t,n){return this._span.setAttribute(t,n),this},n.prototype.setAttributes=function(t){return this._span.setAttributes(t),this},n.prototype.setStatus=function(t){return this._span.setStatus(t),this},n.prototype.spanContext=function(){return this._span.spanContext()},n.prototype.updateName=function(t){return this._span.updateName(t),this},n.prototype.fail=function(n){void 0===n&&(n={code:"failure"}),n.code&&this._span.setAttribute(t,n.code.toUpperCase()),this._span.end(n.endTime)},n}();export{n as EmbraceExtendedSpan}; //# sourceMappingURL=EmbraceExtendedSpan.js.map