@safaricom-mxl/web-sdk 0.0.25 → 0.1.1
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 +9 -11
- package/NEXTJS.md +2 -2
- package/README.md +44 -19
- package/TANSTACK.md +2 -1
- package/UPGRADING.md +59 -0
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.cjs +37 -1
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.cjs.map +1 -1
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.d.cts +8 -3
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.d.cts.map +1 -1
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.d.ts +8 -3
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.d.ts.map +1 -1
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.js +34 -0
- package/dist/api-analytics/manager/ProxyAnalyticsManager/ProxyAnalyticsManager.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs +2 -0
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts +3 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts +3 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js +2 -0
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs +6 -0
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts +3 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts +3 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js +6 -0
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js.map +1 -1
- package/dist/api-logs/manager/types.d.cts +10 -1
- package/dist/api-logs/manager/types.d.cts.map +1 -1
- package/dist/api-logs/manager/types.d.ts +10 -1
- package/dist/api-logs/manager/types.d.ts.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs +3 -0
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.d.cts +1 -0
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.d.cts.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.d.ts +1 -0
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.d.ts.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js +3 -0
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs +3 -0
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.d.cts +1 -0
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.d.cts.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.d.ts +1 -0
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.d.ts.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js +3 -0
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js.map +1 -1
- package/dist/api-page/manager/types.d.cts +1 -0
- package/dist/api-page/manager/types.d.cts.map +1 -1
- package/dist/api-page/manager/types.d.ts +1 -0
- package/dist/api-page/manager/types.d.ts.map +1 -1
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs +13 -2
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts +11 -5
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts.map +1 -1
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts +11 -5
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js +13 -2
- package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs +19 -4
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts +11 -5
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts.map +1 -1
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts +11 -5
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js +19 -4
- package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/types.d.cts +7 -4
- package/dist/api-sessions/manager/types.d.cts.map +1 -1
- package/dist/api-sessions/manager/types.d.ts +7 -4
- package/dist/api-sessions/manager/types.d.ts.map +1 -1
- package/dist/api-traces/api/TraceAPI/types.d.cts +1 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts +1 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs +23 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.d.cts +4 -0
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.d.cts.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.d.ts +4 -0
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.d.ts.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js +20 -0
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js.map +1 -1
- package/dist/common/types.d.cts +20 -1
- package/dist/common/types.d.cts.map +1 -1
- package/dist/common/types.d.ts +20 -1
- package/dist/common/types.d.ts.map +1 -1
- package/dist/constants/attributes.cjs +9 -0
- package/dist/constants/attributes.cjs.map +1 -1
- package/dist/constants/attributes.d.cts +8 -2
- package/dist/constants/attributes.d.cts.map +1 -1
- package/dist/constants/attributes.d.ts +8 -2
- package/dist/constants/attributes.d.ts.map +1 -1
- package/dist/constants/attributes.js +6 -1
- package/dist/constants/attributes.js.map +1 -1
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs +3 -4
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/MXLLogExporter.d.cts +2 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.d.cts.map +1 -1
- package/dist/exporters/MXLLogExporter/MXLLogExporter.d.ts +2 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.d.ts.map +1 -1
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js +3 -4
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js.map +1 -1
- package/dist/exporters/MXLLogExporter/types.d.cts +3 -2
- package/dist/exporters/MXLLogExporter/types.d.cts.map +1 -1
- package/dist/exporters/MXLLogExporter/types.d.ts +3 -2
- package/dist/exporters/MXLLogExporter/types.d.ts.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs +3 -4
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.d.cts +2 -2
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.d.cts.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.d.ts +2 -2
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.d.ts.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js +3 -4
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.cts +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/types.d.cts +3 -2
- package/dist/exporters/MXLTraceExporter/types.d.cts.map +1 -1
- package/dist/exporters/MXLTraceExporter/types.d.ts +3 -2
- package/dist/exporters/MXLTraceExporter/types.d.ts.map +1 -1
- package/dist/exporters/createBrowserExporterMetrics.cjs.map +1 -1
- package/dist/exporters/createBrowserExporterMetrics.d.cts.map +1 -1
- package/dist/exporters/createBrowserExporterMetrics.d.ts.map +1 -1
- package/dist/exporters/createBrowserExporterMetrics.js.map +1 -1
- package/dist/exporters/utils.cjs +2 -4
- package/dist/exporters/utils.cjs.map +1 -1
- package/dist/exporters/utils.d.cts +2 -3
- package/dist/exporters/utils.d.cts.map +1 -1
- package/dist/exporters/utils.d.ts +2 -3
- package/dist/exporters/utils.d.ts.map +1 -1
- package/dist/exporters/utils.js +3 -4
- package/dist/exporters/utils.js.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.d.cts +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +30 -0
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +15 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +15 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +30 -0
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +2 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.cts +3 -3
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts +3 -3
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +2 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +79 -51
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.cts +20 -9
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts +20 -9
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +80 -52
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +13 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.d.cts +17 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.d.ts +17 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +13 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +3 -6
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts +3 -4
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts +3 -4
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +3 -6
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +2 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.cts +3 -3
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts +3 -3
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +2 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +2 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.cts +3 -3
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts +3 -3
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +2 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.cjs +113 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.d.cts +23 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.d.ts +23 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.js +111 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/FirstInteractionInstrumentation.js.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.cjs +19 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.d.cts +12 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.d.ts +12 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.js +12 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/types.d.cts +7 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/types.d.ts +7 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/first-interaction/FirstInteractionInstrumentation/types.js +0 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +5 -22
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +3 -8
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +3 -8
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +5 -22
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -1
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.cjs +88 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.d.cts +21 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.d.ts +21 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.js +86 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/MaxScrollDepthInstrumentation.js.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.cjs +15 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.d.cts +9 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.d.ts +9 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.js +10 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/types.d.cts +7 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/types.d.ts +7 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/max-scroll-depth/MaxScrollDepthInstrumentation/types.js +0 -0
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +18 -7
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.cts +2 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts +2 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +18 -7
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/types.d.cts +0 -3
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/types.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/types.d.ts +0 -3
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/types.d.ts.map +1 -1
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.cjs +88 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.d.cts +19 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.d.ts +19 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.js +86 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/RageClickInstrumentation.js.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.cjs +25 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.d.cts +15 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.d.ts +15 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.js +15 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/types.d.cts +7 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/types.d.ts +7 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/rage-click/RageClickInstrumentation/types.js +0 -0
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs +28 -17
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts +5 -4
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts +5 -4
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js +28 -17
- package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js.map +1 -1
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts +20 -6
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts +20 -6
- package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.cts +1 -1
- package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.ts +1 -1
- package/dist/instrumentations/replay/events/capture/network.cjs.map +1 -1
- package/dist/instrumentations/replay/events/capture/network.js.map +1 -1
- package/dist/instrumentations/replay/events/startEventCapture.cjs +10 -7
- package/dist/instrumentations/replay/events/startEventCapture.cjs.map +1 -1
- package/dist/instrumentations/replay/events/startEventCapture.d.cts.map +1 -1
- package/dist/instrumentations/replay/events/startEventCapture.d.ts.map +1 -1
- package/dist/instrumentations/replay/events/startEventCapture.js +10 -7
- package/dist/instrumentations/replay/events/startEventCapture.js.map +1 -1
- package/dist/instrumentations/replay/recorder/startRecording.cjs +84 -29
- package/dist/instrumentations/replay/recorder/startRecording.cjs.map +1 -1
- package/dist/instrumentations/replay/recorder/startRecording.d.cts +1 -1
- package/dist/instrumentations/replay/recorder/startRecording.d.cts.map +1 -1
- package/dist/instrumentations/replay/recorder/startRecording.d.ts +1 -1
- package/dist/instrumentations/replay/recorder/startRecording.d.ts.map +1 -1
- package/dist/instrumentations/replay/recorder/startRecording.js +84 -29
- package/dist/instrumentations/replay/recorder/startRecording.js.map +1 -1
- package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.esm.cjs.map +1 -1
- package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.esm.d.cts.map +1 -1
- package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.esm.d.ts.map +1 -1
- package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.esm.js.map +1 -1
- package/dist/instrumentations/replay/session-recording/SessionRecording.cjs +36 -11
- package/dist/instrumentations/replay/session-recording/SessionRecording.cjs.map +1 -1
- package/dist/instrumentations/replay/session-recording/SessionRecording.d.cts +14 -13
- package/dist/instrumentations/replay/session-recording/SessionRecording.d.cts.map +1 -1
- package/dist/instrumentations/replay/session-recording/SessionRecording.d.ts +14 -13
- package/dist/instrumentations/replay/session-recording/SessionRecording.d.ts.map +1 -1
- package/dist/instrumentations/replay/session-recording/SessionRecording.js +36 -11
- package/dist/instrumentations/replay/session-recording/SessionRecording.js.map +1 -1
- package/dist/instrumentations/replay/session-recording/chunkSeq.cjs.map +1 -1
- package/dist/instrumentations/replay/session-recording/chunkSeq.d.cts.map +1 -1
- package/dist/instrumentations/replay/session-recording/chunkSeq.d.ts.map +1 -1
- package/dist/instrumentations/replay/session-recording/chunkSeq.js.map +1 -1
- package/dist/instrumentations/replay/session-recording/config.cjs +5 -4
- package/dist/instrumentations/replay/session-recording/config.cjs.map +1 -1
- package/dist/instrumentations/replay/session-recording/config.d.cts +8 -7
- package/dist/instrumentations/replay/session-recording/config.d.cts.map +1 -1
- package/dist/instrumentations/replay/session-recording/config.d.ts +8 -7
- package/dist/instrumentations/replay/session-recording/config.d.ts.map +1 -1
- package/dist/instrumentations/replay/session-recording/config.js +5 -4
- package/dist/instrumentations/replay/session-recording/config.js.map +1 -1
- package/dist/instrumentations/replay/session-recording/lifecycle.cjs +14 -5
- package/dist/instrumentations/replay/session-recording/lifecycle.cjs.map +1 -1
- package/dist/instrumentations/replay/session-recording/lifecycle.d.cts +7 -3
- package/dist/instrumentations/replay/session-recording/lifecycle.d.cts.map +1 -1
- package/dist/instrumentations/replay/session-recording/lifecycle.d.ts +7 -3
- package/dist/instrumentations/replay/session-recording/lifecycle.d.ts.map +1 -1
- package/dist/instrumentations/replay/session-recording/lifecycle.js +14 -6
- package/dist/instrumentations/replay/session-recording/lifecycle.js.map +1 -1
- package/dist/instrumentations/replay/transport/gzip.cjs +14 -6
- package/dist/instrumentations/replay/transport/gzip.cjs.map +1 -1
- package/dist/instrumentations/replay/transport/gzip.d.cts +6 -4
- package/dist/instrumentations/replay/transport/gzip.d.cts.map +1 -1
- package/dist/instrumentations/replay/transport/gzip.d.ts +6 -4
- package/dist/instrumentations/replay/transport/gzip.d.ts.map +1 -1
- package/dist/instrumentations/replay/transport/gzip.js +14 -6
- package/dist/instrumentations/replay/transport/gzip.js.map +1 -1
- package/dist/instrumentations/replay/transport/idleFlushTimer.cjs +33 -0
- package/dist/instrumentations/replay/transport/idleFlushTimer.cjs.map +1 -0
- package/dist/instrumentations/replay/transport/idleFlushTimer.d.cts +10 -0
- package/dist/instrumentations/replay/transport/idleFlushTimer.d.cts.map +1 -0
- package/dist/instrumentations/replay/transport/idleFlushTimer.d.ts +10 -0
- package/dist/instrumentations/replay/transport/idleFlushTimer.d.ts.map +1 -0
- package/dist/instrumentations/replay/transport/idleFlushTimer.js +32 -0
- package/dist/instrumentations/replay/transport/idleFlushTimer.js.map +1 -0
- package/dist/instrumentations/replay/transport/replayTransport.cjs +42 -70
- package/dist/instrumentations/replay/transport/replayTransport.cjs.map +1 -1
- package/dist/instrumentations/replay/transport/replayTransport.d.cts +1 -7
- package/dist/instrumentations/replay/transport/replayTransport.d.cts.map +1 -1
- package/dist/instrumentations/replay/transport/replayTransport.d.ts +1 -7
- package/dist/instrumentations/replay/transport/replayTransport.d.ts.map +1 -1
- package/dist/instrumentations/replay/transport/replayTransport.js +43 -70
- package/dist/instrumentations/replay/transport/replayTransport.js.map +1 -1
- package/dist/instrumentations/replay/transport/types.d.cts +12 -5
- package/dist/instrumentations/replay/transport/types.d.cts.map +1 -1
- package/dist/instrumentations/replay/transport/types.d.ts +12 -5
- package/dist/instrumentations/replay/transport/types.d.ts.map +1 -1
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +16 -15
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts +5 -4
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts +5 -4
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +16 -15
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/types.d.cts +1 -1
- package/dist/instrumentations/session/types.d.ts +1 -1
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.cjs +163 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.d.cts +41 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.d.ts +41 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.js +161 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.js.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.cjs +34 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.d.cts +20 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.d.ts +20 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.js +21 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/types.d.cts +18 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/types.d.ts +18 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/types.js +0 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +2 -6
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts +3 -4
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts +3 -4
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +2 -6
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +155 -86
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts +14 -6
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts +14 -6
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +158 -89
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs +16 -12
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs +13 -17
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts +13 -13
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts +13 -13
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js +12 -16
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +31 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +31 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.cjs +5 -5
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.cjs.map +1 -1
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.d.cts +2 -2
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.d.cts.map +1 -1
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.d.ts +2 -2
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.d.ts.map +1 -1
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.js +5 -5
- package/dist/managers/MXLAnalyticsManager/MXLAnalyticsManager.js.map +1 -1
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.cjs +2 -2
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.cjs.map +1 -1
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.d.cts +2 -2
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.d.cts.map +1 -1
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.d.ts +2 -2
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.d.ts.map +1 -1
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.js +2 -2
- package/dist/managers/MXLAnalyticsManager/sessionAnalyticsState.js.map +1 -1
- package/dist/managers/MXLAnalyticsManager/types.d.cts +2 -2
- package/dist/managers/MXLAnalyticsManager/types.d.cts.map +1 -1
- package/dist/managers/MXLAnalyticsManager/types.d.ts +2 -2
- package/dist/managers/MXLAnalyticsManager/types.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +7 -4
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts +3 -3
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts +3 -3
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +7 -4
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.cjs +4 -4
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.d.cts +6 -6
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.d.ts +6 -6
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.js +4 -4
- package/dist/managers/MXLConfigManager/resolveEffectiveReplayConfig.js.map +1 -1
- package/dist/managers/MXLConfigManager/types.d.cts +11 -4
- package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/types.d.ts +11 -4
- package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/utils.cjs +19 -5
- package/dist/managers/MXLConfigManager/utils.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/utils.d.cts +3 -5
- package/dist/managers/MXLConfigManager/utils.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/utils.d.ts +3 -5
- package/dist/managers/MXLConfigManager/utils.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/utils.js +20 -4
- package/dist/managers/MXLConfigManager/utils.js.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +5 -0
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts +2 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts +2 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.js +5 -0
- package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
- package/dist/managers/MXLLimitManager/constants.cjs +4 -3
- package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/constants.js +4 -3
- package/dist/managers/MXLLimitManager/constants.js.map +1 -1
- package/dist/managers/MXLLimitManager/types.d.cts +4 -2
- package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/types.d.ts +4 -2
- package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.cjs +57 -7
- package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.cts +10 -2
- package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts +10 -2
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.js +57 -7
- package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
- package/dist/managers/MXLLogManager/constants.cjs +13 -0
- package/dist/managers/MXLLogManager/constants.cjs.map +1 -0
- package/dist/managers/MXLLogManager/constants.d.cts +8 -0
- package/dist/managers/MXLLogManager/constants.d.cts.map +1 -0
- package/dist/managers/MXLLogManager/constants.d.ts +8 -0
- package/dist/managers/MXLLogManager/constants.d.ts.map +1 -0
- package/dist/managers/MXLLogManager/constants.js +9 -0
- package/dist/managers/MXLLogManager/constants.js.map +1 -0
- package/dist/managers/MXLLogManager/types.d.cts +5 -3
- package/dist/managers/MXLLogManager/types.d.cts.map +1 -1
- package/dist/managers/MXLLogManager/types.d.ts +5 -3
- package/dist/managers/MXLLogManager/types.d.ts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.cjs +45 -1
- package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.d.cts +13 -1
- package/dist/managers/MXLPageManager/MXLPageManager.d.cts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.d.ts +13 -1
- package/dist/managers/MXLPageManager/MXLPageManager.d.ts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.js +44 -1
- package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
- package/dist/managers/MXLPageManager/types.d.cts +18 -10
- package/dist/managers/MXLPageManager/types.d.cts.map +1 -1
- package/dist/managers/MXLPageManager/types.d.ts +18 -10
- package/dist/managers/MXLPageManager/types.d.ts.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.cjs +2 -2
- package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.d.cts +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.d.cts.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.d.ts +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.d.ts.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.js +2 -2
- package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
- package/dist/managers/MXLUserManager/profileSnapshot.cjs +5 -5
- package/dist/managers/MXLUserManager/profileSnapshot.cjs.map +1 -1
- package/dist/managers/MXLUserManager/profileSnapshot.d.cts.map +1 -1
- package/dist/managers/MXLUserManager/profileSnapshot.d.ts.map +1 -1
- package/dist/managers/MXLUserManager/profileSnapshot.js +5 -5
- package/dist/managers/MXLUserManager/profileSnapshot.js.map +1 -1
- package/dist/managers/MXLUserManager/types.cjs.map +1 -1
- package/dist/managers/MXLUserManager/types.d.cts +1 -1
- package/dist/managers/MXLUserManager/types.d.cts.map +1 -1
- package/dist/managers/MXLUserManager/types.d.ts +1 -1
- package/dist/managers/MXLUserManager/types.d.ts.map +1 -1
- package/dist/managers/MXLUserManager/types.js.map +1 -1
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs +137 -53
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs.map +1 -1
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts +32 -7
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts.map +1 -1
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts +32 -7
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts.map +1 -1
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js +137 -53
- package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js.map +1 -1
- package/dist/managers/MXLUserSessionManager/constants.cjs +11 -3
- package/dist/managers/MXLUserSessionManager/constants.cjs.map +1 -1
- package/dist/managers/MXLUserSessionManager/constants.d.cts +11 -4
- package/dist/managers/MXLUserSessionManager/constants.d.cts.map +1 -1
- package/dist/managers/MXLUserSessionManager/constants.d.ts +11 -4
- package/dist/managers/MXLUserSessionManager/constants.d.ts.map +1 -1
- package/dist/managers/MXLUserSessionManager/constants.js +9 -4
- package/dist/managers/MXLUserSessionManager/constants.js.map +1 -1
- package/dist/managers/MXLUserSessionManager/types.d.cts +62 -9
- package/dist/managers/MXLUserSessionManager/types.d.cts.map +1 -1
- package/dist/managers/MXLUserSessionManager/types.d.ts +62 -9
- package/dist/managers/MXLUserSessionManager/types.d.ts.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/activity.cjs +0 -2
- package/dist/managers/MXLUserSessionManager/utils/activity.cjs.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/activity.d.cts +1 -2
- package/dist/managers/MXLUserSessionManager/utils/activity.d.cts.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/activity.d.ts +1 -2
- package/dist/managers/MXLUserSessionManager/utils/activity.d.ts.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/activity.js +1 -2
- package/dist/managers/MXLUserSessionManager/utils/activity.js.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/state.cjs +36 -7
- package/dist/managers/MXLUserSessionManager/utils/state.cjs.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/state.d.cts +2 -0
- package/dist/managers/MXLUserSessionManager/utils/state.d.cts.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/state.d.ts +2 -0
- package/dist/managers/MXLUserSessionManager/utils/state.d.ts.map +1 -1
- package/dist/managers/MXLUserSessionManager/utils/state.js +36 -7
- package/dist/managers/MXLUserSessionManager/utils/state.js.map +1 -1
- package/dist/mxl-web-sdk.js +2 -2
- package/dist/mxl-web-sdk.js.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs +2 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.cts +3 -2
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.cts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.ts +3 -2
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.ts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js +2 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs +5 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.d.cts +3 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.d.cts.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.d.ts +3 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.d.ts.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js +6 -2
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/types.d.cts +2 -1
- package/dist/processors/MXLLogRecordProcessor/types.d.cts.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/types.d.ts +2 -1
- package/dist/processors/MXLLogRecordProcessor/types.d.ts.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs +2 -0
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.d.cts +2 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.d.cts.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.d.ts +2 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.d.ts.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js +2 -0
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.d.cts +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.d.ts +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs +3 -4
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts.map +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts.map +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js +1 -2
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js.map +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.cts +1 -1
- package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.ts +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs +2 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.d.cts +3 -2
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.d.cts.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.d.ts +3 -2
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.d.ts.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js +2 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.cjs +41 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.cjs.map +1 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.d.cts +21 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.d.cts.map +1 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.d.ts +21 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.d.ts.map +1 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.js +39 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/SignalCorrelationLogRecordProcessor.js.map +1 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/types.cjs +0 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/types.d.cts +9 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/types.d.cts.map +1 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/types.d.ts +9 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/types.d.ts.map +1 -0
- package/dist/processors/SignalCorrelationLogRecordProcessor/types.js +0 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.cjs +42 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.cjs.map +1 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.d.cts +22 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.d.cts.map +1 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.d.ts +22 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.d.ts.map +1 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.js +40 -0
- package/dist/processors/SignalCorrelationSpanProcessor/SignalCorrelationSpanProcessor.js.map +1 -0
- package/dist/processors/SignalCorrelationSpanProcessor/types.cjs +0 -0
- package/dist/processors/SignalCorrelationSpanProcessor/types.d.cts +9 -0
- package/dist/processors/SignalCorrelationSpanProcessor/types.d.cts.map +1 -0
- package/dist/processors/SignalCorrelationSpanProcessor/types.d.ts +9 -0
- package/dist/processors/SignalCorrelationSpanProcessor/types.d.ts.map +1 -0
- package/dist/processors/SignalCorrelationSpanProcessor/types.js +0 -0
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs +2 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.d.cts +3 -2
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.d.cts.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.d.ts +3 -2
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.d.ts.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js +2 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs +4 -5
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts.map +1 -1
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts.map +1 -1
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js +5 -6
- package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs +2 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.d.cts +3 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.d.cts.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.d.ts +3 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.d.ts.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js +2 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
- package/dist/processors/utils/SignalBuffer.cjs +44 -0
- package/dist/processors/utils/SignalBuffer.cjs.map +1 -0
- package/dist/processors/utils/SignalBuffer.d.cts +38 -0
- package/dist/processors/utils/SignalBuffer.d.cts.map +1 -0
- package/dist/processors/utils/SignalBuffer.d.ts +38 -0
- package/dist/processors/utils/SignalBuffer.d.ts.map +1 -0
- package/dist/processors/utils/SignalBuffer.js +43 -0
- package/dist/processors/utils/SignalBuffer.js.map +1 -0
- package/dist/resources/sdkConstants.cjs +1 -1
- package/dist/resources/sdkConstants.cjs.map +1 -1
- package/dist/resources/sdkConstants.d.cts +1 -1
- package/dist/resources/sdkConstants.d.ts +1 -1
- package/dist/resources/sdkConstants.js +1 -1
- package/dist/resources/sdkConstants.js.map +1 -1
- package/dist/resources/types.d.cts +9 -2
- package/dist/resources/types.d.cts.map +1 -1
- package/dist/resources/types.d.ts +9 -2
- package/dist/resources/types.d.ts.map +1 -1
- package/dist/resources/webSdkResource.cjs +23 -16
- package/dist/resources/webSdkResource.cjs.map +1 -1
- package/dist/resources/webSdkResource.d.cts +1 -1
- package/dist/resources/webSdkResource.d.cts.map +1 -1
- package/dist/resources/webSdkResource.d.ts +1 -1
- package/dist/resources/webSdkResource.d.ts.map +1 -1
- package/dist/resources/webSdkResource.js +23 -16
- package/dist/resources/webSdkResource.js.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.cjs +6 -0
- package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.d.cts +3 -1
- package/dist/sdk/defaultAttributeScrubbers.d.cts.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.d.ts +3 -1
- package/dist/sdk/defaultAttributeScrubbers.d.ts.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.js +6 -1
- package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
- package/dist/sdk/endpoints.cjs +15 -0
- package/dist/sdk/endpoints.cjs.map +1 -0
- package/dist/sdk/endpoints.d.cts +16 -0
- package/dist/sdk/endpoints.d.cts.map +1 -0
- package/dist/sdk/endpoints.d.ts +16 -0
- package/dist/sdk/endpoints.d.ts.map +1 -0
- package/dist/sdk/endpoints.js +12 -0
- package/dist/sdk/endpoints.js.map +1 -0
- package/dist/sdk/initSDK.cjs +94 -72
- package/dist/sdk/initSDK.cjs.map +1 -1
- package/dist/sdk/initSDK.d.cts +1 -33
- package/dist/sdk/initSDK.d.cts.map +1 -1
- package/dist/sdk/initSDK.d.ts +1 -33
- package/dist/sdk/initSDK.d.ts.map +1 -1
- package/dist/sdk/initSDK.js +98 -76
- package/dist/sdk/initSDK.js.map +1 -1
- package/dist/sdk/networkInstrumentationModules.cjs +16 -0
- package/dist/sdk/networkInstrumentationModules.d.cts +3 -0
- package/dist/sdk/networkInstrumentationModules.d.ts +3 -0
- package/dist/sdk/networkInstrumentationModules.js +3 -0
- package/dist/sdk/networkInstrumentations.cjs +35 -16
- package/dist/sdk/networkInstrumentations.cjs.map +1 -1
- package/dist/sdk/networkInstrumentations.d.cts +4 -6
- package/dist/sdk/networkInstrumentations.d.cts.map +1 -1
- package/dist/sdk/networkInstrumentations.d.ts +4 -6
- package/dist/sdk/networkInstrumentations.d.ts.map +1 -1
- package/dist/sdk/networkInstrumentations.js +35 -17
- package/dist/sdk/networkInstrumentations.js.map +1 -1
- package/dist/sdk/noopSessionRecording.cjs.map +1 -1
- package/dist/sdk/noopSessionRecording.js.map +1 -1
- package/dist/sdk/resolveInitConfig.cjs +80 -0
- package/dist/sdk/resolveInitConfig.cjs.map +1 -0
- package/dist/sdk/resolveInitConfig.d.cts +31 -0
- package/dist/sdk/resolveInitConfig.d.cts.map +1 -0
- package/dist/sdk/resolveInitConfig.d.ts +31 -0
- package/dist/sdk/resolveInitConfig.d.ts.map +1 -0
- package/dist/sdk/resolveInitConfig.js +79 -0
- package/dist/sdk/resolveInitConfig.js.map +1 -0
- package/dist/sdk/setupDefaultInstrumentations.cjs +15 -4
- package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.cts +3 -2
- package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.ts +3 -2
- package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.js +15 -4
- package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
- package/dist/sdk/types.d.cts +105 -80
- package/dist/sdk/types.d.cts.map +1 -1
- package/dist/sdk/types.d.ts +104 -79
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.cjs +6 -39
- package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.d.cts +1 -3
- package/dist/transport/FetchTransport/FetchTransport.d.cts.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.d.ts +1 -3
- package/dist/transport/FetchTransport/FetchTransport.d.ts.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.js +7 -39
- package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
- package/dist/transport/budgetedFetch.cjs +104 -0
- package/dist/transport/budgetedFetch.cjs.map +1 -0
- package/dist/transport/budgetedFetch.d.cts +22 -0
- package/dist/transport/budgetedFetch.d.cts.map +1 -0
- package/dist/transport/budgetedFetch.d.ts +22 -0
- package/dist/transport/budgetedFetch.d.ts.map +1 -0
- package/dist/transport/budgetedFetch.js +101 -0
- package/dist/transport/budgetedFetch.js.map +1 -0
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs +31 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts +14 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts +14 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js +30 -2
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
- package/dist/utils/PerformanceManager/types.d.cts +4 -0
- package/dist/utils/PerformanceManager/types.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/types.d.ts +4 -0
- package/dist/utils/PerformanceManager/types.d.ts.map +1 -1
- package/dist/utils/boundedQueue.cjs +15 -0
- package/dist/utils/boundedQueue.cjs.map +1 -0
- package/dist/utils/boundedQueue.d.cts +6 -0
- package/dist/utils/boundedQueue.d.cts.map +1 -0
- package/dist/utils/boundedQueue.d.ts +6 -0
- package/dist/utils/boundedQueue.d.ts.map +1 -0
- package/dist/utils/boundedQueue.js +13 -0
- package/dist/utils/boundedQueue.js.map +1 -0
- package/dist/utils/getBfcacheNotRestoredReasons.cjs +10 -0
- package/dist/utils/getBfcacheNotRestoredReasons.cjs.map +1 -0
- package/dist/utils/getBfcacheNotRestoredReasons.d.cts +7 -0
- package/dist/utils/getBfcacheNotRestoredReasons.d.cts.map +1 -0
- package/dist/utils/getBfcacheNotRestoredReasons.d.ts +7 -0
- package/dist/utils/getBfcacheNotRestoredReasons.d.ts.map +1 -0
- package/dist/utils/getBfcacheNotRestoredReasons.js +9 -0
- package/dist/utils/getBfcacheNotRestoredReasons.js.map +1 -0
- package/dist/utils/getNonBaselineNavigationTiming.cjs +7 -0
- package/dist/utils/getNonBaselineNavigationTiming.cjs.map +1 -0
- package/dist/utils/getNonBaselineNavigationTiming.d.cts +20 -0
- package/dist/utils/getNonBaselineNavigationTiming.d.cts.map +1 -0
- package/dist/utils/getNonBaselineNavigationTiming.d.ts +20 -0
- package/dist/utils/getNonBaselineNavigationTiming.d.ts.map +1 -0
- package/dist/utils/getNonBaselineNavigationTiming.js +6 -0
- package/dist/utils/getNonBaselineNavigationTiming.js.map +1 -0
- package/dist/utils/getSelector.cjs +33 -0
- package/dist/utils/getSelector.cjs.map +1 -0
- package/dist/utils/getSelector.d.cts +13 -0
- package/dist/utils/getSelector.d.cts.map +1 -0
- package/dist/utils/getSelector.d.ts +13 -0
- package/dist/utils/getSelector.d.ts.map +1 -0
- package/dist/utils/getSelector.js +32 -0
- package/dist/utils/getSelector.js.map +1 -0
- package/dist/utils/isTabEngaged.cjs +7 -0
- package/dist/utils/isTabEngaged.cjs.map +1 -0
- package/dist/utils/isTabEngaged.d.cts +7 -0
- package/dist/utils/isTabEngaged.d.cts.map +1 -0
- package/dist/utils/isTabEngaged.d.ts +7 -0
- package/dist/utils/isTabEngaged.d.ts.map +1 -0
- package/dist/utils/isTabEngaged.js +6 -0
- package/dist/utils/isTabEngaged.js.map +1 -0
- package/dist/utils/measureDocument.cjs +35 -0
- package/dist/utils/measureDocument.cjs.map +1 -0
- package/dist/utils/measureDocument.d.cts +34 -0
- package/dist/utils/measureDocument.d.cts.map +1 -0
- package/dist/utils/measureDocument.d.ts +34 -0
- package/dist/utils/measureDocument.d.ts.map +1 -0
- package/dist/utils/measureDocument.js +34 -0
- package/dist/utils/measureDocument.js.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.cjs +2 -2
- package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -1
- package/dist/utils/performanceObserver/performanceObserver.d.cts +2 -2
- package/dist/utils/performanceObserver/performanceObserver.d.ts +2 -2
- package/dist/utils/performanceObserver/performanceObserver.js +2 -2
- package/dist/utils/performanceObserver/performanceObserver.js.map +1 -1
- package/dist/utils/spanPredicates.cjs +11 -0
- package/dist/utils/spanPredicates.cjs.map +1 -0
- package/dist/utils/spanPredicates.d.cts +9 -0
- package/dist/utils/spanPredicates.d.cts.map +1 -0
- package/dist/utils/spanPredicates.d.ts +9 -0
- package/dist/utils/spanPredicates.d.ts.map +1 -0
- package/dist/utils/spanPredicates.js +9 -0
- package/dist/utils/spanPredicates.js.map +1 -0
- package/package.json +27 -24
- package/dist/exporters/MXLLogExporter/utils.cjs +0 -8
- package/dist/exporters/MXLLogExporter/utils.cjs.map +0 -1
- package/dist/exporters/MXLLogExporter/utils.d.cts +0 -5
- package/dist/exporters/MXLLogExporter/utils.d.cts.map +0 -1
- package/dist/exporters/MXLLogExporter/utils.d.ts +0 -5
- package/dist/exporters/MXLLogExporter/utils.d.ts.map +0 -1
- package/dist/exporters/MXLLogExporter/utils.js +0 -7
- package/dist/exporters/MXLLogExporter/utils.js.map +0 -1
- package/dist/exporters/MXLTraceExporter/utils.cjs +0 -8
- package/dist/exporters/MXLTraceExporter/utils.cjs.map +0 -1
- package/dist/exporters/MXLTraceExporter/utils.d.cts +0 -5
- package/dist/exporters/MXLTraceExporter/utils.d.cts.map +0 -1
- package/dist/exporters/MXLTraceExporter/utils.d.ts +0 -5
- package/dist/exporters/MXLTraceExporter/utils.d.ts.map +0 -1
- package/dist/exporters/MXLTraceExporter/utils.js +0 -7
- package/dist/exporters/MXLTraceExporter/utils.js.map +0 -1
- package/dist/sdk/utils.cjs +0 -34
- package/dist/sdk/utils.cjs.map +0 -1
- package/dist/sdk/utils.d.cts +0 -7
- package/dist/sdk/utils.d.cts.map +0 -1
- package/dist/sdk/utils.d.ts +0 -7
- package/dist/sdk/utils.d.ts.map +0 -1
- package/dist/sdk/utils.js +0 -31
- package/dist/sdk/utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchTransport.js","names":[],"sources":["../../../src/transport/FetchTransport/FetchTransport.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\nimport type {\n ExportResponse,\n IExporterTransport,\n} from '@opentelemetry/otlp-exporter-base';\nimport
|
|
1
|
+
{"version":3,"file":"FetchTransport.js","names":[],"sources":["../../../src/transport/FetchTransport/FetchTransport.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\nimport type {\n ExportResponse,\n IExporterTransport,\n} from '@opentelemetry/otlp-exporter-base';\nimport { budgetedFetch } from '../budgetedFetch';\nimport type { FetchRequestParameters } from './types';\n\nexport class FetchTransport implements IExporterTransport {\n public constructor(private readonly _config: FetchRequestParameters) {}\n\n // MXL endpoints require request bodies to be compressed with gzip\n private static async _compressRequest(\n data: Uint8Array<ArrayBuffer>,\n ): Promise<Uint8Array<ArrayBuffer>> {\n const stream = new CompressionStream('gzip');\n const writer = stream.writable.getWriter();\n\n void writer.write(data);\n void writer.close();\n\n const compressedChunks: Uint8Array[] = [];\n const reader = stream.readable.getReader();\n\n let done = false;\n while (!done) {\n const result = await reader.read();\n\n if (result.value) {\n compressedChunks.push(result.value);\n }\n\n ({ done } = result);\n }\n\n const compressedData = new Uint8Array(\n compressedChunks.reduce((acc, chunk) => acc + chunk.length, 0),\n );\n\n let offset = 0;\n\n for (const chunk of compressedChunks) {\n compressedData.set(chunk, offset);\n offset += chunk.length;\n }\n\n return compressedData;\n }\n\n public send(\n data: Uint8Array<ArrayBuffer>,\n timeoutMillis: number,\n ): Promise<ExportResponse> {\n return this._asyncSend(data, timeoutMillis);\n }\n\n public shutdown(): void {\n // Intentionally left empty, nothing to do.\n }\n\n public async _asyncSend(\n data: Uint8Array<ArrayBuffer>,\n timeoutMillis: number,\n ): Promise<ExportResponse> {\n let request = data;\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json',\n ...this._config.headers,\n };\n\n let keepalive = false;\n\n try {\n if (this._config.compression === 'gzip') {\n try {\n request = await FetchTransport._compressRequest(data);\n } catch (error) {\n const compressError =\n error instanceof Error ? error : new Error(String(error));\n diag.warn(\n `Fetch transport gzip compression failed: ${compressError.message}`,\n );\n return { error: compressError, status: 'failure' };\n }\n headers['Content-Encoding'] = 'gzip';\n headers['Content-Length'] = request.length.toString();\n }\n\n const result = await budgetedFetch(this._config.url, {\n body: request,\n headers,\n keepalive: true,\n timeoutMillis,\n });\n ({ keepalive } = result);\n const { response } = result;\n\n if (response.ok) {\n return { status: 'success' };\n }\n\n const error = new Error(`${response.status} Fetch request failed`);\n const message = `Fetch transport received HTTP ${response.status} (keepalive=${keepalive})`;\n if (response.status >= 500) {\n diag.debug(message);\n return { error, status: 'retryable' };\n }\n diag.warn(message);\n return { error, status: 'failure' };\n } catch (error) {\n const fetchError =\n error instanceof Error ? error : new Error(String(error));\n const isRetryable =\n fetchError instanceof TypeError ||\n (fetchError instanceof DOMException &&\n fetchError.name === 'TimeoutError');\n const message = `Fetch transport failed (keepalive=${keepalive}): ${fetchError.message}`;\n if (isRetryable) {\n diag.debug(message);\n } else {\n diag.warn(message);\n }\n return {\n error: fetchError,\n status: isRetryable ? 'retryable' : 'failure',\n };\n }\n }\n}\n"],"mappings":";;;AAQA,IAAa,iBAAb,MAAa,eAA6C;CACxD,YAAmB,SAAkD;AAAjC,OAAA,UAAA;;CAGpC,aAAqB,iBACnB,MACkC;EAClC,MAAM,SAAS,IAAI,kBAAkB,OAAO;EAC5C,MAAM,SAAS,OAAO,SAAS,WAAW;AAErC,SAAO,MAAM,KAAK;AAClB,SAAO,OAAO;EAEnB,MAAM,mBAAiC,EAAE;EACzC,MAAM,SAAS,OAAO,SAAS,WAAW;EAE1C,IAAI,OAAO;AACX,SAAO,CAAC,MAAM;GACZ,MAAM,SAAS,MAAM,OAAO,MAAM;AAElC,OAAI,OAAO,MACT,kBAAiB,KAAK,OAAO,MAAM;AAGrC,IAAC,CAAE,QAAS;;EAGd,MAAM,iBAAiB,IAAI,WACzB,iBAAiB,QAAQ,KAAK,UAAU,MAAM,MAAM,QAAQ,EAAE,CAC/D;EAED,IAAI,SAAS;AAEb,OAAK,MAAM,SAAS,kBAAkB;AACpC,kBAAe,IAAI,OAAO,OAAO;AACjC,aAAU,MAAM;;AAGlB,SAAO;;CAGT,KACE,MACA,eACyB;AACzB,SAAO,KAAK,WAAW,MAAM,cAAc;;CAG7C,WAAwB;CAIxB,MAAa,WACX,MACA,eACyB;EACzB,IAAI,UAAU;EACd,MAAM,UAAkC;GACtC,gBAAgB;GAChB,GAAG,KAAK,QAAQ;GACjB;EAED,IAAI,YAAY;AAEhB,MAAI;AACF,OAAI,KAAK,QAAQ,gBAAgB,QAAQ;AACvC,QAAI;AACF,eAAU,MAAM,eAAe,iBAAiB,KAAK;aAC9C,OAAO;KACd,MAAM,gBACJ,iBAAiB,QAAQ,QAAQ,IAAI,MAAM,OAAO,MAAM,CAAC;AAC3D,UAAK,KACH,4CAA4C,cAAc,UAC3D;AACD,YAAO;MAAE,OAAO;MAAe,QAAQ;MAAW;;AAEpD,YAAQ,sBAAsB;AAC9B,YAAQ,oBAAoB,QAAQ,OAAO,UAAU;;GAGvD,MAAM,SAAS,MAAM,cAAc,KAAK,QAAQ,KAAK;IACnD,MAAM;IACN;IACA,WAAW;IACX;IACD,CAAC;AACF,IAAC,CAAE,aAAc;GACjB,MAAM,EAAE,aAAa;AAErB,OAAI,SAAS,GACX,QAAO,EAAE,QAAQ,WAAW;GAG9B,MAAM,wBAAQ,IAAI,MAAM,GAAG,SAAS,OAAO,uBAAuB;GAClE,MAAM,UAAU,iCAAiC,SAAS,OAAO,cAAc,UAAU;AACzF,OAAI,SAAS,UAAU,KAAK;AAC1B,SAAK,MAAM,QAAQ;AACnB,WAAO;KAAE;KAAO,QAAQ;KAAa;;AAEvC,QAAK,KAAK,QAAQ;AAClB,UAAO;IAAE;IAAO,QAAQ;IAAW;WAC5B,OAAO;GACd,MAAM,aACJ,iBAAiB,QAAQ,QAAQ,IAAI,MAAM,OAAO,MAAM,CAAC;GAC3D,MAAM,cACJ,sBAAsB,aACrB,sBAAsB,gBACrB,WAAW,SAAS;GACxB,MAAM,UAAU,qCAAqC,UAAU,KAAK,WAAW;AAC/E,OAAI,YACF,MAAK,MAAM,QAAQ;OAEnB,MAAK,KAAK,QAAQ;AAEpB,UAAO;IACL,OAAO;IACP,QAAQ,cAAc,cAAc;IACrC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let _opentelemetry_api = require("@opentelemetry/api");
|
|
4
|
+
//#region src/transport/budgetedFetch.ts
|
|
5
|
+
const KEEPALIVE_BYTE_BUDGET = 49152;
|
|
6
|
+
const MAX_KEEPALIVE_REQUESTS = 9;
|
|
7
|
+
let inflightKeepaliveBytes = 0;
|
|
8
|
+
let inflightKeepaliveCount = 0;
|
|
9
|
+
/** @internal for testing only */
|
|
10
|
+
function _resetKeepaliveTracking() {
|
|
11
|
+
inflightKeepaliveBytes = 0;
|
|
12
|
+
inflightKeepaliveCount = 0;
|
|
13
|
+
}
|
|
14
|
+
const byteLengthOf = (body) => typeof body === "string" ? new TextEncoder().encode(body).byteLength : body.byteLength;
|
|
15
|
+
/**
|
|
16
|
+
* Reads the response body to its end and discards it.
|
|
17
|
+
*
|
|
18
|
+
* Chromium returns the request's share of the keepalive quota only once the
|
|
19
|
+
* body has been read to the end, and it skips the buffering consumer that would
|
|
20
|
+
* otherwise drain it when the response has `Cache-Control: no-store`, which
|
|
21
|
+
* collectors commonly send. Cancelling is the client-abort path and measures
|
|
22
|
+
* far slower, so the body is read rather than cancelled.
|
|
23
|
+
*
|
|
24
|
+
* @see https://fetch.spec.whatwg.org/#fetch-processresponseendofbody
|
|
25
|
+
* @see https://issues.chromium.org/issues/546438373
|
|
26
|
+
*/
|
|
27
|
+
async function drainResponseBody(response) {
|
|
28
|
+
try {
|
|
29
|
+
const { body } = response;
|
|
30
|
+
if (!body) return;
|
|
31
|
+
const reader = body.getReader();
|
|
32
|
+
try {
|
|
33
|
+
let chunk = await reader.read();
|
|
34
|
+
while (!chunk.done) chunk = await reader.read();
|
|
35
|
+
} finally {
|
|
36
|
+
reader.releaseLock();
|
|
37
|
+
}
|
|
38
|
+
} catch (error) {
|
|
39
|
+
const drainError = error instanceof Error ? error : new Error(String(error));
|
|
40
|
+
_opentelemetry_api.diag.debug(`Fetch transport failed to drain response body: ${drainError.message}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* POSTs through the page-wide keepalive budget that every SDK upload shares.
|
|
45
|
+
* The quota and the timeout are held until the response body drains, and
|
|
46
|
+
* released on any path that throws first.
|
|
47
|
+
*/
|
|
48
|
+
async function budgetedFetch(url, init) {
|
|
49
|
+
let signal;
|
|
50
|
+
let timeoutId;
|
|
51
|
+
if ("timeout" in AbortSignal) signal = AbortSignal.timeout(init.timeoutMillis);
|
|
52
|
+
else {
|
|
53
|
+
const controller = new AbortController();
|
|
54
|
+
({signal} = controller);
|
|
55
|
+
timeoutId = setTimeout(() => {
|
|
56
|
+
controller.abort(new DOMException("TimeoutError", "TimeoutError"));
|
|
57
|
+
}, init.timeoutMillis);
|
|
58
|
+
}
|
|
59
|
+
const byteLength = byteLengthOf(init.body);
|
|
60
|
+
let keepalive = false;
|
|
61
|
+
if (init.keepalive) {
|
|
62
|
+
const wouldExceedBytes = inflightKeepaliveBytes + byteLength > KEEPALIVE_BYTE_BUDGET;
|
|
63
|
+
keepalive = !wouldExceedBytes && !(inflightKeepaliveCount >= MAX_KEEPALIVE_REQUESTS);
|
|
64
|
+
if (keepalive) {
|
|
65
|
+
inflightKeepaliveBytes += byteLength;
|
|
66
|
+
inflightKeepaliveCount++;
|
|
67
|
+
} else {
|
|
68
|
+
const reason = wouldExceedBytes ? `inflight bytes (${inflightKeepaliveBytes} + ${byteLength}) would exceed ${KEEPALIVE_BYTE_BUDGET}B budget` : `concurrent count (${inflightKeepaliveCount}) at limit of ${MAX_KEEPALIVE_REQUESTS}`;
|
|
69
|
+
_opentelemetry_api.diag.debug(`Sending without keepalive: ${reason}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const clearTimeoutIfSet = () => {
|
|
73
|
+
if (timeoutId !== void 0) clearTimeout(timeoutId);
|
|
74
|
+
};
|
|
75
|
+
const releaseKeepalive = () => {
|
|
76
|
+
clearTimeoutIfSet();
|
|
77
|
+
inflightKeepaliveBytes -= byteLength;
|
|
78
|
+
inflightKeepaliveCount--;
|
|
79
|
+
};
|
|
80
|
+
const release = keepalive ? releaseKeepalive : clearTimeoutIfSet;
|
|
81
|
+
let response;
|
|
82
|
+
try {
|
|
83
|
+
response = await fetch(url, {
|
|
84
|
+
body: init.body,
|
|
85
|
+
headers: init.headers,
|
|
86
|
+
keepalive,
|
|
87
|
+
method: "POST",
|
|
88
|
+
signal
|
|
89
|
+
});
|
|
90
|
+
} catch (error) {
|
|
91
|
+
release();
|
|
92
|
+
throw error;
|
|
93
|
+
}
|
|
94
|
+
drainResponseBody(response).finally(release);
|
|
95
|
+
return {
|
|
96
|
+
keepalive,
|
|
97
|
+
response
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
exports._resetKeepaliveTracking = _resetKeepaliveTracking;
|
|
102
|
+
exports.budgetedFetch = budgetedFetch;
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=budgetedFetch.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetedFetch.cjs","names":[],"sources":["../../src/transport/budgetedFetch.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\n\n// The fetch spec limits inflight keepalive request bodies to 64KiB total per\n// Page context. We use a conservative budget to leave room for third-party\n// Scripts that may also use keepalive or sendBeacon.\n// https://fetch.spec.whatwg.org/#http-network-or-cache-fetch\nconst KEEPALIVE_BYTE_BUDGET = 49_152; // 48KiB\n\n// Chrome enforces a 9-request concurrent keepalive limit per renderer process.\nconst MAX_KEEPALIVE_REQUESTS = 9;\n\nlet inflightKeepaliveBytes = 0;\nlet inflightKeepaliveCount = 0;\n\n/** @internal for testing only */\nexport function _resetKeepaliveTracking(): void {\n inflightKeepaliveBytes = 0;\n inflightKeepaliveCount = 0;\n}\n\nexport interface BudgetedFetchInit {\n body: Uint8Array<ArrayBuffer> | string;\n headers: Record<string, string>;\n // Asks for keepalive; the request is downgraded when the shared budget\n // cannot fit it.\n keepalive: boolean;\n timeoutMillis: number;\n}\n\nexport interface BudgetedFetchResult {\n // The body is drained in the background and must not be read.\n response: Response;\n keepalive: boolean;\n}\n\nconst byteLengthOf = (body: BudgetedFetchInit['body']) =>\n typeof body === 'string'\n ? new TextEncoder().encode(body).byteLength\n : body.byteLength;\n\n/**\n * Reads the response body to its end and discards it.\n *\n * Chromium returns the request's share of the keepalive quota only once the\n * body has been read to the end, and it skips the buffering consumer that would\n * otherwise drain it when the response has `Cache-Control: no-store`, which\n * collectors commonly send. Cancelling is the client-abort path and measures\n * far slower, so the body is read rather than cancelled.\n *\n * @see https://fetch.spec.whatwg.org/#fetch-processresponseendofbody\n * @see https://issues.chromium.org/issues/546438373\n */\nasync function drainResponseBody(response: Response): Promise<void> {\n try {\n // Empty and opaque responses have no body to read.\n const { body } = response;\n if (!body) {\n return;\n }\n\n // Throws when the body is already locked to another reader, which happens\n // when the same response is handed to more than one export.\n const reader = body.getReader();\n try {\n // Chunks are dropped as they arrive so a large response is never buffered.\n let chunk = await reader.read();\n while (!chunk.done) {\n chunk = await reader.read();\n }\n } finally {\n // A held reader keeps the body locked, and a later export handed the same\n // response could then not drain it.\n reader.releaseLock();\n }\n } catch (error) {\n // The outcome is decided by the response status, a body that cannot be\n // read must not change it.\n const drainError =\n error instanceof Error ? error : new Error(String(error));\n diag.debug(\n `Fetch transport failed to drain response body: ${drainError.message}`,\n );\n }\n}\n\n/**\n * POSTs through the page-wide keepalive budget that every SDK upload shares.\n * The quota and the timeout are held until the response body drains, and\n * released on any path that throws first.\n */\nexport async function budgetedFetch(\n url: string,\n init: BudgetedFetchInit,\n): Promise<BudgetedFetchResult> {\n // Use AbortSignal.timeout if available, otherwise fallback to AbortController\n // https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static\n let signal: AbortSignal;\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if ('timeout' in AbortSignal) {\n // Ok to ignore because there is a guard\n // eslint-disable-next-line baseline-js/use-baseline\n signal = AbortSignal.timeout(init.timeoutMillis);\n } else {\n const controller = new AbortController();\n ({ signal } = controller);\n timeoutId = setTimeout(() => {\n controller.abort(new DOMException('TimeoutError', 'TimeoutError'));\n }, init.timeoutMillis);\n }\n\n const byteLength = byteLengthOf(init.body);\n let keepalive = false;\n\n if (init.keepalive) {\n const wouldExceedBytes =\n inflightKeepaliveBytes + byteLength > KEEPALIVE_BYTE_BUDGET;\n const wouldExceedCount = inflightKeepaliveCount >= MAX_KEEPALIVE_REQUESTS;\n keepalive = !wouldExceedBytes && !wouldExceedCount;\n\n if (keepalive) {\n inflightKeepaliveBytes += byteLength;\n inflightKeepaliveCount++;\n } else {\n const reason = wouldExceedBytes\n ? `inflight bytes (${inflightKeepaliveBytes} + ${byteLength}) would exceed ${KEEPALIVE_BYTE_BUDGET}B budget`\n : `concurrent count (${inflightKeepaliveCount}) at limit of ${MAX_KEEPALIVE_REQUESTS}`;\n diag.debug(`Sending without keepalive: ${reason}`);\n }\n }\n\n const clearTimeoutIfSet = () => {\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n };\n\n // The quota frees only once the body drains, so the drain releases it.\n const releaseKeepalive = () => {\n clearTimeoutIfSet();\n inflightKeepaliveBytes -= byteLength;\n inflightKeepaliveCount--;\n };\n const release = keepalive ? releaseKeepalive : clearTimeoutIfSet;\n\n let response: Response;\n try {\n response = await fetch(url, {\n body: init.body,\n headers: init.headers,\n keepalive,\n method: 'POST',\n signal,\n });\n } catch (error) {\n release();\n throw error;\n }\n\n // Not awaited: the status already decides the outcome, and a server that\n // stalls mid-body must not hold up the caller. Trailing the drain keeps the\n // abort signal armed, so a stalled body can hold neither the budget nor the\n // timer forever.\n void drainResponseBody(response).finally(release);\n\n return { keepalive, response };\n}\n"],"mappings":";;;;AAMA,MAAM,wBAAwB;AAG9B,MAAM,yBAAyB;AAE/B,IAAI,yBAAyB;AAC7B,IAAI,yBAAyB;;AAG7B,SAAgB,0BAAgC;AAC9C,0BAAyB;AACzB,0BAAyB;;AAkB3B,MAAM,gBAAgB,SACpB,OAAO,SAAS,WACZ,IAAI,aAAa,CAAC,OAAO,KAAK,CAAC,aAC/B,KAAK;;;;;;;;;;;;;AAcX,eAAe,kBAAkB,UAAmC;AAClE,KAAI;EAEF,MAAM,EAAE,SAAS;AACjB,MAAI,CAAC,KACH;EAKF,MAAM,SAAS,KAAK,WAAW;AAC/B,MAAI;GAEF,IAAI,QAAQ,MAAM,OAAO,MAAM;AAC/B,UAAO,CAAC,MAAM,KACZ,SAAQ,MAAM,OAAO,MAAM;YAErB;AAGR,UAAO,aAAa;;UAEf,OAAO;EAGd,MAAM,aACJ,iBAAiB,QAAQ,QAAQ,IAAI,MAAM,OAAO,MAAM,CAAC;AAC3D,qBAAA,KAAK,MACH,kDAAkD,WAAW,UAC9D;;;;;;;;AASL,eAAsB,cACpB,KACA,MAC8B;CAG9B,IAAI;CACJ,IAAI;AAEJ,KAAI,aAAa,YAGf,UAAS,YAAY,QAAQ,KAAK,cAAc;MAC3C;EACL,MAAM,aAAa,IAAI,iBAAiB;AACxC,GAAC,CAAE,UAAW;AACd,cAAY,iBAAiB;AAC3B,cAAW,MAAM,IAAI,aAAa,gBAAgB,eAAe,CAAC;KACjE,KAAK,cAAc;;CAGxB,MAAM,aAAa,aAAa,KAAK,KAAK;CAC1C,IAAI,YAAY;AAEhB,KAAI,KAAK,WAAW;EAClB,MAAM,mBACJ,yBAAyB,aAAa;AAExC,cAAY,CAAC,oBAAoB,EADR,0BAA0B;AAGnD,MAAI,WAAW;AACb,6BAA0B;AAC1B;SACK;GACL,MAAM,SAAS,mBACX,mBAAmB,uBAAuB,KAAK,WAAW,iBAAiB,sBAAsB,YACjG,qBAAqB,uBAAuB,gBAAgB;AAChE,sBAAA,KAAK,MAAM,8BAA8B,SAAS;;;CAItD,MAAM,0BAA0B;AAC9B,MAAI,cAAc,KAAA,EAChB,cAAa,UAAU;;CAK3B,MAAM,yBAAyB;AAC7B,qBAAmB;AACnB,4BAA0B;AAC1B;;CAEF,MAAM,UAAU,YAAY,mBAAmB;CAE/C,IAAI;AACJ,KAAI;AACF,aAAW,MAAM,MAAM,KAAK;GAC1B,MAAM,KAAK;GACX,SAAS,KAAK;GACd;GACA,QAAQ;GACR;GACD,CAAC;UACK,OAAO;AACd,WAAS;AACT,QAAM;;AAOH,mBAAkB,SAAS,CAAC,QAAQ,QAAQ;AAEjD,QAAO;EAAE;EAAW;EAAU"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/transport/budgetedFetch.d.ts
|
|
2
|
+
/** @internal for testing only */
|
|
3
|
+
declare function _resetKeepaliveTracking(): void;
|
|
4
|
+
interface BudgetedFetchInit {
|
|
5
|
+
body: Uint8Array<ArrayBuffer> | string;
|
|
6
|
+
headers: Record<string, string>;
|
|
7
|
+
keepalive: boolean;
|
|
8
|
+
timeoutMillis: number;
|
|
9
|
+
}
|
|
10
|
+
interface BudgetedFetchResult {
|
|
11
|
+
response: Response;
|
|
12
|
+
keepalive: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* POSTs through the page-wide keepalive budget that every SDK upload shares.
|
|
16
|
+
* The quota and the timeout are held until the response body drains, and
|
|
17
|
+
* released on any path that throws first.
|
|
18
|
+
*/
|
|
19
|
+
declare function budgetedFetch(url: string, init: BudgetedFetchInit): Promise<BudgetedFetchResult>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BudgetedFetchInit, BudgetedFetchResult, _resetKeepaliveTracking, budgetedFetch };
|
|
22
|
+
//# sourceMappingURL=budgetedFetch.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetedFetch.d.cts","names":[],"sources":["../../src/transport/budgetedFetch.ts"],"mappings":";;iBAegB,uBAAA,CAAA;AAAA,UAKC,iBAAA;EACf,IAAA,EAAM,UAAA,CAAW,WAAA;EACjB,OAAA,EAAS,MAAA;EAGT,SAAA;EACA,aAAA;AAAA;AAAA,UAGe,mBAAA;EAEf,QAAA,EAAU,QAAA;EACV,SAAA;AAAA;;;;;;iBA0DoB,aAAA,CACpB,GAAA,UACA,IAAA,EAAM,iBAAA,GACL,OAAA,CAAQ,mBAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/transport/budgetedFetch.d.ts
|
|
2
|
+
/** @internal for testing only */
|
|
3
|
+
declare function _resetKeepaliveTracking(): void;
|
|
4
|
+
interface BudgetedFetchInit {
|
|
5
|
+
body: Uint8Array<ArrayBuffer> | string;
|
|
6
|
+
headers: Record<string, string>;
|
|
7
|
+
keepalive: boolean;
|
|
8
|
+
timeoutMillis: number;
|
|
9
|
+
}
|
|
10
|
+
interface BudgetedFetchResult {
|
|
11
|
+
response: Response;
|
|
12
|
+
keepalive: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* POSTs through the page-wide keepalive budget that every SDK upload shares.
|
|
16
|
+
* The quota and the timeout are held until the response body drains, and
|
|
17
|
+
* released on any path that throws first.
|
|
18
|
+
*/
|
|
19
|
+
declare function budgetedFetch(url: string, init: BudgetedFetchInit): Promise<BudgetedFetchResult>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BudgetedFetchInit, BudgetedFetchResult, _resetKeepaliveTracking, budgetedFetch };
|
|
22
|
+
//# sourceMappingURL=budgetedFetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetedFetch.d.ts","names":[],"sources":["../../src/transport/budgetedFetch.ts"],"mappings":";;iBAegB,uBAAA,CAAA;AAAA,UAKC,iBAAA;EACf,IAAA,EAAM,UAAA,CAAW,WAAA;EACjB,OAAA,EAAS,MAAA;EAGT,SAAA;EACA,aAAA;AAAA;AAAA,UAGe,mBAAA;EAEf,QAAA,EAAU,QAAA;EACV,SAAA;AAAA;;;;;;iBA0DoB,aAAA,CACpB,GAAA,UACA,IAAA,EAAM,iBAAA,GACL,OAAA,CAAQ,mBAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { diag } from "@opentelemetry/api";
|
|
2
|
+
//#region src/transport/budgetedFetch.ts
|
|
3
|
+
const KEEPALIVE_BYTE_BUDGET = 49152;
|
|
4
|
+
const MAX_KEEPALIVE_REQUESTS = 9;
|
|
5
|
+
let inflightKeepaliveBytes = 0;
|
|
6
|
+
let inflightKeepaliveCount = 0;
|
|
7
|
+
/** @internal for testing only */
|
|
8
|
+
function _resetKeepaliveTracking() {
|
|
9
|
+
inflightKeepaliveBytes = 0;
|
|
10
|
+
inflightKeepaliveCount = 0;
|
|
11
|
+
}
|
|
12
|
+
const byteLengthOf = (body) => typeof body === "string" ? new TextEncoder().encode(body).byteLength : body.byteLength;
|
|
13
|
+
/**
|
|
14
|
+
* Reads the response body to its end and discards it.
|
|
15
|
+
*
|
|
16
|
+
* Chromium returns the request's share of the keepalive quota only once the
|
|
17
|
+
* body has been read to the end, and it skips the buffering consumer that would
|
|
18
|
+
* otherwise drain it when the response has `Cache-Control: no-store`, which
|
|
19
|
+
* collectors commonly send. Cancelling is the client-abort path and measures
|
|
20
|
+
* far slower, so the body is read rather than cancelled.
|
|
21
|
+
*
|
|
22
|
+
* @see https://fetch.spec.whatwg.org/#fetch-processresponseendofbody
|
|
23
|
+
* @see https://issues.chromium.org/issues/546438373
|
|
24
|
+
*/
|
|
25
|
+
async function drainResponseBody(response) {
|
|
26
|
+
try {
|
|
27
|
+
const { body } = response;
|
|
28
|
+
if (!body) return;
|
|
29
|
+
const reader = body.getReader();
|
|
30
|
+
try {
|
|
31
|
+
let chunk = await reader.read();
|
|
32
|
+
while (!chunk.done) chunk = await reader.read();
|
|
33
|
+
} finally {
|
|
34
|
+
reader.releaseLock();
|
|
35
|
+
}
|
|
36
|
+
} catch (error) {
|
|
37
|
+
const drainError = error instanceof Error ? error : new Error(String(error));
|
|
38
|
+
diag.debug(`Fetch transport failed to drain response body: ${drainError.message}`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* POSTs through the page-wide keepalive budget that every SDK upload shares.
|
|
43
|
+
* The quota and the timeout are held until the response body drains, and
|
|
44
|
+
* released on any path that throws first.
|
|
45
|
+
*/
|
|
46
|
+
async function budgetedFetch(url, init) {
|
|
47
|
+
let signal;
|
|
48
|
+
let timeoutId;
|
|
49
|
+
if ("timeout" in AbortSignal) signal = AbortSignal.timeout(init.timeoutMillis);
|
|
50
|
+
else {
|
|
51
|
+
const controller = new AbortController();
|
|
52
|
+
({signal} = controller);
|
|
53
|
+
timeoutId = setTimeout(() => {
|
|
54
|
+
controller.abort(new DOMException("TimeoutError", "TimeoutError"));
|
|
55
|
+
}, init.timeoutMillis);
|
|
56
|
+
}
|
|
57
|
+
const byteLength = byteLengthOf(init.body);
|
|
58
|
+
let keepalive = false;
|
|
59
|
+
if (init.keepalive) {
|
|
60
|
+
const wouldExceedBytes = inflightKeepaliveBytes + byteLength > KEEPALIVE_BYTE_BUDGET;
|
|
61
|
+
keepalive = !wouldExceedBytes && !(inflightKeepaliveCount >= MAX_KEEPALIVE_REQUESTS);
|
|
62
|
+
if (keepalive) {
|
|
63
|
+
inflightKeepaliveBytes += byteLength;
|
|
64
|
+
inflightKeepaliveCount++;
|
|
65
|
+
} else {
|
|
66
|
+
const reason = wouldExceedBytes ? `inflight bytes (${inflightKeepaliveBytes} + ${byteLength}) would exceed ${KEEPALIVE_BYTE_BUDGET}B budget` : `concurrent count (${inflightKeepaliveCount}) at limit of ${MAX_KEEPALIVE_REQUESTS}`;
|
|
67
|
+
diag.debug(`Sending without keepalive: ${reason}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const clearTimeoutIfSet = () => {
|
|
71
|
+
if (timeoutId !== void 0) clearTimeout(timeoutId);
|
|
72
|
+
};
|
|
73
|
+
const releaseKeepalive = () => {
|
|
74
|
+
clearTimeoutIfSet();
|
|
75
|
+
inflightKeepaliveBytes -= byteLength;
|
|
76
|
+
inflightKeepaliveCount--;
|
|
77
|
+
};
|
|
78
|
+
const release = keepalive ? releaseKeepalive : clearTimeoutIfSet;
|
|
79
|
+
let response;
|
|
80
|
+
try {
|
|
81
|
+
response = await fetch(url, {
|
|
82
|
+
body: init.body,
|
|
83
|
+
headers: init.headers,
|
|
84
|
+
keepalive,
|
|
85
|
+
method: "POST",
|
|
86
|
+
signal
|
|
87
|
+
});
|
|
88
|
+
} catch (error) {
|
|
89
|
+
release();
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
drainResponseBody(response).finally(release);
|
|
93
|
+
return {
|
|
94
|
+
keepalive,
|
|
95
|
+
response
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { _resetKeepaliveTracking, budgetedFetch };
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=budgetedFetch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetedFetch.js","names":[],"sources":["../../src/transport/budgetedFetch.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\n\n// The fetch spec limits inflight keepalive request bodies to 64KiB total per\n// Page context. We use a conservative budget to leave room for third-party\n// Scripts that may also use keepalive or sendBeacon.\n// https://fetch.spec.whatwg.org/#http-network-or-cache-fetch\nconst KEEPALIVE_BYTE_BUDGET = 49_152; // 48KiB\n\n// Chrome enforces a 9-request concurrent keepalive limit per renderer process.\nconst MAX_KEEPALIVE_REQUESTS = 9;\n\nlet inflightKeepaliveBytes = 0;\nlet inflightKeepaliveCount = 0;\n\n/** @internal for testing only */\nexport function _resetKeepaliveTracking(): void {\n inflightKeepaliveBytes = 0;\n inflightKeepaliveCount = 0;\n}\n\nexport interface BudgetedFetchInit {\n body: Uint8Array<ArrayBuffer> | string;\n headers: Record<string, string>;\n // Asks for keepalive; the request is downgraded when the shared budget\n // cannot fit it.\n keepalive: boolean;\n timeoutMillis: number;\n}\n\nexport interface BudgetedFetchResult {\n // The body is drained in the background and must not be read.\n response: Response;\n keepalive: boolean;\n}\n\nconst byteLengthOf = (body: BudgetedFetchInit['body']) =>\n typeof body === 'string'\n ? new TextEncoder().encode(body).byteLength\n : body.byteLength;\n\n/**\n * Reads the response body to its end and discards it.\n *\n * Chromium returns the request's share of the keepalive quota only once the\n * body has been read to the end, and it skips the buffering consumer that would\n * otherwise drain it when the response has `Cache-Control: no-store`, which\n * collectors commonly send. Cancelling is the client-abort path and measures\n * far slower, so the body is read rather than cancelled.\n *\n * @see https://fetch.spec.whatwg.org/#fetch-processresponseendofbody\n * @see https://issues.chromium.org/issues/546438373\n */\nasync function drainResponseBody(response: Response): Promise<void> {\n try {\n // Empty and opaque responses have no body to read.\n const { body } = response;\n if (!body) {\n return;\n }\n\n // Throws when the body is already locked to another reader, which happens\n // when the same response is handed to more than one export.\n const reader = body.getReader();\n try {\n // Chunks are dropped as they arrive so a large response is never buffered.\n let chunk = await reader.read();\n while (!chunk.done) {\n chunk = await reader.read();\n }\n } finally {\n // A held reader keeps the body locked, and a later export handed the same\n // response could then not drain it.\n reader.releaseLock();\n }\n } catch (error) {\n // The outcome is decided by the response status, a body that cannot be\n // read must not change it.\n const drainError =\n error instanceof Error ? error : new Error(String(error));\n diag.debug(\n `Fetch transport failed to drain response body: ${drainError.message}`,\n );\n }\n}\n\n/**\n * POSTs through the page-wide keepalive budget that every SDK upload shares.\n * The quota and the timeout are held until the response body drains, and\n * released on any path that throws first.\n */\nexport async function budgetedFetch(\n url: string,\n init: BudgetedFetchInit,\n): Promise<BudgetedFetchResult> {\n // Use AbortSignal.timeout if available, otherwise fallback to AbortController\n // https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static\n let signal: AbortSignal;\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if ('timeout' in AbortSignal) {\n // Ok to ignore because there is a guard\n // eslint-disable-next-line baseline-js/use-baseline\n signal = AbortSignal.timeout(init.timeoutMillis);\n } else {\n const controller = new AbortController();\n ({ signal } = controller);\n timeoutId = setTimeout(() => {\n controller.abort(new DOMException('TimeoutError', 'TimeoutError'));\n }, init.timeoutMillis);\n }\n\n const byteLength = byteLengthOf(init.body);\n let keepalive = false;\n\n if (init.keepalive) {\n const wouldExceedBytes =\n inflightKeepaliveBytes + byteLength > KEEPALIVE_BYTE_BUDGET;\n const wouldExceedCount = inflightKeepaliveCount >= MAX_KEEPALIVE_REQUESTS;\n keepalive = !wouldExceedBytes && !wouldExceedCount;\n\n if (keepalive) {\n inflightKeepaliveBytes += byteLength;\n inflightKeepaliveCount++;\n } else {\n const reason = wouldExceedBytes\n ? `inflight bytes (${inflightKeepaliveBytes} + ${byteLength}) would exceed ${KEEPALIVE_BYTE_BUDGET}B budget`\n : `concurrent count (${inflightKeepaliveCount}) at limit of ${MAX_KEEPALIVE_REQUESTS}`;\n diag.debug(`Sending without keepalive: ${reason}`);\n }\n }\n\n const clearTimeoutIfSet = () => {\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n };\n\n // The quota frees only once the body drains, so the drain releases it.\n const releaseKeepalive = () => {\n clearTimeoutIfSet();\n inflightKeepaliveBytes -= byteLength;\n inflightKeepaliveCount--;\n };\n const release = keepalive ? releaseKeepalive : clearTimeoutIfSet;\n\n let response: Response;\n try {\n response = await fetch(url, {\n body: init.body,\n headers: init.headers,\n keepalive,\n method: 'POST',\n signal,\n });\n } catch (error) {\n release();\n throw error;\n }\n\n // Not awaited: the status already decides the outcome, and a server that\n // stalls mid-body must not hold up the caller. Trailing the drain keeps the\n // abort signal armed, so a stalled body can hold neither the budget nor the\n // timer forever.\n void drainResponseBody(response).finally(release);\n\n return { keepalive, response };\n}\n"],"mappings":";;AAMA,MAAM,wBAAwB;AAG9B,MAAM,yBAAyB;AAE/B,IAAI,yBAAyB;AAC7B,IAAI,yBAAyB;;AAG7B,SAAgB,0BAAgC;AAC9C,0BAAyB;AACzB,0BAAyB;;AAkB3B,MAAM,gBAAgB,SACpB,OAAO,SAAS,WACZ,IAAI,aAAa,CAAC,OAAO,KAAK,CAAC,aAC/B,KAAK;;;;;;;;;;;;;AAcX,eAAe,kBAAkB,UAAmC;AAClE,KAAI;EAEF,MAAM,EAAE,SAAS;AACjB,MAAI,CAAC,KACH;EAKF,MAAM,SAAS,KAAK,WAAW;AAC/B,MAAI;GAEF,IAAI,QAAQ,MAAM,OAAO,MAAM;AAC/B,UAAO,CAAC,MAAM,KACZ,SAAQ,MAAM,OAAO,MAAM;YAErB;AAGR,UAAO,aAAa;;UAEf,OAAO;EAGd,MAAM,aACJ,iBAAiB,QAAQ,QAAQ,IAAI,MAAM,OAAO,MAAM,CAAC;AAC3D,OAAK,MACH,kDAAkD,WAAW,UAC9D;;;;;;;;AASL,eAAsB,cACpB,KACA,MAC8B;CAG9B,IAAI;CACJ,IAAI;AAEJ,KAAI,aAAa,YAGf,UAAS,YAAY,QAAQ,KAAK,cAAc;MAC3C;EACL,MAAM,aAAa,IAAI,iBAAiB;AACxC,GAAC,CAAE,UAAW;AACd,cAAY,iBAAiB;AAC3B,cAAW,MAAM,IAAI,aAAa,gBAAgB,eAAe,CAAC;KACjE,KAAK,cAAc;;CAGxB,MAAM,aAAa,aAAa,KAAK,KAAK;CAC1C,IAAI,YAAY;AAEhB,KAAI,KAAK,WAAW;EAClB,MAAM,mBACJ,yBAAyB,aAAa;AAExC,cAAY,CAAC,oBAAoB,EADR,0BAA0B;AAGnD,MAAI,WAAW;AACb,6BAA0B;AAC1B;SACK;GACL,MAAM,SAAS,mBACX,mBAAmB,uBAAuB,KAAK,WAAW,iBAAiB,sBAAsB,YACjG,qBAAqB,uBAAuB,gBAAgB;AAChE,QAAK,MAAM,8BAA8B,SAAS;;;CAItD,MAAM,0BAA0B;AAC9B,MAAI,cAAc,KAAA,EAChB,cAAa,UAAU;;CAK3B,MAAM,yBAAyB;AAC7B,qBAAmB;AACnB,4BAA0B;AAC1B;;CAEF,MAAM,UAAU,YAAY,mBAAmB;CAE/C,IAAI;AACJ,KAAI;AACF,aAAW,MAAM,MAAM,KAAK;GAC1B,MAAM,KAAK;GACX,SAAS,KAAK;GACd;GACA,QAAQ;GACR;GACD,CAAC;UACK,OAAO;AACd,WAAS;AACT,QAAM;;AAOH,mBAAkB,SAAS,CAAC,QAAQ,QAAQ;AAEjD,QAAO;EAAE;EAAW;EAAU"}
|
|
@@ -2,8 +2,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _opentelemetry_core = require("@opentelemetry/core");
|
|
4
4
|
//#region src/utils/PerformanceManager/OTelPerformanceManager.ts
|
|
5
|
+
let _zeroTimeMillis;
|
|
6
|
+
function updateZeroTimeMillis(epochMs) {
|
|
7
|
+
_zeroTimeMillis = epochMs;
|
|
8
|
+
}
|
|
9
|
+
function _resetZeroTimeMillisForTesting() {
|
|
10
|
+
_zeroTimeMillis = void 0;
|
|
11
|
+
}
|
|
5
12
|
var OTelPerformanceManager = class {
|
|
6
13
|
_clock;
|
|
14
|
+
navigationEntry = null;
|
|
7
15
|
constructor(clock = window.performance) {
|
|
8
16
|
this._clock = clock;
|
|
9
17
|
}
|
|
@@ -11,9 +19,31 @@ var OTelPerformanceManager = class {
|
|
|
11
19
|
getNowHRTime = () => (0, _opentelemetry_core.millisToHrTime)(this.getNowMillis());
|
|
12
20
|
getNowMillis = () => this.epochMillisFromOriginOffset(this._clock.now());
|
|
13
21
|
millisSinceHRTime = (time) => this.getNowMillis() - (0, _opentelemetry_core.hrTimeToMilliseconds)(time);
|
|
14
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Metrics that describe how a user experienced the current view are
|
|
24
|
+
* measured from this instant. On prerendered pages it is activationStart.
|
|
25
|
+
* On bfcache restores and soft navigations it is the restore or
|
|
26
|
+
* navigation. Otherwise it is timeOrigin.
|
|
27
|
+
*/
|
|
28
|
+
getZeroTime = () => Math.max(this._clock.timeOrigin + this._getNavigationActivationStart(), _zeroTimeMillis ?? 0);
|
|
29
|
+
getNavigationEntry = () => {
|
|
30
|
+
if (this.navigationEntry) return this.navigationEntry;
|
|
31
|
+
const [entry] = this._clock.getEntriesByType?.("navigation") ?? [];
|
|
32
|
+
if (entry) {
|
|
33
|
+
this.navigationEntry = entry;
|
|
34
|
+
return this.navigationEntry;
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
38
|
+
_getNavigationActivationStart() {
|
|
39
|
+
return this.getNavigationEntry()?.activationStart ?? 0;
|
|
40
|
+
}
|
|
41
|
+
millisFromZeroTime = (originOffset) => Math.max(0, originOffset - (this.getZeroTime() - this._clock.timeOrigin));
|
|
42
|
+
millisFromZeroTimeEpoch = (epochMillis) => Math.max(0, epochMillis - this.getZeroTime());
|
|
15
43
|
};
|
|
16
44
|
//#endregion
|
|
17
45
|
exports.OTelPerformanceManager = OTelPerformanceManager;
|
|
46
|
+
exports._resetZeroTimeMillisForTesting = _resetZeroTimeMillisForTesting;
|
|
47
|
+
exports.updateZeroTimeMillis = updateZeroTimeMillis;
|
|
18
48
|
|
|
19
49
|
//# sourceMappingURL=OTelPerformanceManager.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTelPerformanceManager.cjs","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"sourcesContent":["import type { HrTime } from '@opentelemetry/api';\nimport { hrTimeToMilliseconds, millisToHrTime } from '@opentelemetry/core';\nimport type { PerformanceClock, PerformanceManager } from './types';\n\nexport class OTelPerformanceManager implements PerformanceManager {\n private readonly _clock: PerformanceClock;\n\n public constructor(clock: PerformanceClock = window.performance) {\n this._clock = clock;\n }\n\n public epochMillisFromOriginOffset = (originOffset: number) =>\n this._clock.timeOrigin + originOffset;\n\n public getNowHRTime = () => millisToHrTime(this.getNowMillis());\n\n public getNowMillis = () =>\n this.epochMillisFromOriginOffset(this._clock.now())
|
|
1
|
+
{"version":3,"file":"OTelPerformanceManager.cjs","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"sourcesContent":["import type { HrTime } from '@opentelemetry/api';\nimport { hrTimeToMilliseconds, millisToHrTime } from '@opentelemetry/core';\nimport type { PerformanceClock, PerformanceManager } from './types';\n\nlet _zeroTimeMillis: number | undefined;\n\nexport function updateZeroTimeMillis(epochMs: number): void {\n _zeroTimeMillis = epochMs;\n}\n\nexport function _resetZeroTimeMillisForTesting(): void {\n _zeroTimeMillis = undefined;\n}\n\nexport class OTelPerformanceManager implements PerformanceManager {\n private readonly _clock: PerformanceClock;\n private navigationEntry: PerformanceNavigationTiming | null = null;\n\n public constructor(clock: PerformanceClock = window.performance) {\n this._clock = clock;\n }\n\n // originOffset (entry.startTime, event.timeStamp, performance.now()) is\n // always milliseconds since timeOrigin. Zero-time rebasing is a different\n // question and does not belong in this conversion.\n public epochMillisFromOriginOffset = (originOffset: number) =>\n this._clock.timeOrigin + originOffset;\n\n public getNowHRTime = () => millisToHrTime(this.getNowMillis());\n\n public getNowMillis = () =>\n this.epochMillisFromOriginOffset(this._clock.now());\n\n public millisSinceHRTime = (time: HrTime) =>\n this.getNowMillis() - hrTimeToMilliseconds(time);\n\n /**\n * Metrics that describe how a user experienced the current view are\n * measured from this instant. On prerendered pages it is activationStart.\n * On bfcache restores and soft navigations it is the restore or\n * navigation. Otherwise it is timeOrigin.\n */\n public getZeroTime = (): number =>\n Math.max(\n this._clock.timeOrigin + this._getNavigationActivationStart(),\n _zeroTimeMillis ?? 0,\n );\n\n // The entry object is live, so a cached hit is never stale. A missing\n // entry is not cached: it may not have been recorded yet.\n public getNavigationEntry = (): PerformanceNavigationTiming | null => {\n if (this.navigationEntry) {\n return this.navigationEntry;\n }\n\n const [entry] = this._clock.getEntriesByType?.('navigation') ?? [];\n\n if (entry) {\n this.navigationEntry = entry as PerformanceNavigationTiming;\n return this.navigationEntry;\n }\n\n return null;\n };\n\n private _getNavigationActivationStart(): number {\n const entry = this.getNavigationEntry();\n return entry?.activationStart ?? 0;\n }\n\n public millisFromZeroTime = (originOffset: number) =>\n Math.max(0, originOffset - (this.getZeroTime() - this._clock.timeOrigin));\n\n public millisFromZeroTimeEpoch = (epochMillis: number) =>\n Math.max(0, epochMillis - this.getZeroTime());\n}\n"],"mappings":";;;;AAIA,IAAI;AAEJ,SAAgB,qBAAqB,SAAuB;AAC1D,mBAAkB;;AAGpB,SAAgB,iCAAuC;AACrD,mBAAkB,KAAA;;AAGpB,IAAa,yBAAb,MAAkE;CAChE;CACA,kBAA8D;CAE9D,YAAmB,QAA0B,OAAO,aAAa;AAC/D,OAAK,SAAS;;CAMhB,+BAAsC,iBACpC,KAAK,OAAO,aAAa;CAE3B,sBAAO,GAAA,oBAAA,gBAAoC,KAAK,cAAc,CAAC;CAE/D,qBACE,KAAK,4BAA4B,KAAK,OAAO,KAAK,CAAC;CAErD,qBAA4B,SAC1B,KAAK,cAAc,IAAA,GAAA,oBAAA,sBAAwB,KAAK;;;;;;;CAQlD,oBACE,KAAK,IACH,KAAK,OAAO,aAAa,KAAK,+BAA+B,EAC7D,mBAAmB,EACpB;CAIH,2BAAsE;AACpE,MAAI,KAAK,gBACP,QAAO,KAAK;EAGd,MAAM,CAAC,SAAS,KAAK,OAAO,mBAAmB,aAAa,IAAI,EAAE;AAElE,MAAI,OAAO;AACT,QAAK,kBAAkB;AACvB,UAAO,KAAK;;AAGd,SAAO;;CAGT,gCAAgD;AAE9C,SADc,KAAK,oBACP,EAAE,mBAAmB;;CAGnC,sBAA6B,iBAC3B,KAAK,IAAI,GAAG,gBAAgB,KAAK,aAAa,GAAG,KAAK,OAAO,YAAY;CAE3E,2BAAkC,gBAChC,KAAK,IAAI,GAAG,cAAc,KAAK,aAAa,CAAC"}
|
|
@@ -2,15 +2,28 @@ import { PerformanceClock, PerformanceManager } from "./types.cjs";
|
|
|
2
2
|
import { HrTime } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/PerformanceManager/OTelPerformanceManager.d.ts
|
|
5
|
+
declare function updateZeroTimeMillis(epochMs: number): void;
|
|
6
|
+
declare function _resetZeroTimeMillisForTesting(): void;
|
|
5
7
|
declare class OTelPerformanceManager implements PerformanceManager {
|
|
6
8
|
private readonly _clock;
|
|
9
|
+
private navigationEntry;
|
|
7
10
|
constructor(clock?: PerformanceClock);
|
|
8
11
|
epochMillisFromOriginOffset: (originOffset: number) => number;
|
|
9
12
|
getNowHRTime: () => HrTime;
|
|
10
13
|
getNowMillis: () => number;
|
|
11
14
|
millisSinceHRTime: (time: HrTime) => number;
|
|
15
|
+
/**
|
|
16
|
+
* Metrics that describe how a user experienced the current view are
|
|
17
|
+
* measured from this instant. On prerendered pages it is activationStart.
|
|
18
|
+
* On bfcache restores and soft navigations it is the restore or
|
|
19
|
+
* navigation. Otherwise it is timeOrigin.
|
|
20
|
+
*/
|
|
21
|
+
getZeroTime: () => number;
|
|
22
|
+
getNavigationEntry: () => PerformanceNavigationTiming | null;
|
|
23
|
+
private _getNavigationActivationStart;
|
|
12
24
|
millisFromZeroTime: (originOffset: number) => number;
|
|
25
|
+
millisFromZeroTimeEpoch: (epochMillis: number) => number;
|
|
13
26
|
}
|
|
14
27
|
//#endregion
|
|
15
|
-
export { OTelPerformanceManager };
|
|
28
|
+
export { OTelPerformanceManager, _resetZeroTimeMillisForTesting, updateZeroTimeMillis };
|
|
16
29
|
//# sourceMappingURL=OTelPerformanceManager.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTelPerformanceManager.d.cts","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"OTelPerformanceManager.d.cts","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"mappings":";;;;iBAMgB,oBAAA,CAAqB,OAAA;AAAA,iBAIrB,8BAAA,CAAA;AAAA,cAIH,sBAAA,YAAkC,kBAAA;EAAA,iBAC5B,MAAA;EAAA,QACT,eAAA;cAEW,KAAA,GAAO,gBAAA;EAOnB,2BAAA,GAA+B,YAAA;EAG/B,YAAA,QAAY,MAAA;EAEZ,YAAA;EAGA,iBAAA,GAAqB,IAAA,EAAM,MAAA;EAvBU;;AAI9C;;;;EA4BS,WAAA;EAQA,kBAAA,QAAyB,2BAAA;EAAA,QAexB,6BAAA;EAKD,kBAAA,GAAsB,YAAA;EAGtB,uBAAA,GAA2B,WAAA;AAAA"}
|
|
@@ -2,15 +2,28 @@ import { PerformanceClock, PerformanceManager } from "./types.js";
|
|
|
2
2
|
import { HrTime } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/PerformanceManager/OTelPerformanceManager.d.ts
|
|
5
|
+
declare function updateZeroTimeMillis(epochMs: number): void;
|
|
6
|
+
declare function _resetZeroTimeMillisForTesting(): void;
|
|
5
7
|
declare class OTelPerformanceManager implements PerformanceManager {
|
|
6
8
|
private readonly _clock;
|
|
9
|
+
private navigationEntry;
|
|
7
10
|
constructor(clock?: PerformanceClock);
|
|
8
11
|
epochMillisFromOriginOffset: (originOffset: number) => number;
|
|
9
12
|
getNowHRTime: () => HrTime;
|
|
10
13
|
getNowMillis: () => number;
|
|
11
14
|
millisSinceHRTime: (time: HrTime) => number;
|
|
15
|
+
/**
|
|
16
|
+
* Metrics that describe how a user experienced the current view are
|
|
17
|
+
* measured from this instant. On prerendered pages it is activationStart.
|
|
18
|
+
* On bfcache restores and soft navigations it is the restore or
|
|
19
|
+
* navigation. Otherwise it is timeOrigin.
|
|
20
|
+
*/
|
|
21
|
+
getZeroTime: () => number;
|
|
22
|
+
getNavigationEntry: () => PerformanceNavigationTiming | null;
|
|
23
|
+
private _getNavigationActivationStart;
|
|
12
24
|
millisFromZeroTime: (originOffset: number) => number;
|
|
25
|
+
millisFromZeroTimeEpoch: (epochMillis: number) => number;
|
|
13
26
|
}
|
|
14
27
|
//#endregion
|
|
15
|
-
export { OTelPerformanceManager };
|
|
28
|
+
export { OTelPerformanceManager, _resetZeroTimeMillisForTesting, updateZeroTimeMillis };
|
|
16
29
|
//# sourceMappingURL=OTelPerformanceManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTelPerformanceManager.d.ts","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"OTelPerformanceManager.d.ts","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"mappings":";;;;iBAMgB,oBAAA,CAAqB,OAAA;AAAA,iBAIrB,8BAAA,CAAA;AAAA,cAIH,sBAAA,YAAkC,kBAAA;EAAA,iBAC5B,MAAA;EAAA,QACT,eAAA;cAEW,KAAA,GAAO,gBAAA;EAOnB,2BAAA,GAA+B,YAAA;EAG/B,YAAA,QAAY,MAAA;EAEZ,YAAA;EAGA,iBAAA,GAAqB,IAAA,EAAM,MAAA;EAvBU;;AAI9C;;;;EA4BS,WAAA;EAQA,kBAAA,QAAyB,2BAAA;EAAA,QAexB,6BAAA;EAKD,kBAAA,GAAsB,YAAA;EAGtB,uBAAA,GAA2B,WAAA;AAAA"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { hrTimeToMilliseconds, millisToHrTime } from "@opentelemetry/core";
|
|
2
2
|
//#region src/utils/PerformanceManager/OTelPerformanceManager.ts
|
|
3
|
+
let _zeroTimeMillis;
|
|
4
|
+
function updateZeroTimeMillis(epochMs) {
|
|
5
|
+
_zeroTimeMillis = epochMs;
|
|
6
|
+
}
|
|
7
|
+
function _resetZeroTimeMillisForTesting() {
|
|
8
|
+
_zeroTimeMillis = void 0;
|
|
9
|
+
}
|
|
3
10
|
var OTelPerformanceManager = class {
|
|
4
11
|
_clock;
|
|
12
|
+
navigationEntry = null;
|
|
5
13
|
constructor(clock = window.performance) {
|
|
6
14
|
this._clock = clock;
|
|
7
15
|
}
|
|
@@ -9,9 +17,29 @@ var OTelPerformanceManager = class {
|
|
|
9
17
|
getNowHRTime = () => millisToHrTime(this.getNowMillis());
|
|
10
18
|
getNowMillis = () => this.epochMillisFromOriginOffset(this._clock.now());
|
|
11
19
|
millisSinceHRTime = (time) => this.getNowMillis() - hrTimeToMilliseconds(time);
|
|
12
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Metrics that describe how a user experienced the current view are
|
|
22
|
+
* measured from this instant. On prerendered pages it is activationStart.
|
|
23
|
+
* On bfcache restores and soft navigations it is the restore or
|
|
24
|
+
* navigation. Otherwise it is timeOrigin.
|
|
25
|
+
*/
|
|
26
|
+
getZeroTime = () => Math.max(this._clock.timeOrigin + this._getNavigationActivationStart(), _zeroTimeMillis ?? 0);
|
|
27
|
+
getNavigationEntry = () => {
|
|
28
|
+
if (this.navigationEntry) return this.navigationEntry;
|
|
29
|
+
const [entry] = this._clock.getEntriesByType?.("navigation") ?? [];
|
|
30
|
+
if (entry) {
|
|
31
|
+
this.navigationEntry = entry;
|
|
32
|
+
return this.navigationEntry;
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
};
|
|
36
|
+
_getNavigationActivationStart() {
|
|
37
|
+
return this.getNavigationEntry()?.activationStart ?? 0;
|
|
38
|
+
}
|
|
39
|
+
millisFromZeroTime = (originOffset) => Math.max(0, originOffset - (this.getZeroTime() - this._clock.timeOrigin));
|
|
40
|
+
millisFromZeroTimeEpoch = (epochMillis) => Math.max(0, epochMillis - this.getZeroTime());
|
|
13
41
|
};
|
|
14
42
|
//#endregion
|
|
15
|
-
export { OTelPerformanceManager };
|
|
43
|
+
export { OTelPerformanceManager, _resetZeroTimeMillisForTesting, updateZeroTimeMillis };
|
|
16
44
|
|
|
17
45
|
//# sourceMappingURL=OTelPerformanceManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTelPerformanceManager.js","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"sourcesContent":["import type { HrTime } from '@opentelemetry/api';\nimport { hrTimeToMilliseconds, millisToHrTime } from '@opentelemetry/core';\nimport type { PerformanceClock, PerformanceManager } from './types';\n\nexport class OTelPerformanceManager implements PerformanceManager {\n private readonly _clock: PerformanceClock;\n\n public constructor(clock: PerformanceClock = window.performance) {\n this._clock = clock;\n }\n\n public epochMillisFromOriginOffset = (originOffset: number) =>\n this._clock.timeOrigin + originOffset;\n\n public getNowHRTime = () => millisToHrTime(this.getNowMillis());\n\n public getNowMillis = () =>\n this.epochMillisFromOriginOffset(this._clock.now())
|
|
1
|
+
{"version":3,"file":"OTelPerformanceManager.js","names":[],"sources":["../../../src/utils/PerformanceManager/OTelPerformanceManager.ts"],"sourcesContent":["import type { HrTime } from '@opentelemetry/api';\nimport { hrTimeToMilliseconds, millisToHrTime } from '@opentelemetry/core';\nimport type { PerformanceClock, PerformanceManager } from './types';\n\nlet _zeroTimeMillis: number | undefined;\n\nexport function updateZeroTimeMillis(epochMs: number): void {\n _zeroTimeMillis = epochMs;\n}\n\nexport function _resetZeroTimeMillisForTesting(): void {\n _zeroTimeMillis = undefined;\n}\n\nexport class OTelPerformanceManager implements PerformanceManager {\n private readonly _clock: PerformanceClock;\n private navigationEntry: PerformanceNavigationTiming | null = null;\n\n public constructor(clock: PerformanceClock = window.performance) {\n this._clock = clock;\n }\n\n // originOffset (entry.startTime, event.timeStamp, performance.now()) is\n // always milliseconds since timeOrigin. Zero-time rebasing is a different\n // question and does not belong in this conversion.\n public epochMillisFromOriginOffset = (originOffset: number) =>\n this._clock.timeOrigin + originOffset;\n\n public getNowHRTime = () => millisToHrTime(this.getNowMillis());\n\n public getNowMillis = () =>\n this.epochMillisFromOriginOffset(this._clock.now());\n\n public millisSinceHRTime = (time: HrTime) =>\n this.getNowMillis() - hrTimeToMilliseconds(time);\n\n /**\n * Metrics that describe how a user experienced the current view are\n * measured from this instant. On prerendered pages it is activationStart.\n * On bfcache restores and soft navigations it is the restore or\n * navigation. Otherwise it is timeOrigin.\n */\n public getZeroTime = (): number =>\n Math.max(\n this._clock.timeOrigin + this._getNavigationActivationStart(),\n _zeroTimeMillis ?? 0,\n );\n\n // The entry object is live, so a cached hit is never stale. A missing\n // entry is not cached: it may not have been recorded yet.\n public getNavigationEntry = (): PerformanceNavigationTiming | null => {\n if (this.navigationEntry) {\n return this.navigationEntry;\n }\n\n const [entry] = this._clock.getEntriesByType?.('navigation') ?? [];\n\n if (entry) {\n this.navigationEntry = entry as PerformanceNavigationTiming;\n return this.navigationEntry;\n }\n\n return null;\n };\n\n private _getNavigationActivationStart(): number {\n const entry = this.getNavigationEntry();\n return entry?.activationStart ?? 0;\n }\n\n public millisFromZeroTime = (originOffset: number) =>\n Math.max(0, originOffset - (this.getZeroTime() - this._clock.timeOrigin));\n\n public millisFromZeroTimeEpoch = (epochMillis: number) =>\n Math.max(0, epochMillis - this.getZeroTime());\n}\n"],"mappings":";;AAIA,IAAI;AAEJ,SAAgB,qBAAqB,SAAuB;AAC1D,mBAAkB;;AAGpB,SAAgB,iCAAuC;AACrD,mBAAkB,KAAA;;AAGpB,IAAa,yBAAb,MAAkE;CAChE;CACA,kBAA8D;CAE9D,YAAmB,QAA0B,OAAO,aAAa;AAC/D,OAAK,SAAS;;CAMhB,+BAAsC,iBACpC,KAAK,OAAO,aAAa;CAE3B,qBAA4B,eAAe,KAAK,cAAc,CAAC;CAE/D,qBACE,KAAK,4BAA4B,KAAK,OAAO,KAAK,CAAC;CAErD,qBAA4B,SAC1B,KAAK,cAAc,GAAG,qBAAqB,KAAK;;;;;;;CAQlD,oBACE,KAAK,IACH,KAAK,OAAO,aAAa,KAAK,+BAA+B,EAC7D,mBAAmB,EACpB;CAIH,2BAAsE;AACpE,MAAI,KAAK,gBACP,QAAO,KAAK;EAGd,MAAM,CAAC,SAAS,KAAK,OAAO,mBAAmB,aAAa,IAAI,EAAE;AAElE,MAAI,OAAO;AACT,QAAK,kBAAkB;AACvB,UAAO,KAAK;;AAGd,SAAO;;CAGT,gCAAgD;AAE9C,SADc,KAAK,oBACP,EAAE,mBAAmB;;CAGnC,sBAA6B,iBAC3B,KAAK,IAAI,GAAG,gBAAgB,KAAK,aAAa,GAAG,KAAK,OAAO,YAAY;CAE3E,2BAAkC,gBAChC,KAAK,IAAI,GAAG,cAAc,KAAK,aAAa,CAAC"}
|
|
@@ -7,10 +7,14 @@ interface PerformanceManager {
|
|
|
7
7
|
getNowMillis: () => number;
|
|
8
8
|
millisSinceHRTime: (time: HrTime) => number;
|
|
9
9
|
millisFromZeroTime: (originOffset: number) => number;
|
|
10
|
+
millisFromZeroTimeEpoch: (epochMillis: number) => number;
|
|
11
|
+
getZeroTime: () => number;
|
|
12
|
+
getNavigationEntry: () => PerformanceNavigationTiming | null;
|
|
10
13
|
}
|
|
11
14
|
interface PerformanceClock {
|
|
12
15
|
now: () => number;
|
|
13
16
|
timeOrigin: number;
|
|
17
|
+
getEntriesByType?: (type: string) => PerformanceEntry[];
|
|
14
18
|
}
|
|
15
19
|
//#endregion
|
|
16
20
|
export { PerformanceClock, PerformanceManager };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/utils/PerformanceManager/types.ts"],"mappings":";;;UAEiB,kBAAA;EACf,YAAA,QAAoB,MAAA;EACpB,2BAAA,GAA8B,YAAA;EAC9B,YAAA;EACA,iBAAA,GAAoB,IAAA,EAAM,MAAA;EAC1B,kBAAA,GAAqB,YAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/utils/PerformanceManager/types.ts"],"mappings":";;;UAEiB,kBAAA;EACf,YAAA,QAAoB,MAAA;EACpB,2BAAA,GAA8B,YAAA;EAC9B,YAAA;EACA,iBAAA,GAAoB,IAAA,EAAM,MAAA;EAC1B,kBAAA,GAAqB,YAAA;EACrB,uBAAA,GAA0B,WAAA;EAC1B,WAAA;EACA,kBAAA,QAA0B,2BAAA;AAAA;AAAA,UAGX,gBAAA;EACf,GAAA;EACA,UAAA;EACA,gBAAA,IAAoB,IAAA,aAAiB,gBAAA;AAAA"}
|
|
@@ -7,10 +7,14 @@ interface PerformanceManager {
|
|
|
7
7
|
getNowMillis: () => number;
|
|
8
8
|
millisSinceHRTime: (time: HrTime) => number;
|
|
9
9
|
millisFromZeroTime: (originOffset: number) => number;
|
|
10
|
+
millisFromZeroTimeEpoch: (epochMillis: number) => number;
|
|
11
|
+
getZeroTime: () => number;
|
|
12
|
+
getNavigationEntry: () => PerformanceNavigationTiming | null;
|
|
10
13
|
}
|
|
11
14
|
interface PerformanceClock {
|
|
12
15
|
now: () => number;
|
|
13
16
|
timeOrigin: number;
|
|
17
|
+
getEntriesByType?: (type: string) => PerformanceEntry[];
|
|
14
18
|
}
|
|
15
19
|
//#endregion
|
|
16
20
|
export { PerformanceClock, PerformanceManager };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/utils/PerformanceManager/types.ts"],"mappings":";;;UAEiB,kBAAA;EACf,YAAA,QAAoB,MAAA;EACpB,2BAAA,GAA8B,YAAA;EAC9B,YAAA;EACA,iBAAA,GAAoB,IAAA,EAAM,MAAA;EAC1B,kBAAA,GAAqB,YAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/utils/PerformanceManager/types.ts"],"mappings":";;;UAEiB,kBAAA;EACf,YAAA,QAAoB,MAAA;EACpB,2BAAA,GAA8B,YAAA;EAC9B,YAAA;EACA,iBAAA,GAAoB,IAAA,EAAM,MAAA;EAC1B,kBAAA,GAAqB,YAAA;EACrB,uBAAA,GAA0B,WAAA;EAC1B,WAAA;EACA,kBAAA,QAA0B,2BAAA;AAAA;AAAA,UAGX,gBAAA;EACf,GAAA;EACA,UAAA;EACA,gBAAA,IAAoB,IAAA,aAAiB,gBAAA;AAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/utils/boundedQueue.ts
|
|
3
|
+
const PRE_INIT_QUEUE_CAP = 100;
|
|
4
|
+
const pushBounded = (queue, item, onOverflow, cap = 100) => {
|
|
5
|
+
if (queue.length >= cap) {
|
|
6
|
+
queue.shift();
|
|
7
|
+
onOverflow();
|
|
8
|
+
}
|
|
9
|
+
queue.push(item);
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.PRE_INIT_QUEUE_CAP = PRE_INIT_QUEUE_CAP;
|
|
13
|
+
exports.pushBounded = pushBounded;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=boundedQueue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundedQueue.cjs","names":[],"sources":["../../src/utils/boundedQueue.ts"],"sourcesContent":["export const PRE_INIT_QUEUE_CAP = 100;\n\nexport const pushBounded = <T>(\n queue: T[],\n item: T,\n onOverflow: () => void,\n cap = PRE_INIT_QUEUE_CAP,\n): void => {\n if (queue.length >= cap) {\n queue.shift();\n onOverflow();\n }\n queue.push(item);\n};\n"],"mappings":";;AAAA,MAAa,qBAAqB;AAElC,MAAa,eACX,OACA,MACA,YACA,MAAA,QACS;AACT,KAAI,MAAM,UAAU,KAAK;AACvB,QAAM,OAAO;AACb,cAAY;;AAEd,OAAM,KAAK,KAAK"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/utils/boundedQueue.d.ts
|
|
2
|
+
declare const PRE_INIT_QUEUE_CAP = 100;
|
|
3
|
+
declare const pushBounded: <T>(queue: T[], item: T, onOverflow: () => void, cap?: number) => void;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { PRE_INIT_QUEUE_CAP, pushBounded };
|
|
6
|
+
//# sourceMappingURL=boundedQueue.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundedQueue.d.cts","names":[],"sources":["../../src/utils/boundedQueue.ts"],"mappings":";cAAa,kBAAA;AAAA,cAEA,WAAA,MACX,KAAA,EAAO,CAAA,IACP,IAAA,EAAM,CAAA,EACN,UAAA,cACA,GAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/utils/boundedQueue.d.ts
|
|
2
|
+
declare const PRE_INIT_QUEUE_CAP = 100;
|
|
3
|
+
declare const pushBounded: <T>(queue: T[], item: T, onOverflow: () => void, cap?: number) => void;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { PRE_INIT_QUEUE_CAP, pushBounded };
|
|
6
|
+
//# sourceMappingURL=boundedQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundedQueue.d.ts","names":[],"sources":["../../src/utils/boundedQueue.ts"],"mappings":";cAAa,kBAAA;AAAA,cAEA,WAAA,MACX,KAAA,EAAO,CAAA,IACP,IAAA,EAAM,CAAA,EACN,UAAA,cACA,GAAA"}
|