@kubesense/kubesense-browser-rum-core 1.8.0 → 2.0.0-beta.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/LICENSE +1 -1
- package/cjs/boot/preStartRum.d.ts +4 -3
- package/cjs/boot/preStartRum.js +229 -204
- package/cjs/boot/preStartRum.js.map +1 -1
- package/cjs/boot/rumPublicApi.d.ts +190 -51
- package/cjs/boot/rumPublicApi.js +267 -164
- package/cjs/boot/rumPublicApi.js.map +1 -1
- package/cjs/boot/startRum.d.ts +42 -31
- package/cjs/boot/startRum.js +157 -150
- package/cjs/boot/startRum.js.map +1 -1
- package/cjs/browser/cookieObservable.d.ts +1 -5
- package/cjs/browser/cookieObservable.js +30 -34
- package/cjs/browser/cookieObservable.js.map +1 -1
- package/cjs/browser/domMutationObservable.d.ts +3 -3
- package/cjs/browser/domMutationObservable.js +29 -53
- package/cjs/browser/domMutationObservable.js.map +1 -1
- package/cjs/browser/htmlDomUtils.d.ts +5 -0
- package/cjs/browser/htmlDomUtils.js +38 -28
- package/cjs/browser/htmlDomUtils.js.map +1 -1
- package/cjs/browser/locationChangeObservable.d.ts +1 -2
- package/cjs/browser/locationChangeObservable.js +44 -45
- package/cjs/browser/locationChangeObservable.js.map +1 -1
- package/cjs/browser/performanceObservable.d.ts +4 -4
- package/cjs/browser/performanceObservable.js +50 -114
- package/cjs/browser/performanceObservable.js.map +1 -1
- package/cjs/browser/performanceUtils.d.ts +13 -1
- package/cjs/browser/performanceUtils.js +63 -37
- package/cjs/browser/performanceUtils.js.map +1 -1
- package/cjs/browser/scroll.js +17 -28
- package/cjs/browser/scroll.js.map +1 -1
- package/cjs/browser/viewportObservable.d.ts +2 -3
- package/cjs/browser/viewportObservable.js +29 -31
- package/cjs/browser/viewportObservable.js.map +1 -1
- package/cjs/browser/windowOpenObservable.js +11 -7
- package/cjs/browser/windowOpenObservable.js.map +1 -1
- package/cjs/domain/action/actionCollection.d.ts +11 -12
- package/cjs/domain/action/actionCollection.js +82 -89
- package/cjs/domain/action/actionCollection.js.map +1 -1
- package/cjs/domain/action/actionNameConstants.js +10 -9
- package/cjs/domain/action/actionNameConstants.js.map +1 -1
- package/cjs/domain/action/clickChain.js +51 -54
- package/cjs/domain/action/clickChain.js.map +1 -1
- package/cjs/domain/action/computeFrustration.js +30 -62
- package/cjs/domain/action/computeFrustration.js.map +1 -1
- package/cjs/domain/action/frustrationIgnore.d.ts +9 -0
- package/cjs/domain/action/frustrationIgnore.js +32 -0
- package/cjs/domain/action/frustrationIgnore.js.map +1 -0
- package/cjs/domain/action/getActionNameFromElement.js +141 -217
- package/cjs/domain/action/getActionNameFromElement.js.map +1 -1
- package/cjs/domain/action/interactionSelectorCache.d.ts +1 -1
- package/cjs/domain/action/interactionSelectorCache.js +17 -18
- package/cjs/domain/action/interactionSelectorCache.js.map +1 -1
- package/cjs/domain/action/isActionChildEvent.d.ts +2 -0
- package/cjs/domain/action/isActionChildEvent.js +8 -0
- package/cjs/domain/action/isActionChildEvent.js.map +1 -0
- package/cjs/domain/action/listenActionEvents.d.ts +2 -3
- package/cjs/domain/action/listenActionEvents.js +51 -55
- package/cjs/domain/action/listenActionEvents.js.map +1 -1
- package/cjs/domain/action/trackClickActions.d.ts +15 -21
- package/cjs/domain/action/trackClickActions.js +188 -226
- package/cjs/domain/action/trackClickActions.js.map +1 -1
- package/cjs/domain/action/trackManualActions.d.ts +45 -0
- package/cjs/domain/action/trackManualActions.js +48 -0
- package/cjs/domain/action/trackManualActions.js.map +1 -0
- package/cjs/domain/assembly.d.ts +1 -2
- package/cjs/domain/assembly.js +80 -95
- package/cjs/domain/assembly.js.map +1 -1
- package/cjs/domain/configuration/configuration.d.ts +575 -81
- package/cjs/domain/configuration/configuration.js +464 -199
- package/cjs/domain/configuration/configuration.js.map +1 -1
- package/cjs/domain/configuration/index.d.ts +1 -0
- package/cjs/domain/configuration/index.js +27 -21
- package/cjs/domain/configuration/jsonPathParser.js +125 -139
- package/cjs/domain/configuration/jsonPathParser.js.map +1 -1
- package/cjs/domain/configuration/remoteConfiguration.d.ts +18 -5
- package/cjs/domain/configuration/remoteConfiguration.js +268 -226
- package/cjs/domain/configuration/remoteConfiguration.js.map +1 -1
- package/cjs/domain/configuration/remoteConfiguration.types.d.ts +49 -0
- package/cjs/domain/configuration/remoteConfigurationCache.d.ts +42 -0
- package/cjs/domain/configuration/remoteConfigurationCache.js +95 -0
- package/cjs/domain/configuration/remoteConfigurationCache.js.map +1 -0
- package/cjs/domain/configuration/remoteSdkConfiguration.d.ts +11 -2
- package/cjs/domain/configuration/remoteSdkConfiguration.js +185 -117
- package/cjs/domain/configuration/remoteSdkConfiguration.js.map +1 -1
- package/cjs/domain/configuration/sessionReplayRoutes.d.ts +1 -6
- package/cjs/domain/configuration/sessionReplayRoutes.js +20 -63
- package/cjs/domain/configuration/sessionReplayRoutes.js.map +1 -1
- package/cjs/domain/contexts/ciVisibilityContext.d.ts +2 -4
- package/cjs/domain/contexts/ciVisibilityContext.js +36 -32
- package/cjs/domain/contexts/ciVisibilityContext.js.map +1 -1
- package/cjs/domain/contexts/connectivityContext.d.ts +2 -2
- package/cjs/domain/contexts/connectivityContext.js +10 -9
- package/cjs/domain/contexts/connectivityContext.js.map +1 -1
- package/cjs/domain/contexts/defaultContext.d.ts +3 -3
- package/cjs/domain/contexts/defaultContext.js +28 -32
- package/cjs/domain/contexts/defaultContext.js.map +1 -1
- package/cjs/domain/contexts/displayContext.d.ts +2 -3
- package/cjs/domain/contexts/displayContext.js +22 -26
- package/cjs/domain/contexts/displayContext.js.map +1 -1
- package/cjs/domain/contexts/featureFlagContext.d.ts +2 -2
- package/cjs/domain/contexts/featureFlagContext.js +38 -50
- package/cjs/domain/contexts/featureFlagContext.js.map +1 -1
- package/cjs/domain/contexts/internalContext.d.ts +2 -3
- package/cjs/domain/contexts/internalContext.js +26 -22
- package/cjs/domain/contexts/internalContext.js.map +1 -1
- package/cjs/domain/contexts/pageStateHistory.d.ts +3 -4
- package/cjs/domain/contexts/pageStateHistory.js +76 -96
- package/cjs/domain/contexts/pageStateHistory.js.map +1 -1
- package/cjs/domain/contexts/sessionContext.d.ts +9 -3
- package/cjs/domain/contexts/sessionContext.js +31 -45
- package/cjs/domain/contexts/sessionContext.js.map +1 -1
- package/cjs/domain/contexts/sourceCodeMfeContext.d.ts +10 -0
- package/cjs/domain/contexts/sourceCodeMfeContext.js +35 -0
- package/cjs/domain/contexts/sourceCodeMfeContext.js.map +1 -0
- package/cjs/domain/contexts/syntheticsContext.d.ts +2 -2
- package/cjs/domain/contexts/syntheticsContext.js +19 -23
- package/cjs/domain/contexts/syntheticsContext.js.map +1 -1
- package/cjs/domain/contexts/trackingConsentContext.d.ts +2 -2
- package/cjs/domain/contexts/trackingConsentContext.js +10 -12
- package/cjs/domain/contexts/trackingConsentContext.js.map +1 -1
- package/cjs/domain/contexts/urlContexts.d.ts +4 -3
- package/cjs/domain/contexts/urlContexts.js +65 -61
- package/cjs/domain/contexts/urlContexts.js.map +1 -1
- package/cjs/domain/contexts/userAgentDataContext.d.ts +2 -2
- package/cjs/domain/contexts/userAgentDataContext.js +20 -29
- package/cjs/domain/contexts/userAgentDataContext.js.map +1 -1
- package/cjs/domain/contexts/viewHistory.d.ts +5 -2
- package/cjs/domain/contexts/viewHistory.js +41 -45
- package/cjs/domain/contexts/viewHistory.js.map +1 -1
- package/cjs/domain/discardNegativeDuration.d.ts +1 -1
- package/cjs/domain/discardNegativeDuration.js +6 -5
- package/cjs/domain/discardNegativeDuration.js.map +1 -1
- package/cjs/domain/error/errorCollection.d.ts +3 -3
- package/cjs/domain/error/errorCollection.js +67 -68
- package/cjs/domain/error/errorCollection.js.map +1 -1
- package/cjs/domain/error/trackReportError.d.ts +1 -2
- package/cjs/domain/error/trackReportError.js +10 -14
- package/cjs/domain/error/trackReportError.js.map +1 -1
- package/cjs/domain/event/eventCollection.d.ts +2 -1
- package/cjs/domain/event/eventCollection.js +21 -22
- package/cjs/domain/event/eventCollection.js.map +1 -1
- package/cjs/domain/eventTracker.d.ts +37 -0
- package/cjs/domain/eventTracker.js +94 -0
- package/cjs/domain/eventTracker.js.map +1 -0
- package/cjs/domain/extractRegexMatch.d.ts +5 -0
- package/cjs/domain/extractRegexMatch.js +16 -0
- package/cjs/domain/extractRegexMatch.js.map +1 -0
- package/cjs/domain/getComposedPathSelector.d.ts +22 -0
- package/cjs/domain/getComposedPathSelector.js +95 -0
- package/cjs/domain/getComposedPathSelector.js.map +1 -0
- package/cjs/domain/getSelectorFromElement.d.ts +18 -6
- package/cjs/domain/getSelectorFromElement.js +199 -191
- package/cjs/domain/getSelectorFromElement.js.map +1 -1
- package/cjs/domain/getSessionReplayUrl.d.ts +2 -2
- package/cjs/domain/getSessionReplayUrl.js +17 -30
- package/cjs/domain/getSessionReplayUrl.js.map +1 -1
- package/cjs/domain/hooks.d.ts +26 -17
- package/cjs/domain/hooks.js +12 -5
- package/cjs/domain/hooks.js.map +1 -1
- package/cjs/domain/lifeCycle.d.ts +26 -12
- package/cjs/domain/lifeCycle.js +28 -5
- package/cjs/domain/lifeCycle.js.map +1 -1
- package/cjs/domain/limitModification.d.ts +5 -1
- package/cjs/domain/limitModification.js +32 -36
- package/cjs/domain/limitModification.js.map +1 -1
- package/cjs/domain/longTask/longTaskCollection.d.ts +0 -13
- package/cjs/domain/longTask/longTaskCollection.js +75 -87
- package/cjs/domain/longTask/longTaskCollection.js.map +1 -1
- package/cjs/domain/plugins.d.ts +37 -14
- package/cjs/domain/plugins.js +22 -13
- package/cjs/domain/plugins.js.map +1 -1
- package/cjs/domain/privacy.d.ts +6 -1
- package/cjs/domain/privacy.js +143 -286
- package/cjs/domain/privacy.js.map +1 -1
- package/cjs/domain/privacyConstants.js +43 -34
- package/cjs/domain/privacyConstants.js.map +1 -1
- package/cjs/domain/requestCollection.d.ts +6 -5
- package/cjs/domain/requestCollection.js +82 -105
- package/cjs/domain/requestCollection.js.map +1 -1
- package/cjs/domain/resource/graphql.d.ts +1 -1
- package/cjs/domain/resource/graphql.js +85 -86
- package/cjs/domain/resource/graphql.js.map +1 -1
- package/cjs/domain/resource/requestRegistry.js +30 -38
- package/cjs/domain/resource/requestRegistry.js.map +1 -1
- package/cjs/domain/resource/resourceCollection.d.ts +5 -3
- package/cjs/domain/resource/resourceCollection.js +241 -175
- package/cjs/domain/resource/resourceCollection.js.map +1 -1
- package/cjs/domain/resource/resourceUtils.d.ts +13 -13
- package/cjs/domain/resource/resourceUtils.js +323 -221
- package/cjs/domain/resource/resourceUtils.js.map +1 -1
- package/cjs/domain/resource/trackManualResources.d.ts +55 -0
- package/cjs/domain/resource/trackManualResources.js +53 -0
- package/cjs/domain/resource/trackManualResources.js.map +1 -0
- package/cjs/domain/resource/webSocketCollection.d.ts +46 -0
- package/cjs/domain/resource/webSocketCollection.js +163 -0
- package/cjs/domain/resource/webSocketCollection.js.map +1 -0
- package/cjs/domain/session/session.types.d.ts +4 -0
- package/cjs/domain/sessionReplayState.d.ts +8 -0
- package/cjs/domain/sessionReplayState.js +19 -0
- package/cjs/domain/sessionReplayState.js.map +1 -0
- package/cjs/domain/startCustomerDataTelemetry.js +39 -43
- package/cjs/domain/startCustomerDataTelemetry.js.map +1 -1
- package/cjs/domain/tracing/getDocumentTraceId.d.ts +1 -1
- package/cjs/domain/tracing/getDocumentTraceId.js +42 -63
- package/cjs/domain/tracing/getDocumentTraceId.js.map +1 -1
- package/cjs/domain/tracing/identifier.js +13 -46
- package/cjs/domain/tracing/identifier.js.map +1 -1
- package/cjs/domain/tracing/tracer.d.ts +2 -5
- package/cjs/domain/tracing/tracer.js +110 -150
- package/cjs/domain/tracing/tracer.js.map +1 -1
- package/cjs/domain/trackEventCounts.js +43 -48
- package/cjs/domain/trackEventCounts.js.map +1 -1
- package/cjs/domain/view/bfCacheSupport.d.ts +1 -2
- package/cjs/domain/view/bfCacheSupport.js +10 -11
- package/cjs/domain/view/bfCacheSupport.js.map +1 -1
- package/cjs/domain/view/trackViewEventCounts.js +14 -13
- package/cjs/domain/view/trackViewEventCounts.js.map +1 -1
- package/cjs/domain/view/trackViews.d.ts +8 -2
- package/cjs/domain/view/trackViews.js +221 -270
- package/cjs/domain/view/trackViews.js.map +1 -1
- package/cjs/domain/view/viewCollection.d.ts +4 -3
- package/cjs/domain/view/viewCollection.js +124 -148
- package/cjs/domain/view/viewCollection.js.map +1 -1
- package/cjs/domain/view/viewDiff.d.ts +22 -0
- package/cjs/domain/view/viewDiff.js +62 -0
- package/cjs/domain/view/viewDiff.js.map +1 -0
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js +20 -22
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -1
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.d.ts +1 -0
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js +35 -33
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +1 -1
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js +14 -13
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +4 -2
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js +51 -34
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +1 -1
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js +106 -122
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +2 -3
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js +26 -34
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackFirstHidden.d.ts +2 -3
- package/cjs/domain/view/viewMetrics/trackFirstHidden.js +31 -31
- package/cjs/domain/view/viewMetrics/trackFirstHidden.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +1 -3
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js +33 -38
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +10 -1
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js +202 -144
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +6 -1
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js +65 -55
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackLoadingTime.d.ts +2 -1
- package/cjs/domain/view/viewMetrics/trackLoadingTime.js +42 -46
- package/cjs/domain/view/viewMetrics/trackLoadingTime.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.d.ts +2 -3
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.js +28 -36
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -1
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.d.ts +3 -4
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.js +63 -72
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -1
- package/cjs/domain/vital/vitalCollection.d.ts +44 -20
- package/cjs/domain/vital/vitalCollection.js +81 -109
- package/cjs/domain/vital/vitalCollection.js.map +1 -1
- package/cjs/domain/waitPageActivityEnd.d.ts +1 -4
- package/cjs/domain/waitPageActivityEnd.js +99 -119
- package/cjs/domain/waitPageActivityEnd.js.map +1 -1
- package/cjs/domainContext.types.d.ts +21 -13
- package/cjs/index.d.ts +11 -10
- package/cjs/index.js +84 -62
- package/cjs/rawRumEvent.types.d.ts +79 -13
- package/cjs/rawRumEvent.types.js +40 -27
- package/cjs/rawRumEvent.types.js.map +1 -1
- package/cjs/rumEvent.types.d.ts +906 -669
- package/cjs/transport/formDataTransport.js +43 -41
- package/cjs/transport/formDataTransport.js.map +1 -1
- package/cjs/transport/startRumBatch.d.ts +27 -3
- package/cjs/transport/startRumBatch.js +132 -31
- package/cjs/transport/startRumBatch.js.map +1 -1
- package/cjs/transport/startRumEventBridge.js +10 -8
- package/cjs/transport/startRumEventBridge.js.map +1 -1
- package/esm/boot/preStartRum.mjs +233 -0
- package/esm/boot/preStartRum.mjs.map +1 -0
- package/esm/boot/rumPublicApi.mjs +271 -0
- package/esm/boot/rumPublicApi.mjs.map +1 -0
- package/esm/boot/startRum.mjs +159 -0
- package/esm/boot/startRum.mjs.map +1 -0
- package/esm/browser/cookieObservable.mjs +34 -0
- package/esm/browser/cookieObservable.mjs.map +1 -0
- package/esm/browser/domMutationObservable.mjs +33 -0
- package/esm/browser/domMutationObservable.mjs.map +1 -0
- package/esm/browser/htmlDomUtils.mjs +48 -0
- package/esm/browser/htmlDomUtils.mjs.map +1 -0
- package/esm/browser/locationChangeObservable.mjs +50 -0
- package/esm/browser/locationChangeObservable.mjs.map +1 -0
- package/esm/browser/performanceObservable.mjs +60 -0
- package/esm/browser/performanceObservable.mjs.map +1 -0
- package/esm/browser/performanceUtils.mjs +64 -0
- package/esm/browser/performanceUtils.mjs.map +1 -0
- package/esm/browser/scroll.mjs +21 -0
- package/esm/browser/scroll.mjs.map +1 -0
- package/esm/browser/viewportObservable.mjs +33 -0
- package/esm/browser/viewportObservable.mjs.map +1 -0
- package/esm/browser/windowOpenObservable.mjs +14 -0
- package/esm/browser/windowOpenObservable.mjs.map +1 -0
- package/esm/domain/action/actionCollection.mjs +89 -0
- package/esm/domain/action/actionCollection.mjs.map +1 -0
- package/esm/domain/action/actionNameConstants.mjs +11 -0
- package/esm/domain/action/actionNameConstants.mjs.map +1 -0
- package/esm/domain/action/clickChain.mjs +57 -0
- package/esm/domain/action/clickChain.mjs.map +1 -0
- package/esm/domain/action/computeFrustration.mjs +36 -0
- package/esm/domain/action/computeFrustration.mjs.map +1 -0
- package/esm/domain/action/frustrationIgnore.mjs +31 -0
- package/esm/domain/action/frustrationIgnore.mjs.map +1 -0
- package/esm/domain/action/getActionNameFromElement.mjs +163 -0
- package/esm/domain/action/getActionNameFromElement.mjs.map +1 -0
- package/esm/domain/action/interactionSelectorCache.mjs +19 -0
- package/esm/domain/action/interactionSelectorCache.mjs.map +1 -0
- package/esm/domain/action/isActionChildEvent.mjs +8 -0
- package/esm/domain/action/isActionChildEvent.mjs.map +1 -0
- package/esm/domain/action/listenActionEvents.mjs +57 -0
- package/esm/domain/action/listenActionEvents.mjs.map +1 -0
- package/esm/domain/action/trackClickActions.mjs +198 -0
- package/esm/domain/action/trackClickActions.mjs.map +1 -0
- package/esm/domain/action/trackManualActions.mjs +48 -0
- package/esm/domain/action/trackManualActions.mjs.map +1 -0
- package/esm/domain/assembly.mjs +87 -0
- package/esm/domain/assembly.mjs.map +1 -0
- package/esm/domain/configuration/configuration.mjs +474 -0
- package/esm/domain/configuration/configuration.mjs.map +1 -0
- package/esm/domain/configuration/index.mjs +6 -0
- package/esm/domain/configuration/jsonPathParser.mjs +145 -0
- package/esm/domain/configuration/jsonPathParser.mjs.map +1 -0
- package/esm/domain/configuration/remoteConfiguration.mjs +279 -0
- package/esm/domain/configuration/remoteConfiguration.mjs.map +1 -0
- package/esm/domain/configuration/remoteConfigurationCache.mjs +92 -0
- package/esm/domain/configuration/remoteConfigurationCache.mjs.map +1 -0
- package/esm/domain/configuration/remoteSdkConfiguration.mjs +208 -0
- package/esm/domain/configuration/remoteSdkConfiguration.mjs.map +1 -0
- package/esm/domain/configuration/sessionReplayRoutes.mjs +26 -0
- package/esm/domain/configuration/sessionReplayRoutes.mjs.map +1 -0
- package/esm/domain/contexts/ciVisibilityContext.mjs +37 -0
- package/esm/domain/contexts/ciVisibilityContext.mjs.map +1 -0
- package/esm/domain/contexts/connectivityContext.mjs +12 -0
- package/esm/domain/contexts/connectivityContext.mjs.map +1 -0
- package/esm/domain/contexts/defaultContext.mjs +30 -0
- package/esm/domain/contexts/defaultContext.mjs.map +1 -0
- package/esm/domain/contexts/displayContext.mjs +24 -0
- package/esm/domain/contexts/displayContext.mjs.map +1 -0
- package/esm/domain/contexts/featureFlagContext.mjs +40 -0
- package/esm/domain/contexts/featureFlagContext.mjs.map +1 -0
- package/esm/domain/contexts/internalContext.mjs +30 -0
- package/esm/domain/contexts/internalContext.mjs.map +1 -0
- package/esm/domain/contexts/pageStateHistory.mjs +82 -0
- package/esm/domain/contexts/pageStateHistory.mjs.map +1 -0
- package/esm/domain/contexts/sessionContext.mjs +33 -0
- package/esm/domain/contexts/sessionContext.mjs.map +1 -0
- package/esm/domain/contexts/sourceCodeMfeContext.mjs +35 -0
- package/esm/domain/contexts/sourceCodeMfeContext.mjs.map +1 -0
- package/esm/domain/contexts/syntheticsContext.mjs +21 -0
- package/esm/domain/contexts/syntheticsContext.mjs.map +1 -0
- package/esm/domain/contexts/trackingConsentContext.mjs +12 -0
- package/esm/domain/contexts/trackingConsentContext.mjs.map +1 -0
- package/esm/domain/contexts/urlContexts.mjs +67 -0
- package/esm/domain/contexts/urlContexts.mjs.map +1 -0
- package/esm/domain/contexts/userAgentDataContext.mjs +22 -0
- package/esm/domain/contexts/userAgentDataContext.mjs.map +1 -0
- package/esm/domain/contexts/viewHistory.mjs +43 -0
- package/esm/domain/contexts/viewHistory.mjs.map +1 -0
- package/esm/domain/discardNegativeDuration.mjs +9 -0
- package/esm/domain/discardNegativeDuration.mjs.map +1 -0
- package/esm/domain/error/errorCollection.mjs +72 -0
- package/esm/domain/error/errorCollection.mjs.map +1 -0
- package/esm/domain/error/trackReportError.mjs +12 -0
- package/esm/domain/error/trackReportError.mjs.map +1 -0
- package/esm/domain/event/eventCollection.mjs +26 -0
- package/esm/domain/event/eventCollection.mjs.map +1 -0
- package/esm/domain/eventTracker.mjs +93 -0
- package/esm/domain/eventTracker.mjs.map +1 -0
- package/esm/domain/extractRegexMatch.mjs +16 -0
- package/esm/domain/extractRegexMatch.mjs.map +1 -0
- package/esm/domain/getComposedPathSelector.mjs +93 -0
- package/esm/domain/getComposedPathSelector.mjs.map +1 -0
- package/esm/domain/getSelectorFromElement.mjs +218 -0
- package/esm/domain/getSelectorFromElement.mjs.map +1 -0
- package/esm/domain/getSessionReplayUrl.mjs +20 -0
- package/esm/domain/getSessionReplayUrl.mjs.map +1 -0
- package/esm/domain/hooks.mjs +13 -0
- package/esm/domain/hooks.mjs.map +1 -0
- package/esm/domain/lifeCycle.mjs +28 -0
- package/esm/domain/lifeCycle.mjs.map +1 -0
- package/esm/domain/limitModification.mjs +42 -0
- package/esm/domain/limitModification.mjs.map +1 -0
- package/esm/domain/longTask/longTaskCollection.mjs +79 -0
- package/esm/domain/longTask/longTaskCollection.mjs.map +1 -0
- package/esm/domain/plugins.mjs +23 -0
- package/esm/domain/plugins.mjs.map +1 -0
- package/esm/domain/privacy.mjs +161 -0
- package/esm/domain/privacy.mjs.map +1 -0
- package/esm/domain/privacyConstants.mjs +36 -0
- package/esm/domain/privacyConstants.mjs.map +1 -0
- package/esm/domain/requestCollection.mjs +86 -0
- package/esm/domain/requestCollection.mjs.map +1 -0
- package/esm/domain/resource/graphql.mjs +93 -0
- package/esm/domain/resource/graphql.mjs.map +1 -0
- package/esm/domain/resource/requestRegistry.mjs +32 -0
- package/esm/domain/resource/requestRegistry.mjs.map +1 -0
- package/esm/domain/resource/resourceCollection.mjs +256 -0
- package/esm/domain/resource/resourceCollection.mjs.map +1 -0
- package/esm/domain/resource/resourceUtils.mjs +349 -0
- package/esm/domain/resource/resourceUtils.mjs.map +1 -0
- package/esm/domain/resource/trackManualResources.mjs +53 -0
- package/esm/domain/resource/trackManualResources.mjs.map +1 -0
- package/esm/domain/resource/webSocketCollection.mjs +160 -0
- package/esm/domain/resource/webSocketCollection.mjs.map +1 -0
- package/esm/domain/sessionReplayState.mjs +18 -0
- package/esm/domain/sessionReplayState.mjs.map +1 -0
- package/esm/domain/startCustomerDataTelemetry.mjs +51 -0
- package/esm/domain/startCustomerDataTelemetry.mjs.map +1 -0
- package/esm/domain/tracing/getDocumentTraceId.mjs +50 -0
- package/esm/domain/tracing/getDocumentTraceId.mjs.map +1 -0
- package/esm/domain/tracing/identifier.mjs +20 -0
- package/esm/domain/tracing/identifier.mjs.map +1 -0
- package/esm/domain/tracing/tracer.mjs +120 -0
- package/esm/domain/tracing/tracer.mjs.map +1 -0
- package/esm/domain/trackEventCounts.mjs +45 -0
- package/esm/domain/trackEventCounts.mjs.map +1 -0
- package/esm/domain/view/bfCacheSupport.mjs +12 -0
- package/esm/domain/view/bfCacheSupport.mjs.map +1 -0
- package/esm/domain/view/trackViewEventCounts.mjs +17 -0
- package/esm/domain/view/trackViewEventCounts.mjs.map +1 -0
- package/esm/domain/view/trackViews.mjs +230 -0
- package/esm/domain/view/trackViews.mjs.map +1 -0
- package/esm/domain/view/viewCollection.mjs +129 -0
- package/esm/domain/view/viewCollection.mjs.map +1 -0
- package/esm/domain/view/viewDiff.mjs +61 -0
- package/esm/domain/view/viewDiff.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.mjs +30 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.mjs +45 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.mjs +18 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.mjs +54 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.mjs +117 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.mjs +29 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.mjs +33 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.mjs +36 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.mjs +210 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.mjs +70 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.mjs +46 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.mjs +35 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.mjs.map +1 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.mjs +66 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.mjs.map +1 -0
- package/esm/domain/vital/vitalCollection.mjs +85 -0
- package/esm/domain/vital/vitalCollection.mjs.map +1 -0
- package/esm/domain/waitPageActivityEnd.mjs +107 -0
- package/esm/domain/waitPageActivityEnd.mjs.map +1 -0
- package/esm/index.mjs +23 -0
- package/esm/rawRumEvent.types.mjs +42 -0
- package/esm/rawRumEvent.types.mjs.map +1 -0
- package/esm/transport/formDataTransport.mjs +48 -0
- package/esm/transport/formDataTransport.mjs.map +1 -0
- package/esm/transport/startRumBatch.mjs +132 -0
- package/esm/transport/startRumBatch.mjs.map +1 -0
- package/esm/transport/startRumEventBridge.mjs +13 -0
- package/esm/transport/startRumEventBridge.mjs.map +1 -0
- package/package.json +19 -11
- package/src/boot/preStartRum.ts +216 -88
- package/src/boot/rumPublicApi.ts +358 -119
- package/src/boot/startRum.ts +88 -84
- package/src/browser/cookieObservable.ts +19 -28
- package/src/browser/domMutationObservable.ts +7 -12
- package/src/browser/htmlDomUtils.ts +15 -0
- package/src/browser/locationChangeObservable.ts +23 -12
- package/src/browser/performanceObservable.ts +23 -73
- package/src/browser/performanceUtils.ts +52 -4
- package/src/browser/viewportObservable.ts +4 -6
- package/src/domain/action/actionCollection.ts +94 -87
- package/src/domain/action/clickChain.ts +11 -10
- package/src/domain/action/computeFrustration.ts +19 -5
- package/src/domain/action/frustrationIgnore.ts +54 -0
- package/src/domain/action/getActionNameFromElement.ts +27 -61
- package/src/domain/action/interactionSelectorCache.ts +2 -2
- package/src/domain/action/isActionChildEvent.ts +6 -0
- package/src/domain/action/listenActionEvents.ts +2 -11
- package/src/domain/action/trackClickActions.ts +92 -82
- package/src/domain/action/trackManualActions.ts +104 -0
- package/src/domain/assembly.ts +57 -70
- package/src/domain/configuration/configuration.ts +587 -208
- package/src/domain/configuration/index.ts +1 -0
- package/src/domain/configuration/remoteConfiguration.ts +152 -29
- package/src/domain/configuration/remoteConfiguration.types.ts +51 -1
- package/src/domain/configuration/remoteConfigurationCache.ts +153 -0
- package/src/domain/configuration/remoteSdkConfiguration.ts +131 -13
- package/src/domain/configuration/sessionReplayRoutes.ts +2 -47
- package/src/domain/contexts/ciVisibilityContext.ts +23 -12
- package/src/domain/contexts/connectivityContext.ts +7 -10
- package/src/domain/contexts/defaultContext.ts +11 -14
- package/src/domain/contexts/displayContext.ts +8 -12
- package/src/domain/contexts/featureFlagContext.ts +5 -4
- package/src/domain/contexts/internalContext.ts +3 -3
- package/src/domain/contexts/pageStateHistory.ts +20 -31
- package/src/domain/contexts/sessionContext.ts +16 -22
- package/src/domain/contexts/sourceCodeMfeContext.ts +53 -0
- package/src/domain/contexts/syntheticsContext.ts +7 -17
- package/src/domain/contexts/trackingConsentContext.ts +7 -4
- package/src/domain/contexts/urlContexts.ts +13 -9
- package/src/domain/contexts/userAgentDataContext.ts +12 -13
- package/src/domain/contexts/viewHistory.ts +4 -3
- package/src/domain/discardNegativeDuration.ts +1 -1
- package/src/domain/error/errorCollection.ts +12 -22
- package/src/domain/error/trackReportError.ts +4 -7
- package/src/domain/event/eventCollection.ts +4 -2
- package/src/domain/eventTracker.ts +169 -0
- package/src/domain/extractRegexMatch.ts +15 -0
- package/src/domain/getComposedPathSelector.ts +130 -0
- package/src/domain/getSelectorFromElement.ts +125 -31
- package/src/domain/getSessionReplayUrl.ts +4 -13
- package/src/domain/hooks.ts +34 -21
- package/src/domain/lifeCycle.ts +21 -8
- package/src/domain/limitModification.ts +20 -4
- package/src/domain/longTask/longTaskCollection.ts +18 -47
- package/src/domain/plugins.ts +54 -25
- package/src/domain/privacy.ts +16 -24
- package/src/domain/requestCollection.ts +108 -97
- package/src/domain/resource/graphql.ts +71 -25
- package/src/domain/resource/requestRegistry.ts +1 -3
- package/src/domain/resource/resourceCollection.ts +319 -137
- package/src/domain/resource/resourceUtils.ts +24 -26
- package/src/domain/resource/trackManualResources.ts +121 -0
- package/src/domain/resource/webSocketCollection.ts +281 -0
- package/src/domain/session/session.types.ts +5 -0
- package/src/domain/sessionReplayState.ts +36 -0
- package/src/domain/startCustomerDataTelemetry.ts +2 -2
- package/src/domain/tracing/getDocumentTraceId.ts +5 -4
- package/src/domain/tracing/identifier.ts +6 -37
- package/src/domain/tracing/tracer.ts +22 -21
- package/src/domain/tracing/tracer.types.ts +3 -3
- package/src/domain/view/bfCacheSupport.ts +1 -6
- package/src/domain/view/trackViews.ts +40 -37
- package/src/domain/view/viewCollection.ts +29 -23
- package/src/domain/view/viewDiff.ts +115 -0
- package/src/domain/view/viewMetrics/interactionCountPolyfill.ts +13 -2
- package/src/domain/view/viewMetrics/trackBfcacheMetrics.ts +1 -1
- package/src/domain/view/viewMetrics/trackCommonViewMetrics.ts +27 -6
- package/src/domain/view/viewMetrics/trackCumulativeLayoutShift.ts +5 -3
- package/src/domain/view/viewMetrics/trackFirstContentfulPaint.ts +4 -9
- package/src/domain/view/viewMetrics/trackFirstHidden.ts +2 -8
- package/src/domain/view/viewMetrics/trackInitialViewMetrics.ts +4 -13
- package/src/domain/view/viewMetrics/trackInteractionToNextPaint.ts +180 -35
- package/src/domain/view/viewMetrics/trackLargestContentfulPaint.ts +47 -6
- package/src/domain/view/viewMetrics/trackLoadingTime.ts +4 -3
- package/src/domain/view/viewMetrics/trackNavigationTimings.ts +10 -18
- package/src/domain/view/viewMetrics/trackScrollMetrics.ts +23 -37
- package/src/domain/vital/vitalCollection.ts +83 -102
- package/src/domain/waitPageActivityEnd.ts +7 -11
- package/src/domainContext.types.ts +23 -15
- package/src/index.ts +17 -11
- package/src/rawRumEvent.types.ts +80 -26
- package/src/rumEvent.types.ts +730 -505
- package/src/transport/formDataTransport.ts +16 -6
- package/src/transport/startRumBatch.ts +181 -24
- package/cjs/browser/firstInputPolyfill.d.ts +0 -8
- package/cjs/browser/firstInputPolyfill.js +0 -68
- package/cjs/browser/firstInputPolyfill.js.map +0 -1
- package/cjs/domain/configuration/index.js.map +0 -1
- package/cjs/domain/configuration/remoteConfiguration.types.js +0 -7
- package/cjs/domain/configuration/remoteConfiguration.types.js.map +0 -1
- package/cjs/domain/error/trackConsoleError.d.ts +0 -4
- package/cjs/domain/error/trackConsoleError.js +0 -13
- package/cjs/domain/error/trackConsoleError.js.map +0 -1
- package/cjs/domain/resource/matchRequestResourceEntry.d.ts +0 -16
- package/cjs/domain/resource/matchRequestResourceEntry.js +0 -49
- package/cjs/domain/resource/matchRequestResourceEntry.js.map +0 -1
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +0 -4
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js +0 -24
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js.map +0 -1
- package/cjs/domain/rumSessionManager.d.ts +0 -36
- package/cjs/domain/rumSessionManager.js +0 -77
- package/cjs/domain/rumSessionManager.js.map +0 -1
- package/cjs/domain/sampler/sampler.d.ts +0 -10
- package/cjs/domain/sampler/sampler.js +0 -63
- package/cjs/domain/sampler/sampler.js.map +0 -1
- package/cjs/domain/tracing/sampler.d.ts +0 -10
- package/cjs/domain/tracing/sampler.js +0 -69
- package/cjs/domain/tracing/sampler.js.map +0 -1
- package/cjs/domain/tracing/tracer.types.js +0 -3
- package/cjs/domain/tracing/tracer.types.js.map +0 -1
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +0 -6
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +0 -44
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +0 -1
- package/cjs/domain/view/viewMetrics/trackFirstInput.d.ts +0 -19
- package/cjs/domain/view/viewMetrics/trackFirstInput.js +0 -43
- package/cjs/domain/view/viewMetrics/trackFirstInput.js.map +0 -1
- package/cjs/domainContext.types.js +0 -6
- package/cjs/domainContext.types.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/rumEvent.types.js +0 -7
- package/cjs/rumEvent.types.js.map +0 -1
- package/esm/boot/preStartRum.d.ts +0 -7
- package/esm/boot/preStartRum.js +0 -205
- package/esm/boot/preStartRum.js.map +0 -1
- package/esm/boot/rumPublicApi.d.ts +0 -409
- package/esm/boot/rumPublicApi.js +0 -165
- package/esm/boot/rumPublicApi.js.map +0 -1
- package/esm/boot/startRum.d.ts +0 -109
- package/esm/boot/startRum.js +0 -149
- package/esm/boot/startRum.js.map +0 -1
- package/esm/browser/cookieObservable.d.ts +0 -8
- package/esm/browser/cookieObservable.js +0 -35
- package/esm/browser/cookieObservable.js.map +0 -1
- package/esm/browser/domMutationObservable.d.ts +0 -27
- package/esm/browser/domMutationObservable.js +0 -54
- package/esm/browser/domMutationObservable.js.map +0 -1
- package/esm/browser/firstInputPolyfill.d.ts +0 -8
- package/esm/browser/firstInputPolyfill.js +0 -65
- package/esm/browser/firstInputPolyfill.js.map +0 -1
- package/esm/browser/htmlDomUtils.d.ts +0 -13
- package/esm/browser/htmlDomUtils.js +0 -36
- package/esm/browser/htmlDomUtils.js.map +0 -1
- package/esm/browser/locationChangeObservable.d.ts +0 -7
- package/esm/browser/locationChangeObservable.js +0 -48
- package/esm/browser/locationChangeObservable.js.map +0 -1
- package/esm/browser/performanceObservable.d.ts +0 -174
- package/esm/browser/performanceObservable.js +0 -121
- package/esm/browser/performanceObservable.js.map +0 -1
- package/esm/browser/performanceUtils.d.ts +0 -7
- package/esm/browser/performanceUtils.js +0 -38
- package/esm/browser/performanceUtils.js.map +0 -1
- package/esm/browser/scroll.d.ts +0 -2
- package/esm/browser/scroll.js +0 -29
- package/esm/browser/scroll.js.map +0 -1
- package/esm/browser/viewportObservable.d.ts +0 -10
- package/esm/browser/viewportObservable.js +0 -32
- package/esm/browser/viewportObservable.js.map +0 -1
- package/esm/browser/windowOpenObservable.d.ts +0 -5
- package/esm/browser/windowOpenObservable.js +0 -7
- package/esm/browser/windowOpenObservable.js.map +0 -1
- package/esm/domain/action/actionCollection.d.ts +0 -21
- package/esm/domain/action/actionCollection.js +0 -93
- package/esm/domain/action/actionCollection.js.map +0 -1
- package/esm/domain/action/actionNameConstants.d.ts +0 -18
- package/esm/domain/action/actionNameConstants.js +0 -8
- package/esm/domain/action/actionNameConstants.js.map +0 -1
- package/esm/domain/action/clickChain.d.ts +0 -8
- package/esm/domain/action/clickChain.js +0 -57
- package/esm/domain/action/clickChain.js.map +0 -1
- package/esm/domain/action/computeFrustration.d.ts +0 -6
- package/esm/domain/action/computeFrustration.js +0 -65
- package/esm/domain/action/computeFrustration.js.map +0 -1
- package/esm/domain/action/getActionNameFromElement.d.ts +0 -4
- package/esm/domain/action/getActionNameFromElement.js +0 -236
- package/esm/domain/action/getActionNameFromElement.js.map +0 -1
- package/esm/domain/action/interactionSelectorCache.d.ts +0 -5
- package/esm/domain/action/interactionSelectorCache.js +0 -18
- package/esm/domain/action/interactionSelectorCache.js.map +0 -1
- package/esm/domain/action/listenActionEvents.d.ts +0 -19
- package/esm/domain/action/listenActionEvents.js +0 -58
- package/esm/domain/action/listenActionEvents.js.map +0 -1
- package/esm/domain/action/trackClickActions.d.ts +0 -81
- package/esm/domain/action/trackClickActions.js +0 -232
- package/esm/domain/action/trackClickActions.js.map +0 -1
- package/esm/domain/assembly.d.ts +0 -5
- package/esm/domain/assembly.js +0 -99
- package/esm/domain/assembly.js.map +0 -1
- package/esm/domain/configuration/configuration.d.ts +0 -358
- package/esm/domain/configuration/configuration.js +0 -209
- package/esm/domain/configuration/configuration.js.map +0 -1
- package/esm/domain/configuration/index.d.ts +0 -4
- package/esm/domain/configuration/index.js +0 -5
- package/esm/domain/configuration/index.js.map +0 -1
- package/esm/domain/configuration/jsonPathParser.d.ts +0 -28
- package/esm/domain/configuration/jsonPathParser.js +0 -156
- package/esm/domain/configuration/jsonPathParser.js.map +0 -1
- package/esm/domain/configuration/remoteConfiguration.d.ts +0 -39
- package/esm/domain/configuration/remoteConfiguration.js +0 -236
- package/esm/domain/configuration/remoteConfiguration.js.map +0 -1
- package/esm/domain/configuration/remoteConfiguration.types.d.ts +0 -138
- package/esm/domain/configuration/remoteConfiguration.types.js +0 -6
- package/esm/domain/configuration/remoteConfiguration.types.js.map +0 -1
- package/esm/domain/configuration/remoteSdkConfiguration.d.ts +0 -18
- package/esm/domain/configuration/remoteSdkConfiguration.js +0 -137
- package/esm/domain/configuration/remoteSdkConfiguration.js.map +0 -1
- package/esm/domain/configuration/sessionReplayRoutes.d.ts +0 -35
- package/esm/domain/configuration/sessionReplayRoutes.js +0 -65
- package/esm/domain/configuration/sessionReplayRoutes.js.map +0 -1
- package/esm/domain/contexts/ciVisibilityContext.d.ts +0 -12
- package/esm/domain/contexts/ciVisibilityContext.js +0 -30
- package/esm/domain/contexts/ciVisibilityContext.js.map +0 -1
- package/esm/domain/contexts/connectivityContext.d.ts +0 -2
- package/esm/domain/contexts/connectivityContext.js +0 -8
- package/esm/domain/contexts/connectivityContext.js.map +0 -1
- package/esm/domain/contexts/defaultContext.d.ts +0 -4
- package/esm/domain/contexts/defaultContext.js +0 -31
- package/esm/domain/contexts/defaultContext.js.map +0 -1
- package/esm/domain/contexts/displayContext.d.ts +0 -6
- package/esm/domain/contexts/displayContext.js +0 -25
- package/esm/domain/contexts/displayContext.js.map +0 -1
- package/esm/domain/contexts/featureFlagContext.d.ts +0 -19
- package/esm/domain/contexts/featureFlagContext.js +0 -49
- package/esm/domain/contexts/featureFlagContext.js.map +0 -1
- package/esm/domain/contexts/internalContext.d.ts +0 -12
- package/esm/domain/contexts/internalContext.js +0 -23
- package/esm/domain/contexts/internalContext.js.map +0 -1
- package/esm/domain/contexts/pageStateHistory.d.ts +0 -23
- package/esm/domain/contexts/pageStateHistory.js +0 -100
- package/esm/domain/contexts/pageStateHistory.js.map +0 -1
- package/esm/domain/contexts/sessionContext.d.ts +0 -5
- package/esm/domain/contexts/sessionContext.js +0 -44
- package/esm/domain/contexts/sessionContext.js.map +0 -1
- package/esm/domain/contexts/syntheticsContext.d.ts +0 -2
- package/esm/domain/contexts/syntheticsContext.js +0 -22
- package/esm/domain/contexts/syntheticsContext.js.map +0 -1
- package/esm/domain/contexts/trackingConsentContext.d.ts +0 -3
- package/esm/domain/contexts/trackingConsentContext.js +0 -11
- package/esm/domain/contexts/trackingConsentContext.js.map +0 -1
- package/esm/domain/contexts/urlContexts.d.ts +0 -22
- package/esm/domain/contexts/urlContexts.js +0 -60
- package/esm/domain/contexts/urlContexts.js.map +0 -1
- package/esm/domain/contexts/userAgentDataContext.d.ts +0 -2
- package/esm/domain/contexts/userAgentDataContext.js +0 -28
- package/esm/domain/contexts/userAgentDataContext.js.map +0 -1
- package/esm/domain/contexts/viewHistory.d.ts +0 -17
- package/esm/domain/contexts/viewHistory.js +0 -44
- package/esm/domain/contexts/viewHistory.js.map +0 -1
- package/esm/domain/discardNegativeDuration.d.ts +0 -2
- package/esm/domain/discardNegativeDuration.js +0 -5
- package/esm/domain/discardNegativeDuration.js.map +0 -1
- package/esm/domain/error/errorCollection.d.ts +0 -17
- package/esm/domain/error/errorCollection.js +0 -70
- package/esm/domain/error/errorCollection.js.map +0 -1
- package/esm/domain/error/trackConsoleError.d.ts +0 -4
- package/esm/domain/error/trackConsoleError.js +0 -10
- package/esm/domain/error/trackConsoleError.js.map +0 -1
- package/esm/domain/error/trackReportError.d.ts +0 -5
- package/esm/domain/error/trackReportError.js +0 -13
- package/esm/domain/error/trackReportError.js.map +0 -1
- package/esm/domain/event/eventCollection.d.ts +0 -10
- package/esm/domain/event/eventCollection.js +0 -24
- package/esm/domain/event/eventCollection.js.map +0 -1
- package/esm/domain/getSelectorFromElement.d.ts +0 -64
- package/esm/domain/getSelectorFromElement.js +0 -213
- package/esm/domain/getSelectorFromElement.js.map +0 -1
- package/esm/domain/getSessionReplayUrl.d.ts +0 -9
- package/esm/domain/getSessionReplayUrl.js +0 -30
- package/esm/domain/getSessionReplayUrl.js.map +0 -1
- package/esm/domain/hooks.d.ts +0 -23
- package/esm/domain/hooks.js +0 -3
- package/esm/domain/hooks.js.map +0 -1
- package/esm/domain/lifeCycle.d.ts +0 -73
- package/esm/domain/lifeCycle.js +0 -3
- package/esm/domain/lifeCycle.js.map +0 -1
- package/esm/domain/limitModification.d.ts +0 -8
- package/esm/domain/limitModification.js +0 -43
- package/esm/domain/limitModification.js.map +0 -1
- package/esm/domain/longTask/longTaskCollection.d.ts +0 -18
- package/esm/domain/longTask/longTaskCollection.js +0 -87
- package/esm/domain/longTask/longTaskCollection.js.map +0 -1
- package/esm/domain/plugins.d.ts +0 -40
- package/esm/domain/plugins.js +0 -12
- package/esm/domain/plugins.js.map +0 -1
- package/esm/domain/privacy.d.ts +0 -44
- package/esm/domain/privacy.js +0 -302
- package/esm/domain/privacy.js.map +0 -1
- package/esm/domain/privacyConstants.d.ts +0 -23
- package/esm/domain/privacyConstants.js +0 -35
- package/esm/domain/privacyConstants.js.map +0 -1
- package/esm/domain/requestCollection.d.ts +0 -54
- package/esm/domain/requestCollection.js +0 -106
- package/esm/domain/requestCollection.js.map +0 -1
- package/esm/domain/resource/graphql.d.ts +0 -23
- package/esm/domain/resource/graphql.js +0 -91
- package/esm/domain/resource/graphql.js.map +0 -1
- package/esm/domain/resource/matchRequestResourceEntry.d.ts +0 -16
- package/esm/domain/resource/matchRequestResourceEntry.js +0 -46
- package/esm/domain/resource/matchRequestResourceEntry.js.map +0 -1
- package/esm/domain/resource/requestRegistry.d.ts +0 -9
- package/esm/domain/resource/requestRegistry.js +0 -37
- package/esm/domain/resource/requestRegistry.js.map +0 -1
- package/esm/domain/resource/resourceCollection.d.ts +0 -7
- package/esm/domain/resource/resourceCollection.js +0 -187
- package/esm/domain/resource/resourceCollection.js.map +0 -1
- package/esm/domain/resource/resourceUtils.d.ts +0 -55
- package/esm/domain/resource/resourceUtils.js +0 -244
- package/esm/domain/resource/resourceUtils.js.map +0 -1
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +0 -4
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js +0 -21
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js.map +0 -1
- package/esm/domain/rumSessionManager.d.ts +0 -36
- package/esm/domain/rumSessionManager.js +0 -72
- package/esm/domain/rumSessionManager.js.map +0 -1
- package/esm/domain/sampler/sampler.d.ts +0 -10
- package/esm/domain/sampler/sampler.js +0 -58
- package/esm/domain/sampler/sampler.js.map +0 -1
- package/esm/domain/startCustomerDataTelemetry.d.ts +0 -4
- package/esm/domain/startCustomerDataTelemetry.js +0 -52
- package/esm/domain/startCustomerDataTelemetry.js.map +0 -1
- package/esm/domain/tracing/getDocumentTraceId.d.ts +0 -12
- package/esm/domain/tracing/getDocumentTraceId.js +0 -68
- package/esm/domain/tracing/getDocumentTraceId.js.map +0 -1
- package/esm/domain/tracing/identifier.d.ts +0 -13
- package/esm/domain/tracing/identifier.js +0 -50
- package/esm/domain/tracing/identifier.js.map +0 -1
- package/esm/domain/tracing/sampler.d.ts +0 -10
- package/esm/domain/tracing/sampler.js +0 -64
- package/esm/domain/tracing/sampler.js.map +0 -1
- package/esm/domain/tracing/tracer.d.ts +0 -30
- package/esm/domain/tracing/tracer.js +0 -156
- package/esm/domain/tracing/tracer.js.map +0 -1
- package/esm/domain/tracing/tracer.types.d.ts +0 -12
- package/esm/domain/tracing/tracer.types.js +0 -2
- package/esm/domain/tracing/tracer.types.js.map +0 -1
- package/esm/domain/trackEventCounts.d.ts +0 -17
- package/esm/domain/trackEventCounts.js +0 -47
- package/esm/domain/trackEventCounts.js.map +0 -1
- package/esm/domain/view/bfCacheSupport.d.ts +0 -2
- package/esm/domain/view/bfCacheSupport.js +0 -10
- package/esm/domain/view/bfCacheSupport.js.map +0 -1
- package/esm/domain/view/trackViewEventCounts.d.ts +0 -5
- package/esm/domain/view/trackViewEventCounts.js +0 -13
- package/esm/domain/view/trackViewEventCounts.js.map +0 -1
- package/esm/domain/view/trackViews.d.ts +0 -65
- package/esm/domain/view/trackViews.js +0 -278
- package/esm/domain/view/trackViews.js.map +0 -1
- package/esm/domain/view/viewCollection.d.ts +0 -18
- package/esm/domain/view/viewCollection.js +0 -150
- package/esm/domain/view/viewCollection.js.map +0 -1
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +0 -6
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js +0 -28
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +0 -1
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.d.ts +0 -18
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.js +0 -39
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.js.map +0 -1
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +0 -6
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +0 -41
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +0 -8
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js +0 -14
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +0 -21
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js +0 -34
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +0 -37
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js +0 -130
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +0 -13
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js +0 -34
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackFirstHidden.d.ts +0 -10
- package/esm/domain/view/viewMetrics/trackFirstHidden.js +0 -30
- package/esm/domain/view/viewMetrics/trackFirstHidden.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackFirstInput.d.ts +0 -19
- package/esm/domain/view/viewMetrics/trackFirstInput.js +0 -40
- package/esm/domain/view/viewMetrics/trackFirstInput.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +0 -15
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js +0 -38
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +0 -25
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js +0 -149
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +0 -18
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js +0 -57
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackLoadingTime.d.ts +0 -14
- package/esm/domain/view/viewMetrics/trackLoadingTime.js +0 -47
- package/esm/domain/view/viewMetrics/trackLoadingTime.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackNavigationTimings.d.ts +0 -14
- package/esm/domain/view/viewMetrics/trackNavigationTimings.js +0 -40
- package/esm/domain/view/viewMetrics/trackNavigationTimings.js.map +0 -1
- package/esm/domain/view/viewMetrics/trackScrollMetrics.d.ts +0 -25
- package/esm/domain/view/viewMetrics/trackScrollMetrics.js +0 -72
- package/esm/domain/view/viewMetrics/trackScrollMetrics.js.map +0 -1
- package/esm/domain/vital/vitalCollection.d.ts +0 -55
- package/esm/domain/vital/vitalCollection.js +0 -107
- package/esm/domain/vital/vitalCollection.js.map +0 -1
- package/esm/domain/waitPageActivityEnd.d.ts +0 -54
- package/esm/domain/waitPageActivityEnd.js +0 -123
- package/esm/domain/waitPageActivityEnd.js.map +0 -1
- package/esm/domainContext.types.d.ts +0 -39
- package/esm/domainContext.types.js +0 -5
- package/esm/domainContext.types.js.map +0 -1
- package/esm/index.d.ts +0 -42
- package/esm/index.js +0 -22
- package/esm/index.js.map +0 -1
- package/esm/rawRumEvent.types.d.ts +0 -326
- package/esm/rawRumEvent.types.js +0 -31
- package/esm/rawRumEvent.types.js.map +0 -1
- package/esm/rumEvent.types.d.ts +0 -2038
- package/esm/rumEvent.types.js +0 -6
- package/esm/rumEvent.types.js.map +0 -1
- package/esm/transport/formDataTransport.d.ts +0 -16
- package/esm/transport/formDataTransport.js +0 -43
- package/esm/transport/formDataTransport.js.map +0 -1
- package/esm/transport/startRumBatch.d.ts +0 -5
- package/esm/transport/startRumBatch.js +0 -30
- package/esm/transport/startRumBatch.js.map +0 -1
- package/esm/transport/startRumEventBridge.d.ts +0 -2
- package/esm/transport/startRumEventBridge.js +0 -8
- package/esm/transport/startRumEventBridge.js.map +0 -1
- package/src/browser/firstInputPolyfill.ts +0 -87
- package/src/domain/error/trackConsoleError.ts +0 -14
- package/src/domain/resource/matchRequestResourceEntry.ts +0 -68
- package/src/domain/resource/retrieveInitialDocumentResourceTiming.ts +0 -27
- package/src/domain/rumSessionManager.ts +0 -134
- package/src/domain/sampler/sampler.ts +0 -63
- package/src/domain/tracing/sampler.ts +0 -69
- package/src/domain/view/viewMetrics/startInitialViewMetricsTelemetry.ts +0 -70
- package/src/domain/view/viewMetrics/trackFirstInput.ts +0 -59
package/cjs/rumEvent.types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Schema of all properties of a RUM event
|
|
6
6
|
*/
|
|
7
|
-
export type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumVitalEvent;
|
|
7
|
+
export type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumViewUpdateEvent | RumVitalEvent;
|
|
8
8
|
/**
|
|
9
9
|
* Schema of all properties of an Action event
|
|
10
10
|
*/
|
|
@@ -131,6 +131,10 @@ export type RumActionEvent = CommonProperties & ViewContainerSchema & {
|
|
|
131
131
|
* CSS selector path of the target element
|
|
132
132
|
*/
|
|
133
133
|
readonly selector?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Selector data based on the click event composed path
|
|
136
|
+
*/
|
|
137
|
+
readonly composed_path_selector?: string;
|
|
134
138
|
/**
|
|
135
139
|
* Width of the target element (in pixels)
|
|
136
140
|
*/
|
|
@@ -139,6 +143,10 @@ export type RumActionEvent = CommonProperties & ViewContainerSchema & {
|
|
|
139
143
|
* Height of the target element (in pixels)
|
|
140
144
|
*/
|
|
141
145
|
readonly height?: number;
|
|
146
|
+
/**
|
|
147
|
+
* Mobile-only: a globally unique and stable identifier for this UI element, computed as the hash of the element's path. Used to correlate actions with mobile session replay wireframes.
|
|
148
|
+
*/
|
|
149
|
+
readonly permanent_id?: string;
|
|
142
150
|
[k: string]: unknown;
|
|
143
151
|
};
|
|
144
152
|
/**
|
|
@@ -159,7 +167,7 @@ export type RumTransitionEvent = CommonProperties & {
|
|
|
159
167
|
* RUM event type
|
|
160
168
|
*/
|
|
161
169
|
readonly type: 'transition';
|
|
162
|
-
view: {
|
|
170
|
+
readonly view: {
|
|
163
171
|
[k: string]: unknown;
|
|
164
172
|
};
|
|
165
173
|
/**
|
|
@@ -281,11 +289,11 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
|
|
|
281
289
|
/**
|
|
282
290
|
* Handling call stack
|
|
283
291
|
*/
|
|
284
|
-
|
|
292
|
+
handling_stack?: string;
|
|
285
293
|
/**
|
|
286
294
|
* Source type of the error (the language or platform impacting the error stacktrace format)
|
|
287
295
|
*/
|
|
288
|
-
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp';
|
|
296
|
+
readonly source_type?: 'android' | 'browser' | 'browser+wasm' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' | 'windows' | 'macos' | 'linux' | 'maui' | 'nodejs';
|
|
289
297
|
/**
|
|
290
298
|
* Resource properties of the error
|
|
291
299
|
*/
|
|
@@ -320,6 +328,7 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
|
|
|
320
328
|
readonly type?: 'ad' | 'advertising' | 'analytics' | 'cdn' | 'content' | 'customer-success' | 'first party' | 'hosting' | 'marketing' | 'other' | 'social' | 'tag-manager' | 'utility' | 'video';
|
|
321
329
|
[k: string]: unknown;
|
|
322
330
|
};
|
|
331
|
+
readonly graphql?: RumGraphql;
|
|
323
332
|
[k: string]: unknown;
|
|
324
333
|
};
|
|
325
334
|
/**
|
|
@@ -374,6 +383,20 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
|
|
|
374
383
|
readonly arch?: string;
|
|
375
384
|
[k: string]: unknown;
|
|
376
385
|
}[];
|
|
386
|
+
/**
|
|
387
|
+
* WebAssembly modules available for stack trace symbolication.
|
|
388
|
+
*/
|
|
389
|
+
readonly wasm_modules?: {
|
|
390
|
+
/**
|
|
391
|
+
* URL identifying the WebAssembly module.
|
|
392
|
+
*/
|
|
393
|
+
readonly url: string;
|
|
394
|
+
/**
|
|
395
|
+
* Build ID used to identify the WebAssembly debug symbols.
|
|
396
|
+
*/
|
|
397
|
+
readonly build_id: string;
|
|
398
|
+
[k: string]: unknown;
|
|
399
|
+
}[];
|
|
377
400
|
/**
|
|
378
401
|
* A boolean value saying if any of the stack traces was truncated due to minification.
|
|
379
402
|
*/
|
|
@@ -454,6 +477,30 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
|
|
|
454
477
|
readonly feature_flags?: {
|
|
455
478
|
[k: string]: unknown;
|
|
456
479
|
};
|
|
480
|
+
/**
|
|
481
|
+
* Internal properties
|
|
482
|
+
*/
|
|
483
|
+
readonly _kubesense?: RumTrace & {
|
|
484
|
+
/**
|
|
485
|
+
* Profiling context
|
|
486
|
+
*/
|
|
487
|
+
profiling?: ProfilingInternalContextSchema;
|
|
488
|
+
/**
|
|
489
|
+
* Mapping of source file URLs to their debug IDs for source map deobfuscation
|
|
490
|
+
*/
|
|
491
|
+
debug_ids?: {
|
|
492
|
+
/**
|
|
493
|
+
* URL of the source file
|
|
494
|
+
*/
|
|
495
|
+
url: string;
|
|
496
|
+
/**
|
|
497
|
+
* Debug ID (UUID) for the source file
|
|
498
|
+
*/
|
|
499
|
+
id: string;
|
|
500
|
+
[k: string]: unknown;
|
|
501
|
+
}[];
|
|
502
|
+
[k: string]: unknown;
|
|
503
|
+
};
|
|
457
504
|
[k: string]: unknown;
|
|
458
505
|
};
|
|
459
506
|
/**
|
|
@@ -464,7 +511,7 @@ export type RumLongTaskEvent = CommonProperties & ActionChildProperties & ViewCo
|
|
|
464
511
|
* RUM event type
|
|
465
512
|
*/
|
|
466
513
|
readonly type: 'long_task';
|
|
467
|
-
view: {
|
|
514
|
+
readonly view: {
|
|
468
515
|
[k: string]: unknown;
|
|
469
516
|
};
|
|
470
517
|
/**
|
|
@@ -571,6 +618,20 @@ export type RumLongTaskEvent = CommonProperties & ActionChildProperties & ViewCo
|
|
|
571
618
|
* Profiling context
|
|
572
619
|
*/
|
|
573
620
|
profiling?: ProfilingInternalContextSchema;
|
|
621
|
+
/**
|
|
622
|
+
* Mapping of source file URLs to their debug IDs for source map deobfuscation
|
|
623
|
+
*/
|
|
624
|
+
debug_ids?: {
|
|
625
|
+
/**
|
|
626
|
+
* URL of the source file
|
|
627
|
+
*/
|
|
628
|
+
url: string;
|
|
629
|
+
/**
|
|
630
|
+
* Debug ID (UUID) for the source file
|
|
631
|
+
*/
|
|
632
|
+
id: string;
|
|
633
|
+
[k: string]: unknown;
|
|
634
|
+
}[];
|
|
574
635
|
[k: string]: unknown;
|
|
575
636
|
};
|
|
576
637
|
[k: string]: unknown;
|
|
@@ -583,7 +644,7 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
|
|
|
583
644
|
* RUM event type
|
|
584
645
|
*/
|
|
585
646
|
readonly type: 'resource';
|
|
586
|
-
view: {
|
|
647
|
+
readonly view: {
|
|
587
648
|
[k: string]: unknown;
|
|
588
649
|
};
|
|
589
650
|
/**
|
|
@@ -619,15 +680,15 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
|
|
|
619
680
|
*/
|
|
620
681
|
readonly size?: number;
|
|
621
682
|
/**
|
|
622
|
-
* Size in octet of the
|
|
683
|
+
* Size in octet of the response body before removing any applied content encodings
|
|
623
684
|
*/
|
|
624
685
|
readonly encoded_body_size?: number;
|
|
625
686
|
/**
|
|
626
|
-
* Size in octet of the
|
|
687
|
+
* Size in octet of the response body after removing any applied encoding
|
|
627
688
|
*/
|
|
628
689
|
readonly decoded_body_size?: number;
|
|
629
690
|
/**
|
|
630
|
-
* Size in octet of the fetched resource
|
|
691
|
+
* Size in octet of the fetched response resource
|
|
631
692
|
*/
|
|
632
693
|
readonly transfer_size?: number;
|
|
633
694
|
/**
|
|
@@ -740,6 +801,10 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
|
|
|
740
801
|
* Delivery type of the resource
|
|
741
802
|
*/
|
|
742
803
|
readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';
|
|
804
|
+
/**
|
|
805
|
+
* Whether the resource was served from the device's local cache
|
|
806
|
+
*/
|
|
807
|
+
readonly local_cache_hit?: boolean;
|
|
743
808
|
/**
|
|
744
809
|
* The provider for this resource
|
|
745
810
|
*/
|
|
@@ -759,85 +824,44 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
|
|
|
759
824
|
[k: string]: unknown;
|
|
760
825
|
};
|
|
761
826
|
/**
|
|
762
|
-
*
|
|
827
|
+
* Request properties
|
|
763
828
|
*/
|
|
764
|
-
readonly
|
|
765
|
-
/**
|
|
766
|
-
* Type of the GraphQL operation
|
|
767
|
-
*/
|
|
768
|
-
readonly operationType: 'query' | 'mutation' | 'subscription';
|
|
769
|
-
/**
|
|
770
|
-
* Name of the GraphQL operation
|
|
771
|
-
*/
|
|
772
|
-
readonly operationName?: string;
|
|
829
|
+
readonly request?: {
|
|
773
830
|
/**
|
|
774
|
-
*
|
|
831
|
+
* Size in octet of the request body sent over the network (after encoding)
|
|
775
832
|
*/
|
|
776
|
-
|
|
833
|
+
readonly encoded_body_size?: number;
|
|
777
834
|
/**
|
|
778
|
-
*
|
|
835
|
+
* Size in octet of the request body before any encoding
|
|
779
836
|
*/
|
|
780
|
-
|
|
837
|
+
readonly decoded_body_size?: number;
|
|
781
838
|
/**
|
|
782
|
-
*
|
|
839
|
+
* HTTP headers of the resource request
|
|
783
840
|
*/
|
|
784
|
-
|
|
841
|
+
headers?: {
|
|
842
|
+
[k: string]: string;
|
|
843
|
+
};
|
|
844
|
+
[k: string]: unknown;
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* Response properties
|
|
848
|
+
*/
|
|
849
|
+
readonly response?: {
|
|
785
850
|
/**
|
|
786
|
-
*
|
|
851
|
+
* HTTP headers of the resource response
|
|
787
852
|
*/
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
*/
|
|
792
|
-
readonly message: string;
|
|
793
|
-
/**
|
|
794
|
-
* Error code (used by some providers)
|
|
795
|
-
*/
|
|
796
|
-
readonly code?: string;
|
|
797
|
-
/**
|
|
798
|
-
* Array of error locations in the GraphQL query
|
|
799
|
-
*/
|
|
800
|
-
readonly locations?: {
|
|
801
|
-
/**
|
|
802
|
-
* Line number where the error occurred
|
|
803
|
-
*/
|
|
804
|
-
readonly line: number;
|
|
805
|
-
/**
|
|
806
|
-
* Column number where the error occurred
|
|
807
|
-
*/
|
|
808
|
-
readonly column: number;
|
|
809
|
-
[k: string]: unknown;
|
|
810
|
-
}[];
|
|
811
|
-
/**
|
|
812
|
-
* Path to the field that caused the error
|
|
813
|
-
*/
|
|
814
|
-
readonly path?: (string | number)[];
|
|
815
|
-
[k: string]: unknown;
|
|
816
|
-
}[];
|
|
853
|
+
headers?: {
|
|
854
|
+
[k: string]: string;
|
|
855
|
+
};
|
|
817
856
|
[k: string]: unknown;
|
|
818
857
|
};
|
|
858
|
+
readonly graphql?: RumGraphql;
|
|
819
859
|
[k: string]: unknown;
|
|
820
860
|
};
|
|
821
861
|
/**
|
|
822
862
|
* Internal properties
|
|
823
863
|
*/
|
|
824
|
-
readonly _kubesense?: {
|
|
825
|
-
/**
|
|
826
|
-
* span identifier in decimal format
|
|
827
|
-
*/
|
|
828
|
-
readonly span_id?: string;
|
|
829
|
-
/**
|
|
830
|
-
* parent span identifier in decimal format
|
|
831
|
-
*/
|
|
832
|
-
readonly parent_span_id?: string;
|
|
833
|
-
/**
|
|
834
|
-
* trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
|
|
835
|
-
*/
|
|
836
|
-
readonly trace_id?: string;
|
|
837
|
-
/**
|
|
838
|
-
* trace sample rate in decimal format
|
|
839
|
-
*/
|
|
840
|
-
readonly rule_psr?: number;
|
|
864
|
+
readonly _kubesense?: RumTrace & {
|
|
841
865
|
/**
|
|
842
866
|
* Whether the resource should be discarded or indexed
|
|
843
867
|
*/
|
|
@@ -849,297 +873,438 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
|
|
|
849
873
|
/**
|
|
850
874
|
* Schema of all properties of a View event
|
|
851
875
|
*/
|
|
852
|
-
export type RumViewEvent = CommonProperties & ViewContainerSchema & StreamSchema & {
|
|
876
|
+
export type RumViewEvent = CommonProperties & ViewContainerSchema & StreamSchema & ViewProperties & {
|
|
853
877
|
/**
|
|
854
878
|
* RUM event type
|
|
855
879
|
*/
|
|
856
880
|
readonly type: 'view';
|
|
881
|
+
view: {
|
|
882
|
+
time_spent: number;
|
|
883
|
+
action: {
|
|
884
|
+
[k: string]: unknown;
|
|
885
|
+
};
|
|
886
|
+
error: {
|
|
887
|
+
[k: string]: unknown;
|
|
888
|
+
};
|
|
889
|
+
resource: {
|
|
890
|
+
[k: string]: unknown;
|
|
891
|
+
};
|
|
892
|
+
[k: string]: unknown;
|
|
893
|
+
};
|
|
894
|
+
readonly _kubesense: {
|
|
895
|
+
[k: string]: unknown;
|
|
896
|
+
};
|
|
897
|
+
[k: string]: unknown;
|
|
898
|
+
};
|
|
899
|
+
/**
|
|
900
|
+
* Schema of all properties of a View Update event
|
|
901
|
+
*/
|
|
902
|
+
export type RumViewUpdateEvent = ViewContainerSchema & StreamSchema & ViewProperties & CommonProperties & {
|
|
857
903
|
/**
|
|
858
|
-
*
|
|
904
|
+
* RUM event type
|
|
859
905
|
*/
|
|
906
|
+
readonly type: 'view_update';
|
|
860
907
|
readonly view: {
|
|
908
|
+
[k: string]: unknown;
|
|
909
|
+
};
|
|
910
|
+
[k: string]: unknown;
|
|
911
|
+
};
|
|
912
|
+
export type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent;
|
|
913
|
+
/**
|
|
914
|
+
* Schema for a duration vital event.
|
|
915
|
+
*/
|
|
916
|
+
export type RumVitalDurationEvent = RumVitalEventCommonProperties & {
|
|
917
|
+
/**
|
|
918
|
+
* Vital properties
|
|
919
|
+
*/
|
|
920
|
+
readonly vital?: {
|
|
861
921
|
/**
|
|
862
|
-
*
|
|
922
|
+
* Type of the vital.
|
|
863
923
|
*/
|
|
864
|
-
readonly
|
|
924
|
+
readonly type: 'duration';
|
|
865
925
|
/**
|
|
866
|
-
* Duration
|
|
926
|
+
* Duration of the vital in nanoseconds.
|
|
867
927
|
*/
|
|
868
|
-
readonly
|
|
928
|
+
readonly duration: number;
|
|
929
|
+
[k: string]: unknown;
|
|
930
|
+
};
|
|
931
|
+
[k: string]: unknown;
|
|
932
|
+
};
|
|
933
|
+
/**
|
|
934
|
+
* Schema of common properties for a Vital event
|
|
935
|
+
*/
|
|
936
|
+
export type RumVitalEventCommonProperties = CommonProperties & ViewContainerSchema & {
|
|
937
|
+
/**
|
|
938
|
+
* RUM event type
|
|
939
|
+
*/
|
|
940
|
+
readonly type: 'vital';
|
|
941
|
+
readonly view: {
|
|
942
|
+
[k: string]: unknown;
|
|
943
|
+
};
|
|
944
|
+
/**
|
|
945
|
+
* Vital properties
|
|
946
|
+
*/
|
|
947
|
+
readonly vital: {
|
|
869
948
|
/**
|
|
870
|
-
*
|
|
949
|
+
* UUID of the vital
|
|
871
950
|
*/
|
|
872
|
-
readonly
|
|
951
|
+
readonly id: string;
|
|
873
952
|
/**
|
|
874
|
-
*
|
|
953
|
+
* Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $
|
|
875
954
|
*/
|
|
876
|
-
readonly
|
|
955
|
+
readonly name?: string;
|
|
877
956
|
/**
|
|
878
|
-
*
|
|
957
|
+
* Description of the vital. It can be used as a secondary identifier (URL, React component name...)
|
|
879
958
|
*/
|
|
880
|
-
readonly
|
|
959
|
+
readonly description?: string;
|
|
960
|
+
[k: string]: unknown;
|
|
961
|
+
};
|
|
962
|
+
/**
|
|
963
|
+
* Internal properties
|
|
964
|
+
*/
|
|
965
|
+
readonly _kubesense?: {
|
|
881
966
|
/**
|
|
882
|
-
*
|
|
967
|
+
* Profiling context
|
|
883
968
|
*/
|
|
884
|
-
|
|
969
|
+
profiling?: ProfilingInternalContextSchema;
|
|
970
|
+
[k: string]: unknown;
|
|
971
|
+
};
|
|
972
|
+
[k: string]: unknown;
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* Schema for a vital operation step event.
|
|
976
|
+
*/
|
|
977
|
+
export type RumVitalOperationStepEvent = RumVitalEventCommonProperties & {
|
|
978
|
+
/**
|
|
979
|
+
* Vital properties
|
|
980
|
+
*/
|
|
981
|
+
readonly vital?: {
|
|
885
982
|
/**
|
|
886
|
-
*
|
|
983
|
+
* Type of the vital.
|
|
887
984
|
*/
|
|
888
|
-
readonly
|
|
985
|
+
readonly type: 'operation_step';
|
|
889
986
|
/**
|
|
890
|
-
*
|
|
987
|
+
* Optional key to distinguish between multiple operations of the same name running in parallel (e.g., 'photo_upload' with keys 'profile_pic' vs 'cover')
|
|
891
988
|
*/
|
|
892
|
-
readonly
|
|
989
|
+
readonly operation_key?: string;
|
|
893
990
|
/**
|
|
894
|
-
*
|
|
991
|
+
* Type of the step that triggered the vital, if applicable
|
|
895
992
|
*/
|
|
896
|
-
readonly
|
|
993
|
+
readonly step_type: 'start' | 'update' | 'retry' | 'end';
|
|
897
994
|
/**
|
|
898
|
-
*
|
|
995
|
+
* Reason for the failure of the step, if applicable
|
|
899
996
|
*/
|
|
900
|
-
readonly
|
|
997
|
+
readonly failure_reason?: 'error' | 'abandoned' | 'other';
|
|
998
|
+
[k: string]: unknown;
|
|
999
|
+
};
|
|
1000
|
+
[k: string]: unknown;
|
|
1001
|
+
};
|
|
1002
|
+
/**
|
|
1003
|
+
* Schema of common properties of RUM events
|
|
1004
|
+
*/
|
|
1005
|
+
export interface CommonProperties {
|
|
1006
|
+
/**
|
|
1007
|
+
* Start of the event in ms from epoch
|
|
1008
|
+
*/
|
|
1009
|
+
readonly date: number;
|
|
1010
|
+
/**
|
|
1011
|
+
* Application properties
|
|
1012
|
+
*/
|
|
1013
|
+
readonly application: {
|
|
901
1014
|
/**
|
|
902
|
-
*
|
|
1015
|
+
* UUID of the application
|
|
903
1016
|
*/
|
|
904
|
-
readonly
|
|
1017
|
+
readonly id: string;
|
|
905
1018
|
/**
|
|
906
|
-
*
|
|
1019
|
+
* The user's current locale as a language tag (language + region), computed from their preferences and the app's supported languages, e.g. 'es-FR'.
|
|
907
1020
|
*/
|
|
908
|
-
readonly
|
|
1021
|
+
readonly current_locale?: string;
|
|
1022
|
+
[k: string]: unknown;
|
|
1023
|
+
};
|
|
1024
|
+
/**
|
|
1025
|
+
* The service name for this application
|
|
1026
|
+
*/
|
|
1027
|
+
service?: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* The version for this application
|
|
1030
|
+
*/
|
|
1031
|
+
version?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* The build version for this application
|
|
1034
|
+
*/
|
|
1035
|
+
readonly build_version?: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* Generated unique ID of the application build. Unlike version or build_version this field is not meant to be coming from the user, but rather generated by the tooling for each build.
|
|
1038
|
+
*/
|
|
1039
|
+
readonly build_id?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Tags of the event in key:value format, separated by commas (e.g. 'env:prod,version:1.2.3')
|
|
1042
|
+
*/
|
|
1043
|
+
readonly ktags?: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* Session properties
|
|
1046
|
+
*/
|
|
1047
|
+
readonly session: {
|
|
909
1048
|
/**
|
|
910
|
-
*
|
|
1049
|
+
* UUID of the session
|
|
911
1050
|
*/
|
|
912
|
-
readonly
|
|
1051
|
+
readonly id: string;
|
|
913
1052
|
/**
|
|
914
|
-
*
|
|
1053
|
+
* Type of the session
|
|
915
1054
|
*/
|
|
916
|
-
readonly
|
|
1055
|
+
readonly type: 'user' | 'synthetics' | 'ci_test';
|
|
917
1056
|
/**
|
|
918
|
-
*
|
|
1057
|
+
* Whether this session has a replay
|
|
919
1058
|
*/
|
|
920
|
-
readonly
|
|
1059
|
+
readonly has_replay?: boolean;
|
|
1060
|
+
[k: string]: unknown;
|
|
1061
|
+
};
|
|
1062
|
+
/**
|
|
1063
|
+
* The source of this event
|
|
1064
|
+
*/
|
|
1065
|
+
readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'cpp' | 'maui';
|
|
1066
|
+
/**
|
|
1067
|
+
* View properties
|
|
1068
|
+
*/
|
|
1069
|
+
readonly view?: {
|
|
921
1070
|
/**
|
|
922
|
-
*
|
|
1071
|
+
* UUID of the view
|
|
923
1072
|
*/
|
|
924
|
-
readonly
|
|
1073
|
+
readonly id: string;
|
|
925
1074
|
/**
|
|
926
|
-
*
|
|
1075
|
+
* URL that linked to the initial view of the page
|
|
927
1076
|
*/
|
|
928
|
-
|
|
1077
|
+
referrer?: string;
|
|
929
1078
|
/**
|
|
930
|
-
*
|
|
1079
|
+
* URL of the view
|
|
931
1080
|
*/
|
|
932
|
-
|
|
1081
|
+
url: string;
|
|
933
1082
|
/**
|
|
934
|
-
*
|
|
1083
|
+
* User defined name of the view
|
|
935
1084
|
*/
|
|
936
|
-
|
|
1085
|
+
name?: string;
|
|
1086
|
+
[k: string]: unknown;
|
|
1087
|
+
};
|
|
1088
|
+
/**
|
|
1089
|
+
* User properties
|
|
1090
|
+
*/
|
|
1091
|
+
readonly usr?: {
|
|
937
1092
|
/**
|
|
938
|
-
*
|
|
1093
|
+
* Identifier of the user
|
|
939
1094
|
*/
|
|
940
|
-
readonly
|
|
1095
|
+
readonly id?: string;
|
|
941
1096
|
/**
|
|
942
|
-
*
|
|
1097
|
+
* Name of the user
|
|
943
1098
|
*/
|
|
944
|
-
readonly
|
|
1099
|
+
readonly name?: string;
|
|
945
1100
|
/**
|
|
946
|
-
*
|
|
1101
|
+
* Email of the user
|
|
947
1102
|
*/
|
|
948
|
-
readonly
|
|
1103
|
+
readonly email?: string;
|
|
949
1104
|
/**
|
|
950
|
-
*
|
|
1105
|
+
* Mobile phone number of the user
|
|
951
1106
|
*/
|
|
952
|
-
readonly
|
|
953
|
-
[k: string]: number;
|
|
954
|
-
};
|
|
1107
|
+
readonly mobile?: string;
|
|
955
1108
|
/**
|
|
956
|
-
*
|
|
1109
|
+
* Identifier of the user across sessions
|
|
957
1110
|
*/
|
|
958
|
-
readonly
|
|
1111
|
+
readonly anonymous_id?: string;
|
|
1112
|
+
[k: string]: unknown;
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
* Account properties
|
|
1116
|
+
*/
|
|
1117
|
+
readonly account?: {
|
|
959
1118
|
/**
|
|
960
|
-
*
|
|
1119
|
+
* Identifier of the account
|
|
961
1120
|
*/
|
|
962
|
-
readonly
|
|
1121
|
+
readonly id: string;
|
|
963
1122
|
/**
|
|
964
|
-
*
|
|
1123
|
+
* Name of the account
|
|
965
1124
|
*/
|
|
966
|
-
readonly
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1125
|
+
readonly name?: string;
|
|
1126
|
+
[k: string]: unknown;
|
|
1127
|
+
};
|
|
1128
|
+
/**
|
|
1129
|
+
* Tab properties
|
|
1130
|
+
*/
|
|
1131
|
+
readonly tab?: {
|
|
973
1132
|
/**
|
|
974
|
-
*
|
|
1133
|
+
* UUID of the browser tab
|
|
975
1134
|
*/
|
|
976
|
-
readonly
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1135
|
+
readonly id: string;
|
|
1136
|
+
[k: string]: unknown;
|
|
1137
|
+
};
|
|
1138
|
+
/**
|
|
1139
|
+
* Device connectivity properties
|
|
1140
|
+
*/
|
|
1141
|
+
connectivity?: {
|
|
983
1142
|
/**
|
|
984
|
-
*
|
|
1143
|
+
* Status of the device connectivity
|
|
985
1144
|
*/
|
|
986
|
-
readonly
|
|
987
|
-
/**
|
|
988
|
-
* Number of crashes that occurred on the view
|
|
989
|
-
*/
|
|
990
|
-
readonly count: number;
|
|
991
|
-
[k: string]: unknown;
|
|
992
|
-
};
|
|
1145
|
+
readonly status: 'connected' | 'not_connected' | 'maybe';
|
|
993
1146
|
/**
|
|
994
|
-
*
|
|
1147
|
+
* The list of available network interfaces
|
|
995
1148
|
*/
|
|
996
|
-
readonly
|
|
997
|
-
/**
|
|
998
|
-
* Number of long tasks that occurred on the view
|
|
999
|
-
*/
|
|
1000
|
-
readonly count: number;
|
|
1001
|
-
[k: string]: unknown;
|
|
1002
|
-
};
|
|
1149
|
+
readonly interfaces?: ('bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'mixed' | 'other' | 'unknown' | 'none')[];
|
|
1003
1150
|
/**
|
|
1004
|
-
*
|
|
1151
|
+
* Cellular connection type reflecting the measured network performance
|
|
1005
1152
|
*/
|
|
1006
|
-
readonly
|
|
1007
|
-
/**
|
|
1008
|
-
* Number of frozen frames that occurred on the view
|
|
1009
|
-
*/
|
|
1010
|
-
readonly count: number;
|
|
1011
|
-
[k: string]: unknown;
|
|
1012
|
-
};
|
|
1153
|
+
readonly effective_type?: 'slow-2g' | '2g' | '3g' | '4g';
|
|
1013
1154
|
/**
|
|
1014
|
-
*
|
|
1155
|
+
* The estimated effective round-trip time of the current connection (in milliseconds)
|
|
1015
1156
|
*/
|
|
1016
|
-
readonly
|
|
1017
|
-
/**
|
|
1018
|
-
* Duration in ns between start of the view and the start of the slow frame
|
|
1019
|
-
*/
|
|
1020
|
-
readonly start: number;
|
|
1021
|
-
/**
|
|
1022
|
-
* Duration in ns of the slow frame
|
|
1023
|
-
*/
|
|
1024
|
-
readonly duration: number;
|
|
1025
|
-
[k: string]: unknown;
|
|
1026
|
-
}[];
|
|
1157
|
+
readonly rtt?: number;
|
|
1027
1158
|
/**
|
|
1028
|
-
*
|
|
1159
|
+
* The estimated effective bandwidth of the current connection (in megabits per second)
|
|
1029
1160
|
*/
|
|
1030
|
-
readonly
|
|
1031
|
-
/**
|
|
1032
|
-
* Number of resources that occurred on the view
|
|
1033
|
-
*/
|
|
1034
|
-
readonly count: number;
|
|
1035
|
-
[k: string]: unknown;
|
|
1036
|
-
};
|
|
1161
|
+
readonly downlink?: number;
|
|
1037
1162
|
/**
|
|
1038
|
-
*
|
|
1163
|
+
* Cellular connectivity properties
|
|
1039
1164
|
*/
|
|
1040
|
-
readonly
|
|
1165
|
+
readonly cellular?: {
|
|
1041
1166
|
/**
|
|
1042
|
-
*
|
|
1167
|
+
* The type of a radio technology used for cellular connection
|
|
1043
1168
|
*/
|
|
1044
|
-
readonly
|
|
1169
|
+
readonly technology?: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* The name of the SIM carrier
|
|
1172
|
+
*/
|
|
1173
|
+
readonly carrier_name?: string;
|
|
1045
1174
|
[k: string]: unknown;
|
|
1046
1175
|
};
|
|
1176
|
+
[k: string]: unknown;
|
|
1177
|
+
};
|
|
1178
|
+
/**
|
|
1179
|
+
* Display properties
|
|
1180
|
+
*/
|
|
1181
|
+
display?: {
|
|
1047
1182
|
/**
|
|
1048
|
-
*
|
|
1183
|
+
* The viewport represents the rectangular area that is currently being viewed. Content outside the viewport is not visible onscreen until scrolled into view.
|
|
1049
1184
|
*/
|
|
1050
|
-
readonly
|
|
1185
|
+
readonly viewport?: {
|
|
1051
1186
|
/**
|
|
1052
|
-
*
|
|
1187
|
+
* Width of the viewport (in pixels)
|
|
1053
1188
|
*/
|
|
1054
|
-
readonly
|
|
1189
|
+
readonly width: number;
|
|
1055
1190
|
/**
|
|
1056
|
-
*
|
|
1191
|
+
* Height of the viewport (in pixels)
|
|
1057
1192
|
*/
|
|
1058
|
-
readonly
|
|
1193
|
+
readonly height: number;
|
|
1059
1194
|
[k: string]: unknown;
|
|
1060
|
-
}
|
|
1195
|
+
};
|
|
1196
|
+
[k: string]: unknown;
|
|
1197
|
+
};
|
|
1198
|
+
/**
|
|
1199
|
+
* Synthetics properties
|
|
1200
|
+
*/
|
|
1201
|
+
readonly synthetics?: {
|
|
1061
1202
|
/**
|
|
1062
|
-
*
|
|
1203
|
+
* The identifier of the current Synthetics test
|
|
1063
1204
|
*/
|
|
1064
|
-
readonly
|
|
1205
|
+
readonly test_id: string;
|
|
1065
1206
|
/**
|
|
1066
|
-
*
|
|
1207
|
+
* The identifier of the current Synthetics test results
|
|
1067
1208
|
*/
|
|
1068
|
-
readonly
|
|
1209
|
+
readonly result_id: string;
|
|
1069
1210
|
/**
|
|
1070
|
-
*
|
|
1211
|
+
* Whether the event comes from a SDK instance injected by Synthetics
|
|
1071
1212
|
*/
|
|
1072
|
-
readonly
|
|
1213
|
+
readonly injected?: boolean;
|
|
1214
|
+
[k: string]: unknown;
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* CI Visibility properties
|
|
1218
|
+
*/
|
|
1219
|
+
readonly ci_test?: {
|
|
1073
1220
|
/**
|
|
1074
|
-
*
|
|
1221
|
+
* The identifier of the current CI Visibility test execution
|
|
1075
1222
|
*/
|
|
1076
|
-
readonly
|
|
1223
|
+
readonly test_execution_id: string;
|
|
1224
|
+
[k: string]: unknown;
|
|
1225
|
+
};
|
|
1226
|
+
/**
|
|
1227
|
+
* Operating system properties
|
|
1228
|
+
*/
|
|
1229
|
+
os?: {
|
|
1077
1230
|
/**
|
|
1078
|
-
*
|
|
1231
|
+
* Operating system name, e.g. Android, iOS
|
|
1079
1232
|
*/
|
|
1080
|
-
readonly
|
|
1233
|
+
readonly name: string;
|
|
1081
1234
|
/**
|
|
1082
|
-
*
|
|
1235
|
+
* Full operating system version, e.g. 8.1.1
|
|
1083
1236
|
*/
|
|
1084
|
-
readonly
|
|
1237
|
+
readonly version: string;
|
|
1085
1238
|
/**
|
|
1086
|
-
*
|
|
1239
|
+
* Operating system build number, e.g. 15D21
|
|
1087
1240
|
*/
|
|
1088
|
-
readonly
|
|
1241
|
+
readonly build?: string;
|
|
1089
1242
|
/**
|
|
1090
|
-
*
|
|
1243
|
+
* Major operating system version, e.g. 8
|
|
1091
1244
|
*/
|
|
1092
|
-
readonly
|
|
1245
|
+
readonly version_major: string;
|
|
1246
|
+
[k: string]: unknown;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Device properties
|
|
1250
|
+
*/
|
|
1251
|
+
device?: {
|
|
1093
1252
|
/**
|
|
1094
|
-
*
|
|
1253
|
+
* Device type info
|
|
1095
1254
|
*/
|
|
1096
|
-
|
|
1255
|
+
readonly type?: 'mobile' | 'desktop' | 'tablet' | 'tv' | 'gaming_console' | 'bot' | 'other';
|
|
1097
1256
|
/**
|
|
1098
|
-
*
|
|
1257
|
+
* Device marketing name, e.g. Xiaomi Redmi Note 8 Pro, Pixel 5, etc.
|
|
1099
1258
|
*/
|
|
1100
|
-
|
|
1259
|
+
readonly name?: string;
|
|
1101
1260
|
/**
|
|
1102
|
-
*
|
|
1261
|
+
* Device SKU model, e.g. Samsung SM-988GN, etc. Quite often name and model can be the same.
|
|
1103
1262
|
*/
|
|
1104
|
-
|
|
1263
|
+
readonly model?: string;
|
|
1105
1264
|
/**
|
|
1106
|
-
*
|
|
1265
|
+
* Device marketing brand, e.g. Apple, OPPO, Xiaomi, etc.
|
|
1107
1266
|
*/
|
|
1108
|
-
|
|
1267
|
+
readonly brand?: string;
|
|
1109
1268
|
/**
|
|
1110
|
-
*
|
|
1269
|
+
* The CPU architecture of the device that is reporting the error
|
|
1111
1270
|
*/
|
|
1112
|
-
|
|
1113
|
-
[k: string]: unknown;
|
|
1114
|
-
};
|
|
1115
|
-
/**
|
|
1116
|
-
* Session properties
|
|
1117
|
-
*/
|
|
1118
|
-
readonly session?: {
|
|
1271
|
+
readonly architecture?: string;
|
|
1119
1272
|
/**
|
|
1120
|
-
*
|
|
1273
|
+
* The user’s locale as a language tag combining language and region, e.g. 'en-US'.
|
|
1121
1274
|
*/
|
|
1122
|
-
readonly
|
|
1275
|
+
readonly locale?: string;
|
|
1123
1276
|
/**
|
|
1124
|
-
*
|
|
1277
|
+
* Ordered list of the user’s preferred system languages as IETF language tags.
|
|
1125
1278
|
*/
|
|
1126
|
-
readonly
|
|
1127
|
-
[k: string]: unknown;
|
|
1128
|
-
};
|
|
1129
|
-
/**
|
|
1130
|
-
* Feature flags properties
|
|
1131
|
-
*/
|
|
1132
|
-
readonly feature_flags?: {
|
|
1133
|
-
[k: string]: unknown;
|
|
1134
|
-
};
|
|
1135
|
-
/**
|
|
1136
|
-
* Privacy properties
|
|
1137
|
-
*/
|
|
1138
|
-
readonly privacy?: {
|
|
1279
|
+
readonly locales?: string[];
|
|
1139
1280
|
/**
|
|
1140
|
-
* The
|
|
1281
|
+
* The device’s current time zone identifier, e.g. 'Europe/Berlin'.
|
|
1141
1282
|
*/
|
|
1142
|
-
readonly
|
|
1283
|
+
readonly time_zone?: string;
|
|
1284
|
+
/**
|
|
1285
|
+
* Current battery level of the device (0.0 to 1.0).
|
|
1286
|
+
*/
|
|
1287
|
+
readonly battery_level?: number;
|
|
1288
|
+
/**
|
|
1289
|
+
* Whether the device is in power saving mode.
|
|
1290
|
+
*/
|
|
1291
|
+
readonly power_saving_mode?: boolean;
|
|
1292
|
+
/**
|
|
1293
|
+
* Current screen brightness level (0.0 to 1.0).
|
|
1294
|
+
*/
|
|
1295
|
+
readonly brightness_level?: number;
|
|
1296
|
+
/**
|
|
1297
|
+
* Number of logical CPU cores available for scheduling on the device at runtime, as reported by the operating system.
|
|
1298
|
+
*/
|
|
1299
|
+
readonly logical_cpu_count?: number;
|
|
1300
|
+
/**
|
|
1301
|
+
* Total RAM in megabytes
|
|
1302
|
+
*/
|
|
1303
|
+
readonly total_ram?: number;
|
|
1304
|
+
/**
|
|
1305
|
+
* Whether the device is considered a low RAM device (Android)
|
|
1306
|
+
*/
|
|
1307
|
+
readonly is_low_ram?: boolean;
|
|
1143
1308
|
[k: string]: unknown;
|
|
1144
1309
|
};
|
|
1145
1310
|
/**
|
|
@@ -1147,647 +1312,683 @@ export type RumViewEvent = CommonProperties & ViewContainerSchema & StreamSchema
|
|
|
1147
1312
|
*/
|
|
1148
1313
|
readonly _kubesense: {
|
|
1149
1314
|
/**
|
|
1150
|
-
* Version of the
|
|
1315
|
+
* Version of the RUM event format
|
|
1151
1316
|
*/
|
|
1152
|
-
readonly
|
|
1317
|
+
readonly format_version: 2;
|
|
1153
1318
|
/**
|
|
1154
|
-
*
|
|
1319
|
+
* Session-related internal properties
|
|
1155
1320
|
*/
|
|
1156
|
-
|
|
1321
|
+
session?: {
|
|
1157
1322
|
/**
|
|
1158
|
-
*
|
|
1323
|
+
* Session plan: 1 is the plan without replay, 2 is the plan with replay (deprecated)
|
|
1159
1324
|
*/
|
|
1160
|
-
|
|
1325
|
+
plan?: 1 | 2;
|
|
1161
1326
|
/**
|
|
1162
|
-
*
|
|
1327
|
+
* The precondition that led to the creation of the session
|
|
1163
1328
|
*/
|
|
1164
|
-
readonly
|
|
1329
|
+
readonly session_precondition?: 'user_app_launch' | 'inactivity_timeout' | 'max_duration' | 'background_launch' | 'prewarm' | 'from_non_interactive_session' | 'explicit_stop';
|
|
1165
1330
|
[k: string]: unknown;
|
|
1166
|
-
}
|
|
1331
|
+
};
|
|
1167
1332
|
/**
|
|
1168
|
-
*
|
|
1333
|
+
* Subset of the SDK configuration options in use during its execution
|
|
1169
1334
|
*/
|
|
1170
|
-
|
|
1335
|
+
readonly configuration?: {
|
|
1171
1336
|
/**
|
|
1172
|
-
* The
|
|
1337
|
+
* The percentage of sessions tracked
|
|
1173
1338
|
*/
|
|
1174
|
-
|
|
1339
|
+
readonly session_sample_rate: number;
|
|
1175
1340
|
/**
|
|
1176
|
-
* The
|
|
1341
|
+
* The percentage of sessions with RUM & Session Replay pricing tracked
|
|
1177
1342
|
*/
|
|
1178
|
-
|
|
1343
|
+
readonly session_replay_sample_rate?: number;
|
|
1179
1344
|
/**
|
|
1180
|
-
* The
|
|
1345
|
+
* The percentage of sessions profiled
|
|
1181
1346
|
*/
|
|
1182
|
-
|
|
1183
|
-
[k: string]: unknown;
|
|
1184
|
-
};
|
|
1185
|
-
/**
|
|
1186
|
-
* Additional information of the reported Cumulative Layout Shift
|
|
1187
|
-
*/
|
|
1188
|
-
readonly cls?: {
|
|
1347
|
+
readonly profiling_sample_rate?: number;
|
|
1189
1348
|
/**
|
|
1190
|
-
*
|
|
1349
|
+
* The percentage of sessions with traced resources
|
|
1191
1350
|
*/
|
|
1192
|
-
readonly
|
|
1193
|
-
[k: string]: unknown;
|
|
1194
|
-
};
|
|
1195
|
-
/**
|
|
1196
|
-
* Subset of the SDK configuration options in use during its execution
|
|
1197
|
-
*/
|
|
1198
|
-
readonly configuration?: {
|
|
1351
|
+
readonly trace_sample_rate?: number;
|
|
1199
1352
|
/**
|
|
1200
|
-
*
|
|
1353
|
+
* Session Replay experimental features enabled in the SDK configuration
|
|
1201
1354
|
*/
|
|
1202
|
-
readonly
|
|
1355
|
+
readonly session_replay_experimental_features?: string[];
|
|
1203
1356
|
[k: string]: unknown;
|
|
1204
1357
|
};
|
|
1205
1358
|
/**
|
|
1206
|
-
*
|
|
1359
|
+
* Browser SDK version
|
|
1207
1360
|
*/
|
|
1208
|
-
|
|
1361
|
+
readonly browser_sdk_version?: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* SDK name (e.g. 'logs', 'rum', 'rum-slim', etc.)
|
|
1364
|
+
*/
|
|
1365
|
+
readonly sdk_name?: string;
|
|
1209
1366
|
[k: string]: unknown;
|
|
1210
1367
|
};
|
|
1211
1368
|
/**
|
|
1212
|
-
*
|
|
1369
|
+
* User provided context
|
|
1213
1370
|
*/
|
|
1214
|
-
|
|
1371
|
+
context?: {
|
|
1372
|
+
[k: string]: unknown;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* Stream properties
|
|
1376
|
+
*/
|
|
1377
|
+
stream?: {
|
|
1215
1378
|
/**
|
|
1216
|
-
*
|
|
1379
|
+
* UUID of the stream
|
|
1217
1380
|
*/
|
|
1218
|
-
readonly
|
|
1219
|
-
/**
|
|
1220
|
-
* Distance between the top and the lowest point reached on this view (in pixels)
|
|
1221
|
-
*/
|
|
1222
|
-
readonly max_depth: number;
|
|
1223
|
-
/**
|
|
1224
|
-
* Page scroll top (scrolled distance) when the maximum scroll depth was reached for this view (in pixels)
|
|
1225
|
-
*/
|
|
1226
|
-
readonly max_depth_scroll_top: number;
|
|
1227
|
-
/**
|
|
1228
|
-
* Maximum page scroll height (total height) for this view (in pixels)
|
|
1229
|
-
*/
|
|
1230
|
-
readonly max_scroll_height: number;
|
|
1231
|
-
/**
|
|
1232
|
-
* Duration between the view start and the time the max scroll height was reached for this view (in nanoseconds)
|
|
1233
|
-
*/
|
|
1234
|
-
readonly max_scroll_height_time: number;
|
|
1235
|
-
[k: string]: unknown;
|
|
1236
|
-
};
|
|
1381
|
+
readonly id: string;
|
|
1237
1382
|
[k: string]: unknown;
|
|
1238
1383
|
};
|
|
1239
1384
|
[k: string]: unknown;
|
|
1240
|
-
}
|
|
1241
|
-
export type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent;
|
|
1385
|
+
}
|
|
1242
1386
|
/**
|
|
1243
|
-
*
|
|
1387
|
+
* View Container schema for views that are nested (webviews in mobile)
|
|
1244
1388
|
*/
|
|
1245
|
-
export
|
|
1246
|
-
view: {
|
|
1247
|
-
[k: string]: unknown;
|
|
1248
|
-
};
|
|
1389
|
+
export interface ViewContainerSchema {
|
|
1249
1390
|
/**
|
|
1250
|
-
*
|
|
1391
|
+
* View Container properties (view wrapping the current view)
|
|
1251
1392
|
*/
|
|
1252
|
-
readonly
|
|
1393
|
+
readonly container?: {
|
|
1253
1394
|
/**
|
|
1254
|
-
*
|
|
1395
|
+
* Attributes of the view's container
|
|
1255
1396
|
*/
|
|
1256
|
-
readonly
|
|
1397
|
+
readonly view: {
|
|
1398
|
+
/**
|
|
1399
|
+
* ID of the parent view
|
|
1400
|
+
*/
|
|
1401
|
+
readonly id: string;
|
|
1402
|
+
[k: string]: unknown;
|
|
1403
|
+
};
|
|
1257
1404
|
/**
|
|
1258
|
-
*
|
|
1405
|
+
* Source of the parent view
|
|
1259
1406
|
*/
|
|
1260
|
-
readonly
|
|
1407
|
+
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'cpp' | 'maui';
|
|
1261
1408
|
[k: string]: unknown;
|
|
1262
1409
|
};
|
|
1263
1410
|
[k: string]: unknown;
|
|
1264
|
-
}
|
|
1411
|
+
}
|
|
1265
1412
|
/**
|
|
1266
|
-
* Schema of
|
|
1413
|
+
* Schema of all properties of events that can have parent actions
|
|
1267
1414
|
*/
|
|
1268
|
-
export
|
|
1269
|
-
/**
|
|
1270
|
-
* RUM event type
|
|
1271
|
-
*/
|
|
1272
|
-
readonly type: 'vital';
|
|
1415
|
+
export interface ActionChildProperties {
|
|
1273
1416
|
/**
|
|
1274
|
-
*
|
|
1417
|
+
* Action properties
|
|
1275
1418
|
*/
|
|
1276
|
-
readonly
|
|
1277
|
-
/**
|
|
1278
|
-
* UUID of the vital
|
|
1279
|
-
*/
|
|
1280
|
-
readonly id: string;
|
|
1281
|
-
/**
|
|
1282
|
-
* Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $
|
|
1283
|
-
*/
|
|
1284
|
-
readonly name?: string;
|
|
1419
|
+
readonly action?: {
|
|
1285
1420
|
/**
|
|
1286
|
-
*
|
|
1421
|
+
* UUID of the action
|
|
1287
1422
|
*/
|
|
1288
|
-
readonly
|
|
1423
|
+
readonly id: string | string[];
|
|
1289
1424
|
[k: string]: unknown;
|
|
1290
1425
|
};
|
|
1291
1426
|
[k: string]: unknown;
|
|
1292
|
-
}
|
|
1427
|
+
}
|
|
1293
1428
|
/**
|
|
1294
|
-
*
|
|
1429
|
+
* GraphQL request parameters
|
|
1295
1430
|
*/
|
|
1296
|
-
export
|
|
1297
|
-
view: {
|
|
1298
|
-
[k: string]: unknown;
|
|
1299
|
-
};
|
|
1431
|
+
export interface RumGraphql {
|
|
1300
1432
|
/**
|
|
1301
|
-
*
|
|
1433
|
+
* Type of the GraphQL operation
|
|
1302
1434
|
*/
|
|
1303
|
-
readonly
|
|
1435
|
+
readonly operationType?: 'query' | 'mutation' | 'subscription';
|
|
1436
|
+
/**
|
|
1437
|
+
* Name of the GraphQL operation
|
|
1438
|
+
*/
|
|
1439
|
+
readonly operationName?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Content of the GraphQL operation
|
|
1442
|
+
*/
|
|
1443
|
+
payload?: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* String representation of the operation variables
|
|
1446
|
+
*/
|
|
1447
|
+
variables?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* Number of GraphQL errors in the response
|
|
1450
|
+
*/
|
|
1451
|
+
readonly error_count?: number;
|
|
1452
|
+
/**
|
|
1453
|
+
* Array of GraphQL errors from the response
|
|
1454
|
+
*/
|
|
1455
|
+
readonly errors?: {
|
|
1304
1456
|
/**
|
|
1305
|
-
*
|
|
1457
|
+
* Error message
|
|
1306
1458
|
*/
|
|
1307
|
-
readonly
|
|
1459
|
+
readonly message: string;
|
|
1308
1460
|
/**
|
|
1309
|
-
*
|
|
1461
|
+
* Error code (used by some providers)
|
|
1310
1462
|
*/
|
|
1311
|
-
readonly
|
|
1463
|
+
readonly code?: string;
|
|
1312
1464
|
/**
|
|
1313
|
-
*
|
|
1465
|
+
* Array of error locations in the GraphQL query
|
|
1314
1466
|
*/
|
|
1315
|
-
readonly
|
|
1467
|
+
readonly locations?: {
|
|
1468
|
+
/**
|
|
1469
|
+
* Line number where the error occurred
|
|
1470
|
+
*/
|
|
1471
|
+
readonly line: number;
|
|
1472
|
+
/**
|
|
1473
|
+
* Column number where the error occurred
|
|
1474
|
+
*/
|
|
1475
|
+
readonly column: number;
|
|
1476
|
+
[k: string]: unknown;
|
|
1477
|
+
}[];
|
|
1316
1478
|
/**
|
|
1317
|
-
*
|
|
1479
|
+
* Path to the field that caused the error
|
|
1318
1480
|
*/
|
|
1319
|
-
readonly
|
|
1481
|
+
readonly path?: (string | number)[];
|
|
1320
1482
|
[k: string]: unknown;
|
|
1321
|
-
};
|
|
1483
|
+
}[];
|
|
1322
1484
|
[k: string]: unknown;
|
|
1323
|
-
}
|
|
1485
|
+
}
|
|
1324
1486
|
/**
|
|
1325
|
-
*
|
|
1487
|
+
* Trace context properties
|
|
1326
1488
|
*/
|
|
1327
|
-
export interface
|
|
1489
|
+
export interface RumTrace {
|
|
1328
1490
|
/**
|
|
1329
|
-
*
|
|
1491
|
+
* span identifier in decimal format
|
|
1330
1492
|
*/
|
|
1331
|
-
readonly
|
|
1493
|
+
readonly span_id?: string;
|
|
1332
1494
|
/**
|
|
1333
|
-
*
|
|
1495
|
+
* parent span identifier in decimal format
|
|
1334
1496
|
*/
|
|
1335
|
-
readonly
|
|
1336
|
-
/**
|
|
1337
|
-
* UUID of the application
|
|
1338
|
-
*/
|
|
1339
|
-
readonly id: string;
|
|
1340
|
-
/**
|
|
1341
|
-
* The user's current locale as a language tag (language + region), computed from their preferences and the app's supported languages, e.g. 'es-FR'.
|
|
1342
|
-
*/
|
|
1343
|
-
readonly current_locale?: string;
|
|
1344
|
-
[k: string]: unknown;
|
|
1345
|
-
};
|
|
1497
|
+
readonly parent_span_id?: string;
|
|
1346
1498
|
/**
|
|
1347
|
-
*
|
|
1499
|
+
* trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
|
|
1348
1500
|
*/
|
|
1349
|
-
|
|
1501
|
+
readonly trace_id?: string;
|
|
1350
1502
|
/**
|
|
1351
|
-
*
|
|
1503
|
+
* trace sample rate in decimal format
|
|
1352
1504
|
*/
|
|
1353
|
-
|
|
1505
|
+
readonly rule_psr?: number;
|
|
1506
|
+
[k: string]: unknown;
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* RUM Profiler Internal Context schema
|
|
1510
|
+
*/
|
|
1511
|
+
export interface ProfilingInternalContextSchema {
|
|
1354
1512
|
/**
|
|
1355
|
-
*
|
|
1513
|
+
* Used to track the status of the RUM Profiler.
|
|
1514
|
+
*
|
|
1515
|
+
* They are defined in order of when they can happen, from the moment the SDK is initialized to the moment the Profiler is actually running.
|
|
1516
|
+
*
|
|
1517
|
+
* - `starting`: The Profiler is starting (i.e., when the SDK just started). This is the initial status.
|
|
1518
|
+
* - `running`: The Profiler is running.
|
|
1519
|
+
* - `stopped`: The Profiler is stopped.
|
|
1520
|
+
* - `error`: The Profiler encountered an error. See `error_reason` for more details.
|
|
1356
1521
|
*/
|
|
1357
|
-
readonly
|
|
1522
|
+
readonly status?: 'starting' | 'running' | 'stopped' | 'error';
|
|
1358
1523
|
/**
|
|
1359
|
-
*
|
|
1524
|
+
* The reason the Profiler encountered an error. This attribute is only present if the status is `error`.
|
|
1525
|
+
*
|
|
1526
|
+
* Possible values:
|
|
1527
|
+
* - `not-supported-by-browser`: The browser does not support the Profiler (i.e., `window.Profiler` is not available).
|
|
1528
|
+
* - `failed-to-lazy-load`: The Profiler script failed to be loaded by the browser (may be a connection issue or the chunk was not found).
|
|
1529
|
+
* - `missing-document-policy-header`: The Profiler failed to start because its missing `Document-Policy: js-profiling` HTTP response header.
|
|
1530
|
+
* - `unexpected-exception`: An exception occurred when starting the Profiler.
|
|
1360
1531
|
*/
|
|
1361
|
-
readonly
|
|
1532
|
+
readonly error_reason?: 'not-supported-by-browser' | 'failed-to-lazy-load' | 'missing-document-policy-header' | 'unexpected-exception';
|
|
1362
1533
|
/**
|
|
1363
|
-
*
|
|
1534
|
+
* The reason provided by the profiling quota admission API. This attribute is only present if the status is `stopped` due to quota.
|
|
1535
|
+
*
|
|
1536
|
+
* Possible values:
|
|
1537
|
+
* - `quota_ok`: Quota check passed.
|
|
1538
|
+
* - `quota_exceeded`: The organization has exceeded its profiling quota.
|
|
1539
|
+
* - `org_disabled`: The organization has profiling disabled.
|
|
1540
|
+
* - `backend_unavailable`: The quota admission API is unavailable or not initialized.
|
|
1541
|
+
* - `undefined`: The quota reason is undefined.
|
|
1542
|
+
* - `timeout`: The quota check timed out on the client side.
|
|
1543
|
+
* - `api-error`: An API error occurred on the client side.
|
|
1544
|
+
*/
|
|
1545
|
+
readonly quota_reason?: 'quota_ok' | 'quota_exceeded' | 'org_disabled' | 'backend_unavailable' | 'undefined' | 'timeout' | 'api-error';
|
|
1546
|
+
[k: string]: unknown;
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Stream schema for media streaming properties
|
|
1550
|
+
*/
|
|
1551
|
+
export interface StreamSchema {
|
|
1552
|
+
/**
|
|
1553
|
+
* Stream properties
|
|
1364
1554
|
*/
|
|
1365
|
-
readonly
|
|
1555
|
+
readonly stream?: {
|
|
1556
|
+
/**
|
|
1557
|
+
* current bitrate at the time of collection
|
|
1558
|
+
*/
|
|
1559
|
+
bitrate?: number;
|
|
1560
|
+
/**
|
|
1561
|
+
* How long is the content (VOD only) (in ms)
|
|
1562
|
+
*/
|
|
1563
|
+
readonly duration?: number;
|
|
1564
|
+
/**
|
|
1565
|
+
* Stream format
|
|
1566
|
+
*/
|
|
1567
|
+
readonly format?: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* current frames per second at the time of collection
|
|
1570
|
+
*/
|
|
1571
|
+
fps?: number;
|
|
1572
|
+
/**
|
|
1573
|
+
* Stream resolution
|
|
1574
|
+
*/
|
|
1575
|
+
readonly resolution?: string;
|
|
1576
|
+
/**
|
|
1577
|
+
* current timestamp at the time of collection
|
|
1578
|
+
*/
|
|
1579
|
+
timestamp?: number;
|
|
1580
|
+
/**
|
|
1581
|
+
* how much did the media progress since the last context update (in ms)
|
|
1582
|
+
*/
|
|
1583
|
+
watch_time?: number;
|
|
1584
|
+
/**
|
|
1585
|
+
* Percentage of amount of time watched relative to its total duration
|
|
1586
|
+
*/
|
|
1587
|
+
completion_percent?: number;
|
|
1588
|
+
[k: string]: unknown;
|
|
1589
|
+
};
|
|
1590
|
+
[k: string]: unknown;
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* Shared optional view-specific properties used by both view and view_update events
|
|
1594
|
+
*/
|
|
1595
|
+
export interface ViewProperties {
|
|
1366
1596
|
/**
|
|
1367
|
-
*
|
|
1597
|
+
* View properties
|
|
1368
1598
|
*/
|
|
1369
|
-
readonly
|
|
1599
|
+
readonly view?: {
|
|
1370
1600
|
/**
|
|
1371
|
-
*
|
|
1601
|
+
* Duration in ns to the view is considered loaded
|
|
1372
1602
|
*/
|
|
1373
|
-
readonly
|
|
1603
|
+
readonly loading_time?: number;
|
|
1374
1604
|
/**
|
|
1375
|
-
*
|
|
1605
|
+
* Duration in ns from the moment the view was started until all the initial network requests settled
|
|
1606
|
+
*/
|
|
1607
|
+
readonly network_settled_time?: number;
|
|
1608
|
+
/**
|
|
1609
|
+
* Duration in ns to from the last interaction on previous view to the moment the current view was displayed
|
|
1610
|
+
*/
|
|
1611
|
+
readonly interaction_to_next_view_time?: number;
|
|
1612
|
+
/**
|
|
1613
|
+
* Type of the loading of the view
|
|
1614
|
+
*/
|
|
1615
|
+
readonly loading_type?: 'initial_load' | 'route_change' | 'activity_display' | 'activity_redisplay' | 'fragment_display' | 'fragment_redisplay' | 'view_controller_display' | 'view_controller_redisplay' | 'session_renewal' | 'bf_cache';
|
|
1616
|
+
/**
|
|
1617
|
+
* Time spent on the view in ns
|
|
1618
|
+
*/
|
|
1619
|
+
readonly time_spent?: number;
|
|
1620
|
+
/**
|
|
1621
|
+
* @deprecated
|
|
1622
|
+
* Duration in ns to the first rendering (deprecated in favor of `view.performance.fcp.timestamp`)
|
|
1623
|
+
*/
|
|
1624
|
+
readonly first_contentful_paint?: number;
|
|
1625
|
+
/**
|
|
1626
|
+
* @deprecated
|
|
1627
|
+
* Duration in ns to the largest contentful paint (deprecated in favor of `view.performance.lcp.timestamp`)
|
|
1628
|
+
*/
|
|
1629
|
+
readonly largest_contentful_paint?: number;
|
|
1630
|
+
/**
|
|
1631
|
+
* @deprecated
|
|
1632
|
+
* CSS selector path of the largest contentful paint element (deprecated in favor of `view.performance.lcp.target_selector`)
|
|
1376
1633
|
*/
|
|
1377
|
-
readonly
|
|
1634
|
+
readonly largest_contentful_paint_target_selector?: string;
|
|
1378
1635
|
/**
|
|
1379
|
-
*
|
|
1636
|
+
* @deprecated
|
|
1637
|
+
* Duration in ns of the first input event delay (deprecated in favor of `view.performance.fid.duration`)
|
|
1380
1638
|
*/
|
|
1381
|
-
readonly
|
|
1382
|
-
[k: string]: unknown;
|
|
1383
|
-
};
|
|
1384
|
-
/**
|
|
1385
|
-
* The source of this event
|
|
1386
|
-
*/
|
|
1387
|
-
readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform';
|
|
1388
|
-
/**
|
|
1389
|
-
* View properties
|
|
1390
|
-
*/
|
|
1391
|
-
readonly view?: {
|
|
1639
|
+
readonly first_input_delay?: number;
|
|
1392
1640
|
/**
|
|
1393
|
-
*
|
|
1641
|
+
* @deprecated
|
|
1642
|
+
* Duration in ns to the first input (deprecated in favor of `view.performance.fid.timestamp`)
|
|
1394
1643
|
*/
|
|
1395
|
-
readonly
|
|
1644
|
+
readonly first_input_time?: number;
|
|
1396
1645
|
/**
|
|
1397
|
-
*
|
|
1646
|
+
* @deprecated
|
|
1647
|
+
* CSS selector path of the first input target element (deprecated in favor of `view.performance.fid.target_selector`)
|
|
1398
1648
|
*/
|
|
1399
|
-
|
|
1649
|
+
readonly first_input_target_selector?: string;
|
|
1400
1650
|
/**
|
|
1401
|
-
*
|
|
1651
|
+
* @deprecated
|
|
1652
|
+
* Longest duration in ns between an interaction and the next paint (deprecated in favor of `view.performance.inp.duration`)
|
|
1402
1653
|
*/
|
|
1403
|
-
|
|
1654
|
+
readonly interaction_to_next_paint?: number;
|
|
1404
1655
|
/**
|
|
1405
|
-
*
|
|
1656
|
+
* @deprecated
|
|
1657
|
+
* Duration in ns between start of the view and start of the INP (deprecated in favor of `view.performance.inp.timestamp`)
|
|
1406
1658
|
*/
|
|
1407
|
-
|
|
1408
|
-
[k: string]: unknown;
|
|
1409
|
-
};
|
|
1410
|
-
/**
|
|
1411
|
-
* User properties
|
|
1412
|
-
*/
|
|
1413
|
-
readonly usr?: {
|
|
1659
|
+
readonly interaction_to_next_paint_time?: number;
|
|
1414
1660
|
/**
|
|
1415
|
-
*
|
|
1661
|
+
* @deprecated
|
|
1662
|
+
* CSS selector path of the interacted element corresponding to INP (deprecated in favor of `view.performance.inp.target_selector`)
|
|
1416
1663
|
*/
|
|
1417
|
-
readonly
|
|
1664
|
+
readonly interaction_to_next_paint_target_selector?: string;
|
|
1418
1665
|
/**
|
|
1419
|
-
*
|
|
1666
|
+
* @deprecated
|
|
1667
|
+
* Total layout shift score that occurred on the view (deprecated in favor of `view.performance.cls.score`)
|
|
1420
1668
|
*/
|
|
1421
|
-
readonly
|
|
1669
|
+
readonly cumulative_layout_shift?: number;
|
|
1422
1670
|
/**
|
|
1423
|
-
*
|
|
1671
|
+
* @deprecated
|
|
1672
|
+
* Duration in ns between start of the view and start of the largest layout shift contributing to CLS (deprecated in favor of `view.performance.cls.timestamp`)
|
|
1424
1673
|
*/
|
|
1425
|
-
readonly
|
|
1674
|
+
readonly cumulative_layout_shift_time?: number;
|
|
1426
1675
|
/**
|
|
1427
|
-
*
|
|
1676
|
+
* @deprecated
|
|
1677
|
+
* CSS selector path of the first element (in document order) of the largest layout shift contributing to CLS (deprecated in favor of `view.performance.cls.target_selector`)
|
|
1428
1678
|
*/
|
|
1429
|
-
readonly
|
|
1679
|
+
readonly cumulative_layout_shift_target_selector?: string;
|
|
1430
1680
|
/**
|
|
1431
|
-
*
|
|
1681
|
+
* Duration in ns to the complete parsing and loading of the document and its sub resources
|
|
1432
1682
|
*/
|
|
1433
|
-
readonly
|
|
1434
|
-
[k: string]: unknown;
|
|
1435
|
-
};
|
|
1436
|
-
/**
|
|
1437
|
-
* Account properties
|
|
1438
|
-
*/
|
|
1439
|
-
readonly account?: {
|
|
1683
|
+
readonly dom_complete?: number;
|
|
1440
1684
|
/**
|
|
1441
|
-
*
|
|
1685
|
+
* Duration in ns to the complete parsing and loading of the document without its sub resources
|
|
1442
1686
|
*/
|
|
1443
|
-
readonly
|
|
1687
|
+
readonly dom_content_loaded?: number;
|
|
1444
1688
|
/**
|
|
1445
|
-
*
|
|
1689
|
+
* Duration in ns to the end of the parsing of the document
|
|
1446
1690
|
*/
|
|
1447
|
-
readonly
|
|
1448
|
-
[k: string]: unknown;
|
|
1449
|
-
};
|
|
1450
|
-
/**
|
|
1451
|
-
* Device connectivity properties
|
|
1452
|
-
*/
|
|
1453
|
-
connectivity?: {
|
|
1691
|
+
readonly dom_interactive?: number;
|
|
1454
1692
|
/**
|
|
1455
|
-
*
|
|
1693
|
+
* Duration in ns to the end of the load event handler execution
|
|
1456
1694
|
*/
|
|
1457
|
-
readonly
|
|
1695
|
+
readonly load_event?: number;
|
|
1458
1696
|
/**
|
|
1459
|
-
*
|
|
1697
|
+
* Duration in ns to the response start of the document request
|
|
1460
1698
|
*/
|
|
1461
|
-
readonly
|
|
1699
|
+
readonly first_byte?: number;
|
|
1462
1700
|
/**
|
|
1463
|
-
*
|
|
1701
|
+
* User custom timings of the view. As timing name is used as facet path, it must contain only letters, digits, or the characters - _ . @ $
|
|
1464
1702
|
*/
|
|
1465
|
-
readonly
|
|
1703
|
+
readonly custom_timings?: {
|
|
1704
|
+
[k: string]: number;
|
|
1705
|
+
};
|
|
1466
1706
|
/**
|
|
1467
|
-
*
|
|
1707
|
+
* Whether the View corresponding to this event is considered active
|
|
1468
1708
|
*/
|
|
1469
|
-
readonly
|
|
1709
|
+
readonly is_active?: boolean;
|
|
1470
1710
|
/**
|
|
1471
|
-
*
|
|
1711
|
+
* Whether the View had a low average refresh rate
|
|
1472
1712
|
*/
|
|
1473
|
-
readonly
|
|
1713
|
+
readonly is_slow_rendered?: boolean;
|
|
1474
1714
|
/**
|
|
1475
|
-
*
|
|
1715
|
+
* Properties of the actions of the view
|
|
1476
1716
|
*/
|
|
1477
|
-
readonly
|
|
1478
|
-
/**
|
|
1479
|
-
* The type of a radio technology used for cellular connection
|
|
1480
|
-
*/
|
|
1481
|
-
readonly technology?: string;
|
|
1717
|
+
readonly action?: {
|
|
1482
1718
|
/**
|
|
1483
|
-
*
|
|
1719
|
+
* Number of actions that occurred on the view
|
|
1484
1720
|
*/
|
|
1485
|
-
readonly
|
|
1721
|
+
readonly count: number;
|
|
1486
1722
|
[k: string]: unknown;
|
|
1487
1723
|
};
|
|
1488
|
-
[k: string]: unknown;
|
|
1489
|
-
};
|
|
1490
|
-
/**
|
|
1491
|
-
* Display properties
|
|
1492
|
-
*/
|
|
1493
|
-
display?: {
|
|
1494
1724
|
/**
|
|
1495
|
-
*
|
|
1725
|
+
* Properties of the errors of the view
|
|
1496
1726
|
*/
|
|
1497
|
-
readonly
|
|
1727
|
+
readonly error?: {
|
|
1498
1728
|
/**
|
|
1499
|
-
*
|
|
1729
|
+
* Number of errors that occurred on the view
|
|
1500
1730
|
*/
|
|
1501
|
-
readonly
|
|
1731
|
+
readonly count: number;
|
|
1732
|
+
[k: string]: unknown;
|
|
1733
|
+
};
|
|
1734
|
+
/**
|
|
1735
|
+
* Properties of the crashes of the view
|
|
1736
|
+
*/
|
|
1737
|
+
readonly crash?: {
|
|
1502
1738
|
/**
|
|
1503
|
-
*
|
|
1739
|
+
* Number of crashes that occurred on the view
|
|
1504
1740
|
*/
|
|
1505
|
-
readonly
|
|
1741
|
+
readonly count: number;
|
|
1506
1742
|
[k: string]: unknown;
|
|
1507
1743
|
};
|
|
1508
|
-
[k: string]: unknown;
|
|
1509
|
-
};
|
|
1510
|
-
/**
|
|
1511
|
-
* Synthetics properties
|
|
1512
|
-
*/
|
|
1513
|
-
readonly synthetics?: {
|
|
1514
1744
|
/**
|
|
1515
|
-
*
|
|
1745
|
+
* Properties of the long tasks of the view
|
|
1516
1746
|
*/
|
|
1517
|
-
readonly
|
|
1747
|
+
readonly long_task?: {
|
|
1748
|
+
/**
|
|
1749
|
+
* Number of long tasks that occurred on the view
|
|
1750
|
+
*/
|
|
1751
|
+
readonly count: number;
|
|
1752
|
+
[k: string]: unknown;
|
|
1753
|
+
};
|
|
1518
1754
|
/**
|
|
1519
|
-
*
|
|
1755
|
+
* Properties of the frozen frames of the view
|
|
1520
1756
|
*/
|
|
1521
|
-
readonly
|
|
1757
|
+
readonly frozen_frame?: {
|
|
1758
|
+
/**
|
|
1759
|
+
* Number of frozen frames that occurred on the view
|
|
1760
|
+
*/
|
|
1761
|
+
readonly count: number;
|
|
1762
|
+
[k: string]: unknown;
|
|
1763
|
+
};
|
|
1522
1764
|
/**
|
|
1523
|
-
*
|
|
1765
|
+
* List of slow frames during the view's lifetime
|
|
1524
1766
|
*/
|
|
1525
|
-
readonly
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1767
|
+
readonly slow_frames?: {
|
|
1768
|
+
/**
|
|
1769
|
+
* Duration in ns between start of the view and the start of the slow frame
|
|
1770
|
+
*/
|
|
1771
|
+
readonly start: number;
|
|
1772
|
+
/**
|
|
1773
|
+
* Duration in ns of the slow frame
|
|
1774
|
+
*/
|
|
1775
|
+
readonly duration: number;
|
|
1776
|
+
[k: string]: unknown;
|
|
1777
|
+
}[];
|
|
1532
1778
|
/**
|
|
1533
|
-
*
|
|
1779
|
+
* Properties of the resources of the view
|
|
1534
1780
|
*/
|
|
1535
|
-
readonly
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1781
|
+
readonly resource?: {
|
|
1782
|
+
/**
|
|
1783
|
+
* Number of resources that occurred on the view
|
|
1784
|
+
*/
|
|
1785
|
+
readonly count: number;
|
|
1786
|
+
[k: string]: unknown;
|
|
1787
|
+
};
|
|
1542
1788
|
/**
|
|
1543
|
-
*
|
|
1789
|
+
* Properties of the frustrations of the view
|
|
1544
1790
|
*/
|
|
1545
|
-
readonly
|
|
1791
|
+
readonly frustration?: {
|
|
1792
|
+
/**
|
|
1793
|
+
* Number of frustrations that occurred on the view
|
|
1794
|
+
*/
|
|
1795
|
+
readonly count: number;
|
|
1796
|
+
[k: string]: unknown;
|
|
1797
|
+
};
|
|
1546
1798
|
/**
|
|
1547
|
-
*
|
|
1799
|
+
* List of the periods of time the user had the view in foreground (focused in the browser)
|
|
1548
1800
|
*/
|
|
1549
|
-
readonly
|
|
1801
|
+
readonly in_foreground_periods?: {
|
|
1802
|
+
/**
|
|
1803
|
+
* Duration in ns between start of the view and start of foreground period
|
|
1804
|
+
*/
|
|
1805
|
+
readonly start: number;
|
|
1806
|
+
/**
|
|
1807
|
+
* Duration in ns of the view foreground period
|
|
1808
|
+
*/
|
|
1809
|
+
readonly duration: number;
|
|
1810
|
+
[k: string]: unknown;
|
|
1811
|
+
}[];
|
|
1550
1812
|
/**
|
|
1551
|
-
*
|
|
1813
|
+
* Average memory used during the view lifetime (in bytes)
|
|
1552
1814
|
*/
|
|
1553
|
-
readonly
|
|
1815
|
+
readonly memory_average?: number;
|
|
1554
1816
|
/**
|
|
1555
|
-
*
|
|
1817
|
+
* Peak memory used during the view lifetime (in bytes)
|
|
1556
1818
|
*/
|
|
1557
|
-
readonly
|
|
1558
|
-
[k: string]: unknown;
|
|
1559
|
-
};
|
|
1560
|
-
/**
|
|
1561
|
-
* Device properties
|
|
1562
|
-
*/
|
|
1563
|
-
device?: {
|
|
1819
|
+
readonly memory_max?: number;
|
|
1564
1820
|
/**
|
|
1565
|
-
*
|
|
1821
|
+
* Total number of cpu ticks during the view's lifetime
|
|
1566
1822
|
*/
|
|
1567
|
-
readonly
|
|
1823
|
+
readonly cpu_ticks_count?: number;
|
|
1568
1824
|
/**
|
|
1569
|
-
*
|
|
1825
|
+
* Average number of cpu ticks per second during the view's lifetime
|
|
1570
1826
|
*/
|
|
1571
|
-
readonly
|
|
1827
|
+
readonly cpu_ticks_per_second?: number;
|
|
1572
1828
|
/**
|
|
1573
|
-
*
|
|
1829
|
+
* Average refresh rate during the view's lifetime (in frames per second)
|
|
1574
1830
|
*/
|
|
1575
|
-
readonly
|
|
1831
|
+
readonly refresh_rate_average?: number;
|
|
1576
1832
|
/**
|
|
1577
|
-
*
|
|
1833
|
+
* Minimum refresh rate during the view's lifetime (in frames per second)
|
|
1578
1834
|
*/
|
|
1579
|
-
readonly
|
|
1835
|
+
readonly refresh_rate_min?: number;
|
|
1580
1836
|
/**
|
|
1581
|
-
*
|
|
1837
|
+
* Rate of slow frames during the view's lifetime (in milliseconds per second)
|
|
1582
1838
|
*/
|
|
1583
|
-
readonly
|
|
1839
|
+
readonly slow_frames_rate?: number;
|
|
1584
1840
|
/**
|
|
1585
|
-
*
|
|
1841
|
+
* Rate of freezes during the view's lifetime (in seconds per hour)
|
|
1586
1842
|
*/
|
|
1587
|
-
readonly
|
|
1843
|
+
readonly freeze_rate?: number;
|
|
1588
1844
|
/**
|
|
1589
|
-
*
|
|
1845
|
+
* Time taken for Flutter 'build' methods.
|
|
1590
1846
|
*/
|
|
1591
|
-
|
|
1847
|
+
flutter_build_time?: RumPerfMetric;
|
|
1592
1848
|
/**
|
|
1593
|
-
*
|
|
1849
|
+
* Time taken for Flutter to rasterize the view.
|
|
1594
1850
|
*/
|
|
1595
|
-
|
|
1851
|
+
flutter_raster_time?: RumPerfMetric;
|
|
1596
1852
|
/**
|
|
1597
|
-
*
|
|
1853
|
+
* The JavaScript refresh rate for React Native
|
|
1598
1854
|
*/
|
|
1599
|
-
|
|
1855
|
+
js_refresh_rate?: RumPerfMetric;
|
|
1600
1856
|
/**
|
|
1601
|
-
*
|
|
1857
|
+
* Performance data. (Web Vitals, etc.)
|
|
1602
1858
|
*/
|
|
1603
|
-
|
|
1859
|
+
performance?: ViewPerformanceData;
|
|
1604
1860
|
/**
|
|
1605
|
-
*
|
|
1861
|
+
* Accessibility properties of the view
|
|
1606
1862
|
*/
|
|
1607
|
-
|
|
1863
|
+
accessibility?: ViewAccessibilityProperties;
|
|
1608
1864
|
[k: string]: unknown;
|
|
1609
1865
|
};
|
|
1610
1866
|
/**
|
|
1611
|
-
*
|
|
1867
|
+
* Session properties
|
|
1612
1868
|
*/
|
|
1613
|
-
readonly
|
|
1614
|
-
/**
|
|
1615
|
-
* Version of the RUM event format
|
|
1616
|
-
*/
|
|
1617
|
-
readonly format_version: 2;
|
|
1618
|
-
/**
|
|
1619
|
-
* Session-related internal properties
|
|
1620
|
-
*/
|
|
1621
|
-
session?: {
|
|
1622
|
-
/**
|
|
1623
|
-
* Session plan: 1 is the plan without replay, 2 is the plan with replay (deprecated)
|
|
1624
|
-
*/
|
|
1625
|
-
plan?: 1 | 2;
|
|
1626
|
-
/**
|
|
1627
|
-
* The precondition that led to the creation of the session
|
|
1628
|
-
*/
|
|
1629
|
-
readonly session_precondition?: 'user_app_launch' | 'inactivity_timeout' | 'max_duration' | 'background_launch' | 'prewarm' | 'from_non_interactive_session' | 'explicit_stop';
|
|
1630
|
-
[k: string]: unknown;
|
|
1631
|
-
};
|
|
1632
|
-
/**
|
|
1633
|
-
* Subset of the SDK configuration options in use during its execution
|
|
1634
|
-
*/
|
|
1635
|
-
readonly configuration?: {
|
|
1636
|
-
/**
|
|
1637
|
-
* The percentage of sessions tracked
|
|
1638
|
-
*/
|
|
1639
|
-
readonly session_sample_rate: number;
|
|
1640
|
-
/**
|
|
1641
|
-
* The percentage of sessions with RUM & Session Replay pricing tracked
|
|
1642
|
-
*/
|
|
1643
|
-
readonly session_replay_sample_rate?: number;
|
|
1644
|
-
/**
|
|
1645
|
-
* The percentage of sessions profiled
|
|
1646
|
-
*/
|
|
1647
|
-
readonly profiling_sample_rate?: number;
|
|
1648
|
-
/**
|
|
1649
|
-
* The percentage of sessions with traced resources
|
|
1650
|
-
*/
|
|
1651
|
-
readonly trace_sample_rate?: number;
|
|
1652
|
-
[k: string]: unknown;
|
|
1653
|
-
};
|
|
1869
|
+
readonly session?: {
|
|
1654
1870
|
/**
|
|
1655
|
-
*
|
|
1871
|
+
* Whether this session is currently active. Set to false to manually stop a session
|
|
1656
1872
|
*/
|
|
1657
|
-
readonly
|
|
1873
|
+
readonly is_active?: boolean;
|
|
1658
1874
|
/**
|
|
1659
|
-
*
|
|
1875
|
+
* Whether this session has been sampled for replay
|
|
1660
1876
|
*/
|
|
1661
|
-
readonly
|
|
1877
|
+
readonly sampled_for_replay?: boolean;
|
|
1662
1878
|
[k: string]: unknown;
|
|
1663
1879
|
};
|
|
1664
1880
|
/**
|
|
1665
|
-
*
|
|
1881
|
+
* Feature flags properties
|
|
1666
1882
|
*/
|
|
1667
|
-
|
|
1883
|
+
readonly feature_flags?: {
|
|
1668
1884
|
[k: string]: unknown;
|
|
1669
1885
|
};
|
|
1670
1886
|
/**
|
|
1671
|
-
*
|
|
1887
|
+
* Privacy properties
|
|
1672
1888
|
*/
|
|
1673
|
-
|
|
1889
|
+
readonly privacy?: {
|
|
1674
1890
|
/**
|
|
1675
|
-
*
|
|
1891
|
+
* The replay privacy level
|
|
1676
1892
|
*/
|
|
1677
|
-
readonly
|
|
1893
|
+
readonly replay_level: 'allow' | 'mask' | 'mask-user-input';
|
|
1678
1894
|
[k: string]: unknown;
|
|
1679
1895
|
};
|
|
1680
|
-
[k: string]: unknown;
|
|
1681
|
-
}
|
|
1682
|
-
/**
|
|
1683
|
-
* View Container schema for views that are nested (webviews in mobile)
|
|
1684
|
-
*/
|
|
1685
|
-
export interface ViewContainerSchema {
|
|
1686
1896
|
/**
|
|
1687
|
-
*
|
|
1897
|
+
* Display properties
|
|
1688
1898
|
*/
|
|
1689
|
-
readonly
|
|
1899
|
+
readonly display?: {
|
|
1690
1900
|
/**
|
|
1691
|
-
*
|
|
1901
|
+
* Scroll properties
|
|
1692
1902
|
*/
|
|
1693
|
-
readonly
|
|
1903
|
+
readonly scroll?: {
|
|
1694
1904
|
/**
|
|
1695
|
-
*
|
|
1905
|
+
* Distance between the top and the lowest point reached on this view (in pixels)
|
|
1696
1906
|
*/
|
|
1697
|
-
readonly
|
|
1907
|
+
readonly max_depth: number;
|
|
1908
|
+
/**
|
|
1909
|
+
* Page scroll top (scrolled distance) when the maximum scroll depth was reached for this view (in pixels)
|
|
1910
|
+
*/
|
|
1911
|
+
readonly max_depth_scroll_top: number;
|
|
1912
|
+
/**
|
|
1913
|
+
* Maximum page scroll height (total height) for this view (in pixels)
|
|
1914
|
+
*/
|
|
1915
|
+
readonly max_scroll_height: number;
|
|
1916
|
+
/**
|
|
1917
|
+
* Duration between the view start and the time the max scroll height was reached for this view (in nanoseconds)
|
|
1918
|
+
*/
|
|
1919
|
+
readonly max_scroll_height_time: number;
|
|
1698
1920
|
[k: string]: unknown;
|
|
1699
1921
|
};
|
|
1700
|
-
/**
|
|
1701
|
-
* Source of the parent view
|
|
1702
|
-
*/
|
|
1703
|
-
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform';
|
|
1704
|
-
[k: string]: unknown;
|
|
1705
|
-
};
|
|
1706
|
-
[k: string]: unknown;
|
|
1707
|
-
}
|
|
1708
|
-
/**
|
|
1709
|
-
* Schema of all properties of events that can have parent actions
|
|
1710
|
-
*/
|
|
1711
|
-
export interface ActionChildProperties {
|
|
1712
|
-
/**
|
|
1713
|
-
* Action properties
|
|
1714
|
-
*/
|
|
1715
|
-
readonly action?: {
|
|
1716
|
-
/**
|
|
1717
|
-
* UUID of the action
|
|
1718
|
-
*/
|
|
1719
|
-
readonly id: string | string[];
|
|
1720
1922
|
[k: string]: unknown;
|
|
1721
1923
|
};
|
|
1722
|
-
[k: string]: unknown;
|
|
1723
|
-
}
|
|
1724
|
-
/**
|
|
1725
|
-
* RUM Profiler Internal Context schema
|
|
1726
|
-
*/
|
|
1727
|
-
export interface ProfilingInternalContextSchema {
|
|
1728
|
-
/**
|
|
1729
|
-
* Used to track the status of the RUM Profiler.
|
|
1730
|
-
*
|
|
1731
|
-
* They are defined in order of when they can happen, from the moment the SDK is initialized to the moment the Profiler is actually running.
|
|
1732
|
-
*
|
|
1733
|
-
* - `starting`: The Profiler is starting (i.e., when the SDK just started). This is the initial status.
|
|
1734
|
-
* - `running`: The Profiler is running.
|
|
1735
|
-
* - `stopped`: The Profiler is stopped.
|
|
1736
|
-
* - `error`: The Profiler encountered an error. See `error_reason` for more details.
|
|
1737
|
-
*/
|
|
1738
|
-
readonly status?: 'starting' | 'running' | 'stopped' | 'error';
|
|
1739
|
-
/**
|
|
1740
|
-
* The reason the Profiler encountered an error. This attribute is only present if the status is `error`.
|
|
1741
|
-
*
|
|
1742
|
-
* Possible values:
|
|
1743
|
-
* - `not-supported-by-browser`: The browser does not support the Profiler (i.e., `window.Profiler` is not available).
|
|
1744
|
-
* - `failed-to-lazy-load`: The Profiler script failed to be loaded by the browser (may be a connection issue or the chunk was not found).
|
|
1745
|
-
* - `missing-document-policy-header`: The Profiler failed to start because its missing `Document-Policy: js-profiling` HTTP response header.
|
|
1746
|
-
* - `unexpected-exception`: An exception occurred when starting the Profiler.
|
|
1747
|
-
*/
|
|
1748
|
-
readonly error_reason?: 'not-supported-by-browser' | 'failed-to-lazy-load' | 'missing-document-policy-header' | 'unexpected-exception';
|
|
1749
|
-
[k: string]: unknown;
|
|
1750
|
-
}
|
|
1751
|
-
/**
|
|
1752
|
-
* Stream schema for media streaming properties
|
|
1753
|
-
*/
|
|
1754
|
-
export interface StreamSchema {
|
|
1755
1924
|
/**
|
|
1756
|
-
*
|
|
1925
|
+
* Internal properties
|
|
1757
1926
|
*/
|
|
1758
|
-
readonly
|
|
1759
|
-
/**
|
|
1760
|
-
* current bitrate at the time of collection
|
|
1761
|
-
*/
|
|
1762
|
-
bitrate?: number;
|
|
1763
|
-
/**
|
|
1764
|
-
* How long is the content (VOD only) (in ms)
|
|
1765
|
-
*/
|
|
1766
|
-
readonly duration?: number;
|
|
1927
|
+
readonly _kubesense?: {
|
|
1767
1928
|
/**
|
|
1768
|
-
*
|
|
1929
|
+
* Version of the update of the view event
|
|
1769
1930
|
*/
|
|
1770
|
-
readonly
|
|
1931
|
+
readonly document_version: number;
|
|
1771
1932
|
/**
|
|
1772
|
-
*
|
|
1933
|
+
* List of the page states during the view
|
|
1773
1934
|
*/
|
|
1774
|
-
|
|
1935
|
+
readonly page_states?: {
|
|
1936
|
+
/**
|
|
1937
|
+
* Page state name
|
|
1938
|
+
*/
|
|
1939
|
+
readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated';
|
|
1940
|
+
/**
|
|
1941
|
+
* Duration in ns between start of the view and start of the page state
|
|
1942
|
+
*/
|
|
1943
|
+
readonly start: number;
|
|
1944
|
+
[k: string]: unknown;
|
|
1945
|
+
}[];
|
|
1775
1946
|
/**
|
|
1776
|
-
*
|
|
1947
|
+
* Debug metadata for Replay Sessions
|
|
1777
1948
|
*/
|
|
1778
|
-
|
|
1949
|
+
replay_stats?: {
|
|
1950
|
+
/**
|
|
1951
|
+
* The number of records produced during this view lifetime
|
|
1952
|
+
*/
|
|
1953
|
+
records_count?: number;
|
|
1954
|
+
/**
|
|
1955
|
+
* The number of segments sent during this view lifetime
|
|
1956
|
+
*/
|
|
1957
|
+
segments_count?: number;
|
|
1958
|
+
/**
|
|
1959
|
+
* The total size in bytes of the segments sent during this view lifetime
|
|
1960
|
+
*/
|
|
1961
|
+
segments_total_raw_size?: number;
|
|
1962
|
+
[k: string]: unknown;
|
|
1963
|
+
};
|
|
1779
1964
|
/**
|
|
1780
|
-
*
|
|
1965
|
+
* Additional information of the reported Cumulative Layout Shift
|
|
1781
1966
|
*/
|
|
1782
|
-
|
|
1967
|
+
readonly cls?: {
|
|
1968
|
+
/**
|
|
1969
|
+
* Pixel ratio of the device where the layout shift was reported
|
|
1970
|
+
*/
|
|
1971
|
+
readonly device_pixel_ratio?: number;
|
|
1972
|
+
[k: string]: unknown;
|
|
1973
|
+
};
|
|
1783
1974
|
/**
|
|
1784
|
-
*
|
|
1975
|
+
* Subset of the SDK configuration options in use during its execution
|
|
1785
1976
|
*/
|
|
1786
|
-
|
|
1977
|
+
readonly configuration?: {
|
|
1978
|
+
/**
|
|
1979
|
+
* Whether session replay recording configured to start manually
|
|
1980
|
+
*/
|
|
1981
|
+
readonly start_session_replay_recording_manually?: boolean;
|
|
1982
|
+
/**
|
|
1983
|
+
* The id of the remote configuration applied to the SDK, if any
|
|
1984
|
+
*/
|
|
1985
|
+
readonly remote_configuration_id?: string;
|
|
1986
|
+
[k: string]: unknown;
|
|
1987
|
+
};
|
|
1787
1988
|
/**
|
|
1788
|
-
*
|
|
1989
|
+
* Profiling context
|
|
1789
1990
|
*/
|
|
1790
|
-
|
|
1991
|
+
profiling?: ProfilingInternalContextSchema;
|
|
1791
1992
|
[k: string]: unknown;
|
|
1792
1993
|
};
|
|
1793
1994
|
[k: string]: unknown;
|
|
@@ -1888,6 +2089,24 @@ export interface ViewPerformanceData {
|
|
|
1888
2089
|
* CSS selector path of the interacted element for the INP interaction
|
|
1889
2090
|
*/
|
|
1890
2091
|
readonly target_selector?: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* Sub-parts of the INP
|
|
2094
|
+
*/
|
|
2095
|
+
sub_parts?: {
|
|
2096
|
+
/**
|
|
2097
|
+
* Time from the start of the input event to the start of the processing of the event
|
|
2098
|
+
*/
|
|
2099
|
+
readonly input_delay: number;
|
|
2100
|
+
/**
|
|
2101
|
+
* Event handler execution time
|
|
2102
|
+
*/
|
|
2103
|
+
readonly processing_duration: number;
|
|
2104
|
+
/**
|
|
2105
|
+
* Rendering time happening after processing
|
|
2106
|
+
*/
|
|
2107
|
+
readonly presentation_delay: number;
|
|
2108
|
+
[k: string]: unknown;
|
|
2109
|
+
};
|
|
1891
2110
|
[k: string]: unknown;
|
|
1892
2111
|
};
|
|
1893
2112
|
/**
|
|
@@ -1906,6 +2125,24 @@ export interface ViewPerformanceData {
|
|
|
1906
2125
|
* URL of the largest contentful paint element
|
|
1907
2126
|
*/
|
|
1908
2127
|
resource_url?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* Sub-parts of the LCP
|
|
2130
|
+
*/
|
|
2131
|
+
sub_parts?: {
|
|
2132
|
+
/**
|
|
2133
|
+
* Time between first_byte and the loading start of the resource associated with the LCP
|
|
2134
|
+
*/
|
|
2135
|
+
readonly load_delay: number;
|
|
2136
|
+
/**
|
|
2137
|
+
* Time to takes to load the resource attached to the LCP
|
|
2138
|
+
*/
|
|
2139
|
+
readonly load_time: number;
|
|
2140
|
+
/**
|
|
2141
|
+
* Time between the LCP resource finishes loading and the LCP element is fully rendered
|
|
2142
|
+
*/
|
|
2143
|
+
readonly render_delay: number;
|
|
2144
|
+
[k: string]: unknown;
|
|
2145
|
+
};
|
|
1909
2146
|
[k: string]: unknown;
|
|
1910
2147
|
};
|
|
1911
2148
|
/**
|