@grafana/faro-core 2.3.0 → 2.4.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/dist/bundle/faro-core.iife.js +1 -1
- package/dist/bundle/types/extensions/baseExtension.d.ts +1 -1
- package/dist/bundle/types/testUtils/mockTransport.d.ts +1 -1
- package/dist/bundle/types/version.d.ts +1 -1
- package/dist/cjs/api/ItemBuffer.js +11 -13
- package/dist/cjs/api/ItemBuffer.js.map +1 -1
- package/dist/cjs/api/events/initialize.js +12 -14
- package/dist/cjs/api/events/initialize.js.map +1 -1
- package/dist/cjs/api/exceptions/const.js +3 -3
- package/dist/cjs/api/exceptions/const.js.map +1 -1
- package/dist/cjs/api/exceptions/initialize.js +26 -39
- package/dist/cjs/api/exceptions/initialize.js.map +1 -1
- package/dist/cjs/api/initialize.js +25 -36
- package/dist/cjs/api/initialize.js.map +1 -1
- package/dist/cjs/api/logs/const.js +10 -12
- package/dist/cjs/api/logs/const.js.map +1 -1
- package/dist/cjs/api/logs/initialize.js +14 -16
- package/dist/cjs/api/logs/initialize.js.map +1 -1
- package/dist/cjs/api/measurements/initialize.js +12 -25
- package/dist/cjs/api/measurements/initialize.js.map +1 -1
- package/dist/cjs/api/meta/initialize.js +29 -41
- package/dist/cjs/api/meta/initialize.js.map +1 -1
- package/dist/cjs/api/traces/initialize.js +17 -17
- package/dist/cjs/api/traces/initialize.js.map +1 -1
- package/dist/cjs/api/userActions/initialize.js +23 -24
- package/dist/cjs/api/userActions/initialize.js.map +1 -1
- package/dist/cjs/api/userActions/userAction.js +48 -80
- package/dist/cjs/api/userActions/userAction.js.map +1 -1
- package/dist/cjs/api/utils.js +2 -2
- package/dist/cjs/api/utils.js.map +1 -1
- package/dist/cjs/extensions/baseExtension.js +17 -47
- package/dist/cjs/extensions/baseExtension.js.map +1 -1
- package/dist/cjs/initialize.js +14 -14
- package/dist/cjs/initialize.js.map +1 -1
- package/dist/cjs/instrumentations/base.js +7 -25
- package/dist/cjs/instrumentations/base.js.map +1 -1
- package/dist/cjs/instrumentations/initialize.js +14 -31
- package/dist/cjs/instrumentations/initialize.js.map +1 -1
- package/dist/cjs/instrumentations/registerInitial.js +1 -2
- package/dist/cjs/instrumentations/registerInitial.js.map +1 -1
- package/dist/cjs/internalLogger/const.js +1 -1
- package/dist/cjs/internalLogger/const.js.map +1 -1
- package/dist/cjs/internalLogger/createInternalLogger.js +13 -40
- package/dist/cjs/internalLogger/createInternalLogger.js.map +1 -1
- package/dist/cjs/internalLogger/initialize.js +2 -2
- package/dist/cjs/internalLogger/initialize.js.map +1 -1
- package/dist/cjs/metas/initialize.js +18 -26
- package/dist/cjs/metas/initialize.js.map +1 -1
- package/dist/cjs/metas/registerInitial.js +7 -28
- package/dist/cjs/metas/registerInitial.js.map +1 -1
- package/dist/cjs/sdk/faroGlobalObject.js +3 -3
- package/dist/cjs/sdk/faroGlobalObject.js.map +1 -1
- package/dist/cjs/sdk/internalFaroGlobalObject.js +2 -2
- package/dist/cjs/sdk/internalFaroGlobalObject.js.map +1 -1
- package/dist/cjs/sdk/registerFaro.js +9 -9
- package/dist/cjs/sdk/registerFaro.js.map +1 -1
- package/dist/cjs/testUtils/mockConfig.js +6 -18
- package/dist/cjs/testUtils/mockConfig.js.map +1 -1
- package/dist/cjs/testUtils/mockInternalLogger.js +1 -1
- package/dist/cjs/testUtils/mockInternalLogger.js.map +1 -1
- package/dist/cjs/testUtils/mockStacktraceParser.js +5 -5
- package/dist/cjs/testUtils/mockStacktraceParser.js.map +1 -1
- package/dist/cjs/testUtils/mockTransport.js +17 -37
- package/dist/cjs/testUtils/mockTransport.js.map +1 -1
- package/dist/cjs/testUtils/testPromise.js +3 -3
- package/dist/cjs/testUtils/testPromise.js.map +1 -1
- package/dist/cjs/transports/base.js +7 -27
- package/dist/cjs/transports/base.js.map +1 -1
- package/dist/cjs/transports/batchExecutor.js +24 -36
- package/dist/cjs/transports/batchExecutor.js.map +1 -1
- package/dist/cjs/transports/const.js +7 -8
- package/dist/cjs/transports/const.js.map +1 -1
- package/dist/cjs/transports/initialize.js +50 -79
- package/dist/cjs/transports/initialize.js.map +1 -1
- package/dist/cjs/transports/registerInitial.js +1 -2
- package/dist/cjs/transports/registerInitial.js.map +1 -1
- package/dist/cjs/transports/utils.js +13 -34
- package/dist/cjs/transports/utils.js.map +1 -1
- package/dist/cjs/unpatchedConsole/const.js +1 -12
- package/dist/cjs/unpatchedConsole/const.js.map +1 -1
- package/dist/cjs/unpatchedConsole/initialize.js +1 -1
- package/dist/cjs/unpatchedConsole/initialize.js.map +1 -1
- package/dist/cjs/utils/deepEqual.js +14 -16
- package/dist/cjs/utils/deepEqual.js.map +1 -1
- package/dist/cjs/utils/is.js +25 -29
- package/dist/cjs/utils/is.js.map +1 -1
- package/dist/cjs/utils/json.js +6 -9
- package/dist/cjs/utils/json.js.map +1 -1
- package/dist/cjs/utils/promiseBuffer.js +14 -14
- package/dist/cjs/utils/promiseBuffer.js.map +1 -1
- package/dist/cjs/utils/reactive.js +43 -50
- package/dist/cjs/utils/reactive.js.map +1 -1
- package/dist/cjs/utils/shortId.js +3 -4
- package/dist/cjs/utils/shortId.js.map +1 -1
- package/dist/cjs/utils/sourceMaps.js +2 -2
- package/dist/cjs/utils/sourceMaps.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/extensions/baseExtension.d.ts +1 -1
- package/dist/types/testUtils/mockTransport.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -5
- package/dist/spec/core/src/api/ItemBuffer.js +0 -27
- package/dist/spec/core/src/api/ItemBuffer.js.map +0 -1
- package/dist/spec/core/src/api/apiTestHelpers.js +0 -40
- package/dist/spec/core/src/api/apiTestHelpers.js.map +0 -1
- package/dist/spec/core/src/api/events/index.js +0 -6
- package/dist/spec/core/src/api/events/index.js.map +0 -1
- package/dist/spec/core/src/api/events/initialize.js +0 -54
- package/dist/spec/core/src/api/events/initialize.js.map +0 -1
- package/dist/spec/core/src/api/events/initialize.test.js +0 -171
- package/dist/spec/core/src/api/events/initialize.test.js.map +0 -1
- package/dist/spec/core/src/api/events/types.js +0 -3
- package/dist/spec/core/src/api/events/types.js.map +0 -1
- package/dist/spec/core/src/api/exceptions/const.js +0 -17
- package/dist/spec/core/src/api/exceptions/const.js.map +0 -1
- package/dist/spec/core/src/api/exceptions/index.js +0 -9
- package/dist/spec/core/src/api/exceptions/index.js.map +0 -1
- package/dist/spec/core/src/api/exceptions/initialize.js +0 -104
- package/dist/spec/core/src/api/exceptions/initialize.js.map +0 -1
- package/dist/spec/core/src/api/exceptions/initialize.test.js +0 -317
- package/dist/spec/core/src/api/exceptions/initialize.test.js.map +0 -1
- package/dist/spec/core/src/api/exceptions/types.js +0 -3
- package/dist/spec/core/src/api/exceptions/types.js.map +0 -1
- package/dist/spec/core/src/api/index.js +0 -15
- package/dist/spec/core/src/api/index.js.map +0 -1
- package/dist/spec/core/src/api/initialize.js +0 -56
- package/dist/spec/core/src/api/initialize.js.map +0 -1
- package/dist/spec/core/src/api/initialize.test.js +0 -33
- package/dist/spec/core/src/api/initialize.test.js.map +0 -1
- package/dist/spec/core/src/api/itemBuffer.test.js +0 -36
- package/dist/spec/core/src/api/itemBuffer.test.js.map +0 -1
- package/dist/spec/core/src/api/logs/const.js +0 -17
- package/dist/spec/core/src/api/logs/const.js.map +0 -1
- package/dist/spec/core/src/api/logs/index.js +0 -8
- package/dist/spec/core/src/api/logs/index.js.map +0 -1
- package/dist/spec/core/src/api/logs/initialize.js +0 -58
- package/dist/spec/core/src/api/logs/initialize.js.map +0 -1
- package/dist/spec/core/src/api/logs/initialize.test.js +0 -185
- package/dist/spec/core/src/api/logs/initialize.test.js.map +0 -1
- package/dist/spec/core/src/api/logs/types.js +0 -3
- package/dist/spec/core/src/api/logs/types.js.map +0 -1
- package/dist/spec/core/src/api/measurements/index.js +0 -6
- package/dist/spec/core/src/api/measurements/index.js.map +0 -1
- package/dist/spec/core/src/api/measurements/initialize.js +0 -60
- package/dist/spec/core/src/api/measurements/initialize.js.map +0 -1
- package/dist/spec/core/src/api/measurements/initialize.test.js +0 -244
- package/dist/spec/core/src/api/measurements/initialize.test.js.map +0 -1
- package/dist/spec/core/src/api/measurements/types.js +0 -3
- package/dist/spec/core/src/api/measurements/types.js.map +0 -1
- package/dist/spec/core/src/api/meta/index.js +0 -6
- package/dist/spec/core/src/api/meta/index.js.map +0 -1
- package/dist/spec/core/src/api/meta/initialize.js +0 -92
- package/dist/spec/core/src/api/meta/initialize.js.map +0 -1
- package/dist/spec/core/src/api/meta/initilialize.test.js +0 -135
- package/dist/spec/core/src/api/meta/initilialize.test.js.map +0 -1
- package/dist/spec/core/src/api/meta/types.js +0 -3
- package/dist/spec/core/src/api/meta/types.js.map +0 -1
- package/dist/spec/core/src/api/traces/index.js +0 -6
- package/dist/spec/core/src/api/traces/index.js.map +0 -1
- package/dist/spec/core/src/api/traces/initialize.js +0 -48
- package/dist/spec/core/src/api/traces/initialize.js.map +0 -1
- package/dist/spec/core/src/api/traces/types.js +0 -3
- package/dist/spec/core/src/api/traces/types.js.map +0 -1
- package/dist/spec/core/src/api/types.js +0 -3
- package/dist/spec/core/src/api/types.js.map +0 -1
- package/dist/spec/core/src/api/userActions/const.js +0 -11
- package/dist/spec/core/src/api/userActions/const.js.map +0 -1
- package/dist/spec/core/src/api/userActions/index.js +0 -11
- package/dist/spec/core/src/api/userActions/index.js.map +0 -1
- package/dist/spec/core/src/api/userActions/initialize.js +0 -80
- package/dist/spec/core/src/api/userActions/initialize.js.map +0 -1
- package/dist/spec/core/src/api/userActions/initialize.test.js +0 -83
- package/dist/spec/core/src/api/userActions/initialize.test.js.map +0 -1
- package/dist/spec/core/src/api/userActions/types.js +0 -11
- package/dist/spec/core/src/api/userActions/types.js.map +0 -1
- package/dist/spec/core/src/api/userActions/userAction.js +0 -126
- package/dist/spec/core/src/api/userActions/userAction.js.map +0 -1
- package/dist/spec/core/src/api/userActions/userAction.test.js +0 -85
- package/dist/spec/core/src/api/userActions/userAction.test.js.map +0 -1
- package/dist/spec/core/src/api/utils.js +0 -10
- package/dist/spec/core/src/api/utils.js.map +0 -1
- package/dist/spec/core/src/api/utils.test.js +0 -20
- package/dist/spec/core/src/api/utils.test.js.map +0 -1
- package/dist/spec/core/src/config/const.js +0 -10
- package/dist/spec/core/src/config/const.js.map +0 -1
- package/dist/spec/core/src/config/index.js +0 -7
- package/dist/spec/core/src/config/index.js.map +0 -1
- package/dist/spec/core/src/config/types.js +0 -3
- package/dist/spec/core/src/config/types.js.map +0 -1
- package/dist/spec/core/src/consts.js +0 -5
- package/dist/spec/core/src/consts.js.map +0 -1
- package/dist/spec/core/src/extensions/baseExtension.js +0 -57
- package/dist/spec/core/src/extensions/baseExtension.js.map +0 -1
- package/dist/spec/core/src/extensions/index.js +0 -6
- package/dist/spec/core/src/extensions/index.js.map +0 -1
- package/dist/spec/core/src/extensions/types.js +0 -3
- package/dist/spec/core/src/extensions/types.js.map +0 -1
- package/dist/spec/core/src/faro.test.js +0 -40
- package/dist/spec/core/src/faro.test.js.map +0 -1
- package/dist/spec/core/src/globalObject/globalObject.js +0 -12
- package/dist/spec/core/src/globalObject/globalObject.js.map +0 -1
- package/dist/spec/core/src/globalObject/index.js +0 -6
- package/dist/spec/core/src/globalObject/index.js.map +0 -1
- package/dist/spec/core/src/index.js +0 -103
- package/dist/spec/core/src/index.js.map +0 -1
- package/dist/spec/core/src/initialize.js +0 -31
- package/dist/spec/core/src/initialize.js.map +0 -1
- package/dist/spec/core/src/instrumentations/base.js +0 -31
- package/dist/spec/core/src/instrumentations/base.js.map +0 -1
- package/dist/spec/core/src/instrumentations/index.js +0 -10
- package/dist/spec/core/src/instrumentations/index.js.map +0 -1
- package/dist/spec/core/src/instrumentations/initialize.js +0 -70
- package/dist/spec/core/src/instrumentations/initialize.js.map +0 -1
- package/dist/spec/core/src/instrumentations/registerInitial.js +0 -8
- package/dist/spec/core/src/instrumentations/registerInitial.js.map +0 -1
- package/dist/spec/core/src/instrumentations/types.js +0 -3
- package/dist/spec/core/src/instrumentations/types.js.map +0 -1
- package/dist/spec/core/src/internalLogger/const.js +0 -22
- package/dist/spec/core/src/internalLogger/const.js.map +0 -1
- package/dist/spec/core/src/internalLogger/createInternalLogger.js +0 -64
- package/dist/spec/core/src/internalLogger/createInternalLogger.js.map +0 -1
- package/dist/spec/core/src/internalLogger/index.js +0 -13
- package/dist/spec/core/src/internalLogger/index.js.map +0 -1
- package/dist/spec/core/src/internalLogger/initialize.js +0 -12
- package/dist/spec/core/src/internalLogger/initialize.js.map +0 -1
- package/dist/spec/core/src/internalLogger/types.js +0 -3
- package/dist/spec/core/src/internalLogger/types.js.map +0 -1
- package/dist/spec/core/src/metas/index.js +0 -8
- package/dist/spec/core/src/metas/index.js.map +0 -1
- package/dist/spec/core/src/metas/initialize.js +0 -51
- package/dist/spec/core/src/metas/initialize.js.map +0 -1
- package/dist/spec/core/src/metas/initialize.test.js +0 -20
- package/dist/spec/core/src/metas/initialize.test.js.map +0 -1
- package/dist/spec/core/src/metas/registerInitial.js +0 -53
- package/dist/spec/core/src/metas/registerInitial.js.map +0 -1
- package/dist/spec/core/src/metas/types.js +0 -3
- package/dist/spec/core/src/metas/types.js.map +0 -1
- package/dist/spec/core/src/sdk/const.js +0 -5
- package/dist/spec/core/src/sdk/const.js.map +0 -1
- package/dist/spec/core/src/sdk/faroGlobalObject.js +0 -22
- package/dist/spec/core/src/sdk/faroGlobalObject.js.map +0 -1
- package/dist/spec/core/src/sdk/index.js +0 -13
- package/dist/spec/core/src/sdk/index.js.map +0 -1
- package/dist/spec/core/src/sdk/internalFaroGlobalObject.js +0 -28
- package/dist/spec/core/src/sdk/internalFaroGlobalObject.js.map +0 -1
- package/dist/spec/core/src/sdk/registerFaro.js +0 -25
- package/dist/spec/core/src/sdk/registerFaro.js.map +0 -1
- package/dist/spec/core/src/sdk/types.js +0 -3
- package/dist/spec/core/src/sdk/types.js.map +0 -1
- package/dist/spec/core/src/semantic.js +0 -12
- package/dist/spec/core/src/semantic.js.map +0 -1
- package/dist/spec/core/src/testUtils/index.js +0 -14
- package/dist/spec/core/src/testUtils/index.js.map +0 -1
- package/dist/spec/core/src/testUtils/mockConfig.js +0 -27
- package/dist/spec/core/src/testUtils/mockConfig.js.map +0 -1
- package/dist/spec/core/src/testUtils/mockInternalLogger.js +0 -12
- package/dist/spec/core/src/testUtils/mockInternalLogger.js.map +0 -1
- package/dist/spec/core/src/testUtils/mockStacktraceParser.js +0 -21
- package/dist/spec/core/src/testUtils/mockStacktraceParser.js.map +0 -1
- package/dist/spec/core/src/testUtils/mockTransport.js +0 -45
- package/dist/spec/core/src/testUtils/mockTransport.js.map +0 -1
- package/dist/spec/core/src/testUtils/testPromise.js +0 -14
- package/dist/spec/core/src/testUtils/testPromise.js.map +0 -1
- package/dist/spec/core/src/transports/base.js +0 -34
- package/dist/spec/core/src/transports/base.js.map +0 -1
- package/dist/spec/core/src/transports/batchExecutor.js +0 -82
- package/dist/spec/core/src/transports/batchExecutor.js.map +0 -1
- package/dist/spec/core/src/transports/batchExecutor.test.js +0 -179
- package/dist/spec/core/src/transports/batchExecutor.test.js.map +0 -1
- package/dist/spec/core/src/transports/const.js +0 -20
- package/dist/spec/core/src/transports/const.js.map +0 -1
- package/dist/spec/core/src/transports/index.js +0 -15
- package/dist/spec/core/src/transports/index.js.map +0 -1
- package/dist/spec/core/src/transports/initialize.js +0 -188
- package/dist/spec/core/src/transports/initialize.js.map +0 -1
- package/dist/spec/core/src/transports/registerInitial.js +0 -9
- package/dist/spec/core/src/transports/registerInitial.js.map +0 -1
- package/dist/spec/core/src/transports/transports.test.js +0 -258
- package/dist/spec/core/src/transports/transports.test.js.map +0 -1
- package/dist/spec/core/src/transports/types.js +0 -3
- package/dist/spec/core/src/transports/types.js.map +0 -1
- package/dist/spec/core/src/transports/utils.js +0 -73
- package/dist/spec/core/src/transports/utils.js.map +0 -1
- package/dist/spec/core/src/transports/utils.test.js +0 -216
- package/dist/spec/core/src/transports/utils.test.js.map +0 -1
- package/dist/spec/core/src/unpatchedConsole/const.js +0 -16
- package/dist/spec/core/src/unpatchedConsole/const.js.map +0 -1
- package/dist/spec/core/src/unpatchedConsole/index.js +0 -9
- package/dist/spec/core/src/unpatchedConsole/index.js.map +0 -1
- package/dist/spec/core/src/unpatchedConsole/initialize.js +0 -12
- package/dist/spec/core/src/unpatchedConsole/initialize.js.map +0 -1
- package/dist/spec/core/src/unpatchedConsole/types.js +0 -3
- package/dist/spec/core/src/unpatchedConsole/types.js.map +0 -1
- package/dist/spec/core/src/utils/baseObject.js +0 -3
- package/dist/spec/core/src/utils/baseObject.js.map +0 -1
- package/dist/spec/core/src/utils/date.js +0 -15
- package/dist/spec/core/src/utils/date.js.map +0 -1
- package/dist/spec/core/src/utils/deepEqual.js +0 -61
- package/dist/spec/core/src/utils/deepEqual.js.map +0 -1
- package/dist/spec/core/src/utils/deepEqual.test.js +0 -103
- package/dist/spec/core/src/utils/deepEqual.test.js.map +0 -1
- package/dist/spec/core/src/utils/index.js +0 -60
- package/dist/spec/core/src/utils/index.js.map +0 -1
- package/dist/spec/core/src/utils/is.js +0 -66
- package/dist/spec/core/src/utils/is.js.map +0 -1
- package/dist/spec/core/src/utils/is.test.js +0 -21
- package/dist/spec/core/src/utils/is.test.js.map +0 -1
- package/dist/spec/core/src/utils/json.js +0 -32
- package/dist/spec/core/src/utils/json.js.map +0 -1
- package/dist/spec/core/src/utils/json.test.js +0 -35
- package/dist/spec/core/src/utils/json.test.js.map +0 -1
- package/dist/spec/core/src/utils/logLevels.js +0 -22
- package/dist/spec/core/src/utils/logLevels.js.map +0 -1
- package/dist/spec/core/src/utils/noop.js +0 -5
- package/dist/spec/core/src/utils/noop.js.map +0 -1
- package/dist/spec/core/src/utils/promiseBuffer.js +0 -42
- package/dist/spec/core/src/utils/promiseBuffer.js.map +0 -1
- package/dist/spec/core/src/utils/promiseBuffer.test.js +0 -146
- package/dist/spec/core/src/utils/promiseBuffer.test.js.map +0 -1
- package/dist/spec/core/src/utils/reactive.js +0 -90
- package/dist/spec/core/src/utils/reactive.js.map +0 -1
- package/dist/spec/core/src/utils/reactive.test.js +0 -117
- package/dist/spec/core/src/utils/reactive.test.js.map +0 -1
- package/dist/spec/core/src/utils/sampling.js +0 -7
- package/dist/spec/core/src/utils/sampling.js.map +0 -1
- package/dist/spec/core/src/utils/sampling.test.js +0 -17
- package/dist/spec/core/src/utils/sampling.test.js.map +0 -1
- package/dist/spec/core/src/utils/shortId.js +0 -11
- package/dist/spec/core/src/utils/shortId.js.map +0 -1
- package/dist/spec/core/src/utils/sourceMaps.js +0 -8
- package/dist/spec/core/src/utils/sourceMaps.js.map +0 -1
- package/dist/spec/core/src/utils/sourceMaps.test.js +0 -17
- package/dist/spec/core/src/utils/sourceMaps.test.js.map +0 -1
- package/dist/spec/core/src/version.js +0 -6
- package/dist/spec/core/src/version.js.map +0 -1
- package/dist/types/core/src/api/ItemBuffer.d.ts +0 -7
- package/dist/types/core/src/api/apiTestHelpers.d.ts +0 -13
- package/dist/types/core/src/api/events/index.d.ts +0 -2
- package/dist/types/core/src/api/events/initialize.d.ts +0 -17
- package/dist/types/core/src/api/events/initialize.test.d.ts +0 -1
- package/dist/types/core/src/api/events/types.d.ts +0 -29
- package/dist/types/core/src/api/exceptions/const.d.ts +0 -2
- package/dist/types/core/src/api/exceptions/index.d.ts +0 -3
- package/dist/types/core/src/api/exceptions/initialize.d.ts +0 -17
- package/dist/types/core/src/api/exceptions/initialize.test.d.ts +0 -1
- package/dist/types/core/src/api/exceptions/types.d.ts +0 -61
- package/dist/types/core/src/api/index.d.ts +0 -11
- package/dist/types/core/src/api/initialize.d.ts +0 -7
- package/dist/types/core/src/api/initialize.test.d.ts +0 -1
- package/dist/types/core/src/api/itemBuffer.test.d.ts +0 -1
- package/dist/types/core/src/api/logs/const.d.ts +0 -2
- package/dist/types/core/src/api/logs/index.d.ts +0 -3
- package/dist/types/core/src/api/logs/initialize.d.ts +0 -17
- package/dist/types/core/src/api/logs/initialize.test.d.ts +0 -1
- package/dist/types/core/src/api/logs/types.d.ts +0 -24
- package/dist/types/core/src/api/measurements/index.d.ts +0 -2
- package/dist/types/core/src/api/measurements/initialize.d.ts +0 -17
- package/dist/types/core/src/api/measurements/initialize.test.d.ts +0 -1
- package/dist/types/core/src/api/measurements/types.d.ts +0 -25
- package/dist/types/core/src/api/meta/index.d.ts +0 -2
- package/dist/types/core/src/api/meta/initialize.d.ts +0 -15
- package/dist/types/core/src/api/meta/initilialize.test.d.ts +0 -1
- package/dist/types/core/src/api/meta/types.d.ts +0 -21
- package/dist/types/core/src/api/traces/index.d.ts +0 -2
- package/dist/types/core/src/api/traces/initialize.d.ts +0 -7
- package/dist/types/core/src/api/traces/types.d.ts +0 -20
- package/dist/types/core/src/api/types.d.ts +0 -14
- package/dist/types/core/src/api/userActions/const.d.ts +0 -8
- package/dist/types/core/src/api/userActions/index.d.ts +0 -4
- package/dist/types/core/src/api/userActions/initialize.d.ts +0 -21
- package/dist/types/core/src/api/userActions/initialize.test.d.ts +0 -1
- package/dist/types/core/src/api/userActions/types.d.ts +0 -55
- package/dist/types/core/src/api/userActions/userAction.d.ts +0 -36
- package/dist/types/core/src/api/userActions/userAction.test.d.ts +0 -1
- package/dist/types/core/src/api/utils.d.ts +0 -2
- package/dist/types/core/src/api/utils.test.d.ts +0 -1
- package/dist/types/core/src/config/const.d.ts +0 -6
- package/dist/types/core/src/config/index.d.ts +0 -2
- package/dist/types/core/src/config/types.d.ts +0 -237
- package/dist/types/core/src/consts.d.ts +0 -1
- package/dist/types/core/src/extensions/baseExtension.d.ts +0 -15
- package/dist/types/core/src/extensions/index.d.ts +0 -2
- package/dist/types/core/src/extensions/types.d.ts +0 -16
- package/dist/types/core/src/faro.test.d.ts +0 -1
- package/dist/types/core/src/globalObject/globalObject.d.ts +0 -6
- package/dist/types/core/src/globalObject/index.d.ts +0 -2
- package/dist/types/core/src/index.d.ts +0 -25
- package/dist/types/core/src/initialize.d.ts +0 -3
- package/dist/types/core/src/instrumentations/base.d.ts +0 -9
- package/dist/types/core/src/instrumentations/index.d.ts +0 -4
- package/dist/types/core/src/instrumentations/initialize.d.ts +0 -8
- package/dist/types/core/src/instrumentations/registerInitial.d.ts +0 -2
- package/dist/types/core/src/instrumentations/types.d.ts +0 -14
- package/dist/types/core/src/internalLogger/const.d.ts +0 -11
- package/dist/types/core/src/internalLogger/createInternalLogger.d.ts +0 -4
- package/dist/types/core/src/internalLogger/index.d.ts +0 -4
- package/dist/types/core/src/internalLogger/initialize.d.ts +0 -5
- package/dist/types/core/src/internalLogger/types.d.ts +0 -7
- package/dist/types/core/src/metas/index.d.ts +0 -3
- package/dist/types/core/src/metas/initialize.d.ts +0 -5
- package/dist/types/core/src/metas/initialize.test.d.ts +0 -1
- package/dist/types/core/src/metas/registerInitial.d.ts +0 -2
- package/dist/types/core/src/metas/types.d.ts +0 -118
- package/dist/types/core/src/sdk/const.d.ts +0 -1
- package/dist/types/core/src/sdk/faroGlobalObject.d.ts +0 -2
- package/dist/types/core/src/sdk/index.d.ts +0 -4
- package/dist/types/core/src/sdk/internalFaroGlobalObject.d.ts +0 -4
- package/dist/types/core/src/sdk/registerFaro.d.ts +0 -10
- package/dist/types/core/src/sdk/types.d.ts +0 -18
- package/dist/types/core/src/semantic.d.ts +0 -8
- package/dist/types/core/src/testUtils/index.d.ts +0 -6
- package/dist/types/core/src/testUtils/mockConfig.d.ts +0 -2
- package/dist/types/core/src/testUtils/mockInternalLogger.d.ts +0 -2
- package/dist/types/core/src/testUtils/mockStacktraceParser.d.ts +0 -2
- package/dist/types/core/src/testUtils/mockTransport.d.ts +0 -13
- package/dist/types/core/src/testUtils/testPromise.d.ts +0 -7
- package/dist/types/core/src/transports/base.d.ts +0 -8
- package/dist/types/core/src/transports/batchExecutor.d.ts +0 -16
- package/dist/types/core/src/transports/batchExecutor.test.d.ts +0 -1
- package/dist/types/core/src/transports/const.d.ts +0 -9
- package/dist/types/core/src/transports/index.d.ts +0 -6
- package/dist/types/core/src/transports/initialize.d.ts +0 -6
- package/dist/types/core/src/transports/registerInitial.d.ts +0 -2
- package/dist/types/core/src/transports/transports.test.d.ts +0 -1
- package/dist/types/core/src/transports/types.d.ts +0 -45
- package/dist/types/core/src/transports/utils.d.ts +0 -5
- package/dist/types/core/src/transports/utils.test.d.ts +0 -1
- package/dist/types/core/src/unpatchedConsole/const.d.ts +0 -2
- package/dist/types/core/src/unpatchedConsole/index.d.ts +0 -3
- package/dist/types/core/src/unpatchedConsole/initialize.d.ts +0 -4
- package/dist/types/core/src/unpatchedConsole/types.d.ts +0 -1
- package/dist/types/core/src/utils/baseObject.d.ts +0 -6
- package/dist/types/core/src/utils/date.d.ts +0 -3
- package/dist/types/core/src/utils/deepEqual.d.ts +0 -1
- package/dist/types/core/src/utils/deepEqual.test.d.ts +0 -1
- package/dist/types/core/src/utils/index.d.ts +0 -16
- package/dist/types/core/src/utils/is.d.ts +0 -32
- package/dist/types/core/src/utils/is.test.d.ts +0 -1
- package/dist/types/core/src/utils/json.d.ts +0 -3
- package/dist/types/core/src/utils/json.test.d.ts +0 -1
- package/dist/types/core/src/utils/logLevels.d.ts +0 -10
- package/dist/types/core/src/utils/noop.d.ts +0 -1
- package/dist/types/core/src/utils/promiseBuffer.d.ts +0 -14
- package/dist/types/core/src/utils/promiseBuffer.test.d.ts +0 -1
- package/dist/types/core/src/utils/reactive.d.ts +0 -17
- package/dist/types/core/src/utils/reactive.test.d.ts +0 -1
- package/dist/types/core/src/utils/sampling.d.ts +0 -1
- package/dist/types/core/src/utils/sampling.test.d.ts +0 -1
- package/dist/types/core/src/utils/shortId.d.ts +0 -1
- package/dist/types/core/src/utils/sourceMaps.d.ts +0 -1
- package/dist/types/core/src/utils/sourceMaps.test.d.ts +0 -1
- package/dist/types/core/src/version.d.ts +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { SpanContext } from '@opentelemetry/api';
|
|
2
|
-
import type { TraceContext } from '../traces';
|
|
3
|
-
import type { UserAction } from '../types';
|
|
4
|
-
export type EventAttributes = Record<string, string>;
|
|
5
|
-
export interface EventEvent {
|
|
6
|
-
name: string;
|
|
7
|
-
timestamp: string;
|
|
8
|
-
domain?: string;
|
|
9
|
-
attributes?: EventAttributes;
|
|
10
|
-
trace?: TraceContext;
|
|
11
|
-
action?: UserAction;
|
|
12
|
-
}
|
|
13
|
-
export interface PushEventOptions {
|
|
14
|
-
skipDedupe?: boolean;
|
|
15
|
-
spanContext?: Pick<SpanContext, 'traceId' | 'spanId'>;
|
|
16
|
-
timestampOverwriteMs?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Allows manual transformation of the payload before adding it to the internal buffer.
|
|
19
|
-
*
|
|
20
|
-
* @param payload - The event payload to be transformed.
|
|
21
|
-
* @returns The transformed event payload.
|
|
22
|
-
*
|
|
23
|
-
* @remarks This should be used sparingly and only in special cases where custom payload processing cannot be deferred to the before-send hook.
|
|
24
|
-
*/
|
|
25
|
-
customPayloadTransformer?: (payload: EventEvent) => EventEvent;
|
|
26
|
-
}
|
|
27
|
-
export interface EventsAPI {
|
|
28
|
-
pushEvent: (name: string, attributes?: EventAttributes, domain?: string, options?: PushEventOptions) => void;
|
|
29
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { defaultExceptionType, defaultErrorArgsSerializer } from './const';
|
|
2
|
-
export { initializeExceptionsAPI } from './initialize';
|
|
3
|
-
export type { ExceptionEvent, ExceptionStackFrame, ExceptionsAPI, ExtendedError, PushErrorOptions, Stacktrace, StacktraceParser, ErrorWithIndexProperties, ExceptionEventExtended, } from './types';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../../config';
|
|
2
|
-
import type { InternalLogger } from '../../internalLogger';
|
|
3
|
-
import type { Metas } from '../../metas';
|
|
4
|
-
import type { Transports } from '../../transports';
|
|
5
|
-
import type { UnpatchedConsole } from '../../unpatchedConsole';
|
|
6
|
-
import type { TracesAPI } from '../traces';
|
|
7
|
-
import type { UserActionsAPI } from '../userActions';
|
|
8
|
-
import type { ExceptionsAPI } from './types';
|
|
9
|
-
export declare function initializeExceptionsAPI({ internalLogger, config, metas, transports, tracesApi, userActionsApi, }: {
|
|
10
|
-
unpatchedConsole: UnpatchedConsole;
|
|
11
|
-
internalLogger: InternalLogger;
|
|
12
|
-
config: Config;
|
|
13
|
-
metas: Metas;
|
|
14
|
-
transports: Transports;
|
|
15
|
-
tracesApi: TracesAPI;
|
|
16
|
-
userActionsApi: UserActionsAPI;
|
|
17
|
-
}): ExceptionsAPI;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { SpanContext } from '@opentelemetry/api';
|
|
2
|
-
import type { TraceContext } from '../traces';
|
|
3
|
-
import type { UserAction } from '../types';
|
|
4
|
-
export type StacktraceParser = (err: ExtendedError) => Stacktrace;
|
|
5
|
-
export interface ExceptionStackFrame {
|
|
6
|
-
filename: string;
|
|
7
|
-
function: string;
|
|
8
|
-
colno?: number;
|
|
9
|
-
lineno?: number;
|
|
10
|
-
bundleid?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ExtendedError extends Error {
|
|
13
|
-
columnNumber?: number;
|
|
14
|
-
stacktrace?: Error['stack'];
|
|
15
|
-
}
|
|
16
|
-
export interface Stacktrace {
|
|
17
|
-
frames: ExceptionStackFrame[];
|
|
18
|
-
}
|
|
19
|
-
export type ExceptionContext = Record<string, string>;
|
|
20
|
-
export interface ExceptionEventDefault {
|
|
21
|
-
timestamp: string;
|
|
22
|
-
type: string;
|
|
23
|
-
value: string;
|
|
24
|
-
fingerprint?: string;
|
|
25
|
-
stacktrace?: Stacktrace;
|
|
26
|
-
trace?: TraceContext;
|
|
27
|
-
context?: ExceptionContext;
|
|
28
|
-
action?: UserAction;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The ExceptionEventExtended type is used to represent an exception event with an additional error
|
|
32
|
-
* property and is only meant for client side use. The additional property is removed by Faro before
|
|
33
|
-
* sending the event to the transport.
|
|
34
|
-
*/
|
|
35
|
-
export type ExceptionEventExtended = ExceptionEventDefault & {
|
|
36
|
-
originalError?: Error;
|
|
37
|
-
};
|
|
38
|
-
export type ExceptionEvent<EXTENDED = ExceptionEventDefault> = EXTENDED extends boolean ? ExceptionEventExtended : ExceptionEventDefault;
|
|
39
|
-
export interface PushErrorOptions {
|
|
40
|
-
fingerprint?: string;
|
|
41
|
-
skipDedupe?: boolean;
|
|
42
|
-
stackFrames?: ExceptionStackFrame[];
|
|
43
|
-
type?: string;
|
|
44
|
-
context?: ExceptionContext;
|
|
45
|
-
spanContext?: Pick<SpanContext, 'traceId' | 'spanId'>;
|
|
46
|
-
timestampOverwriteMs?: number;
|
|
47
|
-
/**
|
|
48
|
-
* Retains the original error object in the payload after parsing.
|
|
49
|
-
* This is primarily for internal, advanced use cases.
|
|
50
|
-
* Faro users should not need to use this option.
|
|
51
|
-
*/
|
|
52
|
-
originalError?: Error;
|
|
53
|
-
}
|
|
54
|
-
export type ErrorWithIndexProperties = Error & {
|
|
55
|
-
cause?: any;
|
|
56
|
-
};
|
|
57
|
-
export interface ExceptionsAPI {
|
|
58
|
-
changeStacktraceParser: (stacktraceParser: StacktraceParser) => void;
|
|
59
|
-
getStacktraceParser: () => StacktraceParser | undefined;
|
|
60
|
-
pushError: (value: ErrorWithIndexProperties, options?: PushErrorOptions) => void;
|
|
61
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { initializeAPI } from './initialize';
|
|
2
|
-
export type { API, APIEvent, UserAction } from './types';
|
|
3
|
-
export type { EventAttributes, EventEvent, EventsAPI, PushEventOptions } from './events';
|
|
4
|
-
export { defaultExceptionType, defaultErrorArgsSerializer } from './exceptions';
|
|
5
|
-
export type { ExceptionEvent, ExceptionStackFrame, ExceptionsAPI, ExtendedError, PushErrorOptions, Stacktrace, StacktraceParser, ExceptionEventExtended, } from './exceptions';
|
|
6
|
-
export { defaultLogArgsSerializer } from './logs';
|
|
7
|
-
export type { LogContext, LogEvent, LogArgsSerializer, LogsAPI, PushLogOptions } from './logs';
|
|
8
|
-
export type { MeasurementEvent, MeasurementsAPI, PushMeasurementOptions } from './measurements';
|
|
9
|
-
export type { MetaAPI } from './meta';
|
|
10
|
-
export { UserActionImportance, type UserActionImportanceType, UserActionState, type UserActionInterface, type UserActionInternalInterface, type UserActionsAPI, userActionsMessageBus, } from './userActions';
|
|
11
|
-
export type { OTELApi, TraceContext, TraceEvent, TracesAPI } from './traces';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../config';
|
|
2
|
-
import type { InternalLogger } from '../internalLogger';
|
|
3
|
-
import type { Metas } from '../metas';
|
|
4
|
-
import type { Transports } from '../transports';
|
|
5
|
-
import type { UnpatchedConsole } from '../unpatchedConsole';
|
|
6
|
-
import type { API } from './types';
|
|
7
|
-
export declare function initializeAPI(unpatchedConsole: UnpatchedConsole, internalLogger: InternalLogger, config: Config, metas: Metas, transports: Transports): API;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../../config';
|
|
2
|
-
import type { InternalLogger } from '../../internalLogger';
|
|
3
|
-
import type { Metas } from '../../metas';
|
|
4
|
-
import type { Transports } from '../../transports';
|
|
5
|
-
import type { UnpatchedConsole } from '../../unpatchedConsole';
|
|
6
|
-
import type { TracesAPI } from '../traces';
|
|
7
|
-
import type { UserActionsAPI } from '../userActions';
|
|
8
|
-
import type { LogsAPI } from './types';
|
|
9
|
-
export declare function initializeLogsAPI({ internalLogger, config, metas, transports, tracesApi, userActionsApi, }: {
|
|
10
|
-
unpatchedConsole: UnpatchedConsole;
|
|
11
|
-
internalLogger: InternalLogger;
|
|
12
|
-
config: Config;
|
|
13
|
-
metas: Metas;
|
|
14
|
-
transports: Transports;
|
|
15
|
-
tracesApi: TracesAPI;
|
|
16
|
-
userActionsApi: UserActionsAPI;
|
|
17
|
-
}): LogsAPI;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { SpanContext } from '@opentelemetry/api';
|
|
2
|
-
import type { LogLevel } from '../../utils';
|
|
3
|
-
import type { TraceContext } from '../traces';
|
|
4
|
-
import type { UserAction } from '../types';
|
|
5
|
-
export type LogContext = Record<string, string>;
|
|
6
|
-
export interface LogEvent {
|
|
7
|
-
context: LogContext | undefined;
|
|
8
|
-
level: LogLevel;
|
|
9
|
-
message: string;
|
|
10
|
-
timestamp: string;
|
|
11
|
-
trace?: TraceContext;
|
|
12
|
-
action?: UserAction;
|
|
13
|
-
}
|
|
14
|
-
export interface PushLogOptions {
|
|
15
|
-
context?: LogContext;
|
|
16
|
-
level?: LogLevel;
|
|
17
|
-
skipDedupe?: boolean;
|
|
18
|
-
spanContext?: Pick<SpanContext, 'traceId' | 'spanId'>;
|
|
19
|
-
timestampOverwriteMs?: number;
|
|
20
|
-
}
|
|
21
|
-
export interface LogsAPI {
|
|
22
|
-
pushLog: (args: unknown[], options?: PushLogOptions) => void;
|
|
23
|
-
}
|
|
24
|
-
export type LogArgsSerializer = (args: unknown[]) => string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../../config';
|
|
2
|
-
import type { InternalLogger } from '../../internalLogger';
|
|
3
|
-
import type { Metas } from '../../metas';
|
|
4
|
-
import type { Transports } from '../../transports';
|
|
5
|
-
import type { UnpatchedConsole } from '../../unpatchedConsole';
|
|
6
|
-
import type { TracesAPI } from '../traces';
|
|
7
|
-
import type { UserActionsAPI } from '../userActions';
|
|
8
|
-
import type { MeasurementsAPI } from './types';
|
|
9
|
-
export declare function initializeMeasurementsAPI({ internalLogger, config, metas, transports, tracesApi, userActionsApi, }: {
|
|
10
|
-
unpatchedConsole: UnpatchedConsole;
|
|
11
|
-
internalLogger: InternalLogger;
|
|
12
|
-
config: Config;
|
|
13
|
-
metas: Metas;
|
|
14
|
-
transports: Transports;
|
|
15
|
-
tracesApi: TracesAPI;
|
|
16
|
-
userActionsApi: UserActionsAPI;
|
|
17
|
-
}): MeasurementsAPI;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { SpanContext } from '@opentelemetry/api';
|
|
2
|
-
import type { TraceContext } from '../traces';
|
|
3
|
-
import type { UserAction } from '../types';
|
|
4
|
-
export type MeasurementContext = Record<string, string>;
|
|
5
|
-
export interface MeasurementEvent<V extends {
|
|
6
|
-
[label: string]: number;
|
|
7
|
-
} = {
|
|
8
|
-
[label: string]: number;
|
|
9
|
-
}> {
|
|
10
|
-
type: string;
|
|
11
|
-
values: V;
|
|
12
|
-
timestamp: string;
|
|
13
|
-
trace?: TraceContext;
|
|
14
|
-
context?: MeasurementContext;
|
|
15
|
-
action?: UserAction;
|
|
16
|
-
}
|
|
17
|
-
export interface PushMeasurementOptions {
|
|
18
|
-
skipDedupe?: boolean;
|
|
19
|
-
context?: MeasurementContext;
|
|
20
|
-
spanContext?: Pick<SpanContext, 'traceId' | 'spanId'>;
|
|
21
|
-
timestampOverwriteMs?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface MeasurementsAPI {
|
|
24
|
-
pushMeasurement: (payload: Omit<MeasurementEvent, 'timestamp'> & Partial<Pick<MeasurementEvent, 'timestamp'>>, options?: PushMeasurementOptions) => void;
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../../config';
|
|
2
|
-
import type { InternalLogger } from '../../internalLogger';
|
|
3
|
-
import type { Metas } from '../../metas';
|
|
4
|
-
import type { Transports } from '../../transports';
|
|
5
|
-
import type { UnpatchedConsole } from '../../unpatchedConsole';
|
|
6
|
-
import type { TracesAPI } from '../traces';
|
|
7
|
-
import type { MetaAPI } from './types';
|
|
8
|
-
export declare function initializeMetaAPI({ internalLogger, metas, }: {
|
|
9
|
-
unpatchedConsole: UnpatchedConsole;
|
|
10
|
-
internalLogger: InternalLogger;
|
|
11
|
-
config: Config;
|
|
12
|
-
metas: Metas;
|
|
13
|
-
transports: Transports;
|
|
14
|
-
tracesApi: TracesAPI;
|
|
15
|
-
}): MetaAPI;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { MetaOverrides, MetaPage, MetaSession, MetaUser, MetaView } from '../../metas';
|
|
2
|
-
type OverridesAvailableThroughApi = Pick<MetaOverrides, 'serviceName'>;
|
|
3
|
-
export interface MetaAPI {
|
|
4
|
-
setUser: (user?: MetaUser | undefined) => void;
|
|
5
|
-
resetUser: () => void;
|
|
6
|
-
setSession: (session?: MetaSession | undefined, options?: {
|
|
7
|
-
overrides: OverridesAvailableThroughApi;
|
|
8
|
-
}) => void;
|
|
9
|
-
resetSession: () => void;
|
|
10
|
-
getSession: () => MetaSession | undefined;
|
|
11
|
-
setView: (view?: MetaView | undefined, options?: {
|
|
12
|
-
overrides: OverridesAvailableThroughApi;
|
|
13
|
-
}) => void;
|
|
14
|
-
getView: () => MetaView | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* If a string is provided, it will be used as the page id.
|
|
17
|
-
*/
|
|
18
|
-
setPage: (page?: MetaPage | string | undefined) => void;
|
|
19
|
-
getPage: () => MetaPage | undefined;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../../config';
|
|
2
|
-
import type { InternalLogger } from '../../internalLogger';
|
|
3
|
-
import type { Metas } from '../../metas';
|
|
4
|
-
import type { Transports } from '../../transports/types';
|
|
5
|
-
import type { UnpatchedConsole } from '../../unpatchedConsole';
|
|
6
|
-
import type { TracesAPI } from './types';
|
|
7
|
-
export declare function initializeTracesAPI(_unpatchedConsole: UnpatchedConsole, internalLogger: InternalLogger, _config: Config, metas: Metas, transports: Transports): TracesAPI;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ContextAPI as OTELContextAPI, TraceAPI as OTELTraceAPI } from '@opentelemetry/api';
|
|
2
|
-
import type { IResourceSpans } from '@opentelemetry/otlp-transformer/build/src/trace/internal-types';
|
|
3
|
-
export interface TraceEvent {
|
|
4
|
-
resourceSpans?: IResourceSpans[];
|
|
5
|
-
}
|
|
6
|
-
export interface OTELApi {
|
|
7
|
-
trace: OTELTraceAPI;
|
|
8
|
-
context: OTELContextAPI;
|
|
9
|
-
}
|
|
10
|
-
export interface TracesAPI {
|
|
11
|
-
getOTEL: () => OTELApi | undefined;
|
|
12
|
-
getTraceContext: () => TraceContext | undefined;
|
|
13
|
-
initOTEL: (trace: OTELTraceAPI, context: OTELContextAPI) => void;
|
|
14
|
-
isOTELInitialized: () => boolean;
|
|
15
|
-
pushTraces: (traces: TraceEvent) => void;
|
|
16
|
-
}
|
|
17
|
-
export interface TraceContext {
|
|
18
|
-
trace_id: string;
|
|
19
|
-
span_id: string;
|
|
20
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { EventEvent, EventsAPI } from './events';
|
|
2
|
-
import type { ExceptionEvent, ExceptionsAPI } from './exceptions';
|
|
3
|
-
import type { LogEvent, LogsAPI } from './logs';
|
|
4
|
-
import type { MeasurementEvent, MeasurementsAPI } from './measurements';
|
|
5
|
-
import type { MetaAPI } from './meta';
|
|
6
|
-
import type { TraceEvent, TracesAPI } from './traces';
|
|
7
|
-
import type { UserActionsAPI } from './userActions';
|
|
8
|
-
export type UserAction = {
|
|
9
|
-
name: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
parentId?: string;
|
|
12
|
-
};
|
|
13
|
-
export type APIEvent = LogEvent | ExceptionEvent | MeasurementEvent | TraceEvent | EventEvent;
|
|
14
|
-
export type API = LogsAPI & ExceptionsAPI & MeasurementsAPI & TracesAPI & MetaAPI & EventsAPI & UserActionsAPI;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const userActionStartByApiCallEventName = "faroApiCall";
|
|
2
|
-
export declare const userActionStart = "user_action_start";
|
|
3
|
-
export declare const UserActionImportance: {
|
|
4
|
-
readonly Normal: "normal";
|
|
5
|
-
readonly Critical: "critical";
|
|
6
|
-
};
|
|
7
|
-
export type UserActionImportanceType = (typeof UserActionImportance)[keyof typeof UserActionImportance];
|
|
8
|
-
export declare const userActionEventName = "faro.user.action";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { UserActionImportance } from './const';
|
|
2
|
-
export { type UserActionImportance as UserActionImportanceType } from './const';
|
|
3
|
-
export { type UserActionsAPI, UserActionState, type UserActionInterface, type UserActionInternalInterface, } from './types';
|
|
4
|
-
export { initializeUserActionsAPI, userActionsMessageBus } from './initialize';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../../config';
|
|
2
|
-
import type { InternalLogger } from '../../internalLogger';
|
|
3
|
-
import type { TransportItem, Transports } from '../../transports';
|
|
4
|
-
import { Observable } from '../../utils/reactive';
|
|
5
|
-
import type { EventsAPI } from '../events/types';
|
|
6
|
-
import { type UserActionInterface, type UserActionsAPI } from './types';
|
|
7
|
-
export declare const userActionsMessageBus: Observable<import("./types").UserActionStart>;
|
|
8
|
-
export declare function initializeUserActionsAPI({ transports, internalLogger, config, pushEvent, }: {
|
|
9
|
-
transports: Transports;
|
|
10
|
-
config: Config;
|
|
11
|
-
internalLogger: InternalLogger;
|
|
12
|
-
pushEvent: EventsAPI['pushEvent'];
|
|
13
|
-
}): UserActionsAPI;
|
|
14
|
-
/**
|
|
15
|
-
* Adds an item to the buffer associated with the given UserAction.
|
|
16
|
-
* The item will only be added if the UserAction is in the Started state.
|
|
17
|
-
* @param userAction The UserAction instance
|
|
18
|
-
* @param item The item to add to the buffer
|
|
19
|
-
* @returns {boolean} True if the item was added, false otherwise
|
|
20
|
-
*/
|
|
21
|
-
export declare function addItemToUserActionBuffer(userAction: UserActionInterface | undefined, item: TransportItem): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { type TransportItem } from '../../transports';
|
|
2
|
-
import { type UserActionImportanceType, userActionStartByApiCallEventName } from './const';
|
|
3
|
-
export declare enum UserActionState {
|
|
4
|
-
Started = 0,
|
|
5
|
-
Halted = 1,
|
|
6
|
-
Cancelled = 2,
|
|
7
|
-
Ended = 3
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Public interface for the UserAction.
|
|
11
|
-
* This is the interface that is part of the public API.
|
|
12
|
-
*/
|
|
13
|
-
export interface UserActionInterface {
|
|
14
|
-
name: string;
|
|
15
|
-
parentId: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Internal interface for the UserAction.
|
|
19
|
-
* This interface is intended for internal use only and not guaranteed to be stable.
|
|
20
|
-
*/
|
|
21
|
-
export interface UserActionInternalInterface extends UserActionInterface {
|
|
22
|
-
halt(): void;
|
|
23
|
-
end(attributes?: Record<string, string>): void;
|
|
24
|
-
cancel(): void;
|
|
25
|
-
getState(): UserActionState;
|
|
26
|
-
}
|
|
27
|
-
export interface UserActionTransportItemBuffer {
|
|
28
|
-
addItem(item: TransportItem): boolean;
|
|
29
|
-
}
|
|
30
|
-
export type ApiUserActionEvent = {
|
|
31
|
-
name: string;
|
|
32
|
-
attributes?: Record<string, string>;
|
|
33
|
-
type: typeof userActionStartByApiCallEventName | string;
|
|
34
|
-
};
|
|
35
|
-
export type EndUserActionProps = {
|
|
36
|
-
userActionName: string;
|
|
37
|
-
startTime: number;
|
|
38
|
-
endTime: number;
|
|
39
|
-
actionId: string;
|
|
40
|
-
event: ApiUserActionEvent;
|
|
41
|
-
attributes?: Record<string, string>;
|
|
42
|
-
};
|
|
43
|
-
export type StartUserActionOptions = {
|
|
44
|
-
triggerName?: string;
|
|
45
|
-
importance?: UserActionImportanceType;
|
|
46
|
-
};
|
|
47
|
-
export interface UserActionsAPI {
|
|
48
|
-
startUserAction: (name: string, attributes?: Record<string, string>, options?: StartUserActionOptions) => UserActionInterface | undefined;
|
|
49
|
-
getActiveUserAction: () => UserActionInterface | undefined;
|
|
50
|
-
}
|
|
51
|
-
export type UserActionStart = {
|
|
52
|
-
type: 'user_action_start';
|
|
53
|
-
userAction: UserActionInterface;
|
|
54
|
-
};
|
|
55
|
-
export type UserActionMessage = UserActionStart;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type TransportItem, type Transports } from '../../transports';
|
|
2
|
-
import { Observable } from '../../utils';
|
|
3
|
-
import type { EventsAPI } from '../events/types';
|
|
4
|
-
import { type APIEvent } from '../types';
|
|
5
|
-
import { type UserActionImportanceType } from './const';
|
|
6
|
-
import { type UserActionInternalInterface, UserActionState, type UserActionTransportItemBuffer } from './types';
|
|
7
|
-
export default class UserAction extends Observable implements UserActionInternalInterface, UserActionTransportItemBuffer {
|
|
8
|
-
name: string;
|
|
9
|
-
id: string;
|
|
10
|
-
attributes?: Record<string, string>;
|
|
11
|
-
parentId: string;
|
|
12
|
-
trigger: string;
|
|
13
|
-
importance: UserActionImportanceType;
|
|
14
|
-
startTime?: number;
|
|
15
|
-
trackUserActionsExcludeItem?: (item: TransportItem<APIEvent>) => boolean;
|
|
16
|
-
private _state;
|
|
17
|
-
private _itemBuffer;
|
|
18
|
-
private _transports;
|
|
19
|
-
private _pushEvent;
|
|
20
|
-
constructor({ name, parentId, trigger, transports, attributes, trackUserActionsExcludeItem, importance, pushEvent, }: {
|
|
21
|
-
name: string;
|
|
22
|
-
transports: Transports;
|
|
23
|
-
parentId?: string;
|
|
24
|
-
trigger: string;
|
|
25
|
-
attributes?: Record<string, string>;
|
|
26
|
-
trackUserActionsExcludeItem?: (item: TransportItem<APIEvent>) => boolean;
|
|
27
|
-
importance?: UserActionImportanceType;
|
|
28
|
-
pushEvent: EventsAPI['pushEvent'];
|
|
29
|
-
});
|
|
30
|
-
addItem(item: TransportItem): boolean;
|
|
31
|
-
private _start;
|
|
32
|
-
halt(): void;
|
|
33
|
-
cancel(): void;
|
|
34
|
-
end(): void;
|
|
35
|
-
getState(): UserActionState;
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|