@openobserve/browser-core 0.2.11 → 0.2.12-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/package.json +6 -5
- package/src/boot/displayAlreadyInitializedError.ts +8 -0
- package/src/boot/init.ts +29 -15
- package/src/browser/addEventListener.ts +44 -35
- package/src/browser/{types.ts → browser.types.ts} +42 -0
- package/src/browser/cookie.ts +69 -15
- package/src/browser/fetchObservable.ts +97 -42
- package/src/browser/{pageExitObservable.ts → pageMayExitObservable.ts} +11 -24
- package/src/browser/runOnReadyState.ts +14 -4
- package/src/browser/xhrObservable.ts +45 -38
- package/src/domain/allowedTrackingOrigins.ts +30 -0
- package/src/domain/bufferedData.ts +32 -0
- package/src/domain/configuration/configuration.ts +366 -95
- package/src/domain/configuration/endpointBuilder.ts +48 -64
- package/src/domain/configuration/index.ts +6 -4
- package/src/domain/configuration/transportConfiguration.ts +42 -35
- package/src/domain/connectivity/connectivity.ts +31 -0
- package/src/domain/connectivity/index.ts +1 -0
- package/src/domain/console/consoleObservable.ts +59 -27
- package/src/domain/context/contextConstants.ts +27 -0
- package/src/domain/context/contextManager.ts +85 -0
- package/src/domain/context/contextUtils.ts +14 -0
- package/src/domain/context/defineContextMethod.ts +31 -0
- package/src/domain/context/storeContextManager.ts +55 -0
- package/src/domain/contexts/accountContext.ts +47 -0
- package/src/domain/contexts/globalContext.ts +30 -0
- package/src/domain/contexts/rumInternalContext.type.ts +15 -0
- package/src/domain/contexts/userContext.ts +64 -0
- package/src/domain/deflate/{types.ts → deflate.types.ts} +18 -2
- package/src/domain/deflate/index.ts +1 -1
- package/src/domain/error/error.ts +28 -84
- package/src/domain/error/error.types.ts +21 -4
- package/src/domain/error/trackRuntimeError.ts +37 -8
- package/src/domain/eventRateLimiter/createEventRateLimiter.ts +5 -2
- package/src/domain/extension/extensionUtils.ts +28 -0
- package/src/domain/intakeSites.ts +18 -0
- package/src/domain/report/browser.types.ts +12 -0
- package/src/domain/report/reportObservable.ts +37 -30
- package/src/domain/resourceUtils.ts +20 -16
- package/src/domain/session/README.md +193 -0
- package/src/domain/session/oldCookiesMigration.ts +7 -7
- package/src/domain/session/sessionConstants.ts +16 -1
- package/src/domain/session/sessionManager.ts +179 -15
- package/src/domain/session/sessionState.ts +49 -17
- package/src/domain/session/sessionStateValidation.ts +9 -0
- package/src/domain/session/sessionStore.ts +118 -55
- package/src/domain/session/sessionStoreOperations.ts +51 -32
- package/src/domain/session/storeStrategies/sessionInCookie.ts +113 -23
- package/src/domain/session/storeStrategies/sessionInLocalStorage.ts +11 -8
- package/src/domain/session/storeStrategies/sessionStoreStrategy.ts +6 -2
- package/src/domain/synthetics/syntheticsWorkerValues.ts +15 -4
- package/src/domain/tags.ts +76 -0
- package/src/domain/telemetry/index.ts +12 -4
- package/src/domain/telemetry/rawTelemetryEvent.types.ts +11 -3
- package/src/domain/telemetry/telemetry.ts +242 -98
- package/src/domain/telemetry/telemetryEvent.types.ts +530 -5
- package/src/domain/trackingConsent.ts +34 -0
- package/src/index.ts +92 -55
- package/src/tools/abstractHooks.ts +72 -0
- package/src/tools/abstractLifeCycle.ts +1 -0
- package/src/tools/boundedBuffer.ts +36 -8
- package/src/tools/display.ts +18 -13
- package/src/tools/encoder.ts +103 -0
- package/src/tools/experimentalFeatures.ts +18 -9
- package/src/tools/getZoneJsOriginalValue.ts +1 -1
- package/src/tools/{getGlobalObject.ts → globalObject.ts} +20 -0
- package/src/tools/instrumentMethod.ts +127 -66
- package/src/tools/matchOption.ts +1 -2
- package/src/tools/mergeInto.ts +16 -16
- package/src/tools/monitor.ts +14 -10
- package/src/tools/observable.ts +79 -15
- package/src/tools/queueMicrotask.ts +13 -0
- package/src/tools/readBytesFromStream.ts +24 -64
- package/src/tools/requestIdleCallback.ts +40 -0
- package/src/tools/sendToExtension.ts +3 -1
- package/src/tools/serialisation/context.ts +4 -1
- package/src/tools/serialisation/sanitize.ts +32 -14
- package/src/tools/stackTrace/computeStackTrace.ts +250 -0
- package/src/tools/stackTrace/handlingStack.ts +48 -0
- package/src/tools/taskQueue.ts +63 -0
- package/src/tools/timer.ts +1 -1
- package/src/tools/utils/arrayUtils.ts +11 -3
- package/src/tools/utils/browserDetection.ts +35 -3
- package/src/tools/utils/byteUtils.ts +13 -2
- package/src/tools/utils/functionUtils.ts +0 -2
- package/src/tools/utils/numberUtils.ts +2 -1
- package/src/tools/utils/objectUtils.ts +1 -3
- package/src/tools/utils/polyfills.ts +6 -110
- package/src/tools/utils/responseUtils.ts +1 -1
- package/src/tools/utils/stringUtils.ts +62 -4
- package/src/tools/utils/timeUtils.ts +18 -13
- package/src/tools/utils/timezone.ts +9 -0
- package/src/tools/utils/urlPolyfill.ts +29 -59
- package/src/tools/valueHistory.ts +66 -35
- package/src/transport/batch.ts +113 -61
- package/src/transport/eventBridge.ts +24 -5
- package/src/transport/flushController.ts +44 -23
- package/src/transport/httpRequest.ts +99 -71
- package/src/transport/index.ts +7 -4
- package/src/transport/sendWithRetryStrategy.ts +60 -41
- package/cjs/boot/init.d.ts +0 -5
- package/cjs/boot/init.js +0 -36
- package/cjs/boot/init.js.map +0 -1
- package/cjs/browser/addEventListener.d.ts +0 -76
- package/cjs/browser/addEventListener.js +0 -52
- package/cjs/browser/addEventListener.js.map +0 -1
- package/cjs/browser/cookie.d.ts +0 -10
- package/cjs/browser/cookie.js +0 -69
- package/cjs/browser/cookie.js.map +0 -1
- package/cjs/browser/fetchObservable.d.ts +0 -23
- package/cjs/browser/fetchObservable.js +0 -74
- package/cjs/browser/fetchObservable.js.map +0 -1
- package/cjs/browser/pageExitObservable.d.ts +0 -14
- package/cjs/browser/pageExitObservable.js +0 -58
- package/cjs/browser/pageExitObservable.js.map +0 -1
- package/cjs/browser/runOnReadyState.d.ts +0 -2
- package/cjs/browser/runOnReadyState.js +0 -15
- package/cjs/browser/runOnReadyState.js.map +0 -1
- package/cjs/browser/types.d.ts +0 -19
- package/cjs/browser/types.js +0 -6
- package/cjs/browser/types.js.map +0 -1
- package/cjs/browser/xhrObservable.d.ts +0 -22
- package/cjs/browser/xhrObservable.js +0 -93
- package/cjs/browser/xhrObservable.js.map +0 -1
- package/cjs/domain/configuration/configuration.d.ts +0 -67
- package/cjs/domain/configuration/configuration.js +0 -95
- package/cjs/domain/configuration/configuration.js.map +0 -1
- package/cjs/domain/configuration/endpointBuilder.d.ts +0 -14
- package/cjs/domain/configuration/endpointBuilder.js +0 -94
- package/cjs/domain/configuration/endpointBuilder.js.map +0 -1
- package/cjs/domain/configuration/index.d.ts +0 -3
- package/cjs/domain/configuration/index.js +0 -25
- package/cjs/domain/configuration/index.js.map +0 -1
- package/cjs/domain/configuration/intakeSites.d.ts +0 -5
- package/cjs/domain/configuration/intakeSites.js +0 -9
- package/cjs/domain/configuration/intakeSites.js.map +0 -1
- package/cjs/domain/configuration/tags.d.ts +0 -4
- package/cjs/domain/configuration/tags.js +0 -39
- package/cjs/domain/configuration/tags.js.map +0 -1
- package/cjs/domain/configuration/transportConfiguration.d.ts +0 -16
- package/cjs/domain/configuration/transportConfiguration.js +0 -42
- package/cjs/domain/configuration/transportConfiguration.js.map +0 -1
- package/cjs/domain/console/consoleObservable.d.ts +0 -11
- package/cjs/domain/console/consoleObservable.js +0 -75
- package/cjs/domain/console/consoleObservable.js.map +0 -1
- package/cjs/domain/deflate/index.d.ts +0 -1
- package/cjs/domain/deflate/index.js +0 -18
- package/cjs/domain/deflate/index.js.map +0 -1
- package/cjs/domain/deflate/types.d.ts +0 -26
- package/cjs/domain/deflate/types.js +0 -3
- package/cjs/domain/deflate/types.js.map +0 -1
- package/cjs/domain/error/error.d.ts +0 -28
- package/cjs/domain/error/error.js +0 -131
- package/cjs/domain/error/error.js.map +0 -1
- package/cjs/domain/error/error.types.d.ts +0 -40
- package/cjs/domain/error/error.types.js +0 -13
- package/cjs/domain/error/error.types.js.map +0 -1
- package/cjs/domain/error/trackRuntimeError.d.ts +0 -5
- package/cjs/domain/error/trackRuntimeError.js +0 -21
- package/cjs/domain/error/trackRuntimeError.js.map +0 -1
- package/cjs/domain/eventRateLimiter/createEventRateLimiter.d.ts +0 -5
- package/cjs/domain/eventRateLimiter/createEventRateLimiter.js +0 -40
- package/cjs/domain/eventRateLimiter/createEventRateLimiter.js.map +0 -1
- package/cjs/domain/report/browser.types.d.ts +0 -24
- package/cjs/domain/report/browser.types.js +0 -3
- package/cjs/domain/report/browser.types.js.map +0 -1
- package/cjs/domain/report/reportObservable.d.ts +0 -15
- package/cjs/domain/report/reportObservable.js +0 -94
- package/cjs/domain/report/reportObservable.js.map +0 -1
- package/cjs/domain/resourceUtils.d.ts +0 -16
- package/cjs/domain/resourceUtils.js +0 -3
- package/cjs/domain/resourceUtils.js.map +0 -1
- package/cjs/domain/session/oldCookiesMigration.d.ts +0 -11
- package/cjs/domain/session/oldCookiesMigration.js +0 -40
- package/cjs/domain/session/oldCookiesMigration.js.map +0 -1
- package/cjs/domain/session/sessionConstants.d.ts +0 -2
- package/cjs/domain/session/sessionConstants.js +0 -7
- package/cjs/domain/session/sessionConstants.js.map +0 -1
- package/cjs/domain/session/sessionManager.d.ts +0 -20
- package/cjs/domain/session/sessionManager.js +0 -65
- package/cjs/domain/session/sessionManager.js.map +0 -1
- package/cjs/domain/session/sessionState.d.ts +0 -11
- package/cjs/domain/session/sessionState.js +0 -45
- package/cjs/domain/session/sessionState.js.map +0 -1
- package/cjs/domain/session/sessionStore.d.ts +0 -34
- package/cjs/domain/session/sessionStore.js +0 -144
- package/cjs/domain/session/sessionStore.js.map +0 -1
- package/cjs/domain/session/sessionStoreOperations.d.ts +0 -15
- package/cjs/domain/session/sessionStoreOperations.js +0 -104
- package/cjs/domain/session/sessionStoreOperations.js.map +0 -1
- package/cjs/domain/session/storeStrategies/sessionInCookie.d.ts +0 -6
- package/cjs/domain/session/storeStrategies/sessionInCookie.js +0 -48
- package/cjs/domain/session/storeStrategies/sessionInCookie.js.map +0 -1
- package/cjs/domain/session/storeStrategies/sessionInLocalStorage.d.ts +0 -3
- package/cjs/domain/session/storeStrategies/sessionInLocalStorage.js +0 -40
- package/cjs/domain/session/storeStrategies/sessionInLocalStorage.js.map +0 -1
- package/cjs/domain/session/storeStrategies/sessionStoreStrategy.d.ts +0 -14
- package/cjs/domain/session/storeStrategies/sessionStoreStrategy.js +0 -5
- package/cjs/domain/session/storeStrategies/sessionStoreStrategy.js.map +0 -1
- package/cjs/domain/synthetics/syntheticsWorkerValues.d.ts +0 -11
- package/cjs/domain/synthetics/syntheticsWorkerValues.js +0 -22
- package/cjs/domain/synthetics/syntheticsWorkerValues.js.map +0 -1
- package/cjs/domain/telemetry/index.d.ts +0 -3
- package/cjs/domain/telemetry/index.js +0 -28
- package/cjs/domain/telemetry/index.js.map +0 -1
- package/cjs/domain/telemetry/rawTelemetryEvent.types.d.ts +0 -11
- package/cjs/domain/telemetry/rawTelemetryEvent.types.js +0 -8
- package/cjs/domain/telemetry/rawTelemetryEvent.types.js.map +0 -1
- package/cjs/domain/telemetry/telemetry.d.ts +0 -112
- package/cjs/domain/telemetry/telemetry.js +0 -146
- package/cjs/domain/telemetry/telemetry.js.map +0 -1
- package/cjs/domain/telemetry/telemetryEvent.types.d.ts +0 -375
- package/cjs/domain/telemetry/telemetryEvent.types.js +0 -7
- package/cjs/domain/telemetry/telemetryEvent.types.js.map +0 -1
- package/cjs/domain/tracekit/computeStackTrace.d.ts +0 -5
- package/cjs/domain/tracekit/computeStackTrace.js +0 -118
- package/cjs/domain/tracekit/computeStackTrace.js.map +0 -1
- package/cjs/domain/tracekit/index.d.ts +0 -3
- package/cjs/domain/tracekit/index.js +0 -8
- package/cjs/domain/tracekit/index.js.map +0 -1
- package/cjs/domain/tracekit/tracekit.d.ts +0 -35
- package/cjs/domain/tracekit/tracekit.js +0 -95
- package/cjs/domain/tracekit/tracekit.js.map +0 -1
- package/cjs/domain/tracekit/types.d.ts +0 -44
- package/cjs/domain/tracekit/types.js +0 -3
- package/cjs/domain/tracekit/types.js.map +0 -1
- package/cjs/domain/user/index.d.ts +0 -2
- package/cjs/domain/user/index.js +0 -19
- package/cjs/domain/user/index.js.map +0 -1
- package/cjs/domain/user/user.d.ts +0 -12
- package/cjs/domain/user/user.js +0 -35
- package/cjs/domain/user/user.js.map +0 -1
- package/cjs/domain/user/user.types.d.ts +0 -6
- package/cjs/domain/user/user.types.js +0 -3
- package/cjs/domain/user/user.types.js.map +0 -1
- package/cjs/index.d.ts +0 -63
- package/cjs/index.js +0 -155
- package/cjs/index.js.map +0 -1
- package/cjs/tools/abstractLifeCycle.d.ts +0 -23
- package/cjs/tools/abstractLifeCycle.js +0 -29
- package/cjs/tools/abstractLifeCycle.js.map +0 -1
- package/cjs/tools/boundedBuffer.d.ts +0 -5
- package/cjs/tools/boundedBuffer.js +0 -22
- package/cjs/tools/boundedBuffer.js.map +0 -1
- package/cjs/tools/catchUserErrors.d.ts +0 -1
- package/cjs/tools/catchUserErrors.js +0 -20
- package/cjs/tools/catchUserErrors.js.map +0 -1
- package/cjs/tools/display.d.ts +0 -35
- package/cjs/tools/display.js +0 -45
- package/cjs/tools/display.js.map +0 -1
- package/cjs/tools/experimentalFeatures.d.ts +0 -24
- package/cjs/tools/experimentalFeatures.js +0 -47
- package/cjs/tools/experimentalFeatures.js.map +0 -1
- package/cjs/tools/getGlobalObject.d.ts +0 -4
- package/cjs/tools/getGlobalObject.js +0 -37
- package/cjs/tools/getGlobalObject.js.map +0 -1
- package/cjs/tools/getZoneJsOriginalValue.d.ts +0 -19
- package/cjs/tools/getZoneJsOriginalValue.js +0 -30
- package/cjs/tools/getZoneJsOriginalValue.js.map +0 -1
- package/cjs/tools/instrumentMethod.d.ts +0 -19
- package/cjs/tools/instrumentMethod.js +0 -83
- package/cjs/tools/instrumentMethod.js.map +0 -1
- package/cjs/tools/matchOption.d.ts +0 -8
- package/cjs/tools/matchOption.js +0 -38
- package/cjs/tools/matchOption.js.map +0 -1
- package/cjs/tools/mergeInto.d.ts +0 -25
- package/cjs/tools/mergeInto.js +0 -105
- package/cjs/tools/mergeInto.js.map +0 -1
- package/cjs/tools/monitor.d.ts +0 -9
- package/cjs/tools/monitor.js +0 -76
- package/cjs/tools/monitor.js.map +0 -1
- package/cjs/tools/observable.d.ts +0 -12
- package/cjs/tools/observable.js +0 -44
- package/cjs/tools/observable.js.map +0 -1
- package/cjs/tools/readBytesFromStream.d.ts +0 -11
- package/cjs/tools/readBytesFromStream.js +0 -64
- package/cjs/tools/readBytesFromStream.js.map +0 -1
- package/cjs/tools/sendToExtension.d.ts +0 -3
- package/cjs/tools/sendToExtension.js +0 -11
- package/cjs/tools/sendToExtension.js.map +0 -1
- package/cjs/tools/serialisation/context.d.ts +0 -6
- package/cjs/tools/serialisation/context.js +0 -3
- package/cjs/tools/serialisation/context.js.map +0 -1
- package/cjs/tools/serialisation/contextManager.d.ts +0 -21
- package/cjs/tools/serialisation/contextManager.js +0 -70
- package/cjs/tools/serialisation/contextManager.js.map +0 -1
- package/cjs/tools/serialisation/heavyCustomerDataWarning.d.ts +0 -8
- package/cjs/tools/serialisation/heavyCustomerDataWarning.js +0 -18
- package/cjs/tools/serialisation/heavyCustomerDataWarning.js.map +0 -1
- package/cjs/tools/serialisation/jsonStringify.d.ts +0 -14
- package/cjs/tools/serialisation/jsonStringify.js +0 -49
- package/cjs/tools/serialisation/jsonStringify.js.map +0 -1
- package/cjs/tools/serialisation/sanitize.d.ts +0 -18
- package/cjs/tools/serialisation/sanitize.js +0 -185
- package/cjs/tools/serialisation/sanitize.js.map +0 -1
- package/cjs/tools/timer.d.ts +0 -5
- package/cjs/tools/timer.js +0 -23
- package/cjs/tools/timer.js.map +0 -1
- package/cjs/tools/utils/arrayUtils.d.ts +0 -1
- package/cjs/tools/utils/arrayUtils.js +0 -11
- package/cjs/tools/utils/arrayUtils.js.map +0 -1
- package/cjs/tools/utils/browserDetection.d.ts +0 -2
- package/cjs/tools/utils/browserDetection.js +0 -12
- package/cjs/tools/utils/browserDetection.js.map +0 -1
- package/cjs/tools/utils/byteUtils.d.ts +0 -4
- package/cjs/tools/utils/byteUtils.js +0 -31
- package/cjs/tools/utils/byteUtils.js.map +0 -1
- package/cjs/tools/utils/functionUtils.d.ts +0 -9
- package/cjs/tools/utils/functionUtils.js +0 -48
- package/cjs/tools/utils/functionUtils.js.map +0 -1
- package/cjs/tools/utils/numberUtils.d.ts +0 -8
- package/cjs/tools/utils/numberUtils.js +0 -24
- package/cjs/tools/utils/numberUtils.js.map +0 -1
- package/cjs/tools/utils/objectUtils.d.ts +0 -10
- package/cjs/tools/utils/objectUtils.js +0 -26
- package/cjs/tools/utils/objectUtils.js.map +0 -1
- package/cjs/tools/utils/polyfills.d.ts +0 -24
- package/cjs/tools/utils/polyfills.js +0 -110
- package/cjs/tools/utils/polyfills.js.map +0 -1
- package/cjs/tools/utils/responseUtils.d.ts +0 -2
- package/cjs/tools/utils/responseUtils.js +0 -18
- package/cjs/tools/utils/responseUtils.js.map +0 -1
- package/cjs/tools/utils/stringUtils.d.ts +0 -7
- package/cjs/tools/utils/stringUtils.js +0 -32
- package/cjs/tools/utils/stringUtils.js.map +0 -1
- package/cjs/tools/utils/timeUtils.d.ts +0 -57
- package/cjs/tools/utils/timeUtils.js +0 -99
- package/cjs/tools/utils/timeUtils.js.map +0 -1
- package/cjs/tools/utils/typeUtils.d.ts +0 -4
- package/cjs/tools/utils/typeUtils.js +0 -17
- package/cjs/tools/utils/typeUtils.js.map +0 -1
- package/cjs/tools/utils/urlPolyfill.d.ts +0 -14
- package/cjs/tools/utils/urlPolyfill.js +0 -92
- package/cjs/tools/utils/urlPolyfill.js.map +0 -1
- package/cjs/tools/valueHistory.d.ts +0 -50
- package/cjs/tools/valueHistory.js +0 -106
- package/cjs/tools/valueHistory.js.map +0 -1
- package/cjs/transport/batch.d.ts +0 -19
- package/cjs/transport/batch.js +0 -79
- package/cjs/transport/batch.js.map +0 -1
- package/cjs/transport/eventBridge.d.ts +0 -12
- package/cjs/transport/eventBridge.js +0 -34
- package/cjs/transport/eventBridge.js.map +0 -1
- package/cjs/transport/flushController.d.ts +0 -48
- package/cjs/transport/flushController.js +0 -97
- package/cjs/transport/flushController.js.map +0 -1
- package/cjs/transport/httpRequest.d.ts +0 -37
- package/cjs/transport/httpRequest.js +0 -91
- package/cjs/transport/httpRequest.js.map +0 -1
- package/cjs/transport/index.d.ts +0 -4
- package/cjs/transport/index.js +0 -13
- package/cjs/transport/index.js.map +0 -1
- package/cjs/transport/sendWithRetryStrategy.d.ts +0 -39
- package/cjs/transport/sendWithRetryStrategy.js +0 -151
- package/cjs/transport/sendWithRetryStrategy.js.map +0 -1
- package/cjs/transport/startBatchWithReplica.d.ts +0 -15
- package/cjs/transport/startBatchWithReplica.js +0 -37
- package/cjs/transport/startBatchWithReplica.js.map +0 -1
- package/esm/boot/init.d.ts +0 -5
- package/esm/boot/init.js +0 -31
- package/esm/boot/init.js.map +0 -1
- package/esm/browser/addEventListener.d.ts +0 -76
- package/esm/browser/addEventListener.js +0 -47
- package/esm/browser/addEventListener.js.map +0 -1
- package/esm/browser/cookie.d.ts +0 -10
- package/esm/browser/cookie.js +0 -61
- package/esm/browser/cookie.js.map +0 -1
- package/esm/browser/fetchObservable.d.ts +0 -23
- package/esm/browser/fetchObservable.js +0 -70
- package/esm/browser/fetchObservable.js.map +0 -1
- package/esm/browser/pageExitObservable.d.ts +0 -14
- package/esm/browser/pageExitObservable.js +0 -53
- package/esm/browser/pageExitObservable.js.map +0 -1
- package/esm/browser/runOnReadyState.d.ts +0 -2
- package/esm/browser/runOnReadyState.js +0 -11
- package/esm/browser/runOnReadyState.js.map +0 -1
- package/esm/browser/types.d.ts +0 -19
- package/esm/browser/types.js +0 -5
- package/esm/browser/types.js.map +0 -1
- package/esm/browser/xhrObservable.d.ts +0 -22
- package/esm/browser/xhrObservable.js +0 -89
- package/esm/browser/xhrObservable.js.map +0 -1
- package/esm/domain/configuration/configuration.d.ts +0 -67
- package/esm/domain/configuration/configuration.js +0 -90
- package/esm/domain/configuration/configuration.js.map +0 -1
- package/esm/domain/configuration/endpointBuilder.d.ts +0 -14
- package/esm/domain/configuration/endpointBuilder.js +0 -90
- package/esm/domain/configuration/endpointBuilder.js.map +0 -1
- package/esm/domain/configuration/index.d.ts +0 -3
- package/esm/domain/configuration/index.js +0 -4
- package/esm/domain/configuration/index.js.map +0 -1
- package/esm/domain/configuration/intakeSites.d.ts +0 -5
- package/esm/domain/configuration/intakeSites.js +0 -6
- package/esm/domain/configuration/intakeSites.js.map +0 -1
- package/esm/domain/configuration/tags.d.ts +0 -4
- package/esm/domain/configuration/tags.js +0 -34
- package/esm/domain/configuration/tags.js.map +0 -1
- package/esm/domain/configuration/transportConfiguration.d.ts +0 -16
- package/esm/domain/configuration/transportConfiguration.js +0 -38
- package/esm/domain/configuration/transportConfiguration.js.map +0 -1
- package/esm/domain/console/consoleObservable.d.ts +0 -11
- package/esm/domain/console/consoleObservable.js +0 -70
- package/esm/domain/console/consoleObservable.js.map +0 -1
- package/esm/domain/deflate/index.d.ts +0 -1
- package/esm/domain/deflate/index.js +0 -2
- package/esm/domain/deflate/index.js.map +0 -1
- package/esm/domain/deflate/types.d.ts +0 -26
- package/esm/domain/deflate/types.js +0 -2
- package/esm/domain/deflate/types.js.map +0 -1
- package/esm/domain/error/error.d.ts +0 -28
- package/esm/domain/error/error.js +0 -121
- package/esm/domain/error/error.js.map +0 -1
- package/esm/domain/error/error.types.d.ts +0 -40
- package/esm/domain/error/error.types.js +0 -10
- package/esm/domain/error/error.types.js.map +0 -1
- package/esm/domain/error/trackRuntimeError.d.ts +0 -5
- package/esm/domain/error/trackRuntimeError.js +0 -17
- package/esm/domain/error/trackRuntimeError.js.map +0 -1
- package/esm/domain/eventRateLimiter/createEventRateLimiter.d.ts +0 -5
- package/esm/domain/eventRateLimiter/createEventRateLimiter.js +0 -36
- package/esm/domain/eventRateLimiter/createEventRateLimiter.js.map +0 -1
- package/esm/domain/report/browser.types.d.ts +0 -24
- package/esm/domain/report/browser.types.js +0 -2
- package/esm/domain/report/browser.types.js.map +0 -1
- package/esm/domain/report/reportObservable.d.ts +0 -15
- package/esm/domain/report/reportObservable.js +0 -90
- package/esm/domain/report/reportObservable.js.map +0 -1
- package/esm/domain/resourceUtils.d.ts +0 -16
- package/esm/domain/resourceUtils.js +0 -2
- package/esm/domain/resourceUtils.js.map +0 -1
- package/esm/domain/session/oldCookiesMigration.d.ts +0 -11
- package/esm/domain/session/oldCookiesMigration.js +0 -36
- package/esm/domain/session/oldCookiesMigration.js.map +0 -1
- package/esm/domain/session/sessionConstants.d.ts +0 -2
- package/esm/domain/session/sessionConstants.js +0 -4
- package/esm/domain/session/sessionConstants.js.map +0 -1
- package/esm/domain/session/sessionManager.d.ts +0 -20
- package/esm/domain/session/sessionManager.js +0 -60
- package/esm/domain/session/sessionManager.js.map +0 -1
- package/esm/domain/session/sessionState.d.ts +0 -11
- package/esm/domain/session/sessionState.js +0 -38
- package/esm/domain/session/sessionState.js.map +0 -1
- package/esm/domain/session/sessionStore.d.ts +0 -34
- package/esm/domain/session/sessionStore.js +0 -139
- package/esm/domain/session/sessionStore.js.map +0 -1
- package/esm/domain/session/sessionStoreOperations.d.ts +0 -15
- package/esm/domain/session/sessionStoreOperations.js +0 -99
- package/esm/domain/session/sessionStoreOperations.js.map +0 -1
- package/esm/domain/session/storeStrategies/sessionInCookie.d.ts +0 -6
- package/esm/domain/session/storeStrategies/sessionInCookie.js +0 -42
- package/esm/domain/session/storeStrategies/sessionInCookie.js.map +0 -1
- package/esm/domain/session/storeStrategies/sessionInLocalStorage.d.ts +0 -3
- package/esm/domain/session/storeStrategies/sessionInLocalStorage.js +0 -35
- package/esm/domain/session/storeStrategies/sessionInLocalStorage.js.map +0 -1
- package/esm/domain/session/storeStrategies/sessionStoreStrategy.d.ts +0 -14
- package/esm/domain/session/storeStrategies/sessionStoreStrategy.js +0 -2
- package/esm/domain/session/storeStrategies/sessionStoreStrategy.js.map +0 -1
- package/esm/domain/synthetics/syntheticsWorkerValues.d.ts +0 -11
- package/esm/domain/synthetics/syntheticsWorkerValues.js +0 -16
- package/esm/domain/synthetics/syntheticsWorkerValues.js.map +0 -1
- package/esm/domain/telemetry/index.d.ts +0 -3
- package/esm/domain/telemetry/index.js +0 -4
- package/esm/domain/telemetry/index.js.map +0 -1
- package/esm/domain/telemetry/rawTelemetryEvent.types.d.ts +0 -11
- package/esm/domain/telemetry/rawTelemetryEvent.types.js +0 -5
- package/esm/domain/telemetry/rawTelemetryEvent.types.js.map +0 -1
- package/esm/domain/telemetry/telemetry.d.ts +0 -112
- package/esm/domain/telemetry/telemetry.js +0 -134
- package/esm/domain/telemetry/telemetry.js.map +0 -1
- package/esm/domain/telemetry/telemetryEvent.types.d.ts +0 -375
- package/esm/domain/telemetry/telemetryEvent.types.js +0 -6
- package/esm/domain/telemetry/telemetryEvent.types.js.map +0 -1
- package/esm/domain/tracekit/computeStackTrace.d.ts +0 -5
- package/esm/domain/tracekit/computeStackTrace.js +0 -114
- package/esm/domain/tracekit/computeStackTrace.js.map +0 -1
- package/esm/domain/tracekit/index.d.ts +0 -3
- package/esm/domain/tracekit/index.js +0 -3
- package/esm/domain/tracekit/index.js.map +0 -1
- package/esm/domain/tracekit/tracekit.d.ts +0 -35
- package/esm/domain/tracekit/tracekit.js +0 -91
- package/esm/domain/tracekit/tracekit.js.map +0 -1
- package/esm/domain/tracekit/types.d.ts +0 -44
- package/esm/domain/tracekit/types.js +0 -2
- package/esm/domain/tracekit/types.js.map +0 -1
- package/esm/domain/user/index.d.ts +0 -2
- package/esm/domain/user/index.js +0 -3
- package/esm/domain/user/index.js.map +0 -1
- package/esm/domain/user/user.d.ts +0 -12
- package/esm/domain/user/user.js +0 -30
- package/esm/domain/user/user.js.map +0 -1
- package/esm/domain/user/user.types.d.ts +0 -6
- package/esm/domain/user/user.types.js +0 -2
- package/esm/domain/user/user.types.js.map +0 -1
- package/esm/index.d.ts +0 -63
- package/esm/index.js +0 -61
- package/esm/index.js.map +0 -1
- package/esm/tools/abstractLifeCycle.d.ts +0 -23
- package/esm/tools/abstractLifeCycle.js +0 -26
- package/esm/tools/abstractLifeCycle.js.map +0 -1
- package/esm/tools/boundedBuffer.d.ts +0 -5
- package/esm/tools/boundedBuffer.js +0 -19
- package/esm/tools/boundedBuffer.js.map +0 -1
- package/esm/tools/catchUserErrors.d.ts +0 -1
- package/esm/tools/catchUserErrors.js +0 -16
- package/esm/tools/catchUserErrors.js.map +0 -1
- package/esm/tools/display.d.ts +0 -35
- package/esm/tools/display.js +0 -41
- package/esm/tools/display.js.map +0 -1
- package/esm/tools/experimentalFeatures.d.ts +0 -24
- package/esm/tools/experimentalFeatures.js +0 -40
- package/esm/tools/experimentalFeatures.js.map +0 -1
- package/esm/tools/getGlobalObject.d.ts +0 -4
- package/esm/tools/getGlobalObject.js +0 -33
- package/esm/tools/getGlobalObject.js.map +0 -1
- package/esm/tools/getZoneJsOriginalValue.d.ts +0 -19
- package/esm/tools/getZoneJsOriginalValue.js +0 -26
- package/esm/tools/getZoneJsOriginalValue.js.map +0 -1
- package/esm/tools/instrumentMethod.d.ts +0 -19
- package/esm/tools/instrumentMethod.js +0 -77
- package/esm/tools/instrumentMethod.js.map +0 -1
- package/esm/tools/matchOption.d.ts +0 -8
- package/esm/tools/matchOption.js +0 -33
- package/esm/tools/matchOption.js.map +0 -1
- package/esm/tools/mergeInto.d.ts +0 -25
- package/esm/tools/mergeInto.js +0 -99
- package/esm/tools/mergeInto.js.map +0 -1
- package/esm/tools/monitor.d.ts +0 -9
- package/esm/tools/monitor.js +0 -66
- package/esm/tools/monitor.js.map +0 -1
- package/esm/tools/observable.d.ts +0 -12
- package/esm/tools/observable.js +0 -40
- package/esm/tools/observable.js.map +0 -1
- package/esm/tools/readBytesFromStream.d.ts +0 -11
- package/esm/tools/readBytesFromStream.js +0 -60
- package/esm/tools/readBytesFromStream.js.map +0 -1
- package/esm/tools/sendToExtension.d.ts +0 -3
- package/esm/tools/sendToExtension.js +0 -7
- package/esm/tools/sendToExtension.js.map +0 -1
- package/esm/tools/serialisation/context.d.ts +0 -6
- package/esm/tools/serialisation/context.js +0 -2
- package/esm/tools/serialisation/context.js.map +0 -1
- package/esm/tools/serialisation/contextManager.d.ts +0 -21
- package/esm/tools/serialisation/contextManager.js +0 -66
- package/esm/tools/serialisation/contextManager.js.map +0 -1
- package/esm/tools/serialisation/heavyCustomerDataWarning.d.ts +0 -8
- package/esm/tools/serialisation/heavyCustomerDataWarning.js +0 -14
- package/esm/tools/serialisation/heavyCustomerDataWarning.js.map +0 -1
- package/esm/tools/serialisation/jsonStringify.d.ts +0 -14
- package/esm/tools/serialisation/jsonStringify.js +0 -44
- package/esm/tools/serialisation/jsonStringify.js.map +0 -1
- package/esm/tools/serialisation/sanitize.d.ts +0 -18
- package/esm/tools/serialisation/sanitize.js +0 -181
- package/esm/tools/serialisation/sanitize.js.map +0 -1
- package/esm/tools/timer.d.ts +0 -5
- package/esm/tools/timer.js +0 -16
- package/esm/tools/timer.js.map +0 -1
- package/esm/tools/utils/arrayUtils.d.ts +0 -1
- package/esm/tools/utils/arrayUtils.js +0 -7
- package/esm/tools/utils/arrayUtils.js.map +0 -1
- package/esm/tools/utils/browserDetection.d.ts +0 -2
- package/esm/tools/utils/browserDetection.js +0 -7
- package/esm/tools/utils/browserDetection.js.map +0 -1
- package/esm/tools/utils/byteUtils.d.ts +0 -4
- package/esm/tools/utils/byteUtils.js +0 -26
- package/esm/tools/utils/byteUtils.js.map +0 -1
- package/esm/tools/utils/functionUtils.d.ts +0 -9
- package/esm/tools/utils/functionUtils.js +0 -43
- package/esm/tools/utils/functionUtils.js.map +0 -1
- package/esm/tools/utils/numberUtils.d.ts +0 -8
- package/esm/tools/utils/numberUtils.js +0 -17
- package/esm/tools/utils/numberUtils.js.map +0 -1
- package/esm/tools/utils/objectUtils.d.ts +0 -10
- package/esm/tools/utils/objectUtils.js +0 -19
- package/esm/tools/utils/objectUtils.js.map +0 -1
- package/esm/tools/utils/polyfills.d.ts +0 -24
- package/esm/tools/utils/polyfills.js +0 -95
- package/esm/tools/utils/polyfills.js.map +0 -1
- package/esm/tools/utils/responseUtils.d.ts +0 -2
- package/esm/tools/utils/responseUtils.js +0 -13
- package/esm/tools/utils/responseUtils.js.map +0 -1
- package/esm/tools/utils/stringUtils.d.ts +0 -7
- package/esm/tools/utils/stringUtils.js +0 -26
- package/esm/tools/utils/stringUtils.js.map +0 -1
- package/esm/tools/utils/timeUtils.d.ts +0 -57
- package/esm/tools/utils/timeUtils.js +0 -82
- package/esm/tools/utils/timeUtils.js.map +0 -1
- package/esm/tools/utils/typeUtils.d.ts +0 -4
- package/esm/tools/utils/typeUtils.js +0 -13
- package/esm/tools/utils/typeUtils.js.map +0 -1
- package/esm/tools/utils/urlPolyfill.d.ts +0 -14
- package/esm/tools/utils/urlPolyfill.js +0 -80
- package/esm/tools/utils/urlPolyfill.js.map +0 -1
- package/esm/tools/valueHistory.d.ts +0 -50
- package/esm/tools/valueHistory.js +0 -103
- package/esm/tools/valueHistory.js.map +0 -1
- package/esm/transport/batch.d.ts +0 -19
- package/esm/transport/batch.js +0 -76
- package/esm/transport/batch.js.map +0 -1
- package/esm/transport/eventBridge.d.ts +0 -12
- package/esm/transport/eventBridge.js +0 -29
- package/esm/transport/eventBridge.js.map +0 -1
- package/esm/transport/flushController.d.ts +0 -48
- package/esm/transport/flushController.js +0 -93
- package/esm/transport/flushController.js.map +0 -1
- package/esm/transport/httpRequest.d.ts +0 -37
- package/esm/transport/httpRequest.js +0 -85
- package/esm/transport/httpRequest.js.map +0 -1
- package/esm/transport/index.d.ts +0 -4
- package/esm/transport/index.js +0 -5
- package/esm/transport/index.js.map +0 -1
- package/esm/transport/sendWithRetryStrategy.d.ts +0 -39
- package/esm/transport/sendWithRetryStrategy.js +0 -146
- package/esm/transport/sendWithRetryStrategy.js.map +0 -1
- package/esm/transport/startBatchWithReplica.d.ts +0 -15
- package/esm/transport/startBatchWithReplica.js +0 -33
- package/esm/transport/startBatchWithReplica.js.map +0 -1
- package/src/domain/configuration/intakeSites.ts +0 -5
- package/src/domain/configuration/tags.ts +0 -43
- package/src/domain/tracekit/computeStackTrace.ts +0 -141
- package/src/domain/tracekit/index.ts +0 -3
- package/src/domain/tracekit/tracekit.ts +0 -96
- package/src/domain/tracekit/types.ts +0 -47
- package/src/domain/user/index.ts +0 -2
- package/src/domain/user/user.ts +0 -33
- package/src/domain/user/user.types.ts +0 -6
- package/src/tools/serialisation/contextManager.ts +0 -79
- package/src/tools/serialisation/heavyCustomerDataWarning.ts +0 -26
- package/src/transport/startBatchWithReplica.ts +0 -52
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DO NOT MODIFY IT BY HAND. Run `yarn rum-events-format:sync` instead.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Schema of all properties of a telemetry event
|
|
6
|
-
*/
|
|
7
|
-
export type TelemetryEvent = TelemetryErrorEvent | TelemetryDebugEvent | TelemetryConfigurationEvent;
|
|
8
|
-
/**
|
|
9
|
-
* Schema of all properties of a telemetry error event
|
|
10
|
-
*/
|
|
11
|
-
export type TelemetryErrorEvent = CommonTelemetryProperties & {
|
|
12
|
-
/**
|
|
13
|
-
* The telemetry log information
|
|
14
|
-
*/
|
|
15
|
-
telemetry: {
|
|
16
|
-
/**
|
|
17
|
-
* Telemetry type
|
|
18
|
-
*/
|
|
19
|
-
type?: 'log';
|
|
20
|
-
/**
|
|
21
|
-
* Level/severity of the log
|
|
22
|
-
*/
|
|
23
|
-
status: 'error';
|
|
24
|
-
/**
|
|
25
|
-
* Body of the log
|
|
26
|
-
*/
|
|
27
|
-
message: string;
|
|
28
|
-
/**
|
|
29
|
-
* Error properties
|
|
30
|
-
*/
|
|
31
|
-
error?: {
|
|
32
|
-
/**
|
|
33
|
-
* The stack trace or the complementary information about the error
|
|
34
|
-
*/
|
|
35
|
-
stack?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The error type or kind (or code in some cases)
|
|
38
|
-
*/
|
|
39
|
-
kind?: string;
|
|
40
|
-
[k: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
[k: string]: unknown;
|
|
43
|
-
};
|
|
44
|
-
[k: string]: unknown;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Schema of all properties of a telemetry debug event
|
|
48
|
-
*/
|
|
49
|
-
export type TelemetryDebugEvent = CommonTelemetryProperties & {
|
|
50
|
-
/**
|
|
51
|
-
* The telemetry log information
|
|
52
|
-
*/
|
|
53
|
-
telemetry: {
|
|
54
|
-
/**
|
|
55
|
-
* Telemetry type
|
|
56
|
-
*/
|
|
57
|
-
type?: 'log';
|
|
58
|
-
/**
|
|
59
|
-
* Level/severity of the log
|
|
60
|
-
*/
|
|
61
|
-
status: 'debug';
|
|
62
|
-
/**
|
|
63
|
-
* Body of the log
|
|
64
|
-
*/
|
|
65
|
-
message: string;
|
|
66
|
-
[k: string]: unknown;
|
|
67
|
-
};
|
|
68
|
-
[k: string]: unknown;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Schema of all properties of a telemetry configuration event
|
|
72
|
-
*/
|
|
73
|
-
export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
|
|
74
|
-
/**
|
|
75
|
-
* The telemetry configuration information
|
|
76
|
-
*/
|
|
77
|
-
telemetry: {
|
|
78
|
-
/**
|
|
79
|
-
* Telemetry type
|
|
80
|
-
*/
|
|
81
|
-
type: 'configuration';
|
|
82
|
-
/**
|
|
83
|
-
* Configuration properties
|
|
84
|
-
*/
|
|
85
|
-
configuration: {
|
|
86
|
-
/**
|
|
87
|
-
* The percentage of sessions tracked
|
|
88
|
-
*/
|
|
89
|
-
session_sample_rate?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The percentage of telemetry events sent
|
|
92
|
-
*/
|
|
93
|
-
telemetry_sample_rate?: number;
|
|
94
|
-
/**
|
|
95
|
-
* The percentage of telemetry configuration events sent after being sampled by telemetry_sample_rate
|
|
96
|
-
*/
|
|
97
|
-
telemetry_configuration_sample_rate?: number;
|
|
98
|
-
/**
|
|
99
|
-
* The percentage of requests traced
|
|
100
|
-
*/
|
|
101
|
-
trace_sample_rate?: number;
|
|
102
|
-
/**
|
|
103
|
-
* The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
|
|
104
|
-
*/
|
|
105
|
-
premium_sample_rate?: number;
|
|
106
|
-
/**
|
|
107
|
-
* The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
|
|
108
|
-
*/
|
|
109
|
-
replay_sample_rate?: number;
|
|
110
|
-
/**
|
|
111
|
-
* The percentage of sessions with RUM & Session Replay pricing tracked
|
|
112
|
-
*/
|
|
113
|
-
session_replay_sample_rate?: number;
|
|
114
|
-
/**
|
|
115
|
-
* Whether the session replay start is handled manually
|
|
116
|
-
*/
|
|
117
|
-
start_session_replay_recording_manually?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Whether a proxy is used
|
|
120
|
-
*/
|
|
121
|
-
use_proxy?: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Whether beforeSend callback function is used
|
|
124
|
-
*/
|
|
125
|
-
use_before_send?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Whether initialization fails silently if the SDK is already initialized
|
|
128
|
-
*/
|
|
129
|
-
silent_multiple_init?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Whether sessions across subdomains for the same site are tracked
|
|
132
|
-
*/
|
|
133
|
-
track_session_across_subdomains?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Whether resources are tracked
|
|
136
|
-
*/
|
|
137
|
-
track_resources?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Whether long tasks are tracked
|
|
140
|
-
*/
|
|
141
|
-
track_long_task?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Whether a secure cross-site session cookie is used
|
|
144
|
-
*/
|
|
145
|
-
use_cross_site_session_cookie?: boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Whether a secure session cookie is used
|
|
148
|
-
*/
|
|
149
|
-
use_secure_session_cookie?: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Whether it is allowed to use LocalStorage when cookies are not available
|
|
152
|
-
*/
|
|
153
|
-
allow_fallback_to_local_storage?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Whether untrusted events are allowed
|
|
156
|
-
*/
|
|
157
|
-
allow_untrusted_events?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Attribute to be used to name actions
|
|
160
|
-
*/
|
|
161
|
-
action_name_attribute?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Whether the allowed tracing origins list is used (deprecated in favor of use_allowed_tracing_urls)
|
|
164
|
-
*/
|
|
165
|
-
use_allowed_tracing_origins?: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Whether the allowed tracing urls list is used
|
|
168
|
-
*/
|
|
169
|
-
use_allowed_tracing_urls?: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* A list of selected tracing propagators
|
|
172
|
-
*/
|
|
173
|
-
selected_tracing_propagators?: ('tracecontext' | 'b3' | 'b3multi')[];
|
|
174
|
-
/**
|
|
175
|
-
* Session replay default privacy level
|
|
176
|
-
*/
|
|
177
|
-
default_privacy_level?: string;
|
|
178
|
-
/**
|
|
179
|
-
* Whether the request origins list to ignore when computing the page activity is used
|
|
180
|
-
*/
|
|
181
|
-
use_excluded_activity_urls?: boolean;
|
|
182
|
-
/**
|
|
183
|
-
* Whether the Worker is loaded from an external URL
|
|
184
|
-
*/
|
|
185
|
-
use_worker_url?: boolean;
|
|
186
|
-
/**
|
|
187
|
-
* Whether user frustrations are tracked
|
|
188
|
-
*/
|
|
189
|
-
track_frustrations?: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Whether the RUM views creation is handled manually
|
|
192
|
-
*/
|
|
193
|
-
track_views_manually?: boolean;
|
|
194
|
-
/**
|
|
195
|
-
* Whether user actions are tracked (deprecated in favor of track_user_interactions)
|
|
196
|
-
*/
|
|
197
|
-
track_interactions?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* Whether user actions are tracked
|
|
200
|
-
*/
|
|
201
|
-
track_user_interactions?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* Whether console.error logs, uncaught exceptions and network errors are tracked
|
|
204
|
-
*/
|
|
205
|
-
forward_errors_to_logs?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* The console.* tracked
|
|
208
|
-
*/
|
|
209
|
-
forward_console_logs?: string[] | 'all';
|
|
210
|
-
/**
|
|
211
|
-
* The reports from the Reporting API tracked
|
|
212
|
-
*/
|
|
213
|
-
forward_reports?: string[] | 'all';
|
|
214
|
-
/**
|
|
215
|
-
* Whether local encryption is used
|
|
216
|
-
*/
|
|
217
|
-
use_local_encryption?: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* View tracking strategy
|
|
220
|
-
*/
|
|
221
|
-
view_tracking_strategy?: 'ActivityViewTrackingStrategy' | 'FragmentViewTrackingStrategy' | 'MixedViewTrackingStrategy' | 'NavigationViewTrackingStrategy';
|
|
222
|
-
/**
|
|
223
|
-
* Whether RUM events are tracked when the application is in Background
|
|
224
|
-
*/
|
|
225
|
-
track_background_events?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* The period between each Mobile Vital sample (in milliseconds)
|
|
228
|
-
*/
|
|
229
|
-
mobile_vitals_update_period?: number;
|
|
230
|
-
/**
|
|
231
|
-
* Whether error monitoring & crash reporting is enabled for the source platform
|
|
232
|
-
*/
|
|
233
|
-
track_errors?: boolean;
|
|
234
|
-
/**
|
|
235
|
-
* Whether automatic collection of network requests is enabled
|
|
236
|
-
*/
|
|
237
|
-
track_network_requests?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Whether tracing features are enabled
|
|
240
|
-
*/
|
|
241
|
-
use_tracing?: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* Whether native views are tracked (for cross platform SDKs)
|
|
244
|
-
*/
|
|
245
|
-
track_native_views?: boolean;
|
|
246
|
-
/**
|
|
247
|
-
* Whether native error monitoring & crash reporting is enabled (for cross platform SDKs)
|
|
248
|
-
*/
|
|
249
|
-
track_native_errors?: boolean;
|
|
250
|
-
/**
|
|
251
|
-
* Whether long task tracking is performed automatically
|
|
252
|
-
*/
|
|
253
|
-
track_native_long_tasks?: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* Whether long task tracking is performed automatically for cross platform SDKs
|
|
256
|
-
*/
|
|
257
|
-
track_cross_platform_long_tasks?: boolean;
|
|
258
|
-
/**
|
|
259
|
-
* Whether the client has provided a list of first party hosts
|
|
260
|
-
*/
|
|
261
|
-
use_first_party_hosts?: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* The type of initialization the SDK used, in case multiple are supported
|
|
264
|
-
*/
|
|
265
|
-
initialization_type?: string;
|
|
266
|
-
/**
|
|
267
|
-
* Whether Flutter build and raster time tracking is enabled
|
|
268
|
-
*/
|
|
269
|
-
track_flutter_performance?: boolean;
|
|
270
|
-
/**
|
|
271
|
-
* The window duration for batches sent by the SDK (in milliseconds)
|
|
272
|
-
*/
|
|
273
|
-
batch_size?: number;
|
|
274
|
-
/**
|
|
275
|
-
* The upload frequency of batches (in milliseconds)
|
|
276
|
-
*/
|
|
277
|
-
batch_upload_frequency?: number;
|
|
278
|
-
/**
|
|
279
|
-
* The version of React used in a ReactNative application
|
|
280
|
-
*/
|
|
281
|
-
react_version?: string;
|
|
282
|
-
/**
|
|
283
|
-
* The version of ReactNative used in a ReactNative application
|
|
284
|
-
*/
|
|
285
|
-
react_native_version?: string;
|
|
286
|
-
/**
|
|
287
|
-
* The version of Dart used in a Flutter application
|
|
288
|
-
*/
|
|
289
|
-
dart_version?: string;
|
|
290
|
-
[k: string]: unknown;
|
|
291
|
-
};
|
|
292
|
-
[k: string]: unknown;
|
|
293
|
-
};
|
|
294
|
-
[k: string]: unknown;
|
|
295
|
-
};
|
|
296
|
-
/**
|
|
297
|
-
* Schema of common properties of Telemetry events
|
|
298
|
-
*/
|
|
299
|
-
export interface CommonTelemetryProperties {
|
|
300
|
-
/**
|
|
301
|
-
* Internal properties
|
|
302
|
-
*/
|
|
303
|
-
_oo: {
|
|
304
|
-
/**
|
|
305
|
-
* Version of the RUM event format
|
|
306
|
-
*/
|
|
307
|
-
readonly format_version: 2;
|
|
308
|
-
[k: string]: unknown;
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* Telemetry event type. Should specify telemetry only.
|
|
312
|
-
*/
|
|
313
|
-
readonly type: 'telemetry';
|
|
314
|
-
/**
|
|
315
|
-
* Start of the event in ms from epoch
|
|
316
|
-
*/
|
|
317
|
-
date: number;
|
|
318
|
-
/**
|
|
319
|
-
* The SDK generating the telemetry event
|
|
320
|
-
*/
|
|
321
|
-
service: string;
|
|
322
|
-
/**
|
|
323
|
-
* The source of this event
|
|
324
|
-
*/
|
|
325
|
-
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native';
|
|
326
|
-
/**
|
|
327
|
-
* The version of the SDK generating the telemetry event
|
|
328
|
-
*/
|
|
329
|
-
version: string;
|
|
330
|
-
/**
|
|
331
|
-
* Application properties
|
|
332
|
-
*/
|
|
333
|
-
readonly application?: {
|
|
334
|
-
/**
|
|
335
|
-
* UUID of the application
|
|
336
|
-
*/
|
|
337
|
-
id: string;
|
|
338
|
-
[k: string]: unknown;
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
* Session properties
|
|
342
|
-
*/
|
|
343
|
-
session?: {
|
|
344
|
-
/**
|
|
345
|
-
* UUID of the session
|
|
346
|
-
*/
|
|
347
|
-
id: string;
|
|
348
|
-
[k: string]: unknown;
|
|
349
|
-
};
|
|
350
|
-
/**
|
|
351
|
-
* View properties
|
|
352
|
-
*/
|
|
353
|
-
view?: {
|
|
354
|
-
/**
|
|
355
|
-
* UUID of the view
|
|
356
|
-
*/
|
|
357
|
-
id: string;
|
|
358
|
-
[k: string]: unknown;
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* Action properties
|
|
362
|
-
*/
|
|
363
|
-
action?: {
|
|
364
|
-
/**
|
|
365
|
-
* UUID of the action
|
|
366
|
-
*/
|
|
367
|
-
id: string;
|
|
368
|
-
[k: string]: unknown;
|
|
369
|
-
};
|
|
370
|
-
/**
|
|
371
|
-
* Enabled experimental features
|
|
372
|
-
*/
|
|
373
|
-
readonly experimental_features?: string[];
|
|
374
|
-
[k: string]: unknown;
|
|
375
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryEvent.types.js","sourceRoot":"","sources":["../../../src/domain/telemetry/telemetryEvent.types.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;GAEG"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.computeStackTrace = void 0;
|
|
4
|
-
var polyfills_1 = require("../../tools/utils/polyfills");
|
|
5
|
-
var UNKNOWN_FUNCTION = '?';
|
|
6
|
-
/**
|
|
7
|
-
* Computes a stack trace for an exception.
|
|
8
|
-
*/
|
|
9
|
-
function computeStackTrace(ex) {
|
|
10
|
-
var stack = [];
|
|
11
|
-
var stackProperty = tryToGetString(ex, 'stack');
|
|
12
|
-
var exString = String(ex);
|
|
13
|
-
if (stackProperty && (0, polyfills_1.startsWith)(stackProperty, exString)) {
|
|
14
|
-
stackProperty = stackProperty.slice(exString.length);
|
|
15
|
-
}
|
|
16
|
-
if (stackProperty) {
|
|
17
|
-
stackProperty.split('\n').forEach(function (line) {
|
|
18
|
-
var stackFrame = parseChromeLine(line) || parseChromeAnonymousLine(line) || parseWinLine(line) || parseGeckoLine(line);
|
|
19
|
-
if (stackFrame) {
|
|
20
|
-
if (!stackFrame.func && stackFrame.line) {
|
|
21
|
-
stackFrame.func = UNKNOWN_FUNCTION;
|
|
22
|
-
}
|
|
23
|
-
stack.push(stackFrame);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
message: tryToGetString(ex, 'message'),
|
|
29
|
-
name: tryToGetString(ex, 'name'),
|
|
30
|
-
stack: stack,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
exports.computeStackTrace = computeStackTrace;
|
|
34
|
-
var fileUrl = '((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)';
|
|
35
|
-
var filePosition = '(?::(\\d+))';
|
|
36
|
-
var CHROME_LINE_RE = new RegExp("^\\s*at (.*?) ?\\(".concat(fileUrl).concat(filePosition, "?").concat(filePosition, "?\\)?\\s*$"), 'i');
|
|
37
|
-
var CHROME_EVAL_RE = new RegExp("\\((\\S*)".concat(filePosition).concat(filePosition, "\\)"));
|
|
38
|
-
function parseChromeLine(line) {
|
|
39
|
-
var parts = CHROME_LINE_RE.exec(line);
|
|
40
|
-
if (!parts) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
var isNative = parts[2] && parts[2].indexOf('native') === 0; // start of line
|
|
44
|
-
var isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line
|
|
45
|
-
var submatch = CHROME_EVAL_RE.exec(parts[2]);
|
|
46
|
-
if (isEval && submatch) {
|
|
47
|
-
// throw out eval line/column and use top-most line/column number
|
|
48
|
-
parts[2] = submatch[1]; // url
|
|
49
|
-
parts[3] = submatch[2]; // line
|
|
50
|
-
parts[4] = submatch[3]; // column
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
args: isNative ? [parts[2]] : [],
|
|
54
|
-
column: parts[4] ? +parts[4] : undefined,
|
|
55
|
-
func: parts[1] || UNKNOWN_FUNCTION,
|
|
56
|
-
line: parts[3] ? +parts[3] : undefined,
|
|
57
|
-
url: !isNative ? parts[2] : undefined,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
var CHROME_ANONYMOUS_FUNCTION_RE = new RegExp("^\\s*at ?".concat(fileUrl).concat(filePosition, "?").concat(filePosition, "??\\s*$"), 'i');
|
|
61
|
-
function parseChromeAnonymousLine(line) {
|
|
62
|
-
var parts = CHROME_ANONYMOUS_FUNCTION_RE.exec(line);
|
|
63
|
-
if (!parts) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
args: [],
|
|
68
|
-
column: parts[3] ? +parts[3] : undefined,
|
|
69
|
-
func: UNKNOWN_FUNCTION,
|
|
70
|
-
line: parts[2] ? +parts[2] : undefined,
|
|
71
|
-
url: parts[1],
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
var WINJS_LINE_RE = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
75
|
-
function parseWinLine(line) {
|
|
76
|
-
var parts = WINJS_LINE_RE.exec(line);
|
|
77
|
-
if (!parts) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
args: [],
|
|
82
|
-
column: parts[4] ? +parts[4] : undefined,
|
|
83
|
-
func: parts[1] || UNKNOWN_FUNCTION,
|
|
84
|
-
line: +parts[3],
|
|
85
|
-
url: parts[2],
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
var GECKO_LINE_RE = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
89
|
-
var GECKO_EVAL_RE = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
90
|
-
function parseGeckoLine(line) {
|
|
91
|
-
var parts = GECKO_LINE_RE.exec(line);
|
|
92
|
-
if (!parts) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
var isEval = parts[3] && parts[3].indexOf(' > eval') > -1;
|
|
96
|
-
var submatch = GECKO_EVAL_RE.exec(parts[3]);
|
|
97
|
-
if (isEval && submatch) {
|
|
98
|
-
// throw out eval line/column and use top-most line number
|
|
99
|
-
parts[3] = submatch[1];
|
|
100
|
-
parts[4] = submatch[2];
|
|
101
|
-
parts[5] = undefined; // no column when eval
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
args: parts[2] ? parts[2].split(',') : [],
|
|
105
|
-
column: parts[5] ? +parts[5] : undefined,
|
|
106
|
-
func: parts[1] || UNKNOWN_FUNCTION,
|
|
107
|
-
line: parts[4] ? +parts[4] : undefined,
|
|
108
|
-
url: parts[3],
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function tryToGetString(candidate, property) {
|
|
112
|
-
if (typeof candidate !== 'object' || !candidate || !(property in candidate)) {
|
|
113
|
-
return undefined;
|
|
114
|
-
}
|
|
115
|
-
var value = candidate[property];
|
|
116
|
-
return typeof value === 'string' ? value : undefined;
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=computeStackTrace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"computeStackTrace.js","sourceRoot":"","sources":["../../../src/domain/tracekit/computeStackTrace.ts"],"names":[],"mappings":";;;AAAA,yDAAwD;AAGxD,IAAM,gBAAgB,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,SAAgB,iBAAiB,CAAC,EAAW;IAC3C,IAAM,KAAK,GAAiB,EAAE,CAAA;IAE9B,IAAI,aAAa,GAAG,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAC/C,IAAM,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;IAC3B,IAAI,aAAa,IAAI,IAAA,sBAAU,EAAC,aAAa,EAAE,QAAQ,CAAC,EAAE;QACxD,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;KACrD;IACD,IAAI,aAAa,EAAE;QACjB,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,IAAI;YACrC,IAAM,UAAU,GACd,eAAe,CAAC,IAAI,CAAC,IAAI,wBAAwB,CAAC,IAAI,CAAC,IAAI,YAAY,CAA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C,CAAC,CAAC,CAAA;QACtB,KAAK,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;QACtB,KAAK,CAAC,CAAC,CAAC,GAAG,SAAU,CAAA,CAAC,sBAAsB;KAC7C;IAED,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE;QACzC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;QACxC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,gBAAgB;QAClC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;QACtC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;KACd,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,SAAkB,EAAE,QAAgB;IAC1D,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,QAAQ,IAAI,SAAS,CAAC,EAAE;QAC3E,OAAO,SAAS,CAAA;KACjB;IACD,IAAM,KAAK,GAAI,SAAsC,CAAC,QAAQ,CAAC,CAAA;IAC/D,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAA;AACtD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startUnhandledErrorCollection = exports.computeStackTrace = void 0;
|
|
4
|
-
var computeStackTrace_1 = require("./computeStackTrace");
|
|
5
|
-
Object.defineProperty(exports, "computeStackTrace", { enumerable: true, get: function () { return computeStackTrace_1.computeStackTrace; } });
|
|
6
|
-
var tracekit_1 = require("./tracekit");
|
|
7
|
-
Object.defineProperty(exports, "startUnhandledErrorCollection", { enumerable: true, get: function () { return tracekit_1.startUnhandledErrorCollection; } });
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/tracekit/index.ts"],"names":[],"mappings":";;;AACA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,uCAA0D;AAAjD,yHAAA,6BAA6B,OAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { UnhandledErrorCallback } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Cross-browser collection of unhandled errors
|
|
4
|
-
*
|
|
5
|
-
* Supports:
|
|
6
|
-
* - Firefox: full stack trace with line numbers, plus column number
|
|
7
|
-
* on top frame; column number is not guaranteed
|
|
8
|
-
* - Opera: full stack trace with line and column numbers
|
|
9
|
-
* - Chrome: full stack trace with line and column numbers
|
|
10
|
-
* - Safari: line and column number for the top frame only; some frames
|
|
11
|
-
* may be missing, and column number is not guaranteed
|
|
12
|
-
* - IE: line and column number for the top frame only; some frames
|
|
13
|
-
* may be missing, and column number is not guaranteed
|
|
14
|
-
*
|
|
15
|
-
* In theory, TraceKit should work on all of the following versions:
|
|
16
|
-
* - IE5.5+ (only 8.0 tested)
|
|
17
|
-
* - Firefox 0.9+ (only 3.5+ tested)
|
|
18
|
-
* - Opera 7+ (only 10.50 tested; versions 9 and earlier may require
|
|
19
|
-
* Exceptions Have Stacktrace to be enabled in opera:config)
|
|
20
|
-
* - Safari 3+ (only 4+ tested)
|
|
21
|
-
* - Chrome 1+ (only 5+ tested)
|
|
22
|
-
* - Konqueror 3.5+ (untested)
|
|
23
|
-
*
|
|
24
|
-
* Tries to catch all unhandled errors and report them to the
|
|
25
|
-
* callback.
|
|
26
|
-
*
|
|
27
|
-
* Callbacks receive a StackTrace object as described in the
|
|
28
|
-
* computeStackTrace docs.
|
|
29
|
-
*
|
|
30
|
-
* @memberof TraceKit
|
|
31
|
-
* @namespace
|
|
32
|
-
*/
|
|
33
|
-
export declare function startUnhandledErrorCollection(callback: UnhandledErrorCallback): {
|
|
34
|
-
stop: () => void;
|
|
35
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startUnhandledErrorCollection = void 0;
|
|
4
|
-
var instrumentMethod_1 = require("../../tools/instrumentMethod");
|
|
5
|
-
var computeStackTrace_1 = require("./computeStackTrace");
|
|
6
|
-
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Error_types
|
|
7
|
-
var ERROR_TYPES_RE = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;
|
|
8
|
-
/**
|
|
9
|
-
* Cross-browser collection of unhandled errors
|
|
10
|
-
*
|
|
11
|
-
* Supports:
|
|
12
|
-
* - Firefox: full stack trace with line numbers, plus column number
|
|
13
|
-
* on top frame; column number is not guaranteed
|
|
14
|
-
* - Opera: full stack trace with line and column numbers
|
|
15
|
-
* - Chrome: full stack trace with line and column numbers
|
|
16
|
-
* - Safari: line and column number for the top frame only; some frames
|
|
17
|
-
* may be missing, and column number is not guaranteed
|
|
18
|
-
* - IE: line and column number for the top frame only; some frames
|
|
19
|
-
* may be missing, and column number is not guaranteed
|
|
20
|
-
*
|
|
21
|
-
* In theory, TraceKit should work on all of the following versions:
|
|
22
|
-
* - IE5.5+ (only 8.0 tested)
|
|
23
|
-
* - Firefox 0.9+ (only 3.5+ tested)
|
|
24
|
-
* - Opera 7+ (only 10.50 tested; versions 9 and earlier may require
|
|
25
|
-
* Exceptions Have Stacktrace to be enabled in opera:config)
|
|
26
|
-
* - Safari 3+ (only 4+ tested)
|
|
27
|
-
* - Chrome 1+ (only 5+ tested)
|
|
28
|
-
* - Konqueror 3.5+ (untested)
|
|
29
|
-
*
|
|
30
|
-
* Tries to catch all unhandled errors and report them to the
|
|
31
|
-
* callback.
|
|
32
|
-
*
|
|
33
|
-
* Callbacks receive a StackTrace object as described in the
|
|
34
|
-
* computeStackTrace docs.
|
|
35
|
-
*
|
|
36
|
-
* @memberof TraceKit
|
|
37
|
-
* @namespace
|
|
38
|
-
*/
|
|
39
|
-
function startUnhandledErrorCollection(callback) {
|
|
40
|
-
var stopInstrumentingOnError = instrumentOnError(callback).stop;
|
|
41
|
-
var stopInstrumentingOnUnhandledRejection = instrumentUnhandledRejection(callback).stop;
|
|
42
|
-
return {
|
|
43
|
-
stop: function () {
|
|
44
|
-
stopInstrumentingOnError();
|
|
45
|
-
stopInstrumentingOnUnhandledRejection();
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.startUnhandledErrorCollection = startUnhandledErrorCollection;
|
|
50
|
-
/**
|
|
51
|
-
* Install a global onerror handler
|
|
52
|
-
*/
|
|
53
|
-
function instrumentOnError(callback) {
|
|
54
|
-
return (0, instrumentMethod_1.instrumentMethodAndCallOriginal)(window, 'onerror', {
|
|
55
|
-
before: function (messageObj, url, line, column, errorObj) {
|
|
56
|
-
var stackTrace;
|
|
57
|
-
if (errorObj instanceof Error) {
|
|
58
|
-
stackTrace = (0, computeStackTrace_1.computeStackTrace)(errorObj);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
var stack = [{ url: url, column: column, line: line }];
|
|
62
|
-
var _a = tryToParseMessage(messageObj), name_1 = _a.name, message = _a.message;
|
|
63
|
-
stackTrace = {
|
|
64
|
-
name: name_1,
|
|
65
|
-
message: message,
|
|
66
|
-
stack: stack,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
callback(stackTrace, errorObj !== null && errorObj !== void 0 ? errorObj : messageObj);
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function tryToParseMessage(messageObj) {
|
|
74
|
-
var _a;
|
|
75
|
-
var name;
|
|
76
|
-
var message;
|
|
77
|
-
if ({}.toString.call(messageObj) === '[object String]') {
|
|
78
|
-
;
|
|
79
|
-
_a = ERROR_TYPES_RE.exec(messageObj), name = _a[1], message = _a[2];
|
|
80
|
-
}
|
|
81
|
-
return { name: name, message: message };
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Install a global onunhandledrejection handler
|
|
85
|
-
*/
|
|
86
|
-
function instrumentUnhandledRejection(callback) {
|
|
87
|
-
return (0, instrumentMethod_1.instrumentMethodAndCallOriginal)(window, 'onunhandledrejection', {
|
|
88
|
-
before: function (e) {
|
|
89
|
-
var reason = e.reason || 'Empty reason';
|
|
90
|
-
var stack = (0, computeStackTrace_1.computeStackTrace)(reason);
|
|
91
|
-
callback(stack, reason);
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=tracekit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tracekit.js","sourceRoot":"","sources":["../../../src/domain/tracekit/tracekit.ts"],"names":[],"mappings":";;;AAAA,iEAA8E;AAC9E,yDAAuD;AAGvD,qGAAqG;AACrG,IAAM,cAAc,GAClB,8GAA8G,CAAA;AAEhH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,SAAgB,6BAA6B,CAAC,QAAgC;IACpE,IAAM,wBAAwB,GAAK,iBAAiB,CAAC,QAAQ,CAAC,KAAhC,CAAgC;IAC9D,IAAM,qCAAqC,GAAK,4BAA4B,CAAC,QAAQ,CAAC,KAA3C,CAA2C;IAE9F,OAAO;QACL,IAAI,EAAE;YACJ,wBAAwB,EAAE,CAAA;YAC1B,qCAAqC,EAAE,CAAA;QACzC,CAAC;KACF,CAAA;AACH,CAAC;AAVD,sEAUC;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,QAAgC;IACzD,OAA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