UNPKG

@embrace-io/web-sdk

Version:
3 lines (2 loc) 520 B
import{EmbraceInstrumentationBase as n}from"../../EmbraceInstrumentationBase/EmbraceInstrumentationBase.js";class s extends n{constructor({diag:n}={}){super({instrumentationName:"SpanSessionOnLoadInstrumentation",instrumentationVersion:"1.0.0",diag:n,config:{}}),this._config.enabled&&this.enable()}disable(){this.sessionManager.endSessionSpanInternal("unknown")}enable(){this.sessionManager.startSessionSpan()}}export{s as SpanSessionOnLoadInstrumentation}; //# sourceMappingURL=SpanSessionOnLoadInstrumentation.js.map