UNPKG

@embrace-io/web-sdk

Version:
3 lines (2 loc) 1.24 kB
import{ProxySpanSessionManager as e}from"../../manager/ProxySpanSessionManager/ProxySpanSessionManager.js";class n{constructor({proxySpanSessionManager:e}){this.getSpanSessionManager=()=>this._proxySpanSessionManager,this._proxySpanSessionManager=e}static getInstance(){return this._instance||(this._instance=new n({proxySpanSessionManager:new e})),this._instance}setGlobalSessionManager(e){this._proxySpanSessionManager.setDelegate(e)}addBreadcrumb(e){this.getSpanSessionManager().addBreadcrumb(e)}addProperty(e,n){this.getSpanSessionManager().addProperty(e,n)}endSessionSpan(){this.getSpanSessionManager().endSessionSpan()}endSessionSpanInternal(e){this.getSpanSessionManager().endSessionSpanInternal(e)}getSessionId(){return this.getSpanSessionManager().getSessionId()}getSessionSpan(){return this.getSpanSessionManager().getSessionSpan()}getSessionStartTime(){return this.getSpanSessionManager().getSessionStartTime()}startSessionSpan(){this.getSpanSessionManager().startSessionSpan()}addSessionStartedListener(e){return this.getSpanSessionManager().addSessionStartedListener(e)}addSessionEndedListener(e){return this.getSpanSessionManager().addSessionEndedListener(e)}}export{n as SessionAPI}; //# sourceMappingURL=SessionAPI.js.map