@embrace-io/web-sdk
Version:
3 lines (2 loc) • 826 B
JavaScript
import{KEY_EMB_ERROR_CODE as t}from"../../constants/attributes.js";class s{constructor(t){this._span=t}addEvent(t,s,e){return this._span.addEvent(t,s,e),this}addLink(t){return this._span.addLink(t),this}addLinks(t){return this._span.addLinks(t),this}end(t){this._span.end(t)}isRecording(){return this._span.isRecording()}recordException(t,s){this._span.recordException(t,s)}setAttribute(t,s){return this._span.setAttribute(t,s),this}setAttributes(t){return this._span.setAttributes(t),this}setStatus(t){return this._span.setStatus(t),this}spanContext(){return this._span.spanContext()}updateName(t){return this._span.updateName(t),this}fail(s={code:"failure"}){s.code&&this._span.setAttribute(t,s.code.toUpperCase()),this._span.end(s.endTime)}}export{s as EmbraceExtendedSpan};
//# sourceMappingURL=EmbraceExtendedSpan.js.map