@safaricom-mxl/web-sdk 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DATA_EXPORT.md +1 -1
- package/REACT.md +1 -1
- package/README.md +19 -28
- package/UPGRADING.md +2 -2
- package/dist/_virtual/_rolldown/runtime.cjs +7 -13
- package/dist/api-logs/api/LogAPI/LogAPI.cjs +6 -7
- package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.cts +0 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.cts.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.ts +0 -2
- package/dist/api-logs/api/LogAPI/LogAPI.d.ts.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.js +1 -2
- package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
- package/dist/api-logs/api/LogAPI/index.cjs +3 -4
- package/dist/api-logs/api/LogAPI/index.js +1 -2
- package/dist/api-logs/api/LogAPI/types.d.cts +0 -1
- package/dist/api-logs/api/LogAPI/types.d.cts.map +1 -1
- package/dist/api-logs/api/LogAPI/types.d.ts +0 -2
- package/dist/api-logs/api/LogAPI/types.d.ts.map +1 -1
- package/dist/api-logs/api/index.cjs +3 -4
- package/dist/api-logs/api/index.d.ts +0 -1
- package/dist/api-logs/api/index.js +1 -2
- package/dist/api-logs/index.cjs +5 -6
- package/dist/api-logs/index.d.ts +0 -1
- package/dist/api-logs/index.js +1 -2
- package/dist/api-logs/logAPI.cjs +3 -5
- package/dist/api-logs/logAPI.cjs.map +1 -1
- package/dist/api-logs/logAPI.js +1 -2
- package/dist/api-logs/logAPI.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs +2 -3
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts +0 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts +0 -2
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/index.cjs +3 -4
- package/dist/api-logs/manager/NoOpLogManager/index.js +1 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs +3 -5
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts +0 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts +0 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js +1 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/index.cjs +3 -4
- package/dist/api-logs/manager/ProxyLogManager/index.js +1 -2
- package/dist/api-logs/manager/index.cjs +4 -5
- package/dist/api-logs/manager/index.js +1 -2
- package/dist/api-page/api/PageAPI/PageAPI.cjs +6 -7
- package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
- package/dist/api-page/api/PageAPI/PageAPI.js +1 -2
- package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
- package/dist/api-page/api/PageAPI/index.cjs +3 -4
- package/dist/api-page/api/PageAPI/index.js +1 -2
- package/dist/api-page/api/index.cjs +3 -4
- package/dist/api-page/api/index.js +1 -2
- package/dist/api-page/index.cjs +5 -6
- package/dist/api-page/index.js +1 -2
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs +2 -3
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/index.cjs +3 -4
- package/dist/api-page/manager/NoOpPageManager/index.js +1 -2
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs +3 -5
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js +1 -2
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/index.cjs +3 -4
- package/dist/api-page/manager/ProxyPageManager/index.js +1 -2
- package/dist/api-page/manager/index.cjs +4 -5
- package/dist/api-page/manager/index.js +1 -2
- package/dist/api-page/pageAPI.cjs +3 -5
- package/dist/api-page/pageAPI.cjs.map +1 -1
- package/dist/api-page/pageAPI.js +1 -2
- package/dist/api-page/pageAPI.js.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs +6 -7
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts +0 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts +0 -2
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js +1 -2
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
- package/dist/api-sessions/api/SessionAPI/index.cjs +3 -4
- package/dist/api-sessions/api/SessionAPI/index.js +1 -2
- package/dist/api-sessions/api/SessionAPI/types.d.cts +0 -1
- package/dist/api-sessions/api/SessionAPI/types.d.cts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/types.d.ts +0 -2
- package/dist/api-sessions/api/SessionAPI/types.d.ts.map +1 -1
- package/dist/api-sessions/api/index.cjs +3 -4
- package/dist/api-sessions/api/index.d.ts +0 -1
- package/dist/api-sessions/api/index.js +1 -2
- package/dist/api-sessions/index.cjs +5 -6
- package/dist/api-sessions/index.d.ts +0 -1
- package/dist/api-sessions/index.js +1 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs +2 -3
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts +0 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.cjs +3 -4
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.js +1 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs +3 -5
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts +0 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js +1 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.cjs +3 -4
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.js +1 -2
- package/dist/api-sessions/manager/index.cjs +4 -5
- package/dist/api-sessions/manager/index.d.ts +0 -2
- package/dist/api-sessions/manager/index.js +1 -2
- package/dist/api-sessions/manager/types.d.cts +3 -0
- package/dist/api-sessions/manager/types.d.cts.map +1 -1
- package/dist/api-sessions/manager/types.d.ts +3 -1
- package/dist/api-sessions/manager/types.d.ts.map +1 -1
- package/dist/api-sessions/sessionAPI.cjs +3 -5
- package/dist/api-sessions/sessionAPI.cjs.map +1 -1
- package/dist/api-sessions/sessionAPI.js +1 -2
- package/dist/api-sessions/sessionAPI.js.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs +6 -7
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts +0 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts +0 -2
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.js +1 -2
- package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
- package/dist/api-traces/api/TraceAPI/index.cjs +3 -4
- package/dist/api-traces/api/TraceAPI/index.js +1 -2
- package/dist/api-traces/api/TraceAPI/types.d.cts.map +1 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts +0 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts.map +1 -1
- package/dist/api-traces/api/index.cjs +3 -4
- package/dist/api-traces/api/index.d.ts +0 -1
- package/dist/api-traces/api/index.js +1 -2
- package/dist/api-traces/index.cjs +5 -6
- package/dist/api-traces/index.d.ts +0 -2
- package/dist/api-traces/index.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs +4 -5
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts +0 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs +3 -4
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts +0 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/index.cjs +3 -4
- package/dist/api-traces/manager/NoOpTraceManager/index.js +1 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs +3 -5
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts +0 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js +1 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/index.cjs +3 -4
- package/dist/api-traces/manager/ProxyTraceManager/index.js +1 -2
- package/dist/api-traces/manager/index.cjs +4 -5
- package/dist/api-traces/manager/index.d.ts +0 -2
- package/dist/api-traces/manager/index.js +1 -2
- package/dist/api-traces/manager/types.d.ts +0 -1
- package/dist/api-traces/manager/types.d.ts.map +1 -1
- package/dist/api-traces/traceAPI.cjs +3 -5
- package/dist/api-traces/traceAPI.cjs.map +1 -1
- package/dist/api-traces/traceAPI.js +1 -2
- package/dist/api-traces/traceAPI.js.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.cjs +6 -7
- package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.js +1 -2
- package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
- package/dist/api-users/api/UserAPI/index.cjs +3 -4
- package/dist/api-users/api/UserAPI/index.js +1 -2
- package/dist/api-users/api/index.cjs +3 -4
- package/dist/api-users/api/index.js +1 -2
- package/dist/api-users/index.cjs +6 -7
- package/dist/api-users/index.js +1 -2
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs +2 -3
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs.map +1 -1
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js +1 -1
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js.map +1 -1
- package/dist/api-users/manager/NoOpUserManager/index.cjs +3 -4
- package/dist/api-users/manager/NoOpUserManager/index.js +1 -2
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs +3 -5
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js +1 -2
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/index.cjs +3 -4
- package/dist/api-users/manager/ProxyUserManager/index.js +1 -2
- package/dist/api-users/manager/constants/index.cjs +2 -3
- package/dist/api-users/manager/constants/index.cjs.map +1 -1
- package/dist/api-users/manager/constants/index.js +1 -1
- package/dist/api-users/manager/index.cjs +5 -6
- package/dist/api-users/manager/index.js +1 -2
- package/dist/api-users/userAPI.cjs +3 -5
- package/dist/api-users/userAPI.cjs.map +1 -1
- package/dist/api-users/userAPI.js +1 -2
- package/dist/api-users/userAPI.js.map +1 -1
- package/dist/common/attributes.cjs +3 -5
- package/dist/common/attributes.cjs.map +1 -1
- package/dist/common/attributes.js +1 -2
- package/dist/common/attributes.js.map +1 -1
- package/dist/common/index.cjs +3 -4
- package/dist/common/index.js +1 -2
- package/dist/common/types.d.cts +1 -0
- package/dist/common/types.d.cts.map +1 -1
- package/dist/common/types.d.ts +1 -0
- package/dist/common/types.d.ts.map +1 -1
- package/dist/constants/attributes.cjs +11 -3
- package/dist/constants/attributes.cjs.map +1 -1
- package/dist/constants/attributes.d.cts +11 -4
- package/dist/constants/attributes.d.cts.map +1 -1
- package/dist/constants/attributes.d.ts +11 -4
- package/dist/constants/attributes.d.ts.map +1 -1
- package/dist/constants/attributes.js +10 -2
- package/dist/constants/attributes.js.map +1 -1
- package/dist/constants/index.cjs +4 -4
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -3
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs +2 -3
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs.map +1 -1
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js +1 -1
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js.map +1 -1
- package/dist/exporters/BaseFetchExporter/index.cjs +3 -4
- package/dist/exporters/BaseFetchExporter/index.js +1 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs +6 -7
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js +1 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +5 -6
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +0 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +1 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
- package/dist/exporters/MXLLogExporter/index.cjs +3 -4
- package/dist/exporters/MXLLogExporter/index.js +1 -2
- package/dist/exporters/MXLLogExporter/utils.cjs +3 -4
- package/dist/exporters/MXLLogExporter/utils.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/utils.js +1 -2
- package/dist/exporters/MXLLogExporter/utils.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs +6 -7
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js +1 -2
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs +5 -6
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts +0 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js +1 -2
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/index.cjs +3 -4
- package/dist/exporters/MXLTraceExporter/index.js +1 -2
- package/dist/exporters/MXLTraceExporter/utils.cjs +3 -4
- package/dist/exporters/MXLTraceExporter/utils.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/utils.js +1 -2
- package/dist/exporters/MXLTraceExporter/utils.js.map +1 -1
- package/dist/exporters/constants.cjs +3 -6
- package/dist/exporters/constants.cjs.map +1 -1
- package/dist/exporters/constants.js +2 -4
- package/dist/exporters/constants.js.map +1 -1
- package/dist/exporters/index.cjs +7 -8
- package/dist/exporters/index.d.ts +0 -2
- package/dist/exporters/index.js +1 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.cjs +5 -6
- package/dist/exporters/otlpBrowserFetchExportDelegate.cjs.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts +2 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts +2 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.js +1 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.js.map +1 -1
- package/dist/exporters/utils.cjs +2 -3
- package/dist/exporters/utils.cjs.map +1 -1
- package/dist/exporters/utils.d.cts.map +1 -1
- package/dist/exporters/utils.d.ts.map +1 -1
- package/dist/exporters/utils.js +1 -1
- package/dist/exporters/utils.js.map +1 -1
- package/dist/index.cjs +17 -16
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -7
- package/dist/index.js +2 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs +3 -4
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js +1 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/index.cjs +3 -4
- package/dist/instrumentations/InstrumentationAbstract/index.js +1 -2
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +16 -8
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +7 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +7 -5
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +11 -3
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/index.cjs +3 -4
- package/dist/instrumentations/MXLInstrumentationBase/index.js +1 -2
- package/dist/instrumentations/MXLInstrumentationBase/types.d.cts +3 -0
- package/dist/instrumentations/MXLInstrumentationBase/types.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/types.d.ts +3 -1
- package/dist/instrumentations/MXLInstrumentationBase/types.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +4 -5
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts +0 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +1 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/clicks/ClicksInstrumentation/index.js +1 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs +2 -3
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.js +1 -1
- package/dist/instrumentations/clicks/index.cjs +3 -4
- package/dist/instrumentations/clicks/index.d.ts +0 -1
- package/dist/instrumentations/clicks/index.js +1 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +12 -13
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts +0 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +8 -9
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs +2 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs +2 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.cjs +4 -5
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.js +1 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts +0 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +6 -7
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +4 -5
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
- package/dist/instrumentations/document-load/index.cjs +4 -5
- package/dist/instrumentations/document-load/index.d.ts +0 -1
- package/dist/instrumentations/document-load/index.js +1 -2
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +67 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts +19 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts +19 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +66 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs +21 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts +12 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts +12 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js +13 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts +16 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts +16 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/element-timing/index.cjs +3 -0
- package/dist/instrumentations/element-timing/index.d.cts +3 -0
- package/dist/instrumentations/element-timing/index.d.ts +3 -0
- package/dist/instrumentations/element-timing/index.js +2 -0
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +3 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts +0 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +1 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.js +1 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/empty-root/index.cjs +3 -4
- package/dist/instrumentations/empty-root/index.d.ts +0 -1
- package/dist/instrumentations/empty-root/index.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +3 -4
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts +0 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/index.cjs +3 -4
- package/dist/instrumentations/exceptions/index.d.ts +0 -1
- package/dist/instrumentations/exceptions/index.js +1 -2
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs +7 -8
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js +3 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.cjs +3 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.js +1 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs +3 -4
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js +1 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js.map +1 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.js +1 -2
- package/dist/instrumentations/fetch/index.cjs +3 -4
- package/dist/instrumentations/fetch/index.d.ts +0 -1
- package/dist/instrumentations/fetch/index.js +1 -2
- package/dist/instrumentations/index.cjs +19 -20
- package/dist/instrumentations/index.d.cts +9 -9
- package/dist/instrumentations/index.d.ts +9 -19
- package/dist/instrumentations/index.js +5 -6
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +168 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +33 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +33 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +166 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs +29 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts +16 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts +16 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.js +17 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.js +2 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts +6 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts +6 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.js +0 -0
- package/dist/instrumentations/loaf/index.cjs +3 -0
- package/dist/instrumentations/loaf/index.d.cts +3 -0
- package/dist/instrumentations/loaf/index.d.ts +3 -0
- package/dist/instrumentations/loaf/index.js +2 -0
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +7 -8
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/index.cjs +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts +0 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs +8 -9
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs +5 -6
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs +8 -9
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/navigation/index.cjs +4 -5
- package/dist/instrumentations/navigation/index.d.ts +0 -1
- package/dist/instrumentations/navigation/index.js +1 -2
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +59 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts +19 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts +19 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +57 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs +13 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts +8 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts +8 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js +9 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts +7 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts +7 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/server-timing/index.cjs +3 -0
- package/dist/instrumentations/server-timing/index.d.cts +3 -0
- package/dist/instrumentations/server-timing/index.d.ts +3 -0
- package/dist/instrumentations/server-timing/index.js +2 -0
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs +7 -8
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs +2 -3
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs +4 -5
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs +2 -3
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs +10 -73
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts +1 -14
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts +1 -17
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js +8 -71
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts +1 -6
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts +1 -7
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/index.cjs +6 -11
- package/dist/instrumentations/session/index.d.cts +1 -5
- package/dist/instrumentations/session/index.d.ts +1 -11
- package/dist/instrumentations/session/index.js +1 -4
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +95 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts +23 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts +23 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +93 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs +17 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts +10 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts +10 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js +11 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts +18 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts +18 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/user-timing/index.cjs +3 -0
- package/dist/instrumentations/user-timing/index.d.cts +3 -0
- package/dist/instrumentations/user-timing/index.d.ts +3 -0
- package/dist/instrumentations/user-timing/index.js +2 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +79 -105
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts +0 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +75 -101
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs +19 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts +11 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts +11 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js +12 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs +60 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js +57 -3
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.js +1 -2
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +1 -2
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/index.cjs +3 -4
- package/dist/instrumentations/web-vitals/index.d.ts +0 -1
- package/dist/instrumentations/web-vitals/index.js +1 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs +3 -4
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js +1 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js.map +1 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.js +1 -2
- package/dist/instrumentations/xhr/index.cjs +3 -4
- package/dist/instrumentations/xhr/index.d.ts +0 -1
- package/dist/instrumentations/xhr/index.js +1 -2
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +43 -10
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts +10 -0
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts +10 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +39 -6
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
- package/dist/managers/MXLConfigManager/constants.cjs +2 -3
- package/dist/managers/MXLConfigManager/constants.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/constants.d.cts +0 -1
- package/dist/managers/MXLConfigManager/constants.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/constants.d.ts +0 -2
- package/dist/managers/MXLConfigManager/constants.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/constants.js +1 -1
- package/dist/managers/MXLConfigManager/index.cjs +3 -4
- package/dist/managers/MXLConfigManager/index.js +1 -2
- package/dist/managers/MXLConfigManager/types.d.cts +2 -1
- package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/types.d.ts +2 -2
- package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/utils.cjs +2 -3
- package/dist/managers/MXLConfigManager/utils.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/utils.js +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +24 -8
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts +3 -0
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts +3 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.js +22 -6
- package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
- package/dist/managers/MXLLimitManager/constants.cjs +11 -8
- package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/constants.js +10 -6
- package/dist/managers/MXLLimitManager/constants.js.map +1 -1
- package/dist/managers/MXLLimitManager/index.cjs +4 -5
- package/dist/managers/MXLLimitManager/index.js +1 -2
- package/dist/managers/MXLLimitManager/types.d.cts +7 -1
- package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/types.d.ts +7 -2
- package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.cjs +11 -12
- package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts +0 -2
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.js +5 -6
- package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
- package/dist/managers/MXLLogManager/index.cjs +3 -4
- package/dist/managers/MXLLogManager/index.js +1 -2
- package/dist/managers/MXLLogManager/types.d.ts +0 -3
- package/dist/managers/MXLLogManager/types.d.ts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.cjs +3 -4
- package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.js +1 -2
- package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
- package/dist/managers/MXLPageManager/index.cjs +3 -4
- package/dist/managers/MXLPageManager/index.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs +3 -4
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/index.cjs +3 -4
- package/dist/managers/MXLSDKFeaturesManager/index.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts +0 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts +0 -2
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs +18 -17
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts +3 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts +3 -3
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js +9 -8
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js.map +1 -1
- package/dist/managers/MXLSpanSessionManager/constants.cjs +2 -3
- package/dist/managers/MXLSpanSessionManager/constants.cjs.map +1 -1
- package/dist/managers/MXLSpanSessionManager/constants.js +1 -1
- package/dist/managers/MXLSpanSessionManager/index.cjs +3 -4
- package/dist/managers/MXLSpanSessionManager/index.js +1 -2
- package/dist/managers/MXLSpanSessionManager/types.d.cts +5 -0
- package/dist/managers/MXLSpanSessionManager/types.d.cts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/types.d.ts +5 -3
- package/dist/managers/MXLSpanSessionManager/types.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs +3 -4
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.cts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts +0 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.js +1 -2
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.cjs +8 -8
- package/dist/managers/MXLTraceManager/MXLTraceManager.cjs.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts +0 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.js +5 -5
- package/dist/managers/MXLTraceManager/MXLTraceManager.js.map +1 -1
- package/dist/managers/MXLTraceManager/index.cjs +4 -5
- package/dist/managers/MXLTraceManager/index.js +1 -2
- package/dist/managers/MXLUserManager/MXLUserManager.cjs +7 -8
- package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.js +1 -2
- package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
- package/dist/managers/MXLUserManager/constants.cjs +2 -3
- package/dist/managers/MXLUserManager/constants.cjs.map +1 -1
- package/dist/managers/MXLUserManager/constants.js +1 -1
- package/dist/managers/MXLUserManager/index.cjs +3 -4
- package/dist/managers/MXLUserManager/index.js +1 -2
- package/dist/managers/MXLUserManager/types.cjs +4 -5
- package/dist/managers/MXLUserManager/types.cjs.map +1 -1
- package/dist/managers/MXLUserManager/types.js +3 -4
- package/dist/managers/MXLUserManager/types.js.map +1 -1
- package/dist/managers/index.cjs +12 -13
- package/dist/managers/index.d.cts +1 -1
- package/dist/managers/index.d.ts +1 -9
- package/dist/managers/index.js +1 -2
- package/dist/mxl-web-sdk.js +24 -4
- package/dist/mxl-web-sdk.js.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.cjs +443 -274
- package/dist/packages/otlp-transformer/dist/index.cjs.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.cts +14 -2
- package/dist/packages/otlp-transformer/dist/index.d.cts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.ts +14 -2
- package/dist/packages/otlp-transformer/dist/index.d.ts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.js +443 -273
- package/dist/packages/otlp-transformer/dist/index.js.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs +4 -5
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.cts.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.ts.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js +2 -3
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/BrowserLogRecordProcessor/index.js +1 -2
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs +4 -5
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.cts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.ts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js +2 -3
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
- package/dist/processors/BrowserSpanProcessor/index.cjs +3 -4
- package/dist/processors/BrowserSpanProcessor/index.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs +4 -5
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js.map +1 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs +2 -3
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/index.cjs +3 -4
- package/dist/processors/LogRecordScrubProcessor/index.js +1 -2
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs +5 -6
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js +3 -4
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/MXLLogRecordProcessor/index.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs +6 -7
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/index.cjs +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/index.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs +6 -7
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js +3 -4
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.cjs +3 -4
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.js +1 -2
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts.map +1 -1
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs +5 -6
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js +3 -4
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
- package/dist/processors/PageLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/PageLogRecordProcessor/index.js +1 -2
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs +5 -6
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js +3 -4
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
- package/dist/processors/PageSpanProcessor/index.cjs +3 -4
- package/dist/processors/PageSpanProcessor/index.js +1 -2
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs +2 -3
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
- package/dist/processors/SpanScrubProcessor/index.cjs +3 -4
- package/dist/processors/SpanScrubProcessor/index.js +1 -2
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs +3 -4
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js +1 -2
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js.map +1 -1
- package/dist/processors/UserLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/UserLogRecordProcessor/index.js +1 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs +3 -4
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js +1 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
- package/dist/processors/UserSpanProcessor/index.cjs +3 -4
- package/dist/processors/UserSpanProcessor/index.js +1 -2
- package/dist/processors/index.cjs +14 -15
- package/dist/processors/index.d.ts +0 -12
- package/dist/processors/index.js +1 -2
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs +4 -5
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs.map +1 -1
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js +1 -2
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js.map +1 -1
- package/dist/propagators/MXLW3CTraceContextPropagator/index.cjs +3 -4
- package/dist/propagators/MXLW3CTraceContextPropagator/index.js +1 -2
- package/dist/propagators/index.cjs +3 -4
- package/dist/propagators/index.d.ts +0 -1
- package/dist/propagators/index.js +1 -2
- package/dist/react-instrumentation/index.cjs +7 -8
- package/dist/react-instrumentation/index.d.ts +0 -3
- package/dist/react-instrumentation/index.js +1 -2
- package/dist/resources/appInstanceId.cjs +4 -5
- package/dist/resources/appInstanceId.cjs.map +1 -1
- package/dist/resources/appInstanceId.js +1 -2
- package/dist/resources/appInstanceId.js.map +1 -1
- package/dist/resources/constants/index.cjs +3 -4
- package/dist/resources/constants/index.cjs.map +1 -1
- package/dist/resources/constants/index.d.cts +1 -1
- package/dist/resources/constants/index.d.ts +1 -1
- package/dist/resources/constants/index.js +2 -2
- package/dist/resources/constants/index.js.map +1 -1
- package/dist/resources/index.cjs +7 -6
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +2 -3
- package/dist/resources/webSdkResource.cjs +22 -9
- package/dist/resources/webSdkResource.cjs.map +1 -1
- package/dist/resources/webSdkResource.d.cts +16 -1
- package/dist/resources/webSdkResource.d.cts.map +1 -1
- package/dist/resources/webSdkResource.d.ts +16 -1
- package/dist/resources/webSdkResource.d.ts.map +1 -1
- package/dist/resources/webSdkResource.js +17 -6
- package/dist/resources/webSdkResource.js.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.cjs +3 -4
- package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.js +1 -2
- package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
- package/dist/sdk/index.cjs +3 -4
- package/dist/sdk/index.js +1 -2
- package/dist/sdk/initSDK.cjs +62 -58
- package/dist/sdk/initSDK.cjs.map +1 -1
- package/dist/sdk/initSDK.d.cts +2 -1
- package/dist/sdk/initSDK.d.cts.map +1 -1
- package/dist/sdk/initSDK.d.ts +2 -1
- package/dist/sdk/initSDK.d.ts.map +1 -1
- package/dist/sdk/initSDK.js +24 -20
- package/dist/sdk/initSDK.js.map +1 -1
- package/dist/sdk/registry.cjs +3 -4
- package/dist/sdk/registry.cjs.map +1 -1
- package/dist/sdk/registry.js +1 -2
- package/dist/sdk/registry.js.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.cjs +36 -28
- package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.cts +2 -3
- package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.ts +2 -3
- package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.js +26 -19
- package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
- package/dist/sdk/setupSessionRecorder.cjs +5 -6
- package/dist/sdk/setupSessionRecorder.cjs.map +1 -1
- package/dist/sdk/setupSessionRecorder.js +1 -2
- package/dist/sdk/setupSessionRecorder.js.map +1 -1
- package/dist/sdk/types.d.cts +29 -16
- package/dist/sdk/types.d.cts.map +1 -1
- package/dist/sdk/types.d.ts +29 -22
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/utils.cjs +3 -4
- package/dist/sdk/utils.cjs.map +1 -1
- package/dist/sdk/utils.js +1 -2
- package/dist/sdk/utils.js.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.cjs +3 -4
- package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.js +1 -2
- package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
- package/dist/transport/FetchTransport/createFetchTransport.cjs +3 -4
- package/dist/transport/FetchTransport/createFetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/createFetchTransport.js +1 -2
- package/dist/transport/FetchTransport/createFetchTransport.js.map +1 -1
- package/dist/transport/FetchTransport/index.cjs +3 -4
- package/dist/transport/FetchTransport/index.js +1 -2
- package/dist/transport/RetryingTransport/RetryingTransport.cjs +6 -7
- package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.d.ts +0 -1
- package/dist/transport/RetryingTransport/RetryingTransport.d.ts.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.js +4 -5
- package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
- package/dist/transport/RetryingTransport/constants.cjs +2 -3
- package/dist/transport/RetryingTransport/constants.cjs.map +1 -1
- package/dist/transport/RetryingTransport/constants.js +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.cjs +4 -5
- package/dist/transport/RetryingTransport/createRetryingTransport.cjs.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.cts.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.ts +0 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.ts.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.js +1 -2
- package/dist/transport/RetryingTransport/createRetryingTransport.js.map +1 -1
- package/dist/transport/RetryingTransport/index.cjs +3 -4
- package/dist/transport/RetryingTransport/index.js +1 -2
- package/dist/transport/index.cjs +4 -5
- package/dist/transport/index.d.ts +0 -2
- package/dist/transport/index.js +1 -2
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs +4 -5
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs.map +1 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts +0 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts.map +1 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js +1 -2
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js.map +1 -1
- package/dist/utils/MXLSpanStorage/index.cjs +3 -4
- package/dist/utils/MXLSpanStorage/index.d.ts +0 -1
- package/dist/utils/MXLSpanStorage/index.js +1 -2
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs +12 -3
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts +8 -0
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts +8 -0
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.js +11 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.js.map +1 -1
- package/dist/utils/NamespacedStorage/index.cjs +3 -4
- package/dist/utils/NamespacedStorage/index.js +1 -2
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs +4 -4
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts +1 -0
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts +1 -0
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js +2 -2
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
- package/dist/utils/PerformanceManager/index.cjs +3 -4
- package/dist/utils/PerformanceManager/index.js +1 -2
- package/dist/utils/PerformanceManager/types.d.cts +1 -0
- package/dist/utils/PerformanceManager/types.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/types.d.ts +1 -0
- package/dist/utils/PerformanceManager/types.d.ts.map +1 -1
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs +2 -3
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs.map +1 -1
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.js +1 -1
- package/dist/utils/bulkAddEventListener/index.cjs +3 -4
- package/dist/utils/bulkAddEventListener/index.js +1 -2
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs +2 -3
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs.map +1 -1
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.js +1 -1
- package/dist/utils/bulkRemoveEventListener/index.cjs +3 -4
- package/dist/utils/bulkRemoveEventListener/index.js +1 -2
- package/dist/utils/createSafeProxy/createSafeProxy.cjs +2 -3
- package/dist/utils/createSafeProxy/createSafeProxy.cjs.map +1 -1
- package/dist/utils/createSafeProxy/createSafeProxy.js +1 -1
- package/dist/utils/createSafeProxy/index.cjs +3 -4
- package/dist/utils/createSafeProxy/index.js +1 -2
- package/dist/utils/generateUUID.cjs +2 -3
- package/dist/utils/generateUUID.cjs.map +1 -1
- package/dist/utils/generateUUID.js +1 -1
- package/dist/utils/generateWebVitalID.cjs +9 -0
- package/dist/utils/generateWebVitalID.cjs.map +1 -0
- package/dist/utils/generateWebVitalID.d.cts +5 -0
- package/dist/utils/generateWebVitalID.d.cts.map +1 -0
- package/dist/utils/generateWebVitalID.d.ts +5 -0
- package/dist/utils/generateWebVitalID.d.ts.map +1 -0
- package/dist/utils/generateWebVitalID.js +8 -0
- package/dist/utils/generateWebVitalID.js.map +1 -0
- package/dist/utils/getIncrementedCount.cjs +6 -3
- package/dist/utils/getIncrementedCount.cjs.map +1 -1
- package/dist/utils/getIncrementedCount.js +5 -1
- package/dist/utils/getIncrementedCount.js.map +1 -1
- package/dist/utils/getVisibilityState.cjs +4 -5
- package/dist/utils/getVisibilityState.cjs.map +1 -1
- package/dist/utils/getVisibilityState.js +3 -4
- package/dist/utils/getVisibilityState.js.map +1 -1
- package/dist/utils/globalConfig.cjs +2 -3
- package/dist/utils/globalConfig.cjs.map +1 -1
- package/dist/utils/globalConfig.js +1 -1
- package/dist/utils/index.cjs +20 -16
- package/dist/utils/index.d.cts +4 -2
- package/dist/utils/index.d.ts +4 -5
- package/dist/utils/index.js +3 -2
- package/dist/utils/isDeviceIdEnabled.cjs +2 -3
- package/dist/utils/isDeviceIdEnabled.cjs.map +1 -1
- package/dist/utils/isDeviceIdEnabled.js +1 -1
- package/dist/utils/isDeviceIdEnabled.js.map +1 -1
- package/dist/utils/nsfConfigValidation.cjs +2 -3
- package/dist/utils/nsfConfigValidation.cjs.map +1 -1
- package/dist/utils/nsfConfigValidation.d.ts +0 -2
- package/dist/utils/nsfConfigValidation.d.ts.map +1 -1
- package/dist/utils/nsfConfigValidation.js +1 -1
- package/dist/utils/performanceObserver/index.cjs +4 -0
- package/dist/utils/performanceObserver/index.d.cts +2 -0
- package/dist/utils/performanceObserver/index.d.ts +2 -0
- package/dist/utils/performanceObserver/index.js +2 -0
- package/dist/utils/performanceObserver/performanceObserver.cjs +47 -0
- package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.d.cts +23 -0
- package/dist/utils/performanceObserver/performanceObserver.d.cts.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.d.ts +23 -0
- package/dist/utils/performanceObserver/performanceObserver.d.ts.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.js +45 -0
- package/dist/utils/performanceObserver/performanceObserver.js.map +1 -0
- package/dist/utils/throttle.cjs +2 -3
- package/dist/utils/throttle.cjs.map +1 -1
- package/dist/utils/throttle.js +1 -1
- package/package.json +15 -14
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_utils_generateWebVitalID = require("../../../utils/generateWebVitalID.cjs");
|
|
4
|
+
const require_constants_attributes = require("../../../constants/attributes.cjs");
|
|
5
|
+
const require_utils_performanceObserver_performanceObserver = require("../../../utils/performanceObserver/performanceObserver.cjs");
|
|
6
|
+
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require("../../MXLInstrumentationBase/MXLInstrumentationBase.cjs");
|
|
7
|
+
const require_instrumentations_loaf_LoafInstrumentation_constants = require("./constants.cjs");
|
|
8
|
+
let _opentelemetry_api_logs = require("@opentelemetry/api-logs");
|
|
9
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.ts
|
|
10
|
+
var LoafInstrumentation = class extends require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase.MXLInstrumentationBase {
|
|
11
|
+
_observer = null;
|
|
12
|
+
_isFirstEntry = true;
|
|
13
|
+
_removeSessionEndListener = null;
|
|
14
|
+
_isEnabled = false;
|
|
15
|
+
_totalDuration = 0;
|
|
16
|
+
_workDuration = 0;
|
|
17
|
+
_styleLayoutDuration = 0;
|
|
18
|
+
_count = 0;
|
|
19
|
+
_longestDuration = 0;
|
|
20
|
+
_longestDurationExcludingFirst = 0;
|
|
21
|
+
_totalBlockingDuration = 0;
|
|
22
|
+
_scriptSummaries = /* @__PURE__ */ new Map();
|
|
23
|
+
constructor({ diag, perf } = {}) {
|
|
24
|
+
super({
|
|
25
|
+
instrumentationName: "LoafInstrumentation",
|
|
26
|
+
instrumentationVersion: "1.0.0",
|
|
27
|
+
diag,
|
|
28
|
+
perf,
|
|
29
|
+
config: {}
|
|
30
|
+
});
|
|
31
|
+
if (this._config.enabled) this.enable();
|
|
32
|
+
}
|
|
33
|
+
enable() {
|
|
34
|
+
if (this._isEnabled) return;
|
|
35
|
+
if (!require_utils_performanceObserver_performanceObserver.isEntryTypeSupported("long-animation-frame")) {
|
|
36
|
+
this._diag.debug("long-animation-frame not supported, skipping");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
this._isEnabled = true;
|
|
40
|
+
if (this._observer) this._observer.disconnect();
|
|
41
|
+
this._observer = require_utils_performanceObserver_performanceObserver.createPerformanceObserver("long-animation-frame", (entry) => this._processEntry(entry), { diag: this._diag });
|
|
42
|
+
if (!this._observer) {
|
|
43
|
+
this._isEnabled = false;
|
|
44
|
+
this._diag.error("failed to enable");
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this._registerSessionEndListener();
|
|
48
|
+
}
|
|
49
|
+
_registerSessionEndListener() {
|
|
50
|
+
if (!this._isEnabled) return;
|
|
51
|
+
if (this._removeSessionEndListener) this._removeSessionEndListener();
|
|
52
|
+
this._removeSessionEndListener = this.sessionManager.addSessionEndedListener(() => {
|
|
53
|
+
try {
|
|
54
|
+
this._flushReport();
|
|
55
|
+
} catch (e) {
|
|
56
|
+
this._diag.error("error flushing report", e);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
setSessionManager(sessionManager) {
|
|
61
|
+
super.setSessionManager(sessionManager);
|
|
62
|
+
this._registerSessionEndListener();
|
|
63
|
+
}
|
|
64
|
+
disable() {
|
|
65
|
+
this._isEnabled = false;
|
|
66
|
+
this._resetAccumulators();
|
|
67
|
+
if (this._observer) {
|
|
68
|
+
this._observer.disconnect();
|
|
69
|
+
this._observer = null;
|
|
70
|
+
}
|
|
71
|
+
if (this._removeSessionEndListener) {
|
|
72
|
+
this._removeSessionEndListener();
|
|
73
|
+
this._removeSessionEndListener = null;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
_processEntry(entry) {
|
|
77
|
+
if (!this._isEnabled) return;
|
|
78
|
+
this._count++;
|
|
79
|
+
this._totalDuration += entry.duration;
|
|
80
|
+
this._workDuration += entry.renderStart ? entry.renderStart - entry.startTime : entry.duration;
|
|
81
|
+
if (entry.styleAndLayoutStart) this._styleLayoutDuration += Math.max(0, entry.startTime + entry.duration - entry.styleAndLayoutStart);
|
|
82
|
+
this._longestDuration = Math.max(this._longestDuration, entry.duration);
|
|
83
|
+
if (this._isFirstEntry && this._count === 1) this._isFirstEntry = false;
|
|
84
|
+
else {
|
|
85
|
+
this._longestDurationExcludingFirst = Math.max(this._longestDurationExcludingFirst, entry.duration);
|
|
86
|
+
if (entry.firstUIEventTimestamp === 0) this._totalBlockingDuration += entry.blockingDuration;
|
|
87
|
+
}
|
|
88
|
+
try {
|
|
89
|
+
for (const script of entry.scripts) {
|
|
90
|
+
let url = script.sourceURL || "(inline)";
|
|
91
|
+
if (url.length > 2048) url = `${url.substring(0, require_instrumentations_loaf_LoafInstrumentation_constants.MAX_SCRIPT_URL_LENGTH)}...`;
|
|
92
|
+
const existing = this._scriptSummaries.get(url);
|
|
93
|
+
if (existing) {
|
|
94
|
+
existing.totalDuration += script.duration;
|
|
95
|
+
existing.styleAndLayoutDuration += script.forcedStyleAndLayoutDuration;
|
|
96
|
+
existing.count++;
|
|
97
|
+
} else this._scriptSummaries.set(url, {
|
|
98
|
+
totalDuration: script.duration,
|
|
99
|
+
styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,
|
|
100
|
+
count: 1
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
} catch (e) {
|
|
104
|
+
this._diag.error("error processing scripts for entry", e);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
_flushReport() {
|
|
108
|
+
if (this._count === 0) return;
|
|
109
|
+
let rating;
|
|
110
|
+
if (this._totalBlockingDuration <= 200) rating = "good";
|
|
111
|
+
else if (this._totalBlockingDuration <= 600) rating = "needs-improvement";
|
|
112
|
+
else rating = "poor";
|
|
113
|
+
const attrs = {
|
|
114
|
+
[require_constants_attributes.KEY_MXL_TYPE]: "ux.web_vital",
|
|
115
|
+
["mxl.web_vital.id"]: require_utils_generateWebVitalID.generateWebVitalID(),
|
|
116
|
+
["mxl.web_vital.name"]: "TBD",
|
|
117
|
+
["mxl.web_vital.value"]: Math.round(this._totalBlockingDuration),
|
|
118
|
+
["mxl.web_vital.rating"]: rating,
|
|
119
|
+
[require_instrumentations_loaf_LoafInstrumentation_constants.ATTR_TBD_LOAF_TOTAL_DURATION]: Math.round(this._totalDuration),
|
|
120
|
+
[require_instrumentations_loaf_LoafInstrumentation_constants.ATTR_TBD_LOAF_WORK_DURATION]: Math.round(this._workDuration),
|
|
121
|
+
[require_instrumentations_loaf_LoafInstrumentation_constants.ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION]: Math.round(this._styleLayoutDuration),
|
|
122
|
+
[require_instrumentations_loaf_LoafInstrumentation_constants.ATTR_TBD_LOAF_COUNT]: this._count,
|
|
123
|
+
[require_instrumentations_loaf_LoafInstrumentation_constants.ATTR_TBD_LOAF_LONGEST_DURATION]: Math.round(this._longestDuration),
|
|
124
|
+
[require_instrumentations_loaf_LoafInstrumentation_constants.ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST]: Math.round(this._longestDurationExcludingFirst)
|
|
125
|
+
};
|
|
126
|
+
try {
|
|
127
|
+
this.logger.emit({
|
|
128
|
+
eventName: require_instrumentations_loaf_LoafInstrumentation_constants.LOAF_EVENT_NAME,
|
|
129
|
+
severityNumber: _opentelemetry_api_logs.SeverityNumber.INFO,
|
|
130
|
+
attributes: attrs
|
|
131
|
+
});
|
|
132
|
+
} catch (e) {
|
|
133
|
+
this._diag.error("error emitting loaf report", e);
|
|
134
|
+
}
|
|
135
|
+
try {
|
|
136
|
+
if (this._scriptSummaries.size > 0) {
|
|
137
|
+
const scripts = [...this._scriptSummaries].sort((a, b) => b[1].totalDuration - a[1].totalDuration).slice(0, 250).map(([url, script]) => [url, {
|
|
138
|
+
total_duration: Math.round(script.totalDuration),
|
|
139
|
+
style_and_layout_duration: Math.round(script.styleAndLayoutDuration),
|
|
140
|
+
count: script.count
|
|
141
|
+
}]);
|
|
142
|
+
this.logger.emit({
|
|
143
|
+
eventName: require_instrumentations_loaf_LoafInstrumentation_constants.LOAF_SCRIPTS_EVENT_NAME,
|
|
144
|
+
severityNumber: _opentelemetry_api_logs.SeverityNumber.INFO,
|
|
145
|
+
body: JSON.stringify(Object.fromEntries(scripts)),
|
|
146
|
+
attributes: { [require_constants_attributes.KEY_MXL_TYPE]: "ux.loaf_scripts" }
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
} catch (e) {
|
|
150
|
+
this._diag.error("error emitting loaf script summary", e);
|
|
151
|
+
}
|
|
152
|
+
this._resetAccumulators();
|
|
153
|
+
}
|
|
154
|
+
_resetAccumulators() {
|
|
155
|
+
this._totalDuration = 0;
|
|
156
|
+
this._workDuration = 0;
|
|
157
|
+
this._styleLayoutDuration = 0;
|
|
158
|
+
this._count = 0;
|
|
159
|
+
this._longestDuration = 0;
|
|
160
|
+
this._longestDurationExcludingFirst = 0;
|
|
161
|
+
this._totalBlockingDuration = 0;
|
|
162
|
+
this._scriptSummaries = /* @__PURE__ */ new Map();
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
//#endregion
|
|
166
|
+
exports.LoafInstrumentation = LoafInstrumentation;
|
|
167
|
+
|
|
168
|
+
//# sourceMappingURL=LoafInstrumentation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoafInstrumentation.cjs","names":["MXLInstrumentationBase","isEntryTypeSupported","createPerformanceObserver","MAX_SCRIPT_URL_LENGTH","KEY_MXL_TYPE","generateWebVitalID","ATTR_TBD_LOAF_TOTAL_DURATION","ATTR_TBD_LOAF_WORK_DURATION","ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION","ATTR_TBD_LOAF_COUNT","ATTR_TBD_LOAF_LONGEST_DURATION","ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST","LOAF_EVENT_NAME","SeverityNumber","LOAF_SCRIPTS_EVENT_NAME"],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.ts"],"sourcesContent":["/* eslint-disable baseline-js/use-baseline */\nimport { SeverityNumber } from '@opentelemetry/api-logs';\nimport type { Metric } from 'web-vitals';\nimport type { SpanSessionManager } from '../../../api-sessions/index.ts';\nimport { MXL_TYPES, KEY_MXL_TYPE } from '../../../constants/index.ts';\nimport { generateWebVitalID } from '../../../utils/generateWebVitalID.ts';\nimport {\n createPerformanceObserver,\n isEntryTypeSupported,\n} from '../../../utils/index.ts';\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport {\n ATTR_TBD_LOAF_COUNT,\n ATTR_TBD_LOAF_LONGEST_DURATION,\n ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST,\n ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION,\n ATTR_TBD_LOAF_TOTAL_DURATION,\n ATTR_TBD_LOAF_WORK_DURATION,\n BLOCKING_DURATION_GOOD_THRESHOLD,\n BLOCKING_DURATION_POOR_THRESHOLD,\n LOAF_EVENT_NAME,\n LOAF_SCRIPTS_EVENT_NAME,\n MAX_SCRIPT_ENTRIES,\n MAX_SCRIPT_URL_LENGTH,\n} from './constants.ts';\nimport type { LoafInstrumentationArgs } from './types.ts';\n\ntype ScriptSummaryValue = {\n totalDuration: number;\n styleAndLayoutDuration: number;\n count: number;\n};\n\ntype ScriptSummaries = Map<string, ScriptSummaryValue>;\n\nexport class LoafInstrumentation extends MXLInstrumentationBase {\n private _observer: PerformanceObserver | null = null;\n private _isFirstEntry = true;\n private _removeSessionEndListener: (() => void) | null = null;\n private _isEnabled = false;\n\n private _totalDuration = 0;\n private _workDuration = 0;\n private _styleLayoutDuration = 0;\n private _count = 0;\n private _longestDuration = 0;\n private _longestDurationExcludingFirst = 0;\n private _totalBlockingDuration = 0;\n private _scriptSummaries: ScriptSummaries = new Map();\n\n public constructor({ diag, perf }: LoafInstrumentationArgs = {}) {\n super({\n instrumentationName: 'LoafInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public enable(): void {\n if (this._isEnabled) {\n return;\n }\n\n if (!isEntryTypeSupported('long-animation-frame')) {\n this._diag.debug('long-animation-frame not supported, skipping');\n return;\n }\n\n this._isEnabled = true;\n\n if (this._observer) {\n this._observer.disconnect();\n }\n\n this._observer =\n createPerformanceObserver<PerformanceLongAnimationFrameTiming>(\n 'long-animation-frame',\n (entry) => this._processEntry(entry),\n { diag: this._diag },\n );\n\n if (!this._observer) {\n this._isEnabled = false;\n this._diag.error('failed to enable');\n return;\n }\n\n this._registerSessionEndListener();\n }\n\n private _registerSessionEndListener(): void {\n if (!this._isEnabled) {\n return;\n }\n\n if (this._removeSessionEndListener) {\n this._removeSessionEndListener();\n }\n\n this._removeSessionEndListener =\n this.sessionManager.addSessionEndedListener(() => {\n try {\n this._flushReport();\n } catch (e) {\n this._diag.error('error flushing report', e);\n }\n });\n }\n\n public override setSessionManager(sessionManager: SpanSessionManager): void {\n super.setSessionManager(sessionManager);\n this._registerSessionEndListener();\n }\n\n public disable(): void {\n this._isEnabled = false;\n this._resetAccumulators();\n\n if (this._observer) {\n this._observer.disconnect();\n this._observer = null;\n }\n\n if (this._removeSessionEndListener) {\n this._removeSessionEndListener();\n this._removeSessionEndListener = null;\n }\n }\n\n private _processEntry(entry: PerformanceLongAnimationFrameTiming): void {\n if (!this._isEnabled) {\n return;\n }\n\n this._count++;\n this._totalDuration += entry.duration;\n this._workDuration += entry.renderStart\n ? entry.renderStart - entry.startTime\n : entry.duration;\n\n if (entry.styleAndLayoutStart) {\n this._styleLayoutDuration += Math.max(\n 0,\n entry.startTime + entry.duration - entry.styleAndLayoutStart,\n );\n }\n\n this._longestDuration = Math.max(this._longestDuration, entry.duration);\n\n if (this._isFirstEntry && this._count === 1) {\n this._isFirstEntry = false;\n } else {\n this._longestDurationExcludingFirst = Math.max(\n this._longestDurationExcludingFirst,\n entry.duration,\n );\n if (entry.firstUIEventTimestamp === 0) {\n this._totalBlockingDuration += entry.blockingDuration;\n }\n }\n\n try {\n for (const script of entry.scripts) {\n // sourceURL is an empty string for inline scripts\n let url = script.sourceURL || '(inline)';\n if (url.length > MAX_SCRIPT_URL_LENGTH) {\n url = `${url.substring(0, MAX_SCRIPT_URL_LENGTH)}...`;\n }\n\n const existing = this._scriptSummaries.get(url);\n if (existing) {\n existing.totalDuration += script.duration;\n existing.styleAndLayoutDuration +=\n script.forcedStyleAndLayoutDuration;\n existing.count++;\n } else {\n this._scriptSummaries.set(url, {\n totalDuration: script.duration,\n styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,\n count: 1,\n });\n }\n }\n } catch (e) {\n this._diag.error('error processing scripts for entry', e);\n }\n }\n\n private _flushReport(): void {\n if (this._count === 0) {\n return;\n }\n\n // use web-vitals Metric type for rating\n let rating: Metric['rating'];\n if (this._totalBlockingDuration <= BLOCKING_DURATION_GOOD_THRESHOLD) {\n rating = 'good';\n } else if (\n this._totalBlockingDuration <= BLOCKING_DURATION_POOR_THRESHOLD\n ) {\n rating = 'needs-improvement';\n } else {\n rating = 'poor';\n }\n\n const attrs: Record<string, string | number> = {\n [KEY_MXL_TYPE]: MXL_TYPES.WebVital,\n ['mxl.web_vital.id']: generateWebVitalID(),\n ['mxl.web_vital.name']: 'TBD',\n ['mxl.web_vital.value']: Math.round(this._totalBlockingDuration),\n ['mxl.web_vital.rating']: rating,\n [ATTR_TBD_LOAF_TOTAL_DURATION]: Math.round(this._totalDuration),\n [ATTR_TBD_LOAF_WORK_DURATION]: Math.round(this._workDuration),\n [ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION]: Math.round(\n this._styleLayoutDuration,\n ),\n [ATTR_TBD_LOAF_COUNT]: this._count,\n [ATTR_TBD_LOAF_LONGEST_DURATION]: Math.round(this._longestDuration),\n [ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST]: Math.round(\n this._longestDurationExcludingFirst,\n ),\n };\n\n try {\n this.logger.emit({\n eventName: LOAF_EVENT_NAME,\n severityNumber: SeverityNumber.INFO,\n attributes: attrs,\n });\n } catch (e) {\n this._diag.error('error emitting loaf report', e);\n }\n\n try {\n if (this._scriptSummaries.size > 0) {\n const scripts = [...this._scriptSummaries]\n .sort((a, b) => b[1].totalDuration - a[1].totalDuration)\n .slice(0, MAX_SCRIPT_ENTRIES)\n .map(([url, script]) => [\n url,\n {\n total_duration: Math.round(script.totalDuration),\n style_and_layout_duration: Math.round(\n script.styleAndLayoutDuration,\n ),\n count: script.count,\n },\n ]);\n\n this.logger.emit({\n eventName: LOAF_SCRIPTS_EVENT_NAME,\n severityNumber: SeverityNumber.INFO,\n body: JSON.stringify(Object.fromEntries(scripts)),\n attributes: {\n [KEY_MXL_TYPE]: MXL_TYPES.LoafScripts,\n },\n });\n }\n } catch (e) {\n this._diag.error('error emitting loaf script summary', e);\n }\n\n this._resetAccumulators();\n }\n\n private _resetAccumulators(): void {\n this._totalDuration = 0;\n this._workDuration = 0;\n this._styleLayoutDuration = 0;\n this._count = 0;\n this._longestDuration = 0;\n this._longestDurationExcludingFirst = 0;\n this._totalBlockingDuration = 0;\n this._scriptSummaries = new Map();\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.cjs";
|
|
2
|
+
import { LoafInstrumentationArgs } from "./types.cjs";
|
|
3
|
+
import { SpanSessionManager } from "../../../api-sessions/manager/types.cjs";
|
|
4
|
+
|
|
5
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts
|
|
6
|
+
declare class LoafInstrumentation extends MXLInstrumentationBase {
|
|
7
|
+
private _observer;
|
|
8
|
+
private _isFirstEntry;
|
|
9
|
+
private _removeSessionEndListener;
|
|
10
|
+
private _isEnabled;
|
|
11
|
+
private _totalDuration;
|
|
12
|
+
private _workDuration;
|
|
13
|
+
private _styleLayoutDuration;
|
|
14
|
+
private _count;
|
|
15
|
+
private _longestDuration;
|
|
16
|
+
private _longestDurationExcludingFirst;
|
|
17
|
+
private _totalBlockingDuration;
|
|
18
|
+
private _scriptSummaries;
|
|
19
|
+
constructor({
|
|
20
|
+
diag,
|
|
21
|
+
perf
|
|
22
|
+
}?: LoafInstrumentationArgs);
|
|
23
|
+
enable(): void;
|
|
24
|
+
private _registerSessionEndListener;
|
|
25
|
+
setSessionManager(sessionManager: SpanSessionManager): void;
|
|
26
|
+
disable(): void;
|
|
27
|
+
private _processEntry;
|
|
28
|
+
private _flushReport;
|
|
29
|
+
private _resetAccumulators;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { LoafInstrumentation };
|
|
33
|
+
//# sourceMappingURL=LoafInstrumentation.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoafInstrumentation.d.cts","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.ts"],"mappings":";;;;;cAmCa,mBAAA,SAA4B,sBAAA;EAAA,QAC/B,SAAA;EAAA,QACA,aAAA;EAAA,QACA,yBAAA;EAAA,QACA,UAAA;EAAA,QAEA,cAAA;EAAA,QACA,aAAA;EAAA,QACA,oBAAA;EAAA,QACA,MAAA;EAAA,QACA,gBAAA;EAAA,QACA,8BAAA;EAAA,QACA,sBAAA;EAAA,QACA,gBAAA;;IAEa,IAAA;IAAM;EAAA,IAAQ,uBAAA;EAc5B,MAAA,CAAA;EAAA,QAgCC,2BAAA;EAmBQ,iBAAA,CAAkB,cAAA,EAAgB,kBAAA;EAK3C,OAAA,CAAA;EAAA,QAeC,aAAA;EAAA,QA2DA,YAAA;EAAA,QA6EA,kBAAA;AAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.js";
|
|
2
|
+
import { LoafInstrumentationArgs } from "./types.js";
|
|
3
|
+
import { SpanSessionManager } from "../../../api-sessions/manager/types.js";
|
|
4
|
+
|
|
5
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts
|
|
6
|
+
declare class LoafInstrumentation extends MXLInstrumentationBase {
|
|
7
|
+
private _observer;
|
|
8
|
+
private _isFirstEntry;
|
|
9
|
+
private _removeSessionEndListener;
|
|
10
|
+
private _isEnabled;
|
|
11
|
+
private _totalDuration;
|
|
12
|
+
private _workDuration;
|
|
13
|
+
private _styleLayoutDuration;
|
|
14
|
+
private _count;
|
|
15
|
+
private _longestDuration;
|
|
16
|
+
private _longestDurationExcludingFirst;
|
|
17
|
+
private _totalBlockingDuration;
|
|
18
|
+
private _scriptSummaries;
|
|
19
|
+
constructor({
|
|
20
|
+
diag,
|
|
21
|
+
perf
|
|
22
|
+
}?: LoafInstrumentationArgs);
|
|
23
|
+
enable(): void;
|
|
24
|
+
private _registerSessionEndListener;
|
|
25
|
+
setSessionManager(sessionManager: SpanSessionManager): void;
|
|
26
|
+
disable(): void;
|
|
27
|
+
private _processEntry;
|
|
28
|
+
private _flushReport;
|
|
29
|
+
private _resetAccumulators;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { LoafInstrumentation };
|
|
33
|
+
//# sourceMappingURL=LoafInstrumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoafInstrumentation.d.ts","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.ts"],"mappings":";;;;;cAmCa,mBAAA,SAA4B,sBAAA;EAAA,QAC/B,SAAA;EAAA,QACA,aAAA;EAAA,QACA,yBAAA;EAAA,QACA,UAAA;EAAA,QAEA,cAAA;EAAA,QACA,aAAA;EAAA,QACA,oBAAA;EAAA,QACA,MAAA;EAAA,QACA,gBAAA;EAAA,QACA,8BAAA;EAAA,QACA,sBAAA;EAAA,QACA,gBAAA;;IAEa,IAAA;IAAM;EAAA,IAAQ,uBAAA;EAc5B,MAAA,CAAA;EAAA,QAgCC,2BAAA;EAmBQ,iBAAA,CAAkB,cAAA,EAAgB,kBAAA;EAK3C,OAAA,CAAA;EAAA,QAeC,aAAA;EAAA,QA2DA,YAAA;EAAA,QA6EA,kBAAA;AAAA"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { generateWebVitalID } from "../../../utils/generateWebVitalID.js";
|
|
2
|
+
import { KEY_MXL_TYPE } from "../../../constants/attributes.js";
|
|
3
|
+
import { createPerformanceObserver, isEntryTypeSupported } from "../../../utils/performanceObserver/performanceObserver.js";
|
|
4
|
+
import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.js";
|
|
5
|
+
import { ATTR_TBD_LOAF_COUNT, ATTR_TBD_LOAF_LONGEST_DURATION, ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST, ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION, ATTR_TBD_LOAF_TOTAL_DURATION, ATTR_TBD_LOAF_WORK_DURATION, LOAF_EVENT_NAME, LOAF_SCRIPTS_EVENT_NAME, MAX_SCRIPT_URL_LENGTH } from "./constants.js";
|
|
6
|
+
import { SeverityNumber } from "@opentelemetry/api-logs";
|
|
7
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.ts
|
|
8
|
+
var LoafInstrumentation = class extends MXLInstrumentationBase {
|
|
9
|
+
_observer = null;
|
|
10
|
+
_isFirstEntry = true;
|
|
11
|
+
_removeSessionEndListener = null;
|
|
12
|
+
_isEnabled = false;
|
|
13
|
+
_totalDuration = 0;
|
|
14
|
+
_workDuration = 0;
|
|
15
|
+
_styleLayoutDuration = 0;
|
|
16
|
+
_count = 0;
|
|
17
|
+
_longestDuration = 0;
|
|
18
|
+
_longestDurationExcludingFirst = 0;
|
|
19
|
+
_totalBlockingDuration = 0;
|
|
20
|
+
_scriptSummaries = /* @__PURE__ */ new Map();
|
|
21
|
+
constructor({ diag, perf } = {}) {
|
|
22
|
+
super({
|
|
23
|
+
instrumentationName: "LoafInstrumentation",
|
|
24
|
+
instrumentationVersion: "1.0.0",
|
|
25
|
+
diag,
|
|
26
|
+
perf,
|
|
27
|
+
config: {}
|
|
28
|
+
});
|
|
29
|
+
if (this._config.enabled) this.enable();
|
|
30
|
+
}
|
|
31
|
+
enable() {
|
|
32
|
+
if (this._isEnabled) return;
|
|
33
|
+
if (!isEntryTypeSupported("long-animation-frame")) {
|
|
34
|
+
this._diag.debug("long-animation-frame not supported, skipping");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
this._isEnabled = true;
|
|
38
|
+
if (this._observer) this._observer.disconnect();
|
|
39
|
+
this._observer = createPerformanceObserver("long-animation-frame", (entry) => this._processEntry(entry), { diag: this._diag });
|
|
40
|
+
if (!this._observer) {
|
|
41
|
+
this._isEnabled = false;
|
|
42
|
+
this._diag.error("failed to enable");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this._registerSessionEndListener();
|
|
46
|
+
}
|
|
47
|
+
_registerSessionEndListener() {
|
|
48
|
+
if (!this._isEnabled) return;
|
|
49
|
+
if (this._removeSessionEndListener) this._removeSessionEndListener();
|
|
50
|
+
this._removeSessionEndListener = this.sessionManager.addSessionEndedListener(() => {
|
|
51
|
+
try {
|
|
52
|
+
this._flushReport();
|
|
53
|
+
} catch (e) {
|
|
54
|
+
this._diag.error("error flushing report", e);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
setSessionManager(sessionManager) {
|
|
59
|
+
super.setSessionManager(sessionManager);
|
|
60
|
+
this._registerSessionEndListener();
|
|
61
|
+
}
|
|
62
|
+
disable() {
|
|
63
|
+
this._isEnabled = false;
|
|
64
|
+
this._resetAccumulators();
|
|
65
|
+
if (this._observer) {
|
|
66
|
+
this._observer.disconnect();
|
|
67
|
+
this._observer = null;
|
|
68
|
+
}
|
|
69
|
+
if (this._removeSessionEndListener) {
|
|
70
|
+
this._removeSessionEndListener();
|
|
71
|
+
this._removeSessionEndListener = null;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
_processEntry(entry) {
|
|
75
|
+
if (!this._isEnabled) return;
|
|
76
|
+
this._count++;
|
|
77
|
+
this._totalDuration += entry.duration;
|
|
78
|
+
this._workDuration += entry.renderStart ? entry.renderStart - entry.startTime : entry.duration;
|
|
79
|
+
if (entry.styleAndLayoutStart) this._styleLayoutDuration += Math.max(0, entry.startTime + entry.duration - entry.styleAndLayoutStart);
|
|
80
|
+
this._longestDuration = Math.max(this._longestDuration, entry.duration);
|
|
81
|
+
if (this._isFirstEntry && this._count === 1) this._isFirstEntry = false;
|
|
82
|
+
else {
|
|
83
|
+
this._longestDurationExcludingFirst = Math.max(this._longestDurationExcludingFirst, entry.duration);
|
|
84
|
+
if (entry.firstUIEventTimestamp === 0) this._totalBlockingDuration += entry.blockingDuration;
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
for (const script of entry.scripts) {
|
|
88
|
+
let url = script.sourceURL || "(inline)";
|
|
89
|
+
if (url.length > 2048) url = `${url.substring(0, MAX_SCRIPT_URL_LENGTH)}...`;
|
|
90
|
+
const existing = this._scriptSummaries.get(url);
|
|
91
|
+
if (existing) {
|
|
92
|
+
existing.totalDuration += script.duration;
|
|
93
|
+
existing.styleAndLayoutDuration += script.forcedStyleAndLayoutDuration;
|
|
94
|
+
existing.count++;
|
|
95
|
+
} else this._scriptSummaries.set(url, {
|
|
96
|
+
totalDuration: script.duration,
|
|
97
|
+
styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,
|
|
98
|
+
count: 1
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
} catch (e) {
|
|
102
|
+
this._diag.error("error processing scripts for entry", e);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
_flushReport() {
|
|
106
|
+
if (this._count === 0) return;
|
|
107
|
+
let rating;
|
|
108
|
+
if (this._totalBlockingDuration <= 200) rating = "good";
|
|
109
|
+
else if (this._totalBlockingDuration <= 600) rating = "needs-improvement";
|
|
110
|
+
else rating = "poor";
|
|
111
|
+
const attrs = {
|
|
112
|
+
[KEY_MXL_TYPE]: "ux.web_vital",
|
|
113
|
+
["mxl.web_vital.id"]: generateWebVitalID(),
|
|
114
|
+
["mxl.web_vital.name"]: "TBD",
|
|
115
|
+
["mxl.web_vital.value"]: Math.round(this._totalBlockingDuration),
|
|
116
|
+
["mxl.web_vital.rating"]: rating,
|
|
117
|
+
[ATTR_TBD_LOAF_TOTAL_DURATION]: Math.round(this._totalDuration),
|
|
118
|
+
[ATTR_TBD_LOAF_WORK_DURATION]: Math.round(this._workDuration),
|
|
119
|
+
[ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION]: Math.round(this._styleLayoutDuration),
|
|
120
|
+
[ATTR_TBD_LOAF_COUNT]: this._count,
|
|
121
|
+
[ATTR_TBD_LOAF_LONGEST_DURATION]: Math.round(this._longestDuration),
|
|
122
|
+
[ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST]: Math.round(this._longestDurationExcludingFirst)
|
|
123
|
+
};
|
|
124
|
+
try {
|
|
125
|
+
this.logger.emit({
|
|
126
|
+
eventName: LOAF_EVENT_NAME,
|
|
127
|
+
severityNumber: SeverityNumber.INFO,
|
|
128
|
+
attributes: attrs
|
|
129
|
+
});
|
|
130
|
+
} catch (e) {
|
|
131
|
+
this._diag.error("error emitting loaf report", e);
|
|
132
|
+
}
|
|
133
|
+
try {
|
|
134
|
+
if (this._scriptSummaries.size > 0) {
|
|
135
|
+
const scripts = [...this._scriptSummaries].sort((a, b) => b[1].totalDuration - a[1].totalDuration).slice(0, 250).map(([url, script]) => [url, {
|
|
136
|
+
total_duration: Math.round(script.totalDuration),
|
|
137
|
+
style_and_layout_duration: Math.round(script.styleAndLayoutDuration),
|
|
138
|
+
count: script.count
|
|
139
|
+
}]);
|
|
140
|
+
this.logger.emit({
|
|
141
|
+
eventName: LOAF_SCRIPTS_EVENT_NAME,
|
|
142
|
+
severityNumber: SeverityNumber.INFO,
|
|
143
|
+
body: JSON.stringify(Object.fromEntries(scripts)),
|
|
144
|
+
attributes: { [KEY_MXL_TYPE]: "ux.loaf_scripts" }
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
} catch (e) {
|
|
148
|
+
this._diag.error("error emitting loaf script summary", e);
|
|
149
|
+
}
|
|
150
|
+
this._resetAccumulators();
|
|
151
|
+
}
|
|
152
|
+
_resetAccumulators() {
|
|
153
|
+
this._totalDuration = 0;
|
|
154
|
+
this._workDuration = 0;
|
|
155
|
+
this._styleLayoutDuration = 0;
|
|
156
|
+
this._count = 0;
|
|
157
|
+
this._longestDuration = 0;
|
|
158
|
+
this._longestDurationExcludingFirst = 0;
|
|
159
|
+
this._totalBlockingDuration = 0;
|
|
160
|
+
this._scriptSummaries = /* @__PURE__ */ new Map();
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
//#endregion
|
|
164
|
+
export { LoafInstrumentation };
|
|
165
|
+
|
|
166
|
+
//# sourceMappingURL=LoafInstrumentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoafInstrumentation.js","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.ts"],"sourcesContent":["/* eslint-disable baseline-js/use-baseline */\nimport { SeverityNumber } from '@opentelemetry/api-logs';\nimport type { Metric } from 'web-vitals';\nimport type { SpanSessionManager } from '../../../api-sessions/index.ts';\nimport { MXL_TYPES, KEY_MXL_TYPE } from '../../../constants/index.ts';\nimport { generateWebVitalID } from '../../../utils/generateWebVitalID.ts';\nimport {\n createPerformanceObserver,\n isEntryTypeSupported,\n} from '../../../utils/index.ts';\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport {\n ATTR_TBD_LOAF_COUNT,\n ATTR_TBD_LOAF_LONGEST_DURATION,\n ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST,\n ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION,\n ATTR_TBD_LOAF_TOTAL_DURATION,\n ATTR_TBD_LOAF_WORK_DURATION,\n BLOCKING_DURATION_GOOD_THRESHOLD,\n BLOCKING_DURATION_POOR_THRESHOLD,\n LOAF_EVENT_NAME,\n LOAF_SCRIPTS_EVENT_NAME,\n MAX_SCRIPT_ENTRIES,\n MAX_SCRIPT_URL_LENGTH,\n} from './constants.ts';\nimport type { LoafInstrumentationArgs } from './types.ts';\n\ntype ScriptSummaryValue = {\n totalDuration: number;\n styleAndLayoutDuration: number;\n count: number;\n};\n\ntype ScriptSummaries = Map<string, ScriptSummaryValue>;\n\nexport class LoafInstrumentation extends MXLInstrumentationBase {\n private _observer: PerformanceObserver | null = null;\n private _isFirstEntry = true;\n private _removeSessionEndListener: (() => void) | null = null;\n private _isEnabled = false;\n\n private _totalDuration = 0;\n private _workDuration = 0;\n private _styleLayoutDuration = 0;\n private _count = 0;\n private _longestDuration = 0;\n private _longestDurationExcludingFirst = 0;\n private _totalBlockingDuration = 0;\n private _scriptSummaries: ScriptSummaries = new Map();\n\n public constructor({ diag, perf }: LoafInstrumentationArgs = {}) {\n super({\n instrumentationName: 'LoafInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public enable(): void {\n if (this._isEnabled) {\n return;\n }\n\n if (!isEntryTypeSupported('long-animation-frame')) {\n this._diag.debug('long-animation-frame not supported, skipping');\n return;\n }\n\n this._isEnabled = true;\n\n if (this._observer) {\n this._observer.disconnect();\n }\n\n this._observer =\n createPerformanceObserver<PerformanceLongAnimationFrameTiming>(\n 'long-animation-frame',\n (entry) => this._processEntry(entry),\n { diag: this._diag },\n );\n\n if (!this._observer) {\n this._isEnabled = false;\n this._diag.error('failed to enable');\n return;\n }\n\n this._registerSessionEndListener();\n }\n\n private _registerSessionEndListener(): void {\n if (!this._isEnabled) {\n return;\n }\n\n if (this._removeSessionEndListener) {\n this._removeSessionEndListener();\n }\n\n this._removeSessionEndListener =\n this.sessionManager.addSessionEndedListener(() => {\n try {\n this._flushReport();\n } catch (e) {\n this._diag.error('error flushing report', e);\n }\n });\n }\n\n public override setSessionManager(sessionManager: SpanSessionManager): void {\n super.setSessionManager(sessionManager);\n this._registerSessionEndListener();\n }\n\n public disable(): void {\n this._isEnabled = false;\n this._resetAccumulators();\n\n if (this._observer) {\n this._observer.disconnect();\n this._observer = null;\n }\n\n if (this._removeSessionEndListener) {\n this._removeSessionEndListener();\n this._removeSessionEndListener = null;\n }\n }\n\n private _processEntry(entry: PerformanceLongAnimationFrameTiming): void {\n if (!this._isEnabled) {\n return;\n }\n\n this._count++;\n this._totalDuration += entry.duration;\n this._workDuration += entry.renderStart\n ? entry.renderStart - entry.startTime\n : entry.duration;\n\n if (entry.styleAndLayoutStart) {\n this._styleLayoutDuration += Math.max(\n 0,\n entry.startTime + entry.duration - entry.styleAndLayoutStart,\n );\n }\n\n this._longestDuration = Math.max(this._longestDuration, entry.duration);\n\n if (this._isFirstEntry && this._count === 1) {\n this._isFirstEntry = false;\n } else {\n this._longestDurationExcludingFirst = Math.max(\n this._longestDurationExcludingFirst,\n entry.duration,\n );\n if (entry.firstUIEventTimestamp === 0) {\n this._totalBlockingDuration += entry.blockingDuration;\n }\n }\n\n try {\n for (const script of entry.scripts) {\n // sourceURL is an empty string for inline scripts\n let url = script.sourceURL || '(inline)';\n if (url.length > MAX_SCRIPT_URL_LENGTH) {\n url = `${url.substring(0, MAX_SCRIPT_URL_LENGTH)}...`;\n }\n\n const existing = this._scriptSummaries.get(url);\n if (existing) {\n existing.totalDuration += script.duration;\n existing.styleAndLayoutDuration +=\n script.forcedStyleAndLayoutDuration;\n existing.count++;\n } else {\n this._scriptSummaries.set(url, {\n totalDuration: script.duration,\n styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,\n count: 1,\n });\n }\n }\n } catch (e) {\n this._diag.error('error processing scripts for entry', e);\n }\n }\n\n private _flushReport(): void {\n if (this._count === 0) {\n return;\n }\n\n // use web-vitals Metric type for rating\n let rating: Metric['rating'];\n if (this._totalBlockingDuration <= BLOCKING_DURATION_GOOD_THRESHOLD) {\n rating = 'good';\n } else if (\n this._totalBlockingDuration <= BLOCKING_DURATION_POOR_THRESHOLD\n ) {\n rating = 'needs-improvement';\n } else {\n rating = 'poor';\n }\n\n const attrs: Record<string, string | number> = {\n [KEY_MXL_TYPE]: MXL_TYPES.WebVital,\n ['mxl.web_vital.id']: generateWebVitalID(),\n ['mxl.web_vital.name']: 'TBD',\n ['mxl.web_vital.value']: Math.round(this._totalBlockingDuration),\n ['mxl.web_vital.rating']: rating,\n [ATTR_TBD_LOAF_TOTAL_DURATION]: Math.round(this._totalDuration),\n [ATTR_TBD_LOAF_WORK_DURATION]: Math.round(this._workDuration),\n [ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION]: Math.round(\n this._styleLayoutDuration,\n ),\n [ATTR_TBD_LOAF_COUNT]: this._count,\n [ATTR_TBD_LOAF_LONGEST_DURATION]: Math.round(this._longestDuration),\n [ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST]: Math.round(\n this._longestDurationExcludingFirst,\n ),\n };\n\n try {\n this.logger.emit({\n eventName: LOAF_EVENT_NAME,\n severityNumber: SeverityNumber.INFO,\n attributes: attrs,\n });\n } catch (e) {\n this._diag.error('error emitting loaf report', e);\n }\n\n try {\n if (this._scriptSummaries.size > 0) {\n const scripts = [...this._scriptSummaries]\n .sort((a, b) => b[1].totalDuration - a[1].totalDuration)\n .slice(0, MAX_SCRIPT_ENTRIES)\n .map(([url, script]) => [\n url,\n {\n total_duration: Math.round(script.totalDuration),\n style_and_layout_duration: Math.round(\n script.styleAndLayoutDuration,\n ),\n count: script.count,\n },\n ]);\n\n this.logger.emit({\n eventName: LOAF_SCRIPTS_EVENT_NAME,\n severityNumber: SeverityNumber.INFO,\n body: JSON.stringify(Object.fromEntries(scripts)),\n attributes: {\n [KEY_MXL_TYPE]: MXL_TYPES.LoafScripts,\n },\n });\n }\n } catch (e) {\n this._diag.error('error emitting loaf script summary', e);\n }\n\n this._resetAccumulators();\n }\n\n private _resetAccumulators(): void {\n this._totalDuration = 0;\n this._workDuration = 0;\n this._styleLayoutDuration = 0;\n this._count = 0;\n this._longestDuration = 0;\n this._longestDurationExcludingFirst = 0;\n this._totalBlockingDuration = 0;\n this._scriptSummaries = new Map();\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/constants.ts
|
|
3
|
+
const ATTR_TBD_LOAF_TOTAL_DURATION = "mxl.tbd.loaf_total_duration";
|
|
4
|
+
const ATTR_TBD_LOAF_WORK_DURATION = "mxl.tbd.loaf_work_duration";
|
|
5
|
+
const ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION = "mxl.tbd.loaf_style_and_layout_duration";
|
|
6
|
+
const ATTR_TBD_LOAF_COUNT = "mxl.tbd.loaf_count";
|
|
7
|
+
const ATTR_TBD_LOAF_LONGEST_DURATION = "mxl.tbd.loaf_longest_duration";
|
|
8
|
+
const ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST = "mxl.tbd.loaf_longest_duration_excluding_first";
|
|
9
|
+
const BLOCKING_DURATION_GOOD_THRESHOLD = 200;
|
|
10
|
+
const BLOCKING_DURATION_POOR_THRESHOLD = 600;
|
|
11
|
+
const LOAF_EVENT_NAME = "mxl-loaf-report";
|
|
12
|
+
const LOAF_SCRIPTS_EVENT_NAME = "mxl-loaf-scripts";
|
|
13
|
+
const MAX_SCRIPT_URL_LENGTH = 2048;
|
|
14
|
+
const MAX_SCRIPT_ENTRIES = 250;
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.ATTR_TBD_LOAF_COUNT = ATTR_TBD_LOAF_COUNT;
|
|
17
|
+
exports.ATTR_TBD_LOAF_LONGEST_DURATION = ATTR_TBD_LOAF_LONGEST_DURATION;
|
|
18
|
+
exports.ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST = ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST;
|
|
19
|
+
exports.ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION = ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION;
|
|
20
|
+
exports.ATTR_TBD_LOAF_TOTAL_DURATION = ATTR_TBD_LOAF_TOTAL_DURATION;
|
|
21
|
+
exports.ATTR_TBD_LOAF_WORK_DURATION = ATTR_TBD_LOAF_WORK_DURATION;
|
|
22
|
+
exports.BLOCKING_DURATION_GOOD_THRESHOLD = BLOCKING_DURATION_GOOD_THRESHOLD;
|
|
23
|
+
exports.BLOCKING_DURATION_POOR_THRESHOLD = BLOCKING_DURATION_POOR_THRESHOLD;
|
|
24
|
+
exports.LOAF_EVENT_NAME = LOAF_EVENT_NAME;
|
|
25
|
+
exports.LOAF_SCRIPTS_EVENT_NAME = LOAF_SCRIPTS_EVENT_NAME;
|
|
26
|
+
exports.MAX_SCRIPT_ENTRIES = MAX_SCRIPT_ENTRIES;
|
|
27
|
+
exports.MAX_SCRIPT_URL_LENGTH = MAX_SCRIPT_URL_LENGTH;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.cjs","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/constants.ts"],"sourcesContent":["export const ATTR_TBD_LOAF_TOTAL_DURATION = 'mxl.tbd.loaf_total_duration';\nexport const ATTR_TBD_LOAF_WORK_DURATION = 'mxl.tbd.loaf_work_duration';\nexport const ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION =\n 'mxl.tbd.loaf_style_and_layout_duration';\nexport const ATTR_TBD_LOAF_COUNT = 'mxl.tbd.loaf_count';\nexport const ATTR_TBD_LOAF_LONGEST_DURATION = 'mxl.tbd.loaf_longest_duration';\nexport const ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST =\n 'mxl.tbd.loaf_longest_duration_excluding_first';\n\nexport const BLOCKING_DURATION_GOOD_THRESHOLD = 200;\nexport const BLOCKING_DURATION_POOR_THRESHOLD = 600;\n\nexport const LOAF_EVENT_NAME = 'mxl-loaf-report';\nexport const LOAF_SCRIPTS_EVENT_NAME = 'mxl-loaf-scripts';\nexport const MAX_SCRIPT_URL_LENGTH = 2048;\nexport const MAX_SCRIPT_ENTRIES = 250;\n"],"mappings":";;AAAA,MAAa,+BAA+B;AAC5C,MAAa,8BAA8B;AAC3C,MAAa,0CACX;AACF,MAAa,sBAAsB;AACnC,MAAa,iCAAiC;AAC9C,MAAa,iDACX;AAEF,MAAa,mCAAmC;AAChD,MAAa,mCAAmC;AAEhD,MAAa,kBAAkB;AAC/B,MAAa,0BAA0B;AACvC,MAAa,wBAAwB;AACrC,MAAa,qBAAqB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/constants.d.ts
|
|
2
|
+
declare const ATTR_TBD_LOAF_TOTAL_DURATION = "mxl.tbd.loaf_total_duration";
|
|
3
|
+
declare const ATTR_TBD_LOAF_WORK_DURATION = "mxl.tbd.loaf_work_duration";
|
|
4
|
+
declare const ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION = "mxl.tbd.loaf_style_and_layout_duration";
|
|
5
|
+
declare const ATTR_TBD_LOAF_COUNT = "mxl.tbd.loaf_count";
|
|
6
|
+
declare const ATTR_TBD_LOAF_LONGEST_DURATION = "mxl.tbd.loaf_longest_duration";
|
|
7
|
+
declare const ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST = "mxl.tbd.loaf_longest_duration_excluding_first";
|
|
8
|
+
declare const BLOCKING_DURATION_GOOD_THRESHOLD = 200;
|
|
9
|
+
declare const BLOCKING_DURATION_POOR_THRESHOLD = 600;
|
|
10
|
+
declare const LOAF_EVENT_NAME = "mxl-loaf-report";
|
|
11
|
+
declare const LOAF_SCRIPTS_EVENT_NAME = "mxl-loaf-scripts";
|
|
12
|
+
declare const MAX_SCRIPT_URL_LENGTH = 2048;
|
|
13
|
+
declare const MAX_SCRIPT_ENTRIES = 250;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ATTR_TBD_LOAF_COUNT, ATTR_TBD_LOAF_LONGEST_DURATION, ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST, ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION, ATTR_TBD_LOAF_TOTAL_DURATION, ATTR_TBD_LOAF_WORK_DURATION, BLOCKING_DURATION_GOOD_THRESHOLD, BLOCKING_DURATION_POOR_THRESHOLD, LOAF_EVENT_NAME, LOAF_SCRIPTS_EVENT_NAME, MAX_SCRIPT_ENTRIES, MAX_SCRIPT_URL_LENGTH };
|
|
16
|
+
//# sourceMappingURL=constants.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.cts","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/constants.ts"],"mappings":";cAAa,4BAAA;AAAA,cACA,2BAAA;AAAA,cACA,uCAAA;AAAA,cAEA,mBAAA;AAAA,cACA,8BAAA;AAAA,cACA,8CAAA;AAAA,cAGA,gCAAA;AAAA,cACA,gCAAA;AAAA,cAEA,eAAA;AAAA,cACA,uBAAA;AAAA,cACA,qBAAA;AAAA,cACA,kBAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/constants.d.ts
|
|
2
|
+
declare const ATTR_TBD_LOAF_TOTAL_DURATION = "mxl.tbd.loaf_total_duration";
|
|
3
|
+
declare const ATTR_TBD_LOAF_WORK_DURATION = "mxl.tbd.loaf_work_duration";
|
|
4
|
+
declare const ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION = "mxl.tbd.loaf_style_and_layout_duration";
|
|
5
|
+
declare const ATTR_TBD_LOAF_COUNT = "mxl.tbd.loaf_count";
|
|
6
|
+
declare const ATTR_TBD_LOAF_LONGEST_DURATION = "mxl.tbd.loaf_longest_duration";
|
|
7
|
+
declare const ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST = "mxl.tbd.loaf_longest_duration_excluding_first";
|
|
8
|
+
declare const BLOCKING_DURATION_GOOD_THRESHOLD = 200;
|
|
9
|
+
declare const BLOCKING_DURATION_POOR_THRESHOLD = 600;
|
|
10
|
+
declare const LOAF_EVENT_NAME = "mxl-loaf-report";
|
|
11
|
+
declare const LOAF_SCRIPTS_EVENT_NAME = "mxl-loaf-scripts";
|
|
12
|
+
declare const MAX_SCRIPT_URL_LENGTH = 2048;
|
|
13
|
+
declare const MAX_SCRIPT_ENTRIES = 250;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ATTR_TBD_LOAF_COUNT, ATTR_TBD_LOAF_LONGEST_DURATION, ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST, ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION, ATTR_TBD_LOAF_TOTAL_DURATION, ATTR_TBD_LOAF_WORK_DURATION, BLOCKING_DURATION_GOOD_THRESHOLD, BLOCKING_DURATION_POOR_THRESHOLD, LOAF_EVENT_NAME, LOAF_SCRIPTS_EVENT_NAME, MAX_SCRIPT_ENTRIES, MAX_SCRIPT_URL_LENGTH };
|
|
16
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/constants.ts"],"mappings":";cAAa,4BAAA;AAAA,cACA,2BAAA;AAAA,cACA,uCAAA;AAAA,cAEA,mBAAA;AAAA,cACA,8BAAA;AAAA,cACA,8CAAA;AAAA,cAGA,gCAAA;AAAA,cACA,gCAAA;AAAA,cAEA,eAAA;AAAA,cACA,uBAAA;AAAA,cACA,qBAAA;AAAA,cACA,kBAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/constants.ts
|
|
2
|
+
const ATTR_TBD_LOAF_TOTAL_DURATION = "mxl.tbd.loaf_total_duration";
|
|
3
|
+
const ATTR_TBD_LOAF_WORK_DURATION = "mxl.tbd.loaf_work_duration";
|
|
4
|
+
const ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION = "mxl.tbd.loaf_style_and_layout_duration";
|
|
5
|
+
const ATTR_TBD_LOAF_COUNT = "mxl.tbd.loaf_count";
|
|
6
|
+
const ATTR_TBD_LOAF_LONGEST_DURATION = "mxl.tbd.loaf_longest_duration";
|
|
7
|
+
const ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST = "mxl.tbd.loaf_longest_duration_excluding_first";
|
|
8
|
+
const BLOCKING_DURATION_GOOD_THRESHOLD = 200;
|
|
9
|
+
const BLOCKING_DURATION_POOR_THRESHOLD = 600;
|
|
10
|
+
const LOAF_EVENT_NAME = "mxl-loaf-report";
|
|
11
|
+
const LOAF_SCRIPTS_EVENT_NAME = "mxl-loaf-scripts";
|
|
12
|
+
const MAX_SCRIPT_URL_LENGTH = 2048;
|
|
13
|
+
const MAX_SCRIPT_ENTRIES = 250;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ATTR_TBD_LOAF_COUNT, ATTR_TBD_LOAF_LONGEST_DURATION, ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST, ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION, ATTR_TBD_LOAF_TOTAL_DURATION, ATTR_TBD_LOAF_WORK_DURATION, BLOCKING_DURATION_GOOD_THRESHOLD, BLOCKING_DURATION_POOR_THRESHOLD, LOAF_EVENT_NAME, LOAF_SCRIPTS_EVENT_NAME, MAX_SCRIPT_ENTRIES, MAX_SCRIPT_URL_LENGTH };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/constants.ts"],"sourcesContent":["export const ATTR_TBD_LOAF_TOTAL_DURATION = 'mxl.tbd.loaf_total_duration';\nexport const ATTR_TBD_LOAF_WORK_DURATION = 'mxl.tbd.loaf_work_duration';\nexport const ATTR_TBD_LOAF_STYLE_AND_LAYOUT_DURATION =\n 'mxl.tbd.loaf_style_and_layout_duration';\nexport const ATTR_TBD_LOAF_COUNT = 'mxl.tbd.loaf_count';\nexport const ATTR_TBD_LOAF_LONGEST_DURATION = 'mxl.tbd.loaf_longest_duration';\nexport const ATTR_TBD_LOAF_LONGEST_DURATION_EXCLUDING_FIRST =\n 'mxl.tbd.loaf_longest_duration_excluding_first';\n\nexport const BLOCKING_DURATION_GOOD_THRESHOLD = 200;\nexport const BLOCKING_DURATION_POOR_THRESHOLD = 600;\n\nexport const LOAF_EVENT_NAME = 'mxl-loaf-report';\nexport const LOAF_SCRIPTS_EVENT_NAME = 'mxl-loaf-scripts';\nexport const MAX_SCRIPT_URL_LENGTH = 2048;\nexport const MAX_SCRIPT_ENTRIES = 250;\n"],"mappings":";AAAA,MAAa,+BAA+B;AAC5C,MAAa,8BAA8B;AAC3C,MAAa,0CACX;AACF,MAAa,sBAAsB;AACnC,MAAa,iCAAiC;AAC9C,MAAa,iDACX;AAEF,MAAa,mCAAmC;AAChD,MAAa,mCAAmC;AAEhD,MAAa,kBAAkB;AAC/B,MAAa,0BAA0B;AACvC,MAAa,wBAAwB;AACrC,MAAa,qBAAqB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_loaf_LoafInstrumentation_LoafInstrumentation = require("./LoafInstrumentation.cjs");
|
|
3
|
+
exports.LoafInstrumentation = require_instrumentations_loaf_LoafInstrumentation_LoafInstrumentation.LoafInstrumentation;
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MXLInstrumentationBaseArgs } from "../../MXLInstrumentationBase/types.cjs";
|
|
2
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/types.d.ts
|
|
3
|
+
type LoafInstrumentationArgs = {} & Pick<MXLInstrumentationBaseArgs, 'diag' | 'perf'>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { LoafInstrumentationArgs };
|
|
6
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/types.ts"],"mappings":";;KAQY,uBAAA,QAA+B,IAAA,CACzC,0BAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MXLInstrumentationBaseArgs } from "../../MXLInstrumentationBase/types.js";
|
|
2
|
+
//#region src/instrumentations/loaf/LoafInstrumentation/types.d.ts
|
|
3
|
+
type LoafInstrumentationArgs = {} & Pick<MXLInstrumentationBaseArgs, 'diag' | 'perf'>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { LoafInstrumentationArgs };
|
|
6
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/instrumentations/loaf/LoafInstrumentation/types.ts"],"mappings":";;KAQY,uBAAA,QAA+B,IAAA,CACzC,0BAAA"}
|
|
File without changes
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_loaf_LoafInstrumentation_LoafInstrumentation = require("./LoafInstrumentation/LoafInstrumentation.cjs");
|
|
3
|
+
exports.LoafInstrumentation = require_instrumentations_loaf_LoafInstrumentation_LoafInstrumentation.LoafInstrumentation;
|