{"version":3,"file":"SpanSessionOnLoadInstrumentation.cjs","names":["EmbraceInstrumentationBase"],"sources":["../../../../src/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.ts"],"sourcesContent":["import { EmbraceInstrumentationBase } from '../../EmbraceInstrumentationBase/index.ts';\nimport type { SpanSessionOnLoadInstrumentationArgs } from './types.ts';\n\nexport class SpanSessionOnLoadInstrumentation extends EmbraceInstrumentationBase {\n  public constructor({ diag }: SpanSessionOnLoadInstrumentationArgs = {}) {\n    super({\n      instrumentationName: 'SpanSessionOnLoadInstrumentation',\n      instrumentationVersion: '1.0.0',\n      diag,\n      config: {},\n    });\n    if (this._config.enabled) {\n      this.enable();\n    }\n  }\n\n  public disable(): void {\n    this.sessionManager.endSessionSpanInternal('unknown');\n  }\n\n  public enable(): void {\n    this.sessionManager.startSessionSpan({ reason: 'init' });\n  }\n}\n"],"mappings":";;;AAGA,IAAa,mCAAb,cAAsDA,+EAAAA,2BAA2B;CAC/E,YAAmB,EAAE,SAA+C,EAAE,EAAE;AACtE,QAAM;GACJ,qBAAqB;GACrB,wBAAwB;GACxB;GACA,QAAQ,EAAE;GACX,CAAC;AACF,MAAI,KAAK,QAAQ,QACf,MAAK,QAAQ;;CAIjB,UAAuB;AACrB,OAAK,eAAe,uBAAuB,UAAU;;CAGvD,SAAsB;AACpB,OAAK,eAAe,iBAAiB,EAAE,QAAQ,QAAQ,CAAC"}