@embrace-io/web-sdk
Version:
3 lines (2 loc) • 1.6 kB
JavaScript
import"../../manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js";import{ProxySpanSessionManager as n}from"../../manager/ProxySpanSessionManager/ProxySpanSessionManager.js";var e=function(){function e(n){var e=n.proxySpanSessionManager,t=this;this.getSpanSessionManager=function(){return t._proxySpanSessionManager},this._proxySpanSessionManager=e}return e.getInstance=function(){return this._instance||(this._instance=new e({proxySpanSessionManager:new n})),this._instance},e.prototype.setGlobalSessionManager=function(n){this._proxySpanSessionManager.setDelegate(n)},e.prototype.addBreadcrumb=function(n){this.getSpanSessionManager().addBreadcrumb(n)},e.prototype.addProperty=function(n,e){this.getSpanSessionManager().addProperty(n,e)},e.prototype.endSessionSpan=function(){this.getSpanSessionManager().endSessionSpan()},e.prototype.endSessionSpanInternal=function(n){this.getSpanSessionManager().endSessionSpanInternal(n)},e.prototype.getSessionId=function(){return this.getSpanSessionManager().getSessionId()},e.prototype.getSessionSpan=function(){return this.getSpanSessionManager().getSessionSpan()},e.prototype.getSessionStartTime=function(){return this.getSpanSessionManager().getSessionStartTime()},e.prototype.startSessionSpan=function(){this.getSpanSessionManager().startSessionSpan()},e.prototype.addSessionStartedListener=function(n){return this.getSpanSessionManager().addSessionStartedListener(n)},e.prototype.addSessionEndedListener=function(n){return this.getSpanSessionManager().addSessionEndedListener(n)},e}();export{e as SessionAPI};
//# sourceMappingURL=SessionAPI.js.map