@kubesense/kubesense-browser-rum-core 1.0.0
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 +201 -0
- package/README.md +3 -0
- package/cjs/boot/preStartRum.d.ts +7 -0
- package/cjs/boot/preStartRum.js +190 -0
- package/cjs/boot/preStartRum.js.map +1 -0
- package/cjs/boot/rumPublicApi.d.ts +409 -0
- package/cjs/boot/rumPublicApi.js +168 -0
- package/cjs/boot/rumPublicApi.js.map +1 -0
- package/cjs/boot/startRum.d.ts +109 -0
- package/cjs/boot/startRum.js +153 -0
- package/cjs/boot/startRum.js.map +1 -0
- package/cjs/browser/cookieObservable.d.ts +8 -0
- package/cjs/browser/cookieObservable.js +39 -0
- package/cjs/browser/cookieObservable.js.map +1 -0
- package/cjs/browser/domMutationObservable.d.ts +27 -0
- package/cjs/browser/domMutationObservable.js +58 -0
- package/cjs/browser/domMutationObservable.js.map +1 -0
- package/cjs/browser/firstInputPolyfill.d.ts +8 -0
- package/cjs/browser/firstInputPolyfill.js +68 -0
- package/cjs/browser/firstInputPolyfill.js.map +1 -0
- package/cjs/browser/htmlDomUtils.d.ts +13 -0
- package/cjs/browser/htmlDomUtils.js +46 -0
- package/cjs/browser/htmlDomUtils.js.map +1 -0
- package/cjs/browser/locationChangeObservable.d.ts +7 -0
- package/cjs/browser/locationChangeObservable.js +51 -0
- package/cjs/browser/locationChangeObservable.js.map +1 -0
- package/cjs/browser/performanceObservable.d.ts +174 -0
- package/cjs/browser/performanceObservable.js +126 -0
- package/cjs/browser/performanceObservable.js.map +1 -0
- package/cjs/browser/performanceUtils.d.ts +7 -0
- package/cjs/browser/performanceUtils.js +42 -0
- package/cjs/browser/performanceUtils.js.map +1 -0
- package/cjs/browser/scroll.d.ts +2 -0
- package/cjs/browser/scroll.js +33 -0
- package/cjs/browser/scroll.js.map +1 -0
- package/cjs/browser/viewportObservable.d.ts +10 -0
- package/cjs/browser/viewportObservable.js +37 -0
- package/cjs/browser/viewportObservable.js.map +1 -0
- package/cjs/browser/windowOpenObservable.d.ts +5 -0
- package/cjs/browser/windowOpenObservable.js +10 -0
- package/cjs/browser/windowOpenObservable.js.map +1 -0
- package/cjs/domain/action/actionCollection.d.ts +21 -0
- package/cjs/domain/action/actionCollection.js +96 -0
- package/cjs/domain/action/actionCollection.js.map +1 -0
- package/cjs/domain/action/actionNameConstants.d.ts +18 -0
- package/cjs/domain/action/actionNameConstants.js +11 -0
- package/cjs/domain/action/actionNameConstants.js.map +1 -0
- package/cjs/domain/action/clickChain.d.ts +8 -0
- package/cjs/domain/action/clickChain.js +61 -0
- package/cjs/domain/action/clickChain.js.map +1 -0
- package/cjs/domain/action/computeFrustration.d.ts +6 -0
- package/cjs/domain/action/computeFrustration.js +70 -0
- package/cjs/domain/action/computeFrustration.js.map +1 -0
- package/cjs/domain/action/getActionNameFromElement.d.ts +4 -0
- package/cjs/domain/action/getActionNameFromElement.js +239 -0
- package/cjs/domain/action/getActionNameFromElement.js.map +1 -0
- package/cjs/domain/action/interactionSelectorCache.d.ts +5 -0
- package/cjs/domain/action/interactionSelectorCache.js +23 -0
- package/cjs/domain/action/interactionSelectorCache.js.map +1 -0
- package/cjs/domain/action/listenActionEvents.d.ts +19 -0
- package/cjs/domain/action/listenActionEvents.js +61 -0
- package/cjs/domain/action/listenActionEvents.js.map +1 -0
- package/cjs/domain/action/trackClickActions.d.ts +81 -0
- package/cjs/domain/action/trackClickActions.js +237 -0
- package/cjs/domain/action/trackClickActions.js.map +1 -0
- package/cjs/domain/assembly.d.ts +5 -0
- package/cjs/domain/assembly.js +102 -0
- package/cjs/domain/assembly.js.map +1 -0
- package/cjs/domain/configuration/configuration.d.ts +325 -0
- package/cjs/domain/configuration/configuration.js +205 -0
- package/cjs/domain/configuration/configuration.js.map +1 -0
- package/cjs/domain/configuration/index.d.ts +2 -0
- package/cjs/domain/configuration/index.js +19 -0
- package/cjs/domain/configuration/index.js.map +1 -0
- package/cjs/domain/configuration/jsonPathParser.d.ts +28 -0
- package/cjs/domain/configuration/jsonPathParser.js +159 -0
- package/cjs/domain/configuration/jsonPathParser.js.map +1 -0
- package/cjs/domain/configuration/remoteConfiguration.d.ts +39 -0
- package/cjs/domain/configuration/remoteConfiguration.js +243 -0
- package/cjs/domain/configuration/remoteConfiguration.js.map +1 -0
- package/cjs/domain/configuration/remoteConfiguration.types.d.ts +138 -0
- package/cjs/domain/configuration/remoteConfiguration.types.js +7 -0
- package/cjs/domain/configuration/remoteConfiguration.types.js.map +1 -0
- package/cjs/domain/contexts/ciVisibilityContext.d.ts +12 -0
- package/cjs/domain/contexts/ciVisibilityContext.js +34 -0
- package/cjs/domain/contexts/ciVisibilityContext.js.map +1 -0
- package/cjs/domain/contexts/connectivityContext.d.ts +2 -0
- package/cjs/domain/contexts/connectivityContext.js +11 -0
- package/cjs/domain/contexts/connectivityContext.js.map +1 -0
- package/cjs/domain/contexts/defaultContext.d.ts +4 -0
- package/cjs/domain/contexts/defaultContext.js +34 -0
- package/cjs/domain/contexts/defaultContext.js.map +1 -0
- package/cjs/domain/contexts/displayContext.d.ts +6 -0
- package/cjs/domain/contexts/displayContext.js +28 -0
- package/cjs/domain/contexts/displayContext.js.map +1 -0
- package/cjs/domain/contexts/featureFlagContext.d.ts +19 -0
- package/cjs/domain/contexts/featureFlagContext.js +53 -0
- package/cjs/domain/contexts/featureFlagContext.js.map +1 -0
- package/cjs/domain/contexts/internalContext.d.ts +12 -0
- package/cjs/domain/contexts/internalContext.js +26 -0
- package/cjs/domain/contexts/internalContext.js.map +1 -0
- package/cjs/domain/contexts/pageStateHistory.d.ts +23 -0
- package/cjs/domain/contexts/pageStateHistory.js +104 -0
- package/cjs/domain/contexts/pageStateHistory.js.map +1 -0
- package/cjs/domain/contexts/sessionContext.d.ts +5 -0
- package/cjs/domain/contexts/sessionContext.js +47 -0
- package/cjs/domain/contexts/sessionContext.js.map +1 -0
- package/cjs/domain/contexts/syntheticsContext.d.ts +2 -0
- package/cjs/domain/contexts/syntheticsContext.js +25 -0
- package/cjs/domain/contexts/syntheticsContext.js.map +1 -0
- package/cjs/domain/contexts/trackingConsentContext.d.ts +3 -0
- package/cjs/domain/contexts/trackingConsentContext.js +14 -0
- package/cjs/domain/contexts/trackingConsentContext.js.map +1 -0
- package/cjs/domain/contexts/urlContexts.d.ts +22 -0
- package/cjs/domain/contexts/urlContexts.js +64 -0
- package/cjs/domain/contexts/urlContexts.js.map +1 -0
- package/cjs/domain/contexts/userAgentDataContext.d.ts +2 -0
- package/cjs/domain/contexts/userAgentDataContext.js +31 -0
- package/cjs/domain/contexts/userAgentDataContext.js.map +1 -0
- package/cjs/domain/contexts/viewHistory.d.ts +17 -0
- package/cjs/domain/contexts/viewHistory.js +48 -0
- package/cjs/domain/contexts/viewHistory.js.map +1 -0
- package/cjs/domain/discardNegativeDuration.d.ts +2 -0
- package/cjs/domain/discardNegativeDuration.js +8 -0
- package/cjs/domain/discardNegativeDuration.js.map +1 -0
- package/cjs/domain/error/errorCollection.d.ts +17 -0
- package/cjs/domain/error/errorCollection.js +74 -0
- package/cjs/domain/error/errorCollection.js.map +1 -0
- package/cjs/domain/error/trackConsoleError.d.ts +4 -0
- package/cjs/domain/error/trackConsoleError.js +13 -0
- package/cjs/domain/error/trackConsoleError.js.map +1 -0
- package/cjs/domain/error/trackReportError.d.ts +5 -0
- package/cjs/domain/error/trackReportError.js +16 -0
- package/cjs/domain/error/trackReportError.js.map +1 -0
- package/cjs/domain/event/eventCollection.d.ts +10 -0
- package/cjs/domain/event/eventCollection.js +27 -0
- package/cjs/domain/event/eventCollection.js.map +1 -0
- package/cjs/domain/getSelectorFromElement.d.ts +64 -0
- package/cjs/domain/getSelectorFromElement.js +218 -0
- package/cjs/domain/getSelectorFromElement.js.map +1 -0
- package/cjs/domain/getSessionReplayUrl.d.ts +9 -0
- package/cjs/domain/getSessionReplayUrl.js +34 -0
- package/cjs/domain/getSessionReplayUrl.js.map +1 -0
- package/cjs/domain/hooks.d.ts +23 -0
- package/cjs/domain/hooks.js +6 -0
- package/cjs/domain/hooks.js.map +1 -0
- package/cjs/domain/lifeCycle.d.ts +73 -0
- package/cjs/domain/lifeCycle.js +6 -0
- package/cjs/domain/lifeCycle.js.map +1 -0
- package/cjs/domain/limitModification.d.ts +8 -0
- package/cjs/domain/limitModification.js +46 -0
- package/cjs/domain/limitModification.js.map +1 -0
- package/cjs/domain/longTask/longTaskCollection.d.ts +18 -0
- package/cjs/domain/longTask/longTaskCollection.js +91 -0
- package/cjs/domain/longTask/longTaskCollection.js.map +1 -0
- package/cjs/domain/plugins.d.ts +40 -0
- package/cjs/domain/plugins.js +15 -0
- package/cjs/domain/plugins.js.map +1 -0
- package/cjs/domain/privacy.d.ts +44 -0
- package/cjs/domain/privacy.js +313 -0
- package/cjs/domain/privacy.js.map +1 -0
- package/cjs/domain/privacyConstants.d.ts +23 -0
- package/cjs/domain/privacyConstants.js +39 -0
- package/cjs/domain/privacyConstants.js.map +1 -0
- package/cjs/domain/requestCollection.d.ts +54 -0
- package/cjs/domain/requestCollection.js +111 -0
- package/cjs/domain/requestCollection.js.map +1 -0
- package/cjs/domain/resource/graphql.d.ts +23 -0
- package/cjs/domain/resource/graphql.js +97 -0
- package/cjs/domain/resource/graphql.js.map +1 -0
- package/cjs/domain/resource/matchRequestResourceEntry.d.ts +16 -0
- package/cjs/domain/resource/matchRequestResourceEntry.js +49 -0
- package/cjs/domain/resource/matchRequestResourceEntry.js.map +1 -0
- package/cjs/domain/resource/requestRegistry.d.ts +9 -0
- package/cjs/domain/resource/requestRegistry.js +41 -0
- package/cjs/domain/resource/requestRegistry.js.map +1 -0
- package/cjs/domain/resource/resourceCollection.d.ts +7 -0
- package/cjs/domain/resource/resourceCollection.js +190 -0
- package/cjs/domain/resource/resourceCollection.js.map +1 -0
- package/cjs/domain/resource/resourceUtils.d.ts +55 -0
- package/cjs/domain/resource/resourceUtils.js +259 -0
- package/cjs/domain/resource/resourceUtils.js.map +1 -0
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +4 -0
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js +24 -0
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js.map +1 -0
- package/cjs/domain/rumSessionManager.d.ts +36 -0
- package/cjs/domain/rumSessionManager.js +77 -0
- package/cjs/domain/rumSessionManager.js.map +1 -0
- package/cjs/domain/sampler/sampler.d.ts +10 -0
- package/cjs/domain/sampler/sampler.js +63 -0
- package/cjs/domain/sampler/sampler.js.map +1 -0
- package/cjs/domain/startCustomerDataTelemetry.d.ts +4 -0
- package/cjs/domain/startCustomerDataTelemetry.js +56 -0
- package/cjs/domain/startCustomerDataTelemetry.js.map +1 -0
- package/cjs/domain/tracing/getDocumentTraceId.d.ts +12 -0
- package/cjs/domain/tracing/getDocumentTraceId.js +76 -0
- package/cjs/domain/tracing/getDocumentTraceId.js.map +1 -0
- package/cjs/domain/tracing/identifier.d.ts +13 -0
- package/cjs/domain/tracing/identifier.js +55 -0
- package/cjs/domain/tracing/identifier.js.map +1 -0
- package/cjs/domain/tracing/sampler.d.ts +10 -0
- package/cjs/domain/tracing/sampler.js +69 -0
- package/cjs/domain/tracing/sampler.js.map +1 -0
- package/cjs/domain/tracing/tracer.d.ts +30 -0
- package/cjs/domain/tracing/tracer.js +161 -0
- package/cjs/domain/tracing/tracer.js.map +1 -0
- package/cjs/domain/tracing/tracer.types.d.ts +12 -0
- package/cjs/domain/tracing/tracer.types.js +3 -0
- package/cjs/domain/tracing/tracer.types.js.map +1 -0
- package/cjs/domain/trackEventCounts.d.ts +17 -0
- package/cjs/domain/trackEventCounts.js +50 -0
- package/cjs/domain/trackEventCounts.js.map +1 -0
- package/cjs/domain/view/bfCacheSupport.d.ts +2 -0
- package/cjs/domain/view/bfCacheSupport.js +13 -0
- package/cjs/domain/view/bfCacheSupport.js.map +1 -0
- package/cjs/domain/view/trackViewEventCounts.d.ts +5 -0
- package/cjs/domain/view/trackViewEventCounts.js +16 -0
- package/cjs/domain/view/trackViewEventCounts.js.map +1 -0
- package/cjs/domain/view/trackViews.d.ts +65 -0
- package/cjs/domain/view/trackViews.js +275 -0
- package/cjs/domain/view/trackViews.js.map +1 -0
- package/cjs/domain/view/viewCollection.d.ts +18 -0
- package/cjs/domain/view/viewCollection.js +153 -0
- package/cjs/domain/view/viewCollection.js.map +1 -0
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +6 -0
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js +32 -0
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -0
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.d.ts +18 -0
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js +44 -0
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -0
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +6 -0
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +44 -0
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +8 -0
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js +17 -0
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +21 -0
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js +37 -0
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +37 -0
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js +135 -0
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +13 -0
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js +39 -0
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackFirstHidden.d.ts +10 -0
- package/cjs/domain/view/viewMetrics/trackFirstHidden.js +33 -0
- package/cjs/domain/view/viewMetrics/trackFirstHidden.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackFirstInput.d.ts +19 -0
- package/cjs/domain/view/viewMetrics/trackFirstInput.js +43 -0
- package/cjs/domain/view/viewMetrics/trackFirstInput.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +15 -0
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js +41 -0
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +25 -0
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js +155 -0
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +18 -0
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js +61 -0
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackLoadingTime.d.ts +14 -0
- package/cjs/domain/view/viewMetrics/trackLoadingTime.js +50 -0
- package/cjs/domain/view/viewMetrics/trackLoadingTime.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.d.ts +14 -0
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.js +43 -0
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.d.ts +25 -0
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.js +78 -0
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -0
- package/cjs/domain/vital/vitalCollection.d.ts +55 -0
- package/cjs/domain/vital/vitalCollection.js +113 -0
- package/cjs/domain/vital/vitalCollection.js.map +1 -0
- package/cjs/domain/waitPageActivityEnd.d.ts +54 -0
- package/cjs/domain/waitPageActivityEnd.js +129 -0
- package/cjs/domain/waitPageActivityEnd.js.map +1 -0
- package/cjs/domainContext.types.d.ts +39 -0
- package/cjs/domainContext.types.js +6 -0
- package/cjs/domainContext.types.js.map +1 -0
- package/cjs/index.d.ts +41 -0
- package/cjs/index.js +59 -0
- package/cjs/index.js.map +1 -0
- package/cjs/rawRumEvent.types.d.ts +326 -0
- package/cjs/rawRumEvent.types.js +34 -0
- package/cjs/rawRumEvent.types.js.map +1 -0
- package/cjs/rumEvent.types.d.ts +2026 -0
- package/cjs/rumEvent.types.js +7 -0
- package/cjs/rumEvent.types.js.map +1 -0
- package/cjs/transport/formDataTransport.d.ts +16 -0
- package/cjs/transport/formDataTransport.js +46 -0
- package/cjs/transport/formDataTransport.js.map +1 -0
- package/cjs/transport/startRumBatch.d.ts +5 -0
- package/cjs/transport/startRumBatch.js +33 -0
- package/cjs/transport/startRumBatch.js.map +1 -0
- package/cjs/transport/startRumEventBridge.d.ts +2 -0
- package/cjs/transport/startRumEventBridge.js +11 -0
- package/cjs/transport/startRumEventBridge.js.map +1 -0
- package/esm/boot/preStartRum.d.ts +7 -0
- package/esm/boot/preStartRum.js +187 -0
- package/esm/boot/preStartRum.js.map +1 -0
- package/esm/boot/rumPublicApi.d.ts +409 -0
- package/esm/boot/rumPublicApi.js +165 -0
- package/esm/boot/rumPublicApi.js.map +1 -0
- package/esm/boot/startRum.d.ts +109 -0
- package/esm/boot/startRum.js +149 -0
- package/esm/boot/startRum.js.map +1 -0
- package/esm/browser/cookieObservable.d.ts +8 -0
- package/esm/browser/cookieObservable.js +35 -0
- package/esm/browser/cookieObservable.js.map +1 -0
- package/esm/browser/domMutationObservable.d.ts +27 -0
- package/esm/browser/domMutationObservable.js +54 -0
- package/esm/browser/domMutationObservable.js.map +1 -0
- package/esm/browser/firstInputPolyfill.d.ts +8 -0
- package/esm/browser/firstInputPolyfill.js +65 -0
- package/esm/browser/firstInputPolyfill.js.map +1 -0
- package/esm/browser/htmlDomUtils.d.ts +13 -0
- package/esm/browser/htmlDomUtils.js +36 -0
- package/esm/browser/htmlDomUtils.js.map +1 -0
- package/esm/browser/locationChangeObservable.d.ts +7 -0
- package/esm/browser/locationChangeObservable.js +48 -0
- package/esm/browser/locationChangeObservable.js.map +1 -0
- package/esm/browser/performanceObservable.d.ts +174 -0
- package/esm/browser/performanceObservable.js +121 -0
- package/esm/browser/performanceObservable.js.map +1 -0
- package/esm/browser/performanceUtils.d.ts +7 -0
- package/esm/browser/performanceUtils.js +38 -0
- package/esm/browser/performanceUtils.js.map +1 -0
- package/esm/browser/scroll.d.ts +2 -0
- package/esm/browser/scroll.js +29 -0
- package/esm/browser/scroll.js.map +1 -0
- package/esm/browser/viewportObservable.d.ts +10 -0
- package/esm/browser/viewportObservable.js +32 -0
- package/esm/browser/viewportObservable.js.map +1 -0
- package/esm/browser/windowOpenObservable.d.ts +5 -0
- package/esm/browser/windowOpenObservable.js +7 -0
- package/esm/browser/windowOpenObservable.js.map +1 -0
- package/esm/domain/action/actionCollection.d.ts +21 -0
- package/esm/domain/action/actionCollection.js +93 -0
- package/esm/domain/action/actionCollection.js.map +1 -0
- package/esm/domain/action/actionNameConstants.d.ts +18 -0
- package/esm/domain/action/actionNameConstants.js +8 -0
- package/esm/domain/action/actionNameConstants.js.map +1 -0
- package/esm/domain/action/clickChain.d.ts +8 -0
- package/esm/domain/action/clickChain.js +57 -0
- package/esm/domain/action/clickChain.js.map +1 -0
- package/esm/domain/action/computeFrustration.d.ts +6 -0
- package/esm/domain/action/computeFrustration.js +65 -0
- package/esm/domain/action/computeFrustration.js.map +1 -0
- package/esm/domain/action/getActionNameFromElement.d.ts +4 -0
- package/esm/domain/action/getActionNameFromElement.js +236 -0
- package/esm/domain/action/getActionNameFromElement.js.map +1 -0
- package/esm/domain/action/interactionSelectorCache.d.ts +5 -0
- package/esm/domain/action/interactionSelectorCache.js +18 -0
- package/esm/domain/action/interactionSelectorCache.js.map +1 -0
- package/esm/domain/action/listenActionEvents.d.ts +19 -0
- package/esm/domain/action/listenActionEvents.js +58 -0
- package/esm/domain/action/listenActionEvents.js.map +1 -0
- package/esm/domain/action/trackClickActions.d.ts +81 -0
- package/esm/domain/action/trackClickActions.js +232 -0
- package/esm/domain/action/trackClickActions.js.map +1 -0
- package/esm/domain/assembly.d.ts +5 -0
- package/esm/domain/assembly.js +99 -0
- package/esm/domain/assembly.js.map +1 -0
- package/esm/domain/configuration/configuration.d.ts +325 -0
- package/esm/domain/configuration/configuration.js +200 -0
- package/esm/domain/configuration/configuration.js.map +1 -0
- package/esm/domain/configuration/index.d.ts +2 -0
- package/esm/domain/configuration/index.js +3 -0
- package/esm/domain/configuration/index.js.map +1 -0
- package/esm/domain/configuration/jsonPathParser.d.ts +28 -0
- package/esm/domain/configuration/jsonPathParser.js +156 -0
- package/esm/domain/configuration/jsonPathParser.js.map +1 -0
- package/esm/domain/configuration/remoteConfiguration.d.ts +39 -0
- package/esm/domain/configuration/remoteConfiguration.js +236 -0
- package/esm/domain/configuration/remoteConfiguration.js.map +1 -0
- package/esm/domain/configuration/remoteConfiguration.types.d.ts +138 -0
- package/esm/domain/configuration/remoteConfiguration.types.js +6 -0
- package/esm/domain/configuration/remoteConfiguration.types.js.map +1 -0
- package/esm/domain/contexts/ciVisibilityContext.d.ts +12 -0
- package/esm/domain/contexts/ciVisibilityContext.js +30 -0
- package/esm/domain/contexts/ciVisibilityContext.js.map +1 -0
- package/esm/domain/contexts/connectivityContext.d.ts +2 -0
- package/esm/domain/contexts/connectivityContext.js +8 -0
- package/esm/domain/contexts/connectivityContext.js.map +1 -0
- package/esm/domain/contexts/defaultContext.d.ts +4 -0
- package/esm/domain/contexts/defaultContext.js +31 -0
- package/esm/domain/contexts/defaultContext.js.map +1 -0
- package/esm/domain/contexts/displayContext.d.ts +6 -0
- package/esm/domain/contexts/displayContext.js +25 -0
- package/esm/domain/contexts/displayContext.js.map +1 -0
- package/esm/domain/contexts/featureFlagContext.d.ts +19 -0
- package/esm/domain/contexts/featureFlagContext.js +49 -0
- package/esm/domain/contexts/featureFlagContext.js.map +1 -0
- package/esm/domain/contexts/internalContext.d.ts +12 -0
- package/esm/domain/contexts/internalContext.js +23 -0
- package/esm/domain/contexts/internalContext.js.map +1 -0
- package/esm/domain/contexts/pageStateHistory.d.ts +23 -0
- package/esm/domain/contexts/pageStateHistory.js +100 -0
- package/esm/domain/contexts/pageStateHistory.js.map +1 -0
- package/esm/domain/contexts/sessionContext.d.ts +5 -0
- package/esm/domain/contexts/sessionContext.js +44 -0
- package/esm/domain/contexts/sessionContext.js.map +1 -0
- package/esm/domain/contexts/syntheticsContext.d.ts +2 -0
- package/esm/domain/contexts/syntheticsContext.js +22 -0
- package/esm/domain/contexts/syntheticsContext.js.map +1 -0
- package/esm/domain/contexts/trackingConsentContext.d.ts +3 -0
- package/esm/domain/contexts/trackingConsentContext.js +11 -0
- package/esm/domain/contexts/trackingConsentContext.js.map +1 -0
- package/esm/domain/contexts/urlContexts.d.ts +22 -0
- package/esm/domain/contexts/urlContexts.js +60 -0
- package/esm/domain/contexts/urlContexts.js.map +1 -0
- package/esm/domain/contexts/userAgentDataContext.d.ts +2 -0
- package/esm/domain/contexts/userAgentDataContext.js +28 -0
- package/esm/domain/contexts/userAgentDataContext.js.map +1 -0
- package/esm/domain/contexts/viewHistory.d.ts +17 -0
- package/esm/domain/contexts/viewHistory.js +44 -0
- package/esm/domain/contexts/viewHistory.js.map +1 -0
- package/esm/domain/discardNegativeDuration.d.ts +2 -0
- package/esm/domain/discardNegativeDuration.js +5 -0
- package/esm/domain/discardNegativeDuration.js.map +1 -0
- package/esm/domain/error/errorCollection.d.ts +17 -0
- package/esm/domain/error/errorCollection.js +70 -0
- package/esm/domain/error/errorCollection.js.map +1 -0
- package/esm/domain/error/trackConsoleError.d.ts +4 -0
- package/esm/domain/error/trackConsoleError.js +10 -0
- package/esm/domain/error/trackConsoleError.js.map +1 -0
- package/esm/domain/error/trackReportError.d.ts +5 -0
- package/esm/domain/error/trackReportError.js +13 -0
- package/esm/domain/error/trackReportError.js.map +1 -0
- package/esm/domain/event/eventCollection.d.ts +10 -0
- package/esm/domain/event/eventCollection.js +24 -0
- package/esm/domain/event/eventCollection.js.map +1 -0
- package/esm/domain/getSelectorFromElement.d.ts +64 -0
- package/esm/domain/getSelectorFromElement.js +213 -0
- package/esm/domain/getSelectorFromElement.js.map +1 -0
- package/esm/domain/getSessionReplayUrl.d.ts +9 -0
- package/esm/domain/getSessionReplayUrl.js +30 -0
- package/esm/domain/getSessionReplayUrl.js.map +1 -0
- package/esm/domain/hooks.d.ts +23 -0
- package/esm/domain/hooks.js +3 -0
- package/esm/domain/hooks.js.map +1 -0
- package/esm/domain/lifeCycle.d.ts +73 -0
- package/esm/domain/lifeCycle.js +3 -0
- package/esm/domain/lifeCycle.js.map +1 -0
- package/esm/domain/limitModification.d.ts +8 -0
- package/esm/domain/limitModification.js +43 -0
- package/esm/domain/limitModification.js.map +1 -0
- package/esm/domain/longTask/longTaskCollection.d.ts +18 -0
- package/esm/domain/longTask/longTaskCollection.js +87 -0
- package/esm/domain/longTask/longTaskCollection.js.map +1 -0
- package/esm/domain/plugins.d.ts +40 -0
- package/esm/domain/plugins.js +12 -0
- package/esm/domain/plugins.js.map +1 -0
- package/esm/domain/privacy.d.ts +44 -0
- package/esm/domain/privacy.js +302 -0
- package/esm/domain/privacy.js.map +1 -0
- package/esm/domain/privacyConstants.d.ts +23 -0
- package/esm/domain/privacyConstants.js +35 -0
- package/esm/domain/privacyConstants.js.map +1 -0
- package/esm/domain/requestCollection.d.ts +54 -0
- package/esm/domain/requestCollection.js +106 -0
- package/esm/domain/requestCollection.js.map +1 -0
- package/esm/domain/resource/graphql.d.ts +23 -0
- package/esm/domain/resource/graphql.js +91 -0
- package/esm/domain/resource/graphql.js.map +1 -0
- package/esm/domain/resource/matchRequestResourceEntry.d.ts +16 -0
- package/esm/domain/resource/matchRequestResourceEntry.js +46 -0
- package/esm/domain/resource/matchRequestResourceEntry.js.map +1 -0
- package/esm/domain/resource/requestRegistry.d.ts +9 -0
- package/esm/domain/resource/requestRegistry.js +37 -0
- package/esm/domain/resource/requestRegistry.js.map +1 -0
- package/esm/domain/resource/resourceCollection.d.ts +7 -0
- package/esm/domain/resource/resourceCollection.js +187 -0
- package/esm/domain/resource/resourceCollection.js.map +1 -0
- package/esm/domain/resource/resourceUtils.d.ts +55 -0
- package/esm/domain/resource/resourceUtils.js +244 -0
- package/esm/domain/resource/resourceUtils.js.map +1 -0
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +4 -0
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js +21 -0
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js.map +1 -0
- package/esm/domain/rumSessionManager.d.ts +36 -0
- package/esm/domain/rumSessionManager.js +72 -0
- package/esm/domain/rumSessionManager.js.map +1 -0
- package/esm/domain/sampler/sampler.d.ts +10 -0
- package/esm/domain/sampler/sampler.js +58 -0
- package/esm/domain/sampler/sampler.js.map +1 -0
- package/esm/domain/startCustomerDataTelemetry.d.ts +4 -0
- package/esm/domain/startCustomerDataTelemetry.js +52 -0
- package/esm/domain/startCustomerDataTelemetry.js.map +1 -0
- package/esm/domain/tracing/getDocumentTraceId.d.ts +12 -0
- package/esm/domain/tracing/getDocumentTraceId.js +68 -0
- package/esm/domain/tracing/getDocumentTraceId.js.map +1 -0
- package/esm/domain/tracing/identifier.d.ts +13 -0
- package/esm/domain/tracing/identifier.js +50 -0
- package/esm/domain/tracing/identifier.js.map +1 -0
- package/esm/domain/tracing/sampler.d.ts +10 -0
- package/esm/domain/tracing/sampler.js +64 -0
- package/esm/domain/tracing/sampler.js.map +1 -0
- package/esm/domain/tracing/tracer.d.ts +30 -0
- package/esm/domain/tracing/tracer.js +156 -0
- package/esm/domain/tracing/tracer.js.map +1 -0
- package/esm/domain/tracing/tracer.types.d.ts +12 -0
- package/esm/domain/tracing/tracer.types.js +2 -0
- package/esm/domain/tracing/tracer.types.js.map +1 -0
- package/esm/domain/trackEventCounts.d.ts +17 -0
- package/esm/domain/trackEventCounts.js +47 -0
- package/esm/domain/trackEventCounts.js.map +1 -0
- package/esm/domain/view/bfCacheSupport.d.ts +2 -0
- package/esm/domain/view/bfCacheSupport.js +10 -0
- package/esm/domain/view/bfCacheSupport.js.map +1 -0
- package/esm/domain/view/trackViewEventCounts.d.ts +5 -0
- package/esm/domain/view/trackViewEventCounts.js +13 -0
- package/esm/domain/view/trackViewEventCounts.js.map +1 -0
- package/esm/domain/view/trackViews.d.ts +65 -0
- package/esm/domain/view/trackViews.js +271 -0
- package/esm/domain/view/trackViews.js.map +1 -0
- package/esm/domain/view/viewCollection.d.ts +18 -0
- package/esm/domain/view/viewCollection.js +150 -0
- package/esm/domain/view/viewCollection.js.map +1 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +6 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js +28 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.d.ts +18 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.js +39 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -0
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +6 -0
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +41 -0
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +8 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js +14 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +21 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js +34 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +37 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js +130 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +13 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js +34 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.d.ts +10 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.js +30 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstInput.d.ts +19 -0
- package/esm/domain/view/viewMetrics/trackFirstInput.js +40 -0
- package/esm/domain/view/viewMetrics/trackFirstInput.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +15 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js +38 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +25 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js +149 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +18 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js +57 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.d.ts +14 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.js +47 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.d.ts +14 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.js +40 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.d.ts +25 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.js +72 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -0
- package/esm/domain/vital/vitalCollection.d.ts +55 -0
- package/esm/domain/vital/vitalCollection.js +107 -0
- package/esm/domain/vital/vitalCollection.js.map +1 -0
- package/esm/domain/waitPageActivityEnd.d.ts +54 -0
- package/esm/domain/waitPageActivityEnd.js +123 -0
- package/esm/domain/waitPageActivityEnd.js.map +1 -0
- package/esm/domainContext.types.d.ts +39 -0
- package/esm/domainContext.types.js +5 -0
- package/esm/domainContext.types.js.map +1 -0
- package/esm/index.d.ts +41 -0
- package/esm/index.js +21 -0
- package/esm/index.js.map +1 -0
- package/esm/rawRumEvent.types.d.ts +326 -0
- package/esm/rawRumEvent.types.js +31 -0
- package/esm/rawRumEvent.types.js.map +1 -0
- package/esm/rumEvent.types.d.ts +2026 -0
- package/esm/rumEvent.types.js +6 -0
- package/esm/rumEvent.types.js.map +1 -0
- package/esm/transport/formDataTransport.d.ts +16 -0
- package/esm/transport/formDataTransport.js +43 -0
- package/esm/transport/formDataTransport.js.map +1 -0
- package/esm/transport/startRumBatch.d.ts +5 -0
- package/esm/transport/startRumBatch.js +30 -0
- package/esm/transport/startRumBatch.js.map +1 -0
- package/esm/transport/startRumEventBridge.d.ts +2 -0
- package/esm/transport/startRumEventBridge.js +8 -0
- package/esm/transport/startRumEventBridge.js.map +1 -0
- package/package.json +29 -0
- package/src/boot/preStartRum.ts +298 -0
- package/src/boot/rumPublicApi.ts +830 -0
- package/src/boot/startRum.ts +280 -0
- package/src/browser/cookieObservable.ts +63 -0
- package/src/browser/domMutationObservable.ts +98 -0
- package/src/browser/firstInputPolyfill.ts +87 -0
- package/src/browser/htmlDomUtils.ts +45 -0
- package/src/browser/locationChangeObservable.ts +69 -0
- package/src/browser/performanceObservable.ts +324 -0
- package/src/browser/performanceUtils.ts +50 -0
- package/src/browser/scroll.ts +25 -0
- package/src/browser/viewportObservable.ts +44 -0
- package/src/browser/windowOpenObservable.ts +7 -0
- package/src/domain/action/actionCollection.ts +146 -0
- package/src/domain/action/actionNameConstants.ts +20 -0
- package/src/domain/action/clickChain.ts +83 -0
- package/src/domain/action/computeFrustration.ts +77 -0
- package/src/domain/action/getActionNameFromElement.ts +337 -0
- package/src/domain/action/interactionSelectorCache.ts +21 -0
- package/src/domain/action/listenActionEvents.ts +119 -0
- package/src/domain/action/trackClickActions.ts +388 -0
- package/src/domain/assembly.ts +141 -0
- package/src/domain/configuration/configuration.ts +548 -0
- package/src/domain/configuration/index.ts +2 -0
- package/src/domain/configuration/jsonPathParser.ts +214 -0
- package/src/domain/configuration/remoteConfiguration.ts +304 -0
- package/src/domain/configuration/remoteConfiguration.types.ts +147 -0
- package/src/domain/contexts/ciVisibilityContext.ts +50 -0
- package/src/domain/contexts/connectivityContext.ts +12 -0
- package/src/domain/contexts/defaultContext.ts +43 -0
- package/src/domain/contexts/displayContext.ts +38 -0
- package/src/domain/contexts/featureFlagContext.ts +71 -0
- package/src/domain/contexts/internalContext.ts +34 -0
- package/src/domain/contexts/pageStateHistory.ts +171 -0
- package/src/domain/contexts/sessionContext.ts +59 -0
- package/src/domain/contexts/syntheticsContext.ts +33 -0
- package/src/domain/contexts/trackingConsentContext.ts +15 -0
- package/src/domain/contexts/urlContexts.ts +97 -0
- package/src/domain/contexts/userAgentDataContext.ts +36 -0
- package/src/domain/contexts/viewHistory.ts +70 -0
- package/src/domain/discardNegativeDuration.ts +6 -0
- package/src/domain/error/errorCollection.ts +107 -0
- package/src/domain/error/trackConsoleError.ts +14 -0
- package/src/domain/error/trackReportError.ts +16 -0
- package/src/domain/event/eventCollection.ts +53 -0
- package/src/domain/getSelectorFromElement.ts +268 -0
- package/src/domain/getSessionReplayUrl.ts +47 -0
- package/src/domain/hooks.ts +31 -0
- package/src/domain/lifeCycle.ts +103 -0
- package/src/domain/limitModification.ts +66 -0
- package/src/domain/longTask/longTaskCollection.ts +133 -0
- package/src/domain/plugins.ts +59 -0
- package/src/domain/privacy.ts +355 -0
- package/src/domain/privacyConstants.ts +43 -0
- package/src/domain/requestCollection.ts +179 -0
- package/src/domain/resource/graphql.ts +135 -0
- package/src/domain/resource/matchRequestResourceEntry.ts +68 -0
- package/src/domain/resource/requestRegistry.ts +52 -0
- package/src/domain/resource/resourceCollection.ts +273 -0
- package/src/domain/resource/resourceUtils.ts +355 -0
- package/src/domain/resource/retrieveInitialDocumentResourceTiming.ts +27 -0
- package/src/domain/rumSessionManager.ts +134 -0
- package/src/domain/sampler/sampler.ts +63 -0
- package/src/domain/startCustomerDataTelemetry.ts +83 -0
- package/src/domain/tracing/getDocumentTraceId.ts +90 -0
- package/src/domain/tracing/identifier.ts +69 -0
- package/src/domain/tracing/sampler.ts +69 -0
- package/src/domain/tracing/tracer.ts +248 -0
- package/src/domain/tracing/tracer.types.ts +13 -0
- package/src/domain/trackEventCounts.ts +67 -0
- package/src/domain/view/bfCacheSupport.ts +20 -0
- package/src/domain/view/trackViewEventCounts.ts +15 -0
- package/src/domain/view/trackViews.ts +431 -0
- package/src/domain/view/viewCollection.ts +203 -0
- package/src/domain/view/viewMetrics/getClsAttributionImpactedArea.ts +34 -0
- package/src/domain/view/viewMetrics/interactionCountPolyfill.ts +55 -0
- package/src/domain/view/viewMetrics/startInitialViewMetricsTelemetry.ts +70 -0
- package/src/domain/view/viewMetrics/trackBfcacheMetrics.ts +20 -0
- package/src/domain/view/viewMetrics/trackCommonViewMetrics.ts +78 -0
- package/src/domain/view/viewMetrics/trackCumulativeLayoutShift.ts +180 -0
- package/src/domain/view/viewMetrics/trackFirstContentfulPaint.ts +47 -0
- package/src/domain/view/viewMetrics/trackFirstHidden.ts +53 -0
- package/src/domain/view/viewMetrics/trackFirstInput.ts +59 -0
- package/src/domain/view/viewMetrics/trackInitialViewMetrics.ts +66 -0
- package/src/domain/view/viewMetrics/trackInteractionToNextPaint.ts +193 -0
- package/src/domain/view/viewMetrics/trackLargestContentfulPaint.ts +87 -0
- package/src/domain/view/viewMetrics/trackLoadingTime.ts +69 -0
- package/src/domain/view/viewMetrics/trackNavigationTimings.ts +66 -0
- package/src/domain/view/viewMetrics/trackScrollMetrics.ts +119 -0
- package/src/domain/vital/vitalCollection.ts +207 -0
- package/src/domain/waitPageActivityEnd.ts +189 -0
- package/src/domainContext.types.ts +61 -0
- package/src/index.ts +76 -0
- package/src/rawRumEvent.types.ts +409 -0
- package/src/rumEvent.types.ts +2151 -0
- package/src/transport/formDataTransport.ts +85 -0
- package/src/transport/startRumBatch.ts +46 -0
- package/src/transport/startRumEventBridge.ts +12 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import type { Context, DeflateWorker, DeflateEncoderStreamId, DeflateEncoder, PublicApi, ContextManager, TrackingConsent, User, Account, RumInternalContext, Telemetry, Encoder } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
import type { LifeCycle } from '../domain/lifeCycle';
|
|
3
|
+
import type { ViewHistory } from '../domain/contexts/viewHistory';
|
|
4
|
+
import type { RumSessionManager } from '../domain/rumSessionManager';
|
|
5
|
+
import type { ReplayStats } from '../rawRumEvent.types';
|
|
6
|
+
import type { RumConfiguration, RumInitConfiguration } from '../domain/configuration';
|
|
7
|
+
import type { ViewOptions } from '../domain/view/trackViews';
|
|
8
|
+
import type { AddDurationVitalOptions, DurationVitalReference, DurationVitalOptions, FeatureOperationOptions, FailureReason } from '../domain/vital/vitalCollection';
|
|
9
|
+
import type { Hooks } from '../domain/hooks';
|
|
10
|
+
import type { SdkName } from '../domain/contexts/defaultContext';
|
|
11
|
+
import type { LongTaskContexts } from '../domain/longTask/longTaskCollection';
|
|
12
|
+
import type { StartRum, StartRumResult } from './startRum';
|
|
13
|
+
export interface StartRecordingOptions {
|
|
14
|
+
force: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Public API for the RUM browser SDK.
|
|
18
|
+
*
|
|
19
|
+
* @category Main
|
|
20
|
+
*/
|
|
21
|
+
export interface RumPublicApi extends PublicApi {
|
|
22
|
+
/**
|
|
23
|
+
* Init the RUM browser SDK.
|
|
24
|
+
*
|
|
25
|
+
* @category Init
|
|
26
|
+
* @param initConfiguration - Configuration options of the SDK
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* kubesenseSdk.init({
|
|
30
|
+
* applicationId: '<KUBESENSE_APPLICATION_ID>',
|
|
31
|
+
* clientToken: '<KUBESENSE_CLIENT_TOKEN>',
|
|
32
|
+
* kubesenseRumEndpoint: '<KUBESENSE_RUM_ENDPOINT>',
|
|
33
|
+
* // ...
|
|
34
|
+
* })
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
init: (initConfiguration: RumInitConfiguration) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Set the tracking consent of the current user.
|
|
41
|
+
*
|
|
42
|
+
*
|
|
43
|
+
* Data will be sent only if it is set to "granted". This value won't be stored by the library
|
|
44
|
+
* across page loads: you will need to call this method or set the appropriate `trackingConsent`
|
|
45
|
+
* field in the init() method at each page load.
|
|
46
|
+
*
|
|
47
|
+
* If this method is called before the init() method, the provided value will take precedence
|
|
48
|
+
* over the one provided as initialization parameter.
|
|
49
|
+
*
|
|
50
|
+
* *
|
|
51
|
+
* @category Privacy
|
|
52
|
+
* @param trackingConsent - The user tracking consent
|
|
53
|
+
*/
|
|
54
|
+
setTrackingConsent: (trackingConsent: TrackingConsent) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Set View Name.
|
|
57
|
+
*
|
|
58
|
+
* Enable to manually change the name of the current view.
|
|
59
|
+
* @category Context - View
|
|
60
|
+
* @param name name of the view
|
|
61
|
+
*/
|
|
62
|
+
setViewName: (name: string) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Set View Context.
|
|
65
|
+
*
|
|
66
|
+
* Enable to manually set the context of the current view.
|
|
67
|
+
* @category Context - View
|
|
68
|
+
* @param context context of the view
|
|
69
|
+
*/
|
|
70
|
+
setViewContext: (context: Context) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Set View Context Property.
|
|
73
|
+
*
|
|
74
|
+
* Enable to manually set a property of the context of the current view.
|
|
75
|
+
* @category Context - View
|
|
76
|
+
* @param key - key of the property
|
|
77
|
+
* @param value - value of the property
|
|
78
|
+
*/
|
|
79
|
+
setViewContextProperty: (key: string, value: any) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Get View Context.
|
|
82
|
+
* @category Context - View
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
getViewContext(): Context;
|
|
86
|
+
/**
|
|
87
|
+
* Set the global context information to all events, stored in `@context`
|
|
88
|
+
*
|
|
89
|
+
* @category internal - View
|
|
90
|
+
* @param context Global context
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
getInternalContext: (startTime?: number) => RumInternalContext | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Get the init configuration
|
|
96
|
+
*/
|
|
97
|
+
getInitConfiguration: () => RumInitConfiguration | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Add a custom action, stored in `@action`
|
|
100
|
+
* @category Data Collection
|
|
101
|
+
* @param name Name of the action
|
|
102
|
+
* @param context Context of the action
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
addAction: (name: string, context?: object) => void;
|
|
106
|
+
/**
|
|
107
|
+
* Add a custom error, stored in `@error`.
|
|
108
|
+
* @category Data Collection
|
|
109
|
+
* @param error Error. Favor sending a [Javascript Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) to have a stack trace attached to the error event.
|
|
110
|
+
* @param context Context of the error
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
addError: (error: unknown, context?: object) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Add a custom timing relative to the start of the current view,
|
|
116
|
+
* stored in `@view.custom_timings.<timing_name>`
|
|
117
|
+
*
|
|
118
|
+
* @category Data Collection
|
|
119
|
+
* @param name Name of the custom timing
|
|
120
|
+
* @param [time] Epoch timestamp of the custom timing (if not set, will use current time)
|
|
121
|
+
*
|
|
122
|
+
* Note: passing a relative time is discouraged since it is actually used as-is but displayed relative to the view start.
|
|
123
|
+
* We currently don't provide a way to retrieve the view start time, so it can be challenging to provide a timing relative to the view start.
|
|
124
|
+
*/
|
|
125
|
+
addTiming: (name: string, time?: number) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Set the global context information to all events, stored in `@context`
|
|
128
|
+
* See [Global context](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.
|
|
129
|
+
*
|
|
130
|
+
* @category Context - Global Context
|
|
131
|
+
* @param context - Global context
|
|
132
|
+
*/
|
|
133
|
+
setGlobalContext: (context: Context) => void;
|
|
134
|
+
/**
|
|
135
|
+
* Get the global Context
|
|
136
|
+
*
|
|
137
|
+
* See [Global context](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.
|
|
138
|
+
*
|
|
139
|
+
* @category Context - Global Context
|
|
140
|
+
*/
|
|
141
|
+
getGlobalContext: () => Context;
|
|
142
|
+
/**
|
|
143
|
+
* Set or update a global context property, stored in `@context.<key>`
|
|
144
|
+
*
|
|
145
|
+
* See [Global context](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.
|
|
146
|
+
*
|
|
147
|
+
* @category Context - Global Context
|
|
148
|
+
* @param key - Key of the property
|
|
149
|
+
* @param value - Value of the property
|
|
150
|
+
*/
|
|
151
|
+
setGlobalContextProperty: (key: any, value: any) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Remove a global context property
|
|
154
|
+
*
|
|
155
|
+
* See [Global context](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.
|
|
156
|
+
*
|
|
157
|
+
* @category Context - Global Context
|
|
158
|
+
*/
|
|
159
|
+
removeGlobalContextProperty: (key: any) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Clear the global context
|
|
162
|
+
*
|
|
163
|
+
* See [Global context](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#global-context) for further information.
|
|
164
|
+
*
|
|
165
|
+
* @category Context - Global Context
|
|
166
|
+
*/
|
|
167
|
+
clearGlobalContext(): void;
|
|
168
|
+
/**
|
|
169
|
+
* Set user information to all events, stored in `@usr`
|
|
170
|
+
*
|
|
171
|
+
* See [User session](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.
|
|
172
|
+
*
|
|
173
|
+
* @category Context - User
|
|
174
|
+
* @param newUser - User information
|
|
175
|
+
*/
|
|
176
|
+
setUser(newUser: User & {
|
|
177
|
+
id: string;
|
|
178
|
+
}): void;
|
|
179
|
+
/**
|
|
180
|
+
* Set user information to all events, stored in `@usr`
|
|
181
|
+
*
|
|
182
|
+
* @category Context - User
|
|
183
|
+
* @deprecated You must specify a user id, favor using {@link setUser} instead
|
|
184
|
+
* @param newUser - User information with optional id
|
|
185
|
+
*/
|
|
186
|
+
setUser(newUser: User): void;
|
|
187
|
+
/**
|
|
188
|
+
* Get user information
|
|
189
|
+
*
|
|
190
|
+
* See [User session](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.
|
|
191
|
+
*
|
|
192
|
+
* @category Context - User
|
|
193
|
+
* @returns User information
|
|
194
|
+
*/
|
|
195
|
+
getUser: () => Context;
|
|
196
|
+
/**
|
|
197
|
+
* Set or update the user property, stored in `@usr.<key>`
|
|
198
|
+
*
|
|
199
|
+
* See [User session](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.
|
|
200
|
+
*
|
|
201
|
+
* @category Context - User
|
|
202
|
+
* @param key - Key of the property
|
|
203
|
+
* @param property - Value of the property
|
|
204
|
+
*/
|
|
205
|
+
setUserProperty: (key: any, property: any) => void;
|
|
206
|
+
/**
|
|
207
|
+
* Remove a user property
|
|
208
|
+
*
|
|
209
|
+
* @category Context - User
|
|
210
|
+
* @param key - Key of the property to remove
|
|
211
|
+
* @see [User session](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.
|
|
212
|
+
*/
|
|
213
|
+
removeUserProperty: (key: any) => void;
|
|
214
|
+
/**
|
|
215
|
+
* Clear all user information
|
|
216
|
+
*
|
|
217
|
+
* See [User session](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#user-session) for further information.
|
|
218
|
+
*
|
|
219
|
+
* @category Context - User
|
|
220
|
+
*/
|
|
221
|
+
clearUser: () => void;
|
|
222
|
+
/**
|
|
223
|
+
* Set account information to all events, stored in `@account`
|
|
224
|
+
*
|
|
225
|
+
* @category Context - Account
|
|
226
|
+
* @param newAccount - Account information
|
|
227
|
+
*/
|
|
228
|
+
setAccount: (newAccount: Account) => void;
|
|
229
|
+
/**
|
|
230
|
+
* Get account information
|
|
231
|
+
*
|
|
232
|
+
* @category Context - Account
|
|
233
|
+
* @returns Account information
|
|
234
|
+
*/
|
|
235
|
+
getAccount: () => Context;
|
|
236
|
+
/**
|
|
237
|
+
* Set or update the account property, stored in `@account.<key>`
|
|
238
|
+
*
|
|
239
|
+
* @category Context - Account
|
|
240
|
+
* @param key - Key of the property
|
|
241
|
+
* @param property - Value of the property
|
|
242
|
+
*/
|
|
243
|
+
setAccountProperty: (key: string, property: any) => void;
|
|
244
|
+
/**
|
|
245
|
+
* Remove an account property
|
|
246
|
+
*
|
|
247
|
+
* @category Context - Account
|
|
248
|
+
* @param key - Key of the property to remove
|
|
249
|
+
*/
|
|
250
|
+
removeAccountProperty: (key: string) => void;
|
|
251
|
+
/**
|
|
252
|
+
* Clear all account information
|
|
253
|
+
*
|
|
254
|
+
* @category Context - Account
|
|
255
|
+
* @returns Clear all account information
|
|
256
|
+
*/
|
|
257
|
+
clearAccount: () => void;
|
|
258
|
+
/**
|
|
259
|
+
* Start a view manually.
|
|
260
|
+
* Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing.
|
|
261
|
+
*
|
|
262
|
+
* See [Override default RUM view names](https://docs.kubesense.ai/real_user_monitoring/browser/advanced_configuration/#override-default-rum-view-names) for further information.
|
|
263
|
+
*
|
|
264
|
+
* Context - @category Data Collection
|
|
265
|
+
*
|
|
266
|
+
* @param nameOrOptions - Name or options (name, service, version) for the view
|
|
267
|
+
*/
|
|
268
|
+
startView(nameOrOptions?: string | ViewOptions): void;
|
|
269
|
+
/**
|
|
270
|
+
* Stop the session. A new session will start at the next user interaction with the page.
|
|
271
|
+
*
|
|
272
|
+
* @category Session
|
|
273
|
+
*/
|
|
274
|
+
stopSession(): void;
|
|
275
|
+
/**
|
|
276
|
+
* Add a feature flag evaluation,
|
|
277
|
+
* stored in `@feature_flags.<feature_flag_key>`
|
|
278
|
+
*
|
|
279
|
+
* We recommend enabling the intake request compression when using feature flags `compressIntakeRequests: true`.
|
|
280
|
+
*
|
|
281
|
+
* See [Feature Flag Tracking](https://docs.kubesense.ai/real_user_monitoring/feature_flag_tracking/) for further information.
|
|
282
|
+
*
|
|
283
|
+
* @category Data Collection
|
|
284
|
+
* @param key - The key of the feature flag.
|
|
285
|
+
* @param value - The value of the feature flag.
|
|
286
|
+
*/
|
|
287
|
+
addFeatureFlagEvaluation: (key: string, value: any) => void;
|
|
288
|
+
/**
|
|
289
|
+
* Get the Session Replay Link.
|
|
290
|
+
*
|
|
291
|
+
* See [Connect Session Replay To Your Third-Party Tools](https://docs.kubesense.ai/real_user_monitoring/guide/connect-session-replay-to-your-third-party-tools) for further information.
|
|
292
|
+
*
|
|
293
|
+
* @category Session Replay
|
|
294
|
+
*/
|
|
295
|
+
getSessionReplayLink: () => string | undefined;
|
|
296
|
+
/**
|
|
297
|
+
* Start Session Replay recording.
|
|
298
|
+
* Enable to conditionally start the recording, use the `startSessionReplayRecordingManually:true` init parameter and call `startSessionReplayRecording()`
|
|
299
|
+
*
|
|
300
|
+
* See [Browser Session Replay](https://docs.kubesense.ai/real_user_monitoring/session_replay/browser) for further information.
|
|
301
|
+
*
|
|
302
|
+
* @category Session Replay
|
|
303
|
+
*/
|
|
304
|
+
startSessionReplayRecording: (options?: StartRecordingOptions) => void;
|
|
305
|
+
/**
|
|
306
|
+
* Stop Session Replay recording.
|
|
307
|
+
*
|
|
308
|
+
* See [Browser Session Replay](https://docs.kubesense.ai/real_user_monitoring/session_replay/browser) for further information.
|
|
309
|
+
*
|
|
310
|
+
* @category Session Replay
|
|
311
|
+
*/
|
|
312
|
+
stopSessionReplayRecording: () => void;
|
|
313
|
+
/**
|
|
314
|
+
* Add a custom duration vital
|
|
315
|
+
*
|
|
316
|
+
* @category Vital - Duration
|
|
317
|
+
* @param name - Name of the custom vital
|
|
318
|
+
* @param options - Options for the custom vital (startTime, duration, context, description)
|
|
319
|
+
*/
|
|
320
|
+
addDurationVital: (name: string, options: AddDurationVitalOptions) => void;
|
|
321
|
+
/**
|
|
322
|
+
* Start a custom duration vital.
|
|
323
|
+
*
|
|
324
|
+
* If you plan to have multiple durations for the same vital, you should use the reference returned by this method.
|
|
325
|
+
*
|
|
326
|
+
* @category Vital - Duration
|
|
327
|
+
* @param name - Name of the custom vital
|
|
328
|
+
* @param options - Options for the custom vital (context, description)
|
|
329
|
+
* @returns reference to the custom vital
|
|
330
|
+
*/
|
|
331
|
+
startDurationVital: (name: string, options?: DurationVitalOptions) => DurationVitalReference;
|
|
332
|
+
/**
|
|
333
|
+
* Stop a custom duration vital
|
|
334
|
+
*
|
|
335
|
+
* @category Vital - Duration
|
|
336
|
+
* @param nameOrRef - Name or reference of the custom vital
|
|
337
|
+
* @param options - Options for the custom vital (operationKey, context, description)
|
|
338
|
+
*/
|
|
339
|
+
stopDurationVital: (nameOrRef: string | DurationVitalReference, options?: DurationVitalOptions) => void;
|
|
340
|
+
/**
|
|
341
|
+
* start a feature operation
|
|
342
|
+
*
|
|
343
|
+
* @category Vital - Feature Operation
|
|
344
|
+
* @param name - Name of the operation step
|
|
345
|
+
* @param options - Options for the operation step (operationKey, context, description)
|
|
346
|
+
* @hidden // TODO: replace by @since when GA
|
|
347
|
+
*/
|
|
348
|
+
startFeatureOperation: (name: string, options?: FeatureOperationOptions) => void;
|
|
349
|
+
/**
|
|
350
|
+
* succeed a feature operation
|
|
351
|
+
*
|
|
352
|
+
* @category Vital - Feature Operation
|
|
353
|
+
* @param name - Name of the operation step
|
|
354
|
+
* @param options - Options for the operation step (operationKey, context, description)
|
|
355
|
+
* @hidden // TODO: replace by @since when GA
|
|
356
|
+
*/
|
|
357
|
+
succeedFeatureOperation: (name: string, options?: FeatureOperationOptions) => void;
|
|
358
|
+
/**
|
|
359
|
+
* fail a feature operation
|
|
360
|
+
*
|
|
361
|
+
* @category Vital - Feature Operation
|
|
362
|
+
* @param name - Name of the operation step
|
|
363
|
+
* @param failureReason
|
|
364
|
+
* @param options - Options for the operation step (operationKey, context, description)
|
|
365
|
+
* @hidden // TODO: replace by @since when GA
|
|
366
|
+
*/
|
|
367
|
+
failFeatureOperation: (name: string, failureReaon: FailureReason, options?: FeatureOperationOptions) => void;
|
|
368
|
+
}
|
|
369
|
+
export interface RecorderApi {
|
|
370
|
+
start: (options?: StartRecordingOptions) => void;
|
|
371
|
+
stop: () => void;
|
|
372
|
+
onRumStart: (lifeCycle: LifeCycle, configuration: RumConfiguration, sessionManager: RumSessionManager, viewHistory: ViewHistory, deflateWorker: DeflateWorker | undefined, telemetry: Telemetry) => void;
|
|
373
|
+
isRecording: () => boolean;
|
|
374
|
+
getReplayStats: (viewId: string) => ReplayStats | undefined;
|
|
375
|
+
getSessionReplayLink: () => string | undefined;
|
|
376
|
+
}
|
|
377
|
+
export interface ProfilerApi {
|
|
378
|
+
stop: () => void;
|
|
379
|
+
onRumStart: (lifeCycle: LifeCycle, hooks: Hooks, configuration: RumConfiguration, sessionManager: RumSessionManager, viewHistory: ViewHistory, longTaskContexts: LongTaskContexts, createEncoder: (streamId: DeflateEncoderStreamId) => Encoder) => void;
|
|
380
|
+
}
|
|
381
|
+
export interface RumPublicApiOptions {
|
|
382
|
+
ignoreInitIfSyntheticsWillInjectRum?: boolean;
|
|
383
|
+
startDeflateWorker?: (configuration: RumConfiguration, source: string, onInitializationFailure: () => void) => DeflateWorker | undefined;
|
|
384
|
+
createDeflateEncoder?: (configuration: RumConfiguration, worker: DeflateWorker, streamId: DeflateEncoderStreamId) => DeflateEncoder;
|
|
385
|
+
sdkName?: SdkName;
|
|
386
|
+
}
|
|
387
|
+
export interface Strategy {
|
|
388
|
+
init: (initConfiguration: RumInitConfiguration, publicApi: RumPublicApi, errorStack?: string) => void;
|
|
389
|
+
initConfiguration: RumInitConfiguration | undefined;
|
|
390
|
+
getInternalContext: StartRumResult['getInternalContext'];
|
|
391
|
+
stopSession: StartRumResult['stopSession'];
|
|
392
|
+
addTiming: StartRumResult['addTiming'];
|
|
393
|
+
startView: StartRumResult['startView'];
|
|
394
|
+
setViewName: StartRumResult['setViewName'];
|
|
395
|
+
setViewContext: StartRumResult['setViewContext'];
|
|
396
|
+
setViewContextProperty: StartRumResult['setViewContextProperty'];
|
|
397
|
+
getViewContext: StartRumResult['getViewContext'];
|
|
398
|
+
globalContext: ContextManager;
|
|
399
|
+
userContext: ContextManager;
|
|
400
|
+
accountContext: ContextManager;
|
|
401
|
+
addAction: StartRumResult['addAction'];
|
|
402
|
+
addError: StartRumResult['addError'];
|
|
403
|
+
addFeatureFlagEvaluation: StartRumResult['addFeatureFlagEvaluation'];
|
|
404
|
+
startDurationVital: StartRumResult['startDurationVital'];
|
|
405
|
+
stopDurationVital: StartRumResult['stopDurationVital'];
|
|
406
|
+
addDurationVital: StartRumResult['addDurationVital'];
|
|
407
|
+
addOperationStepVital: StartRumResult['addOperationStepVital'];
|
|
408
|
+
}
|
|
409
|
+
export declare function makeRumPublicApi(startRumImpl: StartRum, recorderApi: RecorderApi, profilerApi: ProfilerApi, options?: RumPublicApiOptions): RumPublicApi;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeRumPublicApi = makeRumPublicApi;
|
|
4
|
+
const kubesense_browser_core_1 = require("@kubesense/kubesense-browser-core");
|
|
5
|
+
const rawRumEvent_types_1 = require("../rawRumEvent.types");
|
|
6
|
+
const vitalCollection_1 = require("../domain/vital/vitalCollection");
|
|
7
|
+
const plugins_1 = require("../domain/plugins");
|
|
8
|
+
const preStartRum_1 = require("./preStartRum");
|
|
9
|
+
function makeRumPublicApi(startRumImpl, recorderApi, profilerApi, options = {}) {
|
|
10
|
+
const trackingConsentState = (0, kubesense_browser_core_1.createTrackingConsentState)();
|
|
11
|
+
const customVitalsState = (0, vitalCollection_1.createCustomVitalsState)();
|
|
12
|
+
const bufferedDataObservable = (0, kubesense_browser_core_1.startBufferingData)().observable;
|
|
13
|
+
let strategy = (0, preStartRum_1.createPreStartStrategy)(options, trackingConsentState, customVitalsState, (configuration, deflateWorker, initialViewOptions) => {
|
|
14
|
+
const createEncoder = deflateWorker && options.createDeflateEncoder
|
|
15
|
+
? (streamId) => options.createDeflateEncoder(configuration, deflateWorker, streamId)
|
|
16
|
+
: kubesense_browser_core_1.createIdentityEncoder;
|
|
17
|
+
const startRumResult = startRumImpl(configuration, recorderApi, profilerApi, initialViewOptions, createEncoder, trackingConsentState, customVitalsState, bufferedDataObservable, options.sdkName);
|
|
18
|
+
recorderApi.onRumStart(startRumResult.lifeCycle, configuration, startRumResult.session, startRumResult.viewHistory, deflateWorker, startRumResult.telemetry);
|
|
19
|
+
profilerApi.onRumStart(startRumResult.lifeCycle, startRumResult.hooks, configuration, startRumResult.session, startRumResult.viewHistory, startRumResult.longTaskContexts, createEncoder);
|
|
20
|
+
strategy = createPostStartStrategy(strategy, startRumResult);
|
|
21
|
+
(0, plugins_1.callPluginsMethod)(configuration.plugins, 'onRumStart', {
|
|
22
|
+
strategy, // TODO: remove this in the next major release
|
|
23
|
+
addEvent: startRumResult.addEvent,
|
|
24
|
+
});
|
|
25
|
+
return startRumResult;
|
|
26
|
+
});
|
|
27
|
+
const getStrategy = () => strategy;
|
|
28
|
+
const startView = (0, kubesense_browser_core_1.monitor)((options) => {
|
|
29
|
+
const sanitizedOptions = typeof options === 'object' ? options : { name: options };
|
|
30
|
+
strategy.startView(sanitizedOptions);
|
|
31
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'start-view' });
|
|
32
|
+
});
|
|
33
|
+
const rumPublicApi = (0, kubesense_browser_core_1.makePublicApi)({
|
|
34
|
+
init: (initConfiguration) => {
|
|
35
|
+
const errorStack = new Error().stack;
|
|
36
|
+
(0, kubesense_browser_core_1.callMonitored)(() => strategy.init(initConfiguration, rumPublicApi, errorStack));
|
|
37
|
+
},
|
|
38
|
+
setTrackingConsent: (0, kubesense_browser_core_1.monitor)((trackingConsent) => {
|
|
39
|
+
trackingConsentState.update(trackingConsent);
|
|
40
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'set-tracking-consent', tracking_consent: trackingConsent });
|
|
41
|
+
}),
|
|
42
|
+
setViewName: (0, kubesense_browser_core_1.monitor)((name) => {
|
|
43
|
+
strategy.setViewName(name);
|
|
44
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'set-view-name' });
|
|
45
|
+
}),
|
|
46
|
+
setViewContext: (0, kubesense_browser_core_1.monitor)((context) => {
|
|
47
|
+
strategy.setViewContext(context);
|
|
48
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'set-view-context' });
|
|
49
|
+
}),
|
|
50
|
+
setViewContextProperty: (0, kubesense_browser_core_1.monitor)((key, value) => {
|
|
51
|
+
strategy.setViewContextProperty(key, value);
|
|
52
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'set-view-context-property' });
|
|
53
|
+
}),
|
|
54
|
+
getViewContext: (0, kubesense_browser_core_1.monitor)(() => {
|
|
55
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'set-view-context-property' });
|
|
56
|
+
return strategy.getViewContext();
|
|
57
|
+
}),
|
|
58
|
+
getInternalContext: (0, kubesense_browser_core_1.monitor)((startTime) => strategy.getInternalContext(startTime)),
|
|
59
|
+
getInitConfiguration: (0, kubesense_browser_core_1.monitor)(() => (0, kubesense_browser_core_1.deepClone)(strategy.initConfiguration)),
|
|
60
|
+
addAction: (name, context) => {
|
|
61
|
+
const handlingStack = (0, kubesense_browser_core_1.createHandlingStack)('action');
|
|
62
|
+
(0, kubesense_browser_core_1.callMonitored)(() => {
|
|
63
|
+
strategy.addAction({
|
|
64
|
+
name: (0, kubesense_browser_core_1.sanitize)(name),
|
|
65
|
+
context: (0, kubesense_browser_core_1.sanitize)(context),
|
|
66
|
+
startClocks: (0, kubesense_browser_core_1.clocksNow)(),
|
|
67
|
+
type: rawRumEvent_types_1.ActionType.CUSTOM,
|
|
68
|
+
handlingStack,
|
|
69
|
+
});
|
|
70
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'add-action' });
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
addError: (error, context) => {
|
|
74
|
+
const handlingStack = (0, kubesense_browser_core_1.createHandlingStack)('error');
|
|
75
|
+
(0, kubesense_browser_core_1.callMonitored)(() => {
|
|
76
|
+
strategy.addError({
|
|
77
|
+
error, // Do not sanitize error here, it is needed unserialized by computeRawError()
|
|
78
|
+
handlingStack,
|
|
79
|
+
context: (0, kubesense_browser_core_1.sanitize)(context),
|
|
80
|
+
startClocks: (0, kubesense_browser_core_1.clocksNow)(),
|
|
81
|
+
});
|
|
82
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'add-error' });
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
addTiming: (0, kubesense_browser_core_1.monitor)((name, time) => {
|
|
86
|
+
// TODO: next major decide to drop relative time support or update its behaviour
|
|
87
|
+
strategy.addTiming((0, kubesense_browser_core_1.sanitize)(name), time);
|
|
88
|
+
}),
|
|
89
|
+
setGlobalContext: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.globalContext, kubesense_browser_core_1.ContextManagerMethod.setContext, 'set-global-context'),
|
|
90
|
+
getGlobalContext: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.globalContext, kubesense_browser_core_1.ContextManagerMethod.getContext, 'get-global-context'),
|
|
91
|
+
setGlobalContextProperty: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.globalContext, kubesense_browser_core_1.ContextManagerMethod.setContextProperty, 'set-global-context-property'),
|
|
92
|
+
removeGlobalContextProperty: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.globalContext, kubesense_browser_core_1.ContextManagerMethod.removeContextProperty, 'remove-global-context-property'),
|
|
93
|
+
clearGlobalContext: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.globalContext, kubesense_browser_core_1.ContextManagerMethod.clearContext, 'clear-global-context'),
|
|
94
|
+
setUser: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.userContext, kubesense_browser_core_1.ContextManagerMethod.setContext, 'set-user'),
|
|
95
|
+
getUser: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.userContext, kubesense_browser_core_1.ContextManagerMethod.getContext, 'get-user'),
|
|
96
|
+
setUserProperty: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.userContext, kubesense_browser_core_1.ContextManagerMethod.setContextProperty, 'set-user-property'),
|
|
97
|
+
removeUserProperty: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.userContext, kubesense_browser_core_1.ContextManagerMethod.removeContextProperty, 'remove-user-property'),
|
|
98
|
+
clearUser: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.userContext, kubesense_browser_core_1.ContextManagerMethod.clearContext, 'clear-user'),
|
|
99
|
+
setAccount: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.accountContext, kubesense_browser_core_1.ContextManagerMethod.setContext, 'set-account'),
|
|
100
|
+
getAccount: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.accountContext, kubesense_browser_core_1.ContextManagerMethod.getContext, 'get-account'),
|
|
101
|
+
setAccountProperty: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.accountContext, kubesense_browser_core_1.ContextManagerMethod.setContextProperty, 'set-account-property'),
|
|
102
|
+
removeAccountProperty: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.accountContext, kubesense_browser_core_1.ContextManagerMethod.removeContextProperty, 'remove-account-property'),
|
|
103
|
+
clearAccount: (0, kubesense_browser_core_1.defineContextMethod)(getStrategy, kubesense_browser_core_1.CustomerContextKey.accountContext, kubesense_browser_core_1.ContextManagerMethod.clearContext, 'clear-account'),
|
|
104
|
+
startView,
|
|
105
|
+
stopSession: (0, kubesense_browser_core_1.monitor)(() => {
|
|
106
|
+
strategy.stopSession();
|
|
107
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'stop-session' });
|
|
108
|
+
}),
|
|
109
|
+
addFeatureFlagEvaluation: (0, kubesense_browser_core_1.monitor)((key, value) => {
|
|
110
|
+
strategy.addFeatureFlagEvaluation((0, kubesense_browser_core_1.sanitize)(key), (0, kubesense_browser_core_1.sanitize)(value));
|
|
111
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'add-feature-flag-evaluation' });
|
|
112
|
+
}),
|
|
113
|
+
getSessionReplayLink: (0, kubesense_browser_core_1.monitor)(() => recorderApi.getSessionReplayLink()),
|
|
114
|
+
startSessionReplayRecording: (0, kubesense_browser_core_1.monitor)((options) => {
|
|
115
|
+
recorderApi.start(options);
|
|
116
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'start-session-replay-recording', force: options && options.force });
|
|
117
|
+
}),
|
|
118
|
+
stopSessionReplayRecording: (0, kubesense_browser_core_1.monitor)(() => recorderApi.stop()),
|
|
119
|
+
addDurationVital: (0, kubesense_browser_core_1.monitor)((name, options) => {
|
|
120
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'add-duration-vital' });
|
|
121
|
+
strategy.addDurationVital({
|
|
122
|
+
name: (0, kubesense_browser_core_1.sanitize)(name),
|
|
123
|
+
type: rawRumEvent_types_1.VitalType.DURATION,
|
|
124
|
+
startClocks: (0, kubesense_browser_core_1.timeStampToClocks)(options.startTime),
|
|
125
|
+
duration: options.duration,
|
|
126
|
+
context: (0, kubesense_browser_core_1.sanitize)(options && options.context),
|
|
127
|
+
description: (0, kubesense_browser_core_1.sanitize)(options && options.description),
|
|
128
|
+
});
|
|
129
|
+
}),
|
|
130
|
+
startDurationVital: (0, kubesense_browser_core_1.monitor)((name, options) => {
|
|
131
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'start-duration-vital' });
|
|
132
|
+
return strategy.startDurationVital((0, kubesense_browser_core_1.sanitize)(name), {
|
|
133
|
+
context: (0, kubesense_browser_core_1.sanitize)(options && options.context),
|
|
134
|
+
description: (0, kubesense_browser_core_1.sanitize)(options && options.description),
|
|
135
|
+
});
|
|
136
|
+
}),
|
|
137
|
+
stopDurationVital: (0, kubesense_browser_core_1.monitor)((nameOrRef, options) => {
|
|
138
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'stop-duration-vital' });
|
|
139
|
+
strategy.stopDurationVital(typeof nameOrRef === 'string' ? (0, kubesense_browser_core_1.sanitize)(nameOrRef) : nameOrRef, {
|
|
140
|
+
context: (0, kubesense_browser_core_1.sanitize)(options && options.context),
|
|
141
|
+
description: (0, kubesense_browser_core_1.sanitize)(options && options.description),
|
|
142
|
+
});
|
|
143
|
+
}),
|
|
144
|
+
startFeatureOperation: (0, kubesense_browser_core_1.monitor)((name, options) => {
|
|
145
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'add-operation-step-vital', action_type: 'start' });
|
|
146
|
+
strategy.addOperationStepVital(name, 'start', options);
|
|
147
|
+
}),
|
|
148
|
+
succeedFeatureOperation: (0, kubesense_browser_core_1.monitor)((name, options) => {
|
|
149
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'add-operation-step-vital', action_type: 'succeed' });
|
|
150
|
+
strategy.addOperationStepVital(name, 'end', options);
|
|
151
|
+
}),
|
|
152
|
+
failFeatureOperation: (0, kubesense_browser_core_1.monitor)((name, failureReason, options) => {
|
|
153
|
+
(0, kubesense_browser_core_1.addTelemetryUsage)({ feature: 'add-operation-step-vital', action_type: 'fail' });
|
|
154
|
+
strategy.addOperationStepVital(name, 'end', options, failureReason);
|
|
155
|
+
}),
|
|
156
|
+
});
|
|
157
|
+
return rumPublicApi;
|
|
158
|
+
}
|
|
159
|
+
function createPostStartStrategy(preStartStrategy, startRumResult) {
|
|
160
|
+
return {
|
|
161
|
+
init: (initConfiguration) => {
|
|
162
|
+
(0, kubesense_browser_core_1.displayAlreadyInitializedError)('KUBESENSE_SDK', initConfiguration);
|
|
163
|
+
},
|
|
164
|
+
initConfiguration: preStartStrategy.initConfiguration,
|
|
165
|
+
...startRumResult,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=rumPublicApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rumPublicApi.js","sourceRoot":"","sources":["../../src/boot/rumPublicApi.ts"],"names":[],"mappings":";;AAwgBA,4CA2SC;AAlyBD,8EAiB0C;AAM1C,4DAA4D;AAU5D,qEAAyE;AACzE,+CAAqD;AAIrD,+CAAsD;AAidtD,SAAgB,gBAAgB,CAC9B,YAAsB,EACtB,WAAwB,EACxB,WAAwB,EACxB,UAA+B,EAAE;IAEjC,MAAM,oBAAoB,GA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