@safaricom-mxl/web-sdk 0.0.11 → 0.0.13
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 +9 -6
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts +4 -0
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +4 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +5 -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 +2 -1
- package/dist/index.d.ts +2 -6
- 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 +38 -1
- package/dist/mxl-web-sdk.js.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.cjs +480 -177
- package/dist/packages/otlp-transformer/dist/index.cjs.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.cts +6 -2
- package/dist/packages/otlp-transformer/dist/index.d.cts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.ts +6 -2
- package/dist/packages/otlp-transformer/dist/index.d.ts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.js +480 -176
- 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.d.cts +2 -2
- package/dist/sdk/index.d.ts +2 -2
- package/dist/sdk/index.js +1 -2
- package/dist/sdk/initSDK.cjs +75 -58
- package/dist/sdk/initSDK.cjs.map +1 -1
- package/dist/sdk/initSDK.d.cts +4 -1
- package/dist/sdk/initSDK.d.cts.map +1 -1
- package/dist/sdk/initSDK.d.ts +4 -1
- package/dist/sdk/initSDK.d.ts.map +1 -1
- package/dist/sdk/initSDK.js +37 -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 +45 -0
- package/dist/sdk/setupSessionRecorder.cjs.map +1 -0
- package/dist/sdk/setupSessionRecorder.d.cts +21 -0
- package/dist/sdk/setupSessionRecorder.d.cts.map +1 -0
- package/dist/sdk/setupSessionRecorder.d.ts +21 -0
- package/dist/sdk/setupSessionRecorder.d.ts.map +1 -0
- package/dist/sdk/setupSessionRecorder.js +42 -0
- package/dist/sdk/setupSessionRecorder.js.map +1 -0
- package/dist/sdk/types.d.cts +51 -17
- package/dist/sdk/types.d.cts.map +1 -1
- package/dist/sdk/types.d.ts +51 -23
- 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 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../../../src/instrumentations/user-timing/UserTimingInstrumentation/constants.ts"],"mappings":";cAAa,sBAAA;AAAA,cAEA,wBAAA;AAAA,cACA,8BAAA;AAAA,cACA,4BAAA;AAAA,cACA,8BAAA;AAAA,cACA,0BAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/instrumentations/user-timing/UserTimingInstrumentation/constants.ts
|
|
2
|
+
const USER_TIMING_EVENT_NAME = "mxl-user-timing";
|
|
3
|
+
const KEY_MXL_USER_TIMING_NAME = "mxl.user_timing.name";
|
|
4
|
+
const KEY_MXL_USER_TIMING_START_TIME = "mxl.user_timing.start_time";
|
|
5
|
+
const KEY_MXL_USER_TIMING_DURATION = "mxl.user_timing.duration";
|
|
6
|
+
const KEY_MXL_USER_TIMING_ENTRY_TYPE = "mxl.user_timing.entry_type";
|
|
7
|
+
const KEY_MXL_USER_TIMING_DETAIL = "mxl.user_timing.detail";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { KEY_MXL_USER_TIMING_DETAIL, KEY_MXL_USER_TIMING_DURATION, KEY_MXL_USER_TIMING_ENTRY_TYPE, KEY_MXL_USER_TIMING_NAME, KEY_MXL_USER_TIMING_START_TIME, USER_TIMING_EVENT_NAME };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../../../src/instrumentations/user-timing/UserTimingInstrumentation/constants.ts"],"sourcesContent":["export const USER_TIMING_EVENT_NAME = 'mxl-user-timing';\n\nexport const KEY_MXL_USER_TIMING_NAME = 'mxl.user_timing.name';\nexport const KEY_MXL_USER_TIMING_START_TIME = 'mxl.user_timing.start_time';\nexport const KEY_MXL_USER_TIMING_DURATION = 'mxl.user_timing.duration';\nexport const KEY_MXL_USER_TIMING_ENTRY_TYPE = 'mxl.user_timing.entry_type';\nexport const KEY_MXL_USER_TIMING_DETAIL = 'mxl.user_timing.detail';\n"],"mappings":";AAAA,MAAa,yBAAyB;AAEtC,MAAa,2BAA2B;AACxC,MAAa,iCAAiC;AAC9C,MAAa,+BAA+B;AAC5C,MAAa,iCAAiC;AAC9C,MAAa,6BAA6B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_user_timing_UserTimingInstrumentation_UserTimingInstrumentation = require("./UserTimingInstrumentation.cjs");
|
|
3
|
+
exports.UserTimingInstrumentation = require_instrumentations_user_timing_UserTimingInstrumentation_UserTimingInstrumentation.UserTimingInstrumentation;
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MXLInstrumentationBaseArgs } from "../../MXLInstrumentationBase/types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts
|
|
4
|
+
type UserTimingEntryFilter = string[] | ((entry: PerformanceMark | PerformanceMeasure) => boolean);
|
|
5
|
+
type UserTimingInstrumentationArgs = Pick<MXLInstrumentationBaseArgs, 'diag' | 'perf' | 'limitManager'> & {
|
|
6
|
+
/**
|
|
7
|
+
* Allowlist filter for mark and measure entries.
|
|
8
|
+
*
|
|
9
|
+
* - `string[]` — only entries whose name appears in the list are captured.
|
|
10
|
+
* - `(entry) => boolean` — return `true` to capture the entry, `false` to ignore it.
|
|
11
|
+
*
|
|
12
|
+
* When omitted all entries are captured.
|
|
13
|
+
*/
|
|
14
|
+
allowedEntries?: UserTimingEntryFilter;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { UserTimingEntryFilter, UserTimingInstrumentationArgs };
|
|
18
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../../src/instrumentations/user-timing/UserTimingInstrumentation/types.ts"],"mappings":";;;KAEY,qBAAA,gBAEN,KAAA,EAAO,eAAA,GAAkB,kBAAA;AAAA,KAEnB,6BAAA,GAAgC,IAAA,CAC1C,0BAAA;EALU;;;;;;;;EAgBV,cAAA,GAAiB,qBAAA;AAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MXLInstrumentationBaseArgs } from "../../MXLInstrumentationBase/types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts
|
|
4
|
+
type UserTimingEntryFilter = string[] | ((entry: PerformanceMark | PerformanceMeasure) => boolean);
|
|
5
|
+
type UserTimingInstrumentationArgs = Pick<MXLInstrumentationBaseArgs, 'diag' | 'perf' | 'limitManager'> & {
|
|
6
|
+
/**
|
|
7
|
+
* Allowlist filter for mark and measure entries.
|
|
8
|
+
*
|
|
9
|
+
* - `string[]` — only entries whose name appears in the list are captured.
|
|
10
|
+
* - `(entry) => boolean` — return `true` to capture the entry, `false` to ignore it.
|
|
11
|
+
*
|
|
12
|
+
* When omitted all entries are captured.
|
|
13
|
+
*/
|
|
14
|
+
allowedEntries?: UserTimingEntryFilter;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { UserTimingEntryFilter, UserTimingInstrumentationArgs };
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/instrumentations/user-timing/UserTimingInstrumentation/types.ts"],"mappings":";;;KAEY,qBAAA,gBAEN,KAAA,EAAO,eAAA,GAAkB,kBAAA;AAAA,KAEnB,6BAAA,GAAgC,IAAA,CAC1C,0BAAA;EALU;;;;;;;;EAgBV,cAAA,GAAiB,qBAAA;AAAA"}
|
|
File without changes
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_user_timing_UserTimingInstrumentation_UserTimingInstrumentation = require("./UserTimingInstrumentation/UserTimingInstrumentation.cjs");
|
|
3
|
+
exports.UserTimingInstrumentation = require_instrumentations_user_timing_UserTimingInstrumentation_UserTimingInstrumentation.UserTimingInstrumentation;
|
package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs
CHANGED
|
@@ -1,104 +1,76 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
3
|
-
const require_constants_attributes = require(
|
|
4
|
-
const require_api_page_pageAPI = require(
|
|
5
|
-
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require(
|
|
6
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_constants_attributes = require("../../../constants/attributes.cjs");
|
|
4
|
+
const require_api_page_pageAPI = require("../../../api-page/pageAPI.cjs");
|
|
5
|
+
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require("../../MXLInstrumentationBase/MXLInstrumentationBase.cjs");
|
|
6
|
+
const require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes = require("./attributes.cjs");
|
|
7
|
+
const require_instrumentations_web_vitals_WebVitalsInstrumentation_constants = require("./constants.cjs");
|
|
7
8
|
let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conventions");
|
|
8
|
-
|
|
9
9
|
//#region src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts
|
|
10
|
-
const
|
|
10
|
+
const isPrimitiveValue = (value) => {
|
|
11
|
+
const type = typeof value;
|
|
12
|
+
return type === "number" || type === "string" || type === "boolean";
|
|
13
|
+
};
|
|
14
|
+
const roundClamp = (value) => Math.round(Math.max(0, value));
|
|
15
|
+
const webVitalAttributionToReport = (metric) => {
|
|
11
16
|
const attributes = {};
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
key: "inputDelay",
|
|
39
|
-
value: attribution.inputDelay
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
key: "processingDuration",
|
|
43
|
-
value: attribution.processingDuration
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
key: "presentationDelay",
|
|
47
|
-
value: attribution.presentationDelay
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
key: "totalScriptDuration",
|
|
51
|
-
value: attribution.totalScriptDuration
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
key: "totalStyleAndLayoutDuration",
|
|
55
|
-
value: attribution.totalStyleAndLayoutDuration
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
key: "totalPaintDuration",
|
|
59
|
-
value: attribution.totalPaintDuration
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
key: "totalUnattributedDuration",
|
|
63
|
-
value: attribution.totalUnattributedDuration
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
key: "loadState",
|
|
67
|
-
value: attribution.loadState
|
|
68
|
-
}
|
|
69
|
-
]);
|
|
70
|
-
} else if (name === "LCP") {
|
|
71
|
-
const attribution = metric.attribution;
|
|
72
|
-
toReport.push(...[
|
|
73
|
-
{
|
|
74
|
-
key: "target",
|
|
75
|
-
value: attribution.target
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
key: "url",
|
|
79
|
-
value: attribution.url
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
key: "timeToFirstByte",
|
|
83
|
-
value: attribution.timeToFirstByte
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
key: "resourceLoadDelay",
|
|
87
|
-
value: attribution.resourceLoadDelay
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
key: "resourceLoadDuration",
|
|
91
|
-
value: attribution.resourceLoadDuration
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
key: "elementRenderDelay",
|
|
95
|
-
value: attribution.elementRenderDelay
|
|
17
|
+
const attribution = metric.attribution;
|
|
18
|
+
if (!attribution || typeof attribution !== "object") return attributes;
|
|
19
|
+
for (const [key, value] of Object.entries(attribution)) if (isPrimitiveValue(value)) attributes[`${require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}${key}`] = value;
|
|
20
|
+
return attributes;
|
|
21
|
+
};
|
|
22
|
+
const loafScriptsAttribution = (metric, diag) => {
|
|
23
|
+
const attributes = {};
|
|
24
|
+
const attribution = metric.attribution;
|
|
25
|
+
try {
|
|
26
|
+
if (attribution.longAnimationFrameEntries.length > 0) {
|
|
27
|
+
const scripts = /* @__PURE__ */ new Map();
|
|
28
|
+
for (const entry of attribution.longAnimationFrameEntries) for (const script of entry.scripts) {
|
|
29
|
+
let url = script.sourceURL || "(inline)";
|
|
30
|
+
if (url.length > 2048) url = `${url.substring(0, require_instrumentations_web_vitals_WebVitalsInstrumentation_constants.MAX_LOAF_SCRIPT_URL_LENGTH)}...`;
|
|
31
|
+
const existing = scripts.get(url);
|
|
32
|
+
if (existing) {
|
|
33
|
+
existing.totalDuration += script.duration;
|
|
34
|
+
existing.styleAndLayoutDuration += script.forcedStyleAndLayoutDuration;
|
|
35
|
+
existing.count++;
|
|
36
|
+
} else scripts.set(url, {
|
|
37
|
+
totalDuration: script.duration,
|
|
38
|
+
styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,
|
|
39
|
+
count: 1
|
|
40
|
+
});
|
|
96
41
|
}
|
|
97
|
-
|
|
42
|
+
if (scripts.size > 0) attributes[`${require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}loaf_scripts`] = JSON.stringify(Object.fromEntries([...scripts].sort((a, b) => b[1].totalDuration - a[1].totalDuration).slice(0, 250).map(([url, script]) => [url, {
|
|
43
|
+
total_duration: Math.round(script.totalDuration),
|
|
44
|
+
style_and_layout_duration: Math.round(script.styleAndLayoutDuration),
|
|
45
|
+
count: script.count
|
|
46
|
+
}])));
|
|
47
|
+
}
|
|
48
|
+
} catch (e) {
|
|
49
|
+
diag.error("error building loaf scripts for INP", e);
|
|
98
50
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
51
|
+
return attributes;
|
|
52
|
+
};
|
|
53
|
+
const ttfbSubPartsAttribution = (metric, diag) => {
|
|
54
|
+
const attributes = {};
|
|
55
|
+
const entry = metric.attribution.navigationEntry;
|
|
56
|
+
if (entry) try {
|
|
57
|
+
const redirect = roundClamp(entry.redirectEnd - entry.redirectStart);
|
|
58
|
+
const domainLookup = roundClamp(entry.domainLookupEnd - entry.domainLookupStart);
|
|
59
|
+
const tcpConnection = roundClamp(entry.secureConnectionStart > 0 ? entry.secureConnectionStart - entry.connectStart : entry.connectEnd - entry.connectStart);
|
|
60
|
+
const tlsNegotiation = roundClamp(entry.secureConnectionStart > 0 ? entry.connectEnd - entry.secureConnectionStart : 0);
|
|
61
|
+
const serverResponse = roundClamp(Math.max(entry.finalResponseHeadersStart ?? 0, entry.responseStart) - entry.requestStart);
|
|
62
|
+
const unattributed = roundClamp(Math.round(entry.responseEnd - entry.startTime) - redirect - domainLookup - tcpConnection - tlsNegotiation - serverResponse);
|
|
63
|
+
const prefix = require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX;
|
|
64
|
+
attributes[`${prefix}redirect`] = redirect;
|
|
65
|
+
attributes[`${prefix}domainLookup`] = domainLookup;
|
|
66
|
+
attributes[`${prefix}tcpConnection`] = tcpConnection;
|
|
67
|
+
attributes[`${prefix}tlsNegotiation`] = tlsNegotiation;
|
|
68
|
+
attributes[`${prefix}serverResponse`] = serverResponse;
|
|
69
|
+
attributes[`${prefix}unattributed`] = unattributed;
|
|
70
|
+
} catch (e) {
|
|
71
|
+
diag.error("error computing TTFB timing breakdown", e);
|
|
72
|
+
}
|
|
73
|
+
else diag.debug("TTFB navigationEntry unavailable, skipping timing breakdown");
|
|
102
74
|
return attributes;
|
|
103
75
|
};
|
|
104
76
|
var WebVitalsInstrumentation = class extends require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase.MXLInstrumentationBase {
|
|
@@ -149,16 +121,18 @@ var WebVitalsInstrumentation = class extends require_instrumentations_MXLInstrum
|
|
|
149
121
|
const metricTime = this._getTimeForMetric(metric);
|
|
150
122
|
const attributedPage = this._getAttributedPageForMetric(metric);
|
|
151
123
|
const attrs = {
|
|
152
|
-
[require_constants_attributes.KEY_MXL_TYPE]:
|
|
124
|
+
[require_constants_attributes.KEY_MXL_TYPE]: "ux.web_vital",
|
|
153
125
|
[_opentelemetry_semantic_conventions.ATTR_URL_FULL]: attributedPage.fullURL,
|
|
154
126
|
[require_constants_attributes.KEY_BROWSER_URL_FULL]: attributedPage.fullURL,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
...webVitalAttributionToReport(
|
|
127
|
+
[require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_NAVIGATION_TYPE]: metric.navigationType,
|
|
128
|
+
[require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_NAME]: metric.name,
|
|
129
|
+
[require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_RATING]: metric.rating,
|
|
130
|
+
[require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_ID]: metric.id,
|
|
131
|
+
[require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_DELTA]: metric.delta,
|
|
132
|
+
[require_instrumentations_web_vitals_WebVitalsInstrumentation_attributes.KEY_MXL_WEB_VITAL_VALUE]: metric.value,
|
|
133
|
+
...webVitalAttributionToReport(metric),
|
|
134
|
+
...name === "INP" ? loafScriptsAttribution(metric, this._diag) : {},
|
|
135
|
+
...name === "TTFB" ? ttfbSubPartsAttribution(metric, this._diag) : {}
|
|
162
136
|
};
|
|
163
137
|
if (attributedPage.path && attributedPage.pageID) {
|
|
164
138
|
attrs[require_constants_attributes.KEY_MXL_PAGE_PATH] = attributedPage.path;
|
|
@@ -216,7 +190,7 @@ var WebVitalsInstrumentation = class extends require_instrumentations_MXLInstrum
|
|
|
216
190
|
return this._currentAttributedPage();
|
|
217
191
|
}
|
|
218
192
|
};
|
|
219
|
-
|
|
220
193
|
//#endregion
|
|
221
194
|
exports.WebVitalsInstrumentation = WebVitalsInstrumentation;
|
|
195
|
+
|
|
222
196
|
//# sourceMappingURL=WebVitalsInstrumentation.cjs.map
|
package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebVitalsInstrumentation.cjs","names":["MXLInstrumentationBase","WEB_VITALS_ID_TO_LISTENER","page","KEY_MXL_TYPE","MXL_TYPES","ATTR_URL_FULL","KEY_BROWSER_URL_FULL","KEY_MXL_PAGE_PATH","KEY_MXL_PAGE_ID","KEY_APP_SURFACE_LABEL","MXL_WEB_VITALS_PREFIX"],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"sourcesContent":["import type { Attributes } from '@opentelemetry/api';\nimport { ATTR_URL_FULL } from '@opentelemetry/semantic-conventions';\nimport type {\n CLSAttribution,\n CLSMetricWithAttribution,\n INPAttribution,\n LCPAttribution,\n Metric,\n MetricWithAttribution,\n} from 'web-vitals/attribution';\nimport type { PageManager } from '../../../api-page/index.ts';\nimport { page } from '../../../api-page/index.ts';\nimport type { URLDocument } from '../../../common/index.ts';\nimport {\n KEY_APP_SURFACE_LABEL,\n KEY_MXL_PAGE_ID,\n KEY_MXL_PAGE_PATH,\n KEY_MXL_TYPE,\n KEY_BROWSER_URL_FULL,\n MXL_TYPES,\n} from '../../../constants/index.ts';\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport {\n ALL_WEB_VITALS,\n MXL_WEB_VITALS_PREFIX,\n WEB_VITALS_ID_TO_LISTENER,\n} from './constants.ts';\nimport type {\n WebVitalListeners,\n WebVitalsInstrumentationArgs,\n} from './types.ts';\n\ntype AttributedPage = {\n fullURL: string;\n path?: string;\n pageID?: string;\n label?: string;\n};\n\nconst webVitalAttributionToReport = (\n name: Metric['name'],\n metric: MetricWithAttribution,\n) => {\n const attributes: Attributes = {};\n const toReport: {\n key: string;\n value: string | boolean | number | undefined;\n }[] = [];\n\n if (name === 'CLS') {\n // https://www.npmjs.com/package/web-vitals#CLSAttribution\n const attribution = metric.attribution as CLSAttribution;\n toReport.push(\n ...[\n {\n key: 'largestShiftTarget',\n value: attribution.largestShiftTarget,\n },\n {\n key: 'largestShiftValue',\n value: attribution.largestShiftValue,\n },\n ],\n );\n } else if (name === 'INP') {\n // https://www.npmjs.com/package/web-vitals#inpattribution\n const attribution = metric.attribution as INPAttribution;\n toReport.push(\n ...[\n { key: 'interactionTarget', value: attribution.interactionTarget },\n { key: 'interactionType', value: attribution.interactionType },\n { key: 'nextPaintTime', value: attribution.nextPaintTime },\n { key: 'inputDelay', value: attribution.inputDelay },\n { key: 'processingDuration', value: attribution.processingDuration },\n { key: 'presentationDelay', value: attribution.presentationDelay },\n { key: 'totalScriptDuration', value: attribution.totalScriptDuration },\n {\n key: 'totalStyleAndLayoutDuration',\n value: attribution.totalStyleAndLayoutDuration,\n },\n { key: 'totalPaintDuration', value: attribution.totalPaintDuration },\n {\n key: 'totalUnattributedDuration',\n value: attribution.totalUnattributedDuration,\n },\n { key: 'loadState', value: attribution.loadState },\n ],\n );\n } else if (name === 'LCP') {\n // https://www.npmjs.com/package/web-vitals#lcpattribution\n const attribution = metric.attribution as LCPAttribution;\n toReport.push(\n ...[\n { key: 'target', value: attribution.target },\n { key: 'url', value: attribution.url },\n { key: 'timeToFirstByte', value: attribution.timeToFirstByte },\n { key: 'resourceLoadDelay', value: attribution.resourceLoadDelay },\n {\n key: 'resourceLoadDuration',\n value: attribution.resourceLoadDuration,\n },\n { key: 'elementRenderDelay', value: attribution.elementRenderDelay },\n ],\n );\n }\n\n toReport.forEach((report) => {\n if (report.value !== undefined) {\n attributes[`mxl.web_vital.attribution.${report.key}`] = report.value;\n }\n });\n\n return attributes;\n};\n\nexport class WebVitalsInstrumentation extends MXLInstrumentationBase {\n private readonly _listeners: WebVitalListeners;\n private readonly _urlDocument: URLDocument;\n private readonly _urlAttribution: boolean;\n private readonly _pageManager: PageManager;\n private readonly _attributedPage: Record<\n Metric['name'],\n AttributedPage | undefined\n > = {\n INP: undefined,\n LCP: undefined,\n CLS: undefined,\n FCP: undefined,\n TTFB: undefined,\n };\n private _largestShiftTargetForCLS: string | undefined;\n private _listenersRegistered = false;\n private _isEnabled = false;\n\n // instrumentation that adds an event to the session span for each web vital report\n public constructor({\n diag,\n perf,\n listeners = WEB_VITALS_ID_TO_LISTENER,\n urlDocument = window.document,\n urlAttribution = true,\n pageManager,\n }: WebVitalsInstrumentationArgs = {}) {\n super({\n instrumentationName: 'WebVitalsInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n this._listeners = listeners;\n this._urlDocument = urlDocument;\n this._urlAttribution = urlAttribution;\n this._pageManager = pageManager ?? page.getPageManager();\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public override disable(): void {\n // web-vitals library doesn't support removing listeners, so we just pause emission\n // https://github.com/GoogleChrome/web-vitals/issues/357#issuecomment-1593439036\n this._isEnabled = false;\n this._diag.debug('WebVitalsInstrumentation disabled, pausing emission');\n }\n\n public enable(): void {\n this._isEnabled = true;\n\n // web-vitals library doesn't support removing listeners, so only register once\n if (this._listenersRegistered) {\n this._diag.debug(\n 'WebVitalsInstrumentation listeners already registered, resuming emission',\n );\n return;\n }\n this._listenersRegistered = true;\n\n ALL_WEB_VITALS.forEach((name) => {\n this._listeners[name]?.((metric) => {\n if (!this._isEnabled) {\n return;\n }\n\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n\n if (!currentSessionSpan) {\n return;\n }\n\n // first thing record the time when this cb was invoked\n const metricTime = this._getTimeForMetric(metric);\n\n const attributedPage = this._getAttributedPageForMetric(metric);\n\n const attrs: Attributes = {\n [KEY_MXL_TYPE]: MXL_TYPES.WebVital,\n [ATTR_URL_FULL]: attributedPage.fullURL,\n [KEY_BROWSER_URL_FULL]: attributedPage.fullURL,\n 'mxl.web_vital.navigation_type': metric.navigationType,\n 'mxl.web_vital.name': metric.name,\n 'mxl.web_vital.rating': metric.rating,\n 'mxl.web_vital.id': metric.id,\n 'mxl.web_vital.delta': metric.delta,\n 'mxl.web_vital.value': metric.value,\n ...webVitalAttributionToReport(name, metric),\n };\n\n // Add page attributes if route and page ID exist\n if (attributedPage.path && attributedPage.pageID) {\n attrs[KEY_MXL_PAGE_PATH] = attributedPage.path;\n attrs[KEY_MXL_PAGE_ID] = attributedPage.pageID;\n }\n\n if (attributedPage.label) {\n attrs[KEY_APP_SURFACE_LABEL] = attributedPage.label;\n }\n\n currentSessionSpan.addEvent(\n `${MXL_WEB_VITALS_PREFIX}-report-${name}`,\n attrs,\n metricTime,\n );\n });\n });\n\n if (this._urlAttribution) {\n // When these web vitals make their final report (e.g. when the listeners w/ reportAllChanges=false trigger) the\n // document's URL at that time may not match what it was at the time the scores were last updated. Instead, listen\n // for updates to the scores and keep track of the Page information to attribute for each\n this._listeners.TTFB?.(\n () => {\n this._attributedPage.TTFB = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.FCP?.(\n () => {\n this._attributedPage.FCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.INP?.(\n () => {\n this._attributedPage.INP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.LCP?.(\n () => {\n this._attributedPage.LCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.CLS?.(\n (metric: MetricWithAttribution) => {\n const clsMetric = metric as CLSMetricWithAttribution;\n // A layout shift could cause CLS to change its rating but because the score is cumulative this might not\n // correspond with an updated `largestShiftTarget`. Since we want to tie the attributed URL to the page that\n // the `largestShiftTarget` was on we only update the attributed URL if that target has changed\n if (\n this._largestShiftTargetForCLS !==\n clsMetric.attribution.largestShiftTarget\n ) {\n this._largestShiftTargetForCLS =\n clsMetric.attribution.largestShiftTarget;\n this._attributedPage.CLS = this._currentAttributedPage();\n }\n },\n {\n reportAllChanges: true,\n },\n );\n }\n }\n\n private _getTimeForMetric(metric: MetricWithAttribution): number {\n if (metric.name === 'CLS' && metric.attribution.largestShiftTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.largestShiftTime,\n );\n }\n\n if (metric.name === 'INP' && metric.attribution.interactionTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.interactionTime,\n );\n }\n\n return this.perf.getNowMillis();\n }\n\n private _currentAttributedPage(): AttributedPage {\n const attributed: AttributedPage = {\n fullURL: this._urlDocument.URL,\n };\n\n const currentRoute = this._pageManager.getCurrentRoute();\n const currentPageId = this._pageManager.getCurrentPageId();\n if (currentRoute && currentPageId) {\n attributed.path = currentRoute.path;\n attributed.pageID = currentPageId;\n }\n\n const pageLabel = this._pageManager.getPageLabel();\n if (pageLabel) {\n attributed.label = pageLabel;\n }\n\n return attributed;\n }\n\n private _getAttributedPageForMetric(\n metric: MetricWithAttribution,\n ): AttributedPage {\n if (metric.name === 'FCP' && this._attributedPage.FCP) {\n return this._attributedPage.FCP;\n }\n\n if (metric.name === 'TTFB' && this._attributedPage.TTFB) {\n return this._attributedPage.TTFB;\n }\n\n if (metric.name === 'INP' && this._attributedPage.INP) {\n return this._attributedPage.INP;\n }\n\n if (metric.name === 'LCP' && this._attributedPage.LCP) {\n return this._attributedPage.LCP;\n }\n\n if (\n metric.name === 'CLS' &&\n this._attributedPage.CLS &&\n metric.attribution.largestShiftTarget === this._largestShiftTargetForCLS\n ) {\n return this._attributedPage.CLS;\n }\n\n return this._currentAttributedPage();\n }\n}\n"],"mappings":";;;;;;;;;AAuCA,MAAM,+BACJ,MACA,WACG;CACH,MAAM,aAAyB,EAAE;CACjC,MAAM,WAGA,EAAE;AAER,KAAI,SAAS,OAAO;EAElB,MAAM,cAAc,OAAO;AAC3B,WAAS,KACP,GAAG,CAC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,QACgB;AAChB,MAAI,OAAO,SAAS,SAAS,KAAK,gBAAgB,IAChD,QAAO,KAAK,gBAAgB;AAG9B,MAAI,OAAO,SAAS,UAAU,KAAK,gBAAgB,KACjD,QAAO,KAAK,gBAAgB;AAG9B,MAAI,OAAO,SAAS,SAAS,KAAK,gBAAgB,IAChD,QAAO,KAAK,gBAAgB;AAG9B,MAAI,OAAO,SAAS,SAAS,KAAK,gBAAgB,IAChD,QAAO,KAAK,gBAAgB;AAG9B,MACE,OAAO,SAAS,SAChB,KAAK,gBAAgB,OACrB,OAAO,YAAY,uBAAuB,KAAK,0BAE/C,QAAO,KAAK,gBAAgB;AAG9B,SAAO,KAAK,wBAAwB"}
|
|
1
|
+
{"version":3,"file":"WebVitalsInstrumentation.cjs","names":["KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX","MAX_LOAF_SCRIPT_URL_LENGTH","MXLInstrumentationBase","WEB_VITALS_ID_TO_LISTENER","page","KEY_MXL_TYPE","ATTR_URL_FULL","KEY_BROWSER_URL_FULL","KEY_MXL_WEB_VITAL_NAVIGATION_TYPE","KEY_MXL_WEB_VITAL_NAME","KEY_MXL_WEB_VITAL_RATING","KEY_MXL_WEB_VITAL_ID","KEY_MXL_WEB_VITAL_DELTA","KEY_MXL_WEB_VITAL_VALUE","KEY_MXL_PAGE_PATH","KEY_MXL_PAGE_ID","KEY_APP_SURFACE_LABEL","MXL_WEB_VITALS_PREFIX"],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"sourcesContent":["import type {\n Attributes,\n AttributeValue,\n DiagLogger,\n} from '@opentelemetry/api';\nimport { ATTR_URL_FULL } from '@opentelemetry/semantic-conventions';\nimport type {\n CLSMetricWithAttribution,\n INPAttribution,\n Metric,\n MetricWithAttribution,\n TTFBAttribution,\n} from 'web-vitals/attribution';\nimport type { PageManager } from '../../../api-page/index.ts';\nimport { page } from '../../../api-page/index.ts';\nimport type { URLDocument } from '../../../common/index.ts';\nimport {\n MXL_TYPES,\n KEY_APP_SURFACE_LABEL,\n KEY_BROWSER_URL_FULL,\n KEY_MXL_PAGE_ID,\n KEY_MXL_PAGE_PATH,\n KEY_MXL_TYPE,\n} from '../../../constants/index.ts';\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport {\n KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX,\n KEY_MXL_WEB_VITAL_DELTA,\n KEY_MXL_WEB_VITAL_ID,\n KEY_MXL_WEB_VITAL_NAME,\n KEY_MXL_WEB_VITAL_NAVIGATION_TYPE,\n KEY_MXL_WEB_VITAL_RATING,\n KEY_MXL_WEB_VITAL_VALUE,\n} from './attributes.ts';\nimport {\n ALL_WEB_VITALS,\n MXL_WEB_VITALS_PREFIX,\n MAX_LOAF_SCRIPT_ENTRIES,\n MAX_LOAF_SCRIPT_URL_LENGTH,\n WEB_VITALS_ID_TO_LISTENER,\n} from './constants.ts';\nimport type {\n WebVitalListeners,\n WebVitalsInstrumentationArgs,\n} from './types.ts';\n\ntype AttributedPage = {\n fullURL: string;\n path?: string;\n pageID?: string;\n label?: string;\n};\n\nconst isPrimitiveValue = (value: unknown): value is AttributeValue => {\n const type = typeof value;\n return type === 'number' || type === 'string' || type === 'boolean';\n};\n\nconst roundClamp = (value: number): number => Math.round(Math.max(0, value));\n\nconst webVitalAttributionToReport = (\n metric: MetricWithAttribution,\n): Attributes => {\n const attributes: Attributes = {};\n const attribution = metric.attribution;\n\n if (!attribution || typeof attribution !== 'object') {\n return attributes;\n }\n\n for (const [key, value] of Object.entries(attribution)) {\n if (isPrimitiveValue(value)) {\n attributes[`${KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}${key}`] = value;\n }\n }\n\n return attributes;\n};\n\nconst loafScriptsAttribution = (\n metric: MetricWithAttribution,\n diag: DiagLogger,\n): Attributes => {\n const attributes: Attributes = {};\n const attribution = metric.attribution as INPAttribution;\n\n try {\n // suppress LoAF baseline errors\n /* eslint-disable baseline-js/use-baseline */\n if (attribution.longAnimationFrameEntries.length > 0) {\n const scripts = new Map<\n string,\n {\n totalDuration: number;\n styleAndLayoutDuration: number;\n count: number;\n }\n >();\n for (const entry of attribution.longAnimationFrameEntries) {\n for (const script of entry.scripts) {\n let url = script.sourceURL || '(inline)';\n if (url.length > MAX_LOAF_SCRIPT_URL_LENGTH) {\n url = `${url.substring(0, MAX_LOAF_SCRIPT_URL_LENGTH)}...`;\n }\n const existing = scripts.get(url);\n if (existing) {\n existing.totalDuration += script.duration;\n existing.styleAndLayoutDuration +=\n script.forcedStyleAndLayoutDuration;\n existing.count++;\n } else {\n scripts.set(url, {\n totalDuration: script.duration,\n styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,\n count: 1,\n });\n }\n }\n }\n if (scripts.size > 0) {\n attributes[`${KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}loaf_scripts`] =\n JSON.stringify(\n Object.fromEntries(\n [...scripts]\n .sort((a, b) => b[1].totalDuration - a[1].totalDuration)\n .slice(0, MAX_LOAF_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 );\n }\n }\n /* eslint-enable baseline-js/use-baseline */\n } catch (e) {\n diag.error('error building loaf scripts for INP', e);\n }\n\n return attributes;\n};\n\nconst ttfbSubPartsAttribution = (\n metric: MetricWithAttribution,\n diag: DiagLogger,\n): Attributes => {\n const attributes: Attributes = {};\n const attribution = metric.attribution as TTFBAttribution;\n const entry = attribution.navigationEntry as\n | PerformanceNavigationTiming\n | undefined;\n\n if (entry) {\n try {\n const redirect = roundClamp(entry.redirectEnd - entry.redirectStart);\n const domainLookup = roundClamp(\n entry.domainLookupEnd - entry.domainLookupStart,\n );\n const tcpConnection = roundClamp(\n entry.secureConnectionStart > 0\n ? entry.secureConnectionStart - entry.connectStart\n : entry.connectEnd - entry.connectStart,\n );\n const tlsNegotiation = roundClamp(\n entry.secureConnectionStart > 0\n ? entry.connectEnd - entry.secureConnectionStart\n : 0,\n );\n const effectiveResponseStart = Math.max(\n // @ts-expect-error 103 Early hints are not supported in all browsers\n // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart\n entry.finalResponseHeadersStart ?? 0,\n entry.responseStart,\n );\n const serverResponse = roundClamp(\n effectiveResponseStart - entry.requestStart,\n );\n const total = Math.round(entry.responseEnd - entry.startTime);\n const unattributed = roundClamp(\n total -\n redirect -\n domainLookup -\n tcpConnection -\n tlsNegotiation -\n serverResponse,\n );\n const prefix = KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX;\n attributes[`${prefix}redirect`] = redirect;\n attributes[`${prefix}domainLookup`] = domainLookup;\n attributes[`${prefix}tcpConnection`] = tcpConnection;\n attributes[`${prefix}tlsNegotiation`] = tlsNegotiation;\n attributes[`${prefix}serverResponse`] = serverResponse;\n attributes[`${prefix}unattributed`] = unattributed;\n } catch (e) {\n diag.error('error computing TTFB timing breakdown', e);\n }\n } else {\n diag.debug('TTFB navigationEntry unavailable, skipping timing breakdown');\n }\n\n return attributes;\n};\n\nexport class WebVitalsInstrumentation extends MXLInstrumentationBase {\n private readonly _listeners: WebVitalListeners;\n private readonly _urlDocument: URLDocument;\n private readonly _urlAttribution: boolean;\n private readonly _pageManager: PageManager;\n private readonly _attributedPage: Record<\n Metric['name'],\n AttributedPage | undefined\n > = {\n INP: undefined,\n LCP: undefined,\n CLS: undefined,\n FCP: undefined,\n TTFB: undefined,\n };\n private _largestShiftTargetForCLS: string | undefined;\n private _listenersRegistered = false;\n private _isEnabled = false;\n\n // instrumentation that adds an event to the session span for each web vital report\n public constructor({\n diag,\n perf,\n listeners = WEB_VITALS_ID_TO_LISTENER,\n urlDocument = window.document,\n urlAttribution = true,\n pageManager,\n }: WebVitalsInstrumentationArgs = {}) {\n super({\n instrumentationName: 'WebVitalsInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n this._listeners = listeners;\n this._urlDocument = urlDocument;\n this._urlAttribution = urlAttribution;\n this._pageManager = pageManager ?? page.getPageManager();\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public override disable(): void {\n // web-vitals library doesn't support removing listeners, so we just pause emission\n // https://github.com/GoogleChrome/web-vitals/issues/357#issuecomment-1593439036\n this._isEnabled = false;\n this._diag.debug('WebVitalsInstrumentation disabled, pausing emission');\n }\n\n public enable(): void {\n this._isEnabled = true;\n\n // web-vitals library doesn't support removing listeners, so only register once\n if (this._listenersRegistered) {\n this._diag.debug(\n 'WebVitalsInstrumentation listeners already registered, resuming emission',\n );\n return;\n }\n this._listenersRegistered = true;\n\n ALL_WEB_VITALS.forEach((name) => {\n this._listeners[name]?.((metric) => {\n if (!this._isEnabled) {\n return;\n }\n\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n\n if (!currentSessionSpan) {\n return;\n }\n\n // first thing record the time when this cb was invoked\n const metricTime = this._getTimeForMetric(metric);\n\n const attributedPage = this._getAttributedPageForMetric(metric);\n\n const attrs: Attributes = {\n [KEY_MXL_TYPE]: MXL_TYPES.WebVital,\n [ATTR_URL_FULL]: attributedPage.fullURL,\n [KEY_BROWSER_URL_FULL]: attributedPage.fullURL,\n [KEY_MXL_WEB_VITAL_NAVIGATION_TYPE]: metric.navigationType,\n [KEY_MXL_WEB_VITAL_NAME]: metric.name,\n [KEY_MXL_WEB_VITAL_RATING]: metric.rating,\n [KEY_MXL_WEB_VITAL_ID]: metric.id,\n [KEY_MXL_WEB_VITAL_DELTA]: metric.delta,\n [KEY_MXL_WEB_VITAL_VALUE]: metric.value,\n ...webVitalAttributionToReport(metric),\n ...(name === 'INP' ? loafScriptsAttribution(metric, this._diag) : {}),\n ...(name === 'TTFB'\n ? ttfbSubPartsAttribution(metric, this._diag)\n : {}),\n };\n\n // Add page attributes if route and page ID exist\n if (attributedPage.path && attributedPage.pageID) {\n attrs[KEY_MXL_PAGE_PATH] = attributedPage.path;\n attrs[KEY_MXL_PAGE_ID] = attributedPage.pageID;\n }\n\n if (attributedPage.label) {\n attrs[KEY_APP_SURFACE_LABEL] = attributedPage.label;\n }\n\n currentSessionSpan.addEvent(\n `${MXL_WEB_VITALS_PREFIX}-report-${name}`,\n attrs,\n metricTime,\n );\n });\n });\n\n if (this._urlAttribution) {\n // When these web vitals make their final report (e.g. when the listeners w/ reportAllChanges=false trigger) the\n // document's URL at that time may not match what it was at the time the scores were last updated. Instead, listen\n // for updates to the scores and keep track of the Page information to attribute for each\n this._listeners.TTFB?.(\n () => {\n this._attributedPage.TTFB = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.FCP?.(\n () => {\n this._attributedPage.FCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.INP?.(\n () => {\n this._attributedPage.INP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.LCP?.(\n () => {\n this._attributedPage.LCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.CLS?.(\n (metric: MetricWithAttribution) => {\n const clsMetric = metric as CLSMetricWithAttribution;\n // A layout shift could cause CLS to change its rating but because the score is cumulative this might not\n // correspond with an updated `largestShiftTarget`. Since we want to tie the attributed URL to the page that\n // the `largestShiftTarget` was on we only update the attributed URL if that target has changed\n if (\n this._largestShiftTargetForCLS !==\n clsMetric.attribution.largestShiftTarget\n ) {\n this._largestShiftTargetForCLS =\n clsMetric.attribution.largestShiftTarget;\n this._attributedPage.CLS = this._currentAttributedPage();\n }\n },\n {\n reportAllChanges: true,\n },\n );\n }\n }\n\n private _getTimeForMetric(metric: MetricWithAttribution): number {\n if (metric.name === 'CLS' && metric.attribution.largestShiftTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.largestShiftTime,\n );\n }\n\n if (metric.name === 'INP' && metric.attribution.interactionTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.interactionTime,\n );\n }\n\n return this.perf.getNowMillis();\n }\n\n private _currentAttributedPage(): AttributedPage {\n const attributed: AttributedPage = {\n fullURL: this._urlDocument.URL,\n };\n\n const currentRoute = this._pageManager.getCurrentRoute();\n const currentPageId = this._pageManager.getCurrentPageId();\n if (currentRoute && currentPageId) {\n attributed.path = currentRoute.path;\n attributed.pageID = currentPageId;\n }\n\n const pageLabel = this._pageManager.getPageLabel();\n if (pageLabel) {\n attributed.label = pageLabel;\n }\n\n return attributed;\n }\n\n private _getAttributedPageForMetric(\n metric: MetricWithAttribution,\n ): AttributedPage {\n if (metric.name === 'FCP' && this._attributedPage.FCP) {\n return this._attributedPage.FCP;\n }\n\n if (metric.name === 'TTFB' && this._attributedPage.TTFB) {\n return this._attributedPage.TTFB;\n }\n\n if (metric.name === 'INP' && this._attributedPage.INP) {\n return this._attributedPage.INP;\n }\n\n if (metric.name === 'LCP' && this._attributedPage.LCP) {\n return this._attributedPage.LCP;\n }\n\n if (\n metric.name === 'CLS' &&\n this._attributedPage.CLS &&\n metric.attribution.largestShiftTarget === this._largestShiftTargetForCLS\n ) {\n return this._attributedPage.CLS;\n }\n\n return this._currentAttributedPage();\n }\n}\n"],"mappings":";;;;;;;;;AAqDA,MAAM,oBAAoB,UAA4C;CACpE,MAAM,OAAO,OAAO;AACpB,QAAO,SAAS,YAAY,SAAS,YAAY,SAAS;;AAG5D,MAAM,cAAc,UAA0B,KAAK,MAAM,KAAK,IAAI,GAAG,MAAM,CAAC;AAE5E,MAAM,+BACJ,WACe;CACf,MAAM,aAAyB,EAAE;CACjC,MAAM,cAAc,OAAO;AAE3B,KAAI,CAAC,eAAe,OAAO,gBAAgB,SACzC,QAAO;AAGT,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,YAAY,CACpD,KAAI,iBAAiB,MAAM,CACzB,YAAW,GAAGA,wEAAAA,uCAAuC,SAAS;AAIlE,QAAO;;AAGT,MAAM,0BACJ,QACA,SACe;CACf,MAAM,a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ACrB,OAAO,YAAY,uBAAuB,KAAK,0BAE/C,QAAO,KAAK,gBAAgB;AAG9B,SAAO,KAAK,wBAAwB"}
|
package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebVitalsInstrumentation.d.cts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"WebVitalsInstrumentation.d.cts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"mappings":";;;;cAiNa,wBAAA,SAAiC,sBAAA;EAAA,iBAC3B,UAAA;EAAA,iBACA,YAAA;EAAA,iBACA,eAAA;EAAA,iBACA,YAAA;EAAA,iBACA,eAAA;EAAA,QAUT,yBAAA;EAAA,QACA,oBAAA;EAAA,QACA,UAAA;;IAIN,IAAA;IACA,IAAA;IACA,SAAA;IACA,WAAA;IACA,cAAA;IACA;EAAA,IACC,4BAAA;EAkBa,OAAA,CAAA;EAOT,MAAA,CAAA;EAAA,QA0HC,iBAAA;EAAA,QAgBA,sBAAA;EAAA,QAoBA,2BAAA;AAAA"}
|
package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.js";
|
|
2
|
-
import "../../MXLInstrumentationBase/index.js";
|
|
3
2
|
import { WebVitalsInstrumentationArgs } from "./types.js";
|
|
4
3
|
|
|
5
4
|
//#region src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts
|
package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebVitalsInstrumentation.d.ts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"WebVitalsInstrumentation.d.ts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"mappings":";;;;cAiNa,wBAAA,SAAiC,sBAAA;EAAA,iBAC3B,UAAA;EAAA,iBACA,YAAA;EAAA,iBACA,eAAA;EAAA,iBACA,YAAA;EAAA,iBACA,eAAA;EAAA,QAUT,yBAAA;EAAA,QACA,oBAAA;EAAA,QACA,UAAA;;IAIN,IAAA;IACA,IAAA;IACA,SAAA;IACA,WAAA;IACA,cAAA;IACA;EAAA,IACC,4BAAA;EAkBa,OAAA,CAAA;EAOT,MAAA,CAAA;EAAA,QA0HC,iBAAA;EAAA,QAgBA,sBAAA;EAAA,QAoBA,2BAAA;AAAA"}
|