@grafana/faro-core 1.0.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +282 -0
- package/dist/cjs/api/events/index.d.ts +2 -0
- package/dist/cjs/api/events/index.js +6 -0
- package/dist/cjs/api/events/index.js.map +1 -0
- package/dist/cjs/api/events/initialize.d.ts +7 -0
- package/dist/cjs/api/events/initialize.js +44 -0
- package/dist/cjs/api/events/initialize.js.map +1 -0
- package/dist/cjs/api/events/initialize.test.d.ts +1 -0
- package/dist/cjs/api/events/initialize.test.js +92 -0
- package/dist/cjs/api/events/initialize.test.js.map +1 -0
- package/dist/cjs/api/events/types.d.ts +15 -0
- package/dist/cjs/api/events/types.js +3 -0
- package/dist/cjs/api/events/types.js.map +1 -0
- package/dist/cjs/api/exceptions/const.d.ts +1 -0
- package/dist/cjs/api/exceptions/const.js +5 -0
- package/dist/cjs/api/exceptions/const.js.map +1 -0
- package/dist/cjs/api/exceptions/index.d.ts +3 -0
- package/dist/cjs/api/exceptions/index.js +8 -0
- package/dist/cjs/api/exceptions/index.js.map +1 -0
- package/dist/cjs/api/exceptions/initialize.d.ts +7 -0
- package/dist/cjs/api/exceptions/initialize.js +58 -0
- package/dist/cjs/api/exceptions/initialize.js.map +1 -0
- package/dist/cjs/api/exceptions/initialize.test.d.ts +1 -0
- package/dist/cjs/api/exceptions/initialize.test.js +138 -0
- package/dist/cjs/api/exceptions/initialize.test.js.map +1 -0
- package/dist/cjs/api/exceptions/types.d.ts +32 -0
- package/dist/cjs/api/exceptions/types.js +3 -0
- package/dist/cjs/api/exceptions/types.js.map +1 -0
- package/dist/cjs/api/index.d.ts +9 -0
- package/dist/cjs/api/index.js +8 -0
- package/dist/cjs/api/index.js.map +1 -0
- package/dist/cjs/api/initialize.d.ts +6 -0
- package/dist/cjs/api/initialize.js +27 -0
- package/dist/cjs/api/initialize.js.map +1 -0
- package/dist/cjs/api/logs/index.d.ts +2 -0
- package/dist/cjs/api/logs/index.js +6 -0
- package/dist/cjs/api/logs/index.js.map +1 -0
- package/dist/cjs/api/logs/initialize.d.ts +7 -0
- package/dist/cjs/api/logs/initialize.js +54 -0
- package/dist/cjs/api/logs/initialize.js.map +1 -0
- package/dist/cjs/api/logs/initialize.test.d.ts +1 -0
- package/dist/cjs/api/logs/initialize.test.js +88 -0
- package/dist/cjs/api/logs/initialize.test.js.map +1 -0
- package/dist/cjs/api/logs/types.d.ts +18 -0
- package/dist/cjs/api/logs/types.js +3 -0
- package/dist/cjs/api/logs/types.js.map +1 -0
- package/dist/cjs/api/measurements/index.d.ts +2 -0
- package/dist/cjs/api/measurements/index.js +6 -0
- package/dist/cjs/api/measurements/index.js.map +1 -0
- package/dist/cjs/api/measurements/initialize.d.ts +7 -0
- package/dist/cjs/api/measurements/initialize.js +49 -0
- package/dist/cjs/api/measurements/initialize.js.map +1 -0
- package/dist/cjs/api/measurements/initialize.test.d.ts +1 -0
- package/dist/cjs/api/measurements/initialize.test.js +123 -0
- package/dist/cjs/api/measurements/initialize.test.js.map +1 -0
- package/dist/cjs/api/measurements/types.d.ts +16 -0
- package/dist/cjs/api/measurements/types.js +3 -0
- package/dist/cjs/api/measurements/types.js.map +1 -0
- package/dist/cjs/api/meta/index.d.ts +2 -0
- package/dist/cjs/api/meta/index.js +6 -0
- package/dist/cjs/api/meta/index.js.map +1 -0
- package/dist/cjs/api/meta/initialize.d.ts +6 -0
- package/dist/cjs/api/meta/initialize.js +36 -0
- package/dist/cjs/api/meta/initialize.js.map +1 -0
- package/dist/cjs/api/meta/types.d.ts +8 -0
- package/dist/cjs/api/meta/types.js +3 -0
- package/dist/cjs/api/meta/types.js.map +1 -0
- package/dist/cjs/api/traces/index.d.ts +2 -0
- package/dist/cjs/api/traces/index.js +6 -0
- package/dist/cjs/api/traces/index.js.map +1 -0
- package/dist/cjs/api/traces/initialize.d.ts +6 -0
- package/dist/cjs/api/traces/initialize.js +49 -0
- package/dist/cjs/api/traces/initialize.js.map +1 -0
- package/dist/cjs/api/traces/types.d.ts +26 -0
- package/dist/cjs/api/traces/types.js +3 -0
- package/dist/cjs/api/traces/types.js.map +1 -0
- package/dist/cjs/api/types.d.ts +8 -0
- package/dist/cjs/api/types.js +3 -0
- package/dist/cjs/api/types.js.map +1 -0
- package/dist/cjs/config/const.d.ts +1 -0
- package/dist/cjs/config/const.js +5 -0
- package/dist/cjs/config/const.js.map +1 -0
- package/dist/cjs/config/index.d.ts +2 -0
- package/dist/cjs/config/index.js +6 -0
- package/dist/cjs/config/index.js.map +1 -0
- package/dist/cjs/config/types.d.ts +26 -0
- package/dist/cjs/config/types.js +3 -0
- package/dist/cjs/config/types.js.map +1 -0
- package/dist/cjs/faro.test.d.ts +1 -0
- package/dist/cjs/faro.test.js +42 -0
- package/dist/cjs/faro.test.js.map +1 -0
- package/dist/cjs/globalObject/globalObject.d.ts +7 -0
- package/dist/cjs/globalObject/globalObject.js +6 -0
- package/dist/cjs/globalObject/globalObject.js.map +1 -0
- package/dist/cjs/globalObject/index.d.ts +2 -0
- package/dist/cjs/globalObject/index.js +6 -0
- package/dist/cjs/globalObject/index.js.map +1 -0
- package/dist/cjs/index.d.ts +22 -0
- package/dist/cjs/index.js +74 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/initialize.d.ts +3 -0
- package/dist/cjs/initialize.js +42 -0
- package/dist/cjs/initialize.js.map +1 -0
- package/dist/cjs/instrumentations/base.d.ts +5 -0
- package/dist/cjs/instrumentations/base.js +28 -0
- package/dist/cjs/instrumentations/base.js.map +1 -0
- package/dist/cjs/instrumentations/index.d.ts +3 -0
- package/dist/cjs/instrumentations/index.js +8 -0
- package/dist/cjs/instrumentations/index.js.map +1 -0
- package/dist/cjs/instrumentations/initialize.d.ts +4 -0
- package/dist/cjs/instrumentations/initialize.js +65 -0
- package/dist/cjs/instrumentations/initialize.js.map +1 -0
- package/dist/cjs/instrumentations/types.d.ts +10 -0
- package/dist/cjs/instrumentations/types.js +3 -0
- package/dist/cjs/instrumentations/types.js.map +1 -0
- package/dist/cjs/internalLogger/const.d.ts +11 -0
- package/dist/cjs/internalLogger/const.js +22 -0
- package/dist/cjs/internalLogger/const.js.map +1 -0
- package/dist/cjs/internalLogger/createInternalLogger.d.ts +4 -0
- package/dist/cjs/internalLogger/createInternalLogger.js +65 -0
- package/dist/cjs/internalLogger/createInternalLogger.js.map +1 -0
- package/dist/cjs/internalLogger/index.d.ts +4 -0
- package/dist/cjs/internalLogger/index.js +12 -0
- package/dist/cjs/internalLogger/index.js.map +1 -0
- package/dist/cjs/internalLogger/initialize.d.ts +5 -0
- package/dist/cjs/internalLogger/initialize.js +12 -0
- package/dist/cjs/internalLogger/initialize.js.map +1 -0
- package/dist/cjs/internalLogger/types.d.ts +7 -0
- package/dist/cjs/internalLogger/types.js +3 -0
- package/dist/cjs/internalLogger/types.js.map +1 -0
- package/dist/cjs/metas/index.d.ts +2 -0
- package/dist/cjs/metas/index.js +6 -0
- package/dist/cjs/metas/index.js.map +1 -0
- package/dist/cjs/metas/initialize.d.ts +4 -0
- package/dist/cjs/metas/initialize.js +78 -0
- package/dist/cjs/metas/initialize.js.map +1 -0
- package/dist/cjs/metas/initialize.test.d.ts +1 -0
- package/dist/cjs/metas/initialize.test.js +21 -0
- package/dist/cjs/metas/initialize.test.js.map +1 -0
- package/dist/cjs/metas/types.d.ts +56 -0
- package/dist/cjs/metas/types.js +3 -0
- package/dist/cjs/metas/types.js.map +1 -0
- package/dist/cjs/sdk/const.d.ts +1 -0
- package/dist/cjs/sdk/const.js +5 -0
- package/dist/cjs/sdk/const.js.map +1 -0
- package/dist/cjs/sdk/faroGlobalObject.d.ts +2 -0
- package/dist/cjs/sdk/faroGlobalObject.js +23 -0
- package/dist/cjs/sdk/faroGlobalObject.js.map +1 -0
- package/dist/cjs/sdk/index.d.ts +4 -0
- package/dist/cjs/sdk/index.js +13 -0
- package/dist/cjs/sdk/index.js.map +1 -0
- package/dist/cjs/sdk/internalFaroGlobalObject.d.ts +4 -0
- package/dist/cjs/sdk/internalFaroGlobalObject.js +29 -0
- package/dist/cjs/sdk/internalFaroGlobalObject.js.map +1 -0
- package/dist/cjs/sdk/register.d.ts +4 -0
- package/dist/cjs/sdk/register.js +15 -0
- package/dist/cjs/sdk/register.js.map +1 -0
- package/dist/cjs/sdk/types.d.ts +18 -0
- package/dist/cjs/sdk/types.js +3 -0
- package/dist/cjs/sdk/types.js.map +1 -0
- package/dist/cjs/semantic.d.ts +7 -0
- package/dist/cjs/semantic.js +11 -0
- package/dist/cjs/semantic.js.map +1 -0
- package/dist/cjs/testUtils/index.d.ts +6 -0
- package/dist/cjs/testUtils/index.js +14 -0
- package/dist/cjs/testUtils/index.js.map +1 -0
- package/dist/cjs/testUtils/mockConfig.d.ts +2 -0
- package/dist/cjs/testUtils/mockConfig.js +25 -0
- package/dist/cjs/testUtils/mockConfig.js.map +1 -0
- package/dist/cjs/testUtils/mockInternalLogger.d.ts +2 -0
- package/dist/cjs/testUtils/mockInternalLogger.js +12 -0
- package/dist/cjs/testUtils/mockInternalLogger.js.map +1 -0
- package/dist/cjs/testUtils/mockStacktraceParser.d.ts +2 -0
- package/dist/cjs/testUtils/mockStacktraceParser.js +21 -0
- package/dist/cjs/testUtils/mockStacktraceParser.js.map +1 -0
- package/dist/cjs/testUtils/mockTransport.d.ts +12 -0
- package/dist/cjs/testUtils/mockTransport.js +41 -0
- package/dist/cjs/testUtils/mockTransport.js.map +1 -0
- package/dist/cjs/testUtils/testPromise.d.ts +7 -0
- package/dist/cjs/testUtils/testPromise.js +15 -0
- package/dist/cjs/testUtils/testPromise.js.map +1 -0
- package/dist/cjs/transports/base.d.ts +6 -0
- package/dist/cjs/transports/base.js +31 -0
- package/dist/cjs/transports/base.js.map +1 -0
- package/dist/cjs/transports/const.d.ts +8 -0
- package/dist/cjs/transports/const.js +20 -0
- package/dist/cjs/transports/const.js.map +1 -0
- package/dist/cjs/transports/index.d.ts +5 -0
- package/dist/cjs/transports/index.js +13 -0
- package/dist/cjs/transports/index.js.map +1 -0
- package/dist/cjs/transports/initialize.d.ts +6 -0
- package/dist/cjs/transports/initialize.js +155 -0
- package/dist/cjs/transports/initialize.js.map +1 -0
- package/dist/cjs/transports/transports.test.d.ts +1 -0
- package/dist/cjs/transports/transports.test.js +122 -0
- package/dist/cjs/transports/transports.test.js.map +1 -0
- package/dist/cjs/transports/types.d.ts +37 -0
- package/dist/cjs/transports/types.js +3 -0
- package/dist/cjs/transports/types.js.map +1 -0
- package/dist/cjs/transports/utils.d.ts +2 -0
- package/dist/cjs/transports/utils.js +13 -0
- package/dist/cjs/transports/utils.js.map +1 -0
- package/dist/cjs/unpatchedConsole/const.d.ts +2 -0
- package/dist/cjs/unpatchedConsole/const.js +16 -0
- package/dist/cjs/unpatchedConsole/const.js.map +1 -0
- package/dist/cjs/unpatchedConsole/index.d.ts +3 -0
- package/dist/cjs/unpatchedConsole/index.js +9 -0
- package/dist/cjs/unpatchedConsole/index.js.map +1 -0
- package/dist/cjs/unpatchedConsole/initialize.d.ts +4 -0
- package/dist/cjs/unpatchedConsole/initialize.js +12 -0
- package/dist/cjs/unpatchedConsole/initialize.js.map +1 -0
- package/dist/cjs/unpatchedConsole/types.d.ts +1 -0
- package/dist/cjs/unpatchedConsole/types.js +3 -0
- package/dist/cjs/unpatchedConsole/types.js.map +1 -0
- package/dist/cjs/utils/baseObject.d.ts +6 -0
- package/dist/cjs/utils/baseObject.js +3 -0
- package/dist/cjs/utils/baseObject.js.map +1 -0
- package/dist/cjs/utils/deepEqual.d.ts +2 -0
- package/dist/cjs/utils/deepEqual.js +9 -0
- package/dist/cjs/utils/deepEqual.js.map +1 -0
- package/dist/cjs/utils/extensions.d.ts +19 -0
- package/dist/cjs/utils/extensions.js +59 -0
- package/dist/cjs/utils/extensions.js.map +1 -0
- package/dist/cjs/utils/getCurrentTimestamp.d.ts +1 -0
- package/dist/cjs/utils/getCurrentTimestamp.js +8 -0
- package/dist/cjs/utils/getCurrentTimestamp.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +12 -0
- package/dist/cjs/utils/index.js +49 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/is.d.ts +31 -0
- package/dist/cjs/utils/is.js +53 -0
- package/dist/cjs/utils/is.js.map +1 -0
- package/dist/cjs/utils/logLevels.d.ts +10 -0
- package/dist/cjs/utils/logLevels.js +22 -0
- package/dist/cjs/utils/logLevels.js.map +1 -0
- package/dist/cjs/utils/noop.d.ts +1 -0
- package/dist/cjs/utils/noop.js +6 -0
- package/dist/cjs/utils/noop.js.map +1 -0
- package/dist/cjs/utils/promiseBuffer.d.ts +14 -0
- package/dist/cjs/utils/promiseBuffer.js +43 -0
- package/dist/cjs/utils/promiseBuffer.js.map +1 -0
- package/dist/cjs/utils/promiseBuffer.test.d.ts +1 -0
- package/dist/cjs/utils/promiseBuffer.test.js +146 -0
- package/dist/cjs/utils/promiseBuffer.test.js.map +1 -0
- package/dist/cjs/utils/shortId.d.ts +1 -0
- package/dist/cjs/utils/shortId.js +12 -0
- package/dist/cjs/utils/shortId.js.map +1 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +6 -0
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/api/events/index.d.ts +2 -0
- package/dist/esm/api/events/index.js +2 -0
- package/dist/esm/api/events/index.js.map +1 -0
- package/dist/esm/api/events/initialize.d.ts +7 -0
- package/dist/esm/api/events/initialize.js +39 -0
- package/dist/esm/api/events/initialize.js.map +1 -0
- package/dist/esm/api/events/initialize.test.d.ts +1 -0
- package/dist/esm/api/events/initialize.test.js +87 -0
- package/dist/esm/api/events/initialize.test.js.map +1 -0
- package/dist/esm/api/events/types.d.ts +15 -0
- package/dist/esm/api/events/types.js +2 -0
- package/dist/esm/api/events/types.js.map +1 -0
- package/dist/esm/api/exceptions/const.d.ts +1 -0
- package/dist/esm/api/exceptions/const.js +2 -0
- package/dist/esm/api/exceptions/const.js.map +1 -0
- package/dist/esm/api/exceptions/index.d.ts +3 -0
- package/dist/esm/api/exceptions/index.js +3 -0
- package/dist/esm/api/exceptions/index.js.map +1 -0
- package/dist/esm/api/exceptions/initialize.d.ts +7 -0
- package/dist/esm/api/exceptions/initialize.js +53 -0
- package/dist/esm/api/exceptions/initialize.js.map +1 -0
- package/dist/esm/api/exceptions/initialize.test.d.ts +1 -0
- package/dist/esm/api/exceptions/initialize.test.js +133 -0
- package/dist/esm/api/exceptions/initialize.test.js.map +1 -0
- package/dist/esm/api/exceptions/types.d.ts +32 -0
- package/dist/esm/api/exceptions/types.js +2 -0
- package/dist/esm/api/exceptions/types.js.map +1 -0
- package/dist/esm/api/index.d.ts +9 -0
- package/dist/esm/api/index.js +3 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/initialize.d.ts +6 -0
- package/dist/esm/api/initialize.js +12 -0
- package/dist/esm/api/initialize.js.map +1 -0
- package/dist/esm/api/logs/index.d.ts +2 -0
- package/dist/esm/api/logs/index.js +2 -0
- package/dist/esm/api/logs/index.js.map +1 -0
- package/dist/esm/api/logs/initialize.d.ts +7 -0
- package/dist/esm/api/logs/initialize.js +49 -0
- package/dist/esm/api/logs/initialize.js.map +1 -0
- package/dist/esm/api/logs/initialize.test.d.ts +1 -0
- package/dist/esm/api/logs/initialize.test.js +83 -0
- package/dist/esm/api/logs/initialize.test.js.map +1 -0
- package/dist/esm/api/logs/types.d.ts +18 -0
- package/dist/esm/api/logs/types.js +2 -0
- package/dist/esm/api/logs/types.js.map +1 -0
- package/dist/esm/api/measurements/index.d.ts +2 -0
- package/dist/esm/api/measurements/index.js +2 -0
- package/dist/esm/api/measurements/index.js.map +1 -0
- package/dist/esm/api/measurements/initialize.d.ts +7 -0
- package/dist/esm/api/measurements/initialize.js +33 -0
- package/dist/esm/api/measurements/initialize.js.map +1 -0
- package/dist/esm/api/measurements/initialize.test.d.ts +1 -0
- package/dist/esm/api/measurements/initialize.test.js +107 -0
- package/dist/esm/api/measurements/initialize.test.js.map +1 -0
- package/dist/esm/api/measurements/types.d.ts +16 -0
- package/dist/esm/api/measurements/types.js +2 -0
- package/dist/esm/api/measurements/types.js.map +1 -0
- package/dist/esm/api/meta/index.d.ts +2 -0
- package/dist/esm/api/meta/index.js +2 -0
- package/dist/esm/api/meta/index.js.map +1 -0
- package/dist/esm/api/meta/initialize.d.ts +6 -0
- package/dist/esm/api/meta/initialize.js +32 -0
- package/dist/esm/api/meta/initialize.js.map +1 -0
- package/dist/esm/api/meta/types.d.ts +8 -0
- package/dist/esm/api/meta/types.js +2 -0
- package/dist/esm/api/meta/types.js.map +1 -0
- package/dist/esm/api/traces/index.d.ts +2 -0
- package/dist/esm/api/traces/index.js +2 -0
- package/dist/esm/api/traces/index.js.map +1 -0
- package/dist/esm/api/traces/initialize.d.ts +6 -0
- package/dist/esm/api/traces/initialize.js +45 -0
- package/dist/esm/api/traces/initialize.js.map +1 -0
- package/dist/esm/api/traces/types.d.ts +26 -0
- package/dist/esm/api/traces/types.js +2 -0
- package/dist/esm/api/traces/types.js.map +1 -0
- package/dist/esm/api/types.d.ts +8 -0
- package/dist/esm/api/types.js +2 -0
- package/dist/esm/api/types.js.map +1 -0
- package/dist/esm/config/const.d.ts +1 -0
- package/dist/esm/config/const.js +2 -0
- package/dist/esm/config/const.js.map +1 -0
- package/dist/esm/config/index.d.ts +2 -0
- package/dist/esm/config/index.js +2 -0
- package/dist/esm/config/index.js.map +1 -0
- package/dist/esm/config/types.d.ts +26 -0
- package/dist/esm/config/types.js +2 -0
- package/dist/esm/config/types.js.map +1 -0
- package/dist/esm/faro.test.d.ts +1 -0
- package/dist/esm/faro.test.js +40 -0
- package/dist/esm/faro.test.js.map +1 -0
- package/dist/esm/globalObject/globalObject.d.ts +7 -0
- package/dist/esm/globalObject/globalObject.js +3 -0
- package/dist/esm/globalObject/globalObject.js.map +1 -0
- package/dist/esm/globalObject/index.d.ts +2 -0
- package/dist/esm/globalObject/index.js +2 -0
- package/dist/esm/globalObject/index.js.map +1 -0
- package/dist/esm/index.d.ts +22 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/initialize.d.ts +3 -0
- package/dist/esm/initialize.js +37 -0
- package/dist/esm/initialize.js.map +1 -0
- package/dist/esm/instrumentations/base.d.ts +5 -0
- package/dist/esm/instrumentations/base.js +4 -0
- package/dist/esm/instrumentations/base.js.map +1 -0
- package/dist/esm/instrumentations/index.d.ts +3 -0
- package/dist/esm/instrumentations/index.js +3 -0
- package/dist/esm/instrumentations/index.js.map +1 -0
- package/dist/esm/instrumentations/initialize.d.ts +4 -0
- package/dist/esm/instrumentations/initialize.js +44 -0
- package/dist/esm/instrumentations/initialize.js.map +1 -0
- package/dist/esm/instrumentations/types.d.ts +10 -0
- package/dist/esm/instrumentations/types.js +2 -0
- package/dist/esm/instrumentations/types.js.map +1 -0
- package/dist/esm/internalLogger/const.d.ts +11 -0
- package/dist/esm/internalLogger/const.js +19 -0
- package/dist/esm/internalLogger/const.js.map +1 -0
- package/dist/esm/internalLogger/createInternalLogger.d.ts +4 -0
- package/dist/esm/internalLogger/createInternalLogger.js +34 -0
- package/dist/esm/internalLogger/createInternalLogger.js.map +1 -0
- package/dist/esm/internalLogger/index.d.ts +4 -0
- package/dist/esm/internalLogger/index.js +4 -0
- package/dist/esm/internalLogger/index.js.map +1 -0
- package/dist/esm/internalLogger/initialize.d.ts +5 -0
- package/dist/esm/internalLogger/initialize.js +8 -0
- package/dist/esm/internalLogger/initialize.js.map +1 -0
- package/dist/esm/internalLogger/types.d.ts +7 -0
- package/dist/esm/internalLogger/types.js +2 -0
- package/dist/esm/internalLogger/types.js.map +1 -0
- package/dist/esm/metas/index.d.ts +2 -0
- package/dist/esm/metas/index.js +2 -0
- package/dist/esm/metas/index.js.map +1 -0
- package/dist/esm/metas/initialize.d.ts +4 -0
- package/dist/esm/metas/initialize.js +54 -0
- package/dist/esm/metas/initialize.js.map +1 -0
- package/dist/esm/metas/initialize.test.d.ts +1 -0
- package/dist/esm/metas/initialize.test.js +19 -0
- package/dist/esm/metas/initialize.test.js.map +1 -0
- package/dist/esm/metas/types.d.ts +56 -0
- package/dist/esm/metas/types.js +2 -0
- package/dist/esm/metas/types.js.map +1 -0
- package/dist/esm/sdk/const.d.ts +1 -0
- package/dist/esm/sdk/const.js +2 -0
- package/dist/esm/sdk/const.js.map +1 -0
- package/dist/esm/sdk/faroGlobalObject.d.ts +2 -0
- package/dist/esm/sdk/faroGlobalObject.js +19 -0
- package/dist/esm/sdk/faroGlobalObject.js.map +1 -0
- package/dist/esm/sdk/index.d.ts +4 -0
- package/dist/esm/sdk/index.js +4 -0
- package/dist/esm/sdk/index.js.map +1 -0
- package/dist/esm/sdk/internalFaroGlobalObject.d.ts +4 -0
- package/dist/esm/sdk/internalFaroGlobalObject.js +23 -0
- package/dist/esm/sdk/internalFaroGlobalObject.js.map +1 -0
- package/dist/esm/sdk/register.d.ts +4 -0
- package/dist/esm/sdk/register.js +11 -0
- package/dist/esm/sdk/register.js.map +1 -0
- package/dist/esm/sdk/types.d.ts +18 -0
- package/dist/esm/sdk/types.js +2 -0
- package/dist/esm/sdk/types.js.map +1 -0
- package/dist/esm/semantic.d.ts +7 -0
- package/dist/esm/semantic.js +8 -0
- package/dist/esm/semantic.js.map +1 -0
- package/dist/esm/testUtils/index.d.ts +6 -0
- package/dist/esm/testUtils/index.js +6 -0
- package/dist/esm/testUtils/index.js.map +1 -0
- package/dist/esm/testUtils/mockConfig.d.ts +2 -0
- package/dist/esm/testUtils/mockConfig.js +9 -0
- package/dist/esm/testUtils/mockConfig.js.map +1 -0
- package/dist/esm/testUtils/mockInternalLogger.d.ts +2 -0
- package/dist/esm/testUtils/mockInternalLogger.js +9 -0
- package/dist/esm/testUtils/mockInternalLogger.js.map +1 -0
- package/dist/esm/testUtils/mockStacktraceParser.d.ts +2 -0
- package/dist/esm/testUtils/mockStacktraceParser.js +17 -0
- package/dist/esm/testUtils/mockStacktraceParser.js.map +1 -0
- package/dist/esm/testUtils/mockTransport.d.ts +12 -0
- package/dist/esm/testUtils/mockTransport.js +18 -0
- package/dist/esm/testUtils/mockTransport.js.map +1 -0
- package/dist/esm/testUtils/testPromise.d.ts +7 -0
- package/dist/esm/testUtils/testPromise.js +11 -0
- package/dist/esm/testUtils/testPromise.js.map +1 -0
- package/dist/esm/transports/base.d.ts +6 -0
- package/dist/esm/transports/base.js +7 -0
- package/dist/esm/transports/base.js.map +1 -0
- package/dist/esm/transports/const.d.ts +8 -0
- package/dist/esm/transports/const.js +16 -0
- package/dist/esm/transports/const.js.map +1 -0
- package/dist/esm/transports/index.d.ts +5 -0
- package/dist/esm/transports/index.js +5 -0
- package/dist/esm/transports/index.js.map +1 -0
- package/dist/esm/transports/initialize.d.ts +6 -0
- package/dist/esm/transports/initialize.js +118 -0
- package/dist/esm/transports/initialize.js.map +1 -0
- package/dist/esm/transports/transports.test.d.ts +1 -0
- package/dist/esm/transports/transports.test.js +91 -0
- package/dist/esm/transports/transports.test.js.map +1 -0
- package/dist/esm/transports/types.d.ts +37 -0
- package/dist/esm/transports/types.js +2 -0
- package/dist/esm/transports/types.js.map +1 -0
- package/dist/esm/transports/utils.d.ts +2 -0
- package/dist/esm/transports/utils.js +8 -0
- package/dist/esm/transports/utils.js.map +1 -0
- package/dist/esm/unpatchedConsole/const.d.ts +2 -0
- package/dist/esm/unpatchedConsole/const.js +2 -0
- package/dist/esm/unpatchedConsole/const.js.map +1 -0
- package/dist/esm/unpatchedConsole/index.d.ts +3 -0
- package/dist/esm/unpatchedConsole/index.js +3 -0
- package/dist/esm/unpatchedConsole/index.js.map +1 -0
- package/dist/esm/unpatchedConsole/initialize.d.ts +4 -0
- package/dist/esm/unpatchedConsole/initialize.js +8 -0
- package/dist/esm/unpatchedConsole/initialize.js.map +1 -0
- package/dist/esm/unpatchedConsole/types.d.ts +1 -0
- package/dist/esm/unpatchedConsole/types.js +2 -0
- package/dist/esm/unpatchedConsole/types.js.map +1 -0
- package/dist/esm/utils/baseObject.d.ts +6 -0
- package/dist/esm/utils/baseObject.js +2 -0
- package/dist/esm/utils/baseObject.js.map +1 -0
- package/dist/esm/utils/deepEqual.d.ts +2 -0
- package/dist/esm/utils/deepEqual.js +3 -0
- package/dist/esm/utils/deepEqual.js.map +1 -0
- package/dist/esm/utils/extensions.d.ts +19 -0
- package/dist/esm/utils/extensions.js +23 -0
- package/dist/esm/utils/extensions.js.map +1 -0
- package/dist/esm/utils/getCurrentTimestamp.d.ts +1 -0
- package/dist/esm/utils/getCurrentTimestamp.js +4 -0
- package/dist/esm/utils/getCurrentTimestamp.js.map +1 -0
- package/dist/esm/utils/index.d.ts +12 -0
- package/dist/esm/utils/index.js +9 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/is.d.ts +31 -0
- package/dist/esm/utils/is.js +43 -0
- package/dist/esm/utils/is.js.map +1 -0
- package/dist/esm/utils/logLevels.d.ts +10 -0
- package/dist/esm/utils/logLevels.js +19 -0
- package/dist/esm/utils/logLevels.js.map +1 -0
- package/dist/esm/utils/noop.d.ts +1 -0
- package/dist/esm/utils/noop.js +2 -0
- package/dist/esm/utils/noop.js.map +1 -0
- package/dist/esm/utils/promiseBuffer.d.ts +14 -0
- package/dist/esm/utils/promiseBuffer.js +39 -0
- package/dist/esm/utils/promiseBuffer.js.map +1 -0
- package/dist/esm/utils/promiseBuffer.test.d.ts +1 -0
- package/dist/esm/utils/promiseBuffer.test.js +87 -0
- package/dist/esm/utils/promiseBuffer.test.js.map +1 -0
- package/dist/esm/utils/shortId.d.ts +1 -0
- package/dist/esm/utils/shortId.js +7 -0
- package/dist/esm/utils/shortId.js.map +1 -0
- package/dist/esm/version.d.ts +1 -0
- package/dist/esm/version.js +3 -0
- package/dist/esm/version.js.map +1 -0
- package/package.json +47 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# @grafana/faro-core
|
|
2
|
+
|
|
3
|
+
Core package of Faro.
|
|
4
|
+
|
|
5
|
+
_Warning_: currently pre-release and subject to frequent breaking changes. Use at your own risk.
|
|
6
|
+
|
|
7
|
+
The entire architecture of the library is contained within this package. Out of the box, it doesn't collect any metrics,
|
|
8
|
+
logs etc. but it offers an API to capture them.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import { initializeFaro } from '@grafana/faro-core';
|
|
14
|
+
|
|
15
|
+
initializeFaro({
|
|
16
|
+
// ...
|
|
17
|
+
});
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Options
|
|
21
|
+
|
|
22
|
+
Faro Web SDK requires a configuration object parameter with the following properties:
|
|
23
|
+
|
|
24
|
+
| Property | Description | Type | Default Value Variable |
|
|
25
|
+
| ----------------------- | ---------------------------------------------------------------------------------------- | --------------------- | -------------------------------------------------------- |
|
|
26
|
+
| `app` | Application metadata | `App` | |
|
|
27
|
+
| `dedupe` | A flag for toggling deduplication filter | `boolean` | |
|
|
28
|
+
| `globalObjectKey` | String that should be used when defining the Faro instance property on the global object | `string` | `defaultGlobalObjectKey = 'faro'` |
|
|
29
|
+
| `instrumentations` | Array of instrumentations that should be ran | `Instrumentation[]` | |
|
|
30
|
+
| `internalLoggerLevel` | The level of information printed to console for internal messages | `InternalLoggerLevel` | `defaultInternalLoggerLevel = InternalLoggerLevel.ERROR` |
|
|
31
|
+
| `isolate` | A flag that will create an isolated Faro instance | `boolean` | |
|
|
32
|
+
| `metas` | Array of metas that should be logged | `MetaItem[]` | |
|
|
33
|
+
| `parseStacktrace` | A function used to parse stack traces | `StacktraceParser` | |
|
|
34
|
+
| `paused` | Flag for initializing the Faro instance as paused | `boolean` | |
|
|
35
|
+
| `preventGlobalExposure` | Flag for toggling the definition on the global object | `boolean` | |
|
|
36
|
+
| `transports` | Array of transports that should be used | `Transport[]` | |
|
|
37
|
+
|
|
38
|
+
Besides the mandatory properties, Faro configuration also supports the following optional properties:
|
|
39
|
+
|
|
40
|
+
| Property | Description | Type | Default Value |
|
|
41
|
+
| -------------- | -------------------------------------------------------------------------------------- | ---------------- | ------------- |
|
|
42
|
+
| `beforeSend` | Hook invoked before pushing event to transport. Can be used to modify or filter events | `BeforeSendHook` | `undefined` |
|
|
43
|
+
| `eventDomain` | event.domain attribute of an event, to be set on every event item as default | `string` | `undefined` |
|
|
44
|
+
| `ignoreErrors` | Error message patterns for errors that should be ignored | `Patterns` | `[]` |
|
|
45
|
+
| `session` | Session metadata | `Session` | `undefined` |
|
|
46
|
+
| `user` | User metadata | `User` | `undefined` |
|
|
47
|
+
|
|
48
|
+
## Faro instance
|
|
49
|
+
|
|
50
|
+
Faro instance is an object which can be accessed by either importing it from the package or by referencing it from the
|
|
51
|
+
global object (`window` in browsers and `global` in Node.js).
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
// Browser/Node.js
|
|
55
|
+
import { faro } from '@grafana/faro-core';
|
|
56
|
+
|
|
57
|
+
faro.api.pushLog(/* ... */);
|
|
58
|
+
|
|
59
|
+
// Browser
|
|
60
|
+
window.faro.api.pushLog(/* ... */);
|
|
61
|
+
|
|
62
|
+
// Node.js
|
|
63
|
+
global.faro.api.pushLog(/* ... */);
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## API
|
|
67
|
+
|
|
68
|
+
The `api` property on the Faro instance contains all the necessary methods to push new events.
|
|
69
|
+
|
|
70
|
+
## Errors
|
|
71
|
+
|
|
72
|
+
- `pushError` - is a method to push an error/exception to the Faro instance. It accepts a mandatory `message` parameter
|
|
73
|
+
and an optional one where you can set:
|
|
74
|
+
|
|
75
|
+
- `skipDedupe` - a flag for enforcing event push even if the event is identical to the previous one.
|
|
76
|
+
- `stackFrames` - an array of stack frames. Defaults to parsing `error.stack` if present.
|
|
77
|
+
- `type` - the type of exception. Default value: `error.name` or `"error"`.
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
faro.api.pushError(new Error('This is an error'));
|
|
81
|
+
|
|
82
|
+
faro.api.pushError(new Error('This is an unhandled exception'), { type: 'unhandledException' });
|
|
83
|
+
|
|
84
|
+
faro.api.pushError(new Error('This is an error with stack frames'), {
|
|
85
|
+
stackFrames: [
|
|
86
|
+
{
|
|
87
|
+
filename: 'file.js',
|
|
88
|
+
function: 'myFunction',
|
|
89
|
+
colno: 120,
|
|
90
|
+
lineno: 80,
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
});
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Logs
|
|
97
|
+
|
|
98
|
+
- `pushLog` - is a method to register a log event. The method accepts a mandatory `args` parameter which is an array of
|
|
99
|
+
arguments that will be stringified and send to the transports. The other two parameters are optional: `logLevel` is
|
|
100
|
+
the type of message that we register and `context` is a plain object containing primitive values that will be
|
|
101
|
+
recorded along with the message.
|
|
102
|
+
|
|
103
|
+
```ts
|
|
104
|
+
faro.api.pushLog(['This is a log', 'With another message']);
|
|
105
|
+
|
|
106
|
+
faro.api.pushLog(['This is a warning'], { level: LogLevel.WARN });
|
|
107
|
+
|
|
108
|
+
faro.api.pushLog(['This is a log with context'], {
|
|
109
|
+
context: {
|
|
110
|
+
randomNumber: Math.random(),
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Measurements
|
|
116
|
+
|
|
117
|
+
- `pushMeasurement` - is a method for registering metrics. The method accepts a mandatory `payload` parameter and an
|
|
118
|
+
optional parameter for passing additional options:
|
|
119
|
+
|
|
120
|
+
- `span` - the span where the exception has occurred. Default value: `undefined`.
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
faro.api.pushMeasurement({
|
|
124
|
+
type: 'custom',
|
|
125
|
+
values: {
|
|
126
|
+
my_custom_metric: Math.random(),
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
faro.api.pushMeasurement(
|
|
131
|
+
{
|
|
132
|
+
type: 'custom',
|
|
133
|
+
values: {
|
|
134
|
+
my_custom_metric: Math.random(),
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
span: mySpan,
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Instrumentations
|
|
144
|
+
|
|
145
|
+
Instrumentations are packages that leverage the Faro Web SDK API to provide automatic mechanisms
|
|
146
|
+
for collecting data. They are just simple functions that are executed when the agent is initialized.
|
|
147
|
+
|
|
148
|
+
Please note that the `core` package does not contain any instrumentations out of the box and they should be provided by
|
|
149
|
+
platform specific packages like [@grafana/faro-web-sdk](https://github.com/grafana/faro-web-sdk/tree/main/packages/web)
|
|
150
|
+
|
|
151
|
+
You can also write your own instrumentations:
|
|
152
|
+
|
|
153
|
+
```ts
|
|
154
|
+
import { initializeFaro, BaseInstrumentation } from '@grafana/faro-core';
|
|
155
|
+
|
|
156
|
+
export class MyInstrumentation extends BaseInstrumentation {
|
|
157
|
+
readonly version = '1.0.0';
|
|
158
|
+
readonly name = 'my-instrumentation';
|
|
159
|
+
|
|
160
|
+
initialize(): void {
|
|
161
|
+
this.faro.api.pushLog(['hello from my instrumentation']);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
initializeFaro({
|
|
166
|
+
// ...
|
|
167
|
+
instrumentations: [new MyInstrumentation()],
|
|
168
|
+
});
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Metas
|
|
172
|
+
|
|
173
|
+
Metas are objects that will be attached to every event that is triggered by the API.
|
|
174
|
+
|
|
175
|
+
Out of the box, only one meta is provided: `sdk` which contains information about the Faro instance and its version. Additional
|
|
176
|
+
metas can be provided by external packages like [@grafana/agent-meta-browser](https://github.com/grafana/faro-web-sdk/tree/main/packages/meta-browser)
|
|
177
|
+
and [@grafana/agent-meta-page](https://github.com/grafana/faro-web-sdk/tree/main/packages/meta-page).
|
|
178
|
+
|
|
179
|
+
You can also define your own metas:
|
|
180
|
+
|
|
181
|
+
```ts
|
|
182
|
+
import { initializeFaro } from '@grafana/faro-core';
|
|
183
|
+
|
|
184
|
+
initializeFaro({
|
|
185
|
+
metas: [
|
|
186
|
+
// Define a static meta
|
|
187
|
+
{
|
|
188
|
+
app: {
|
|
189
|
+
name: 'my-app',
|
|
190
|
+
version: '1.0.0',
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
// Define a meta which caches some values on initialization
|
|
195
|
+
() => {
|
|
196
|
+
return {
|
|
197
|
+
user: {
|
|
198
|
+
username: getUser().name,
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Transports
|
|
207
|
+
|
|
208
|
+
Transports are functions that will be called for every event that is triggered by the API. They are used to do
|
|
209
|
+
something with the data after collecting it.
|
|
210
|
+
|
|
211
|
+
Out of the box, no transports are provided in the `core` package and they should be provided by platform specific
|
|
212
|
+
packages like [@grafana/faro-web-sdk](https://github.com/grafana/faro-web-sdk/tree/main/packages/web)
|
|
213
|
+
|
|
214
|
+
You can also define your own transports:
|
|
215
|
+
|
|
216
|
+
```ts
|
|
217
|
+
import { initializeFaro, BaseTransport, TransportItem } from '@grafana/faro-core';
|
|
218
|
+
|
|
219
|
+
class MyTransport extends BaseTransport {
|
|
220
|
+
send(item: TransportItem) {
|
|
221
|
+
// do something with paylaod
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
initializeFaro({
|
|
226
|
+
transports: [new MyTransport()],
|
|
227
|
+
});
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
## Unpatched console
|
|
231
|
+
|
|
232
|
+
Some instrumentations might override the default console methods but Faro instance provides a way to access the
|
|
233
|
+
unmodified console methods.
|
|
234
|
+
|
|
235
|
+
```ts
|
|
236
|
+
faro.unpatchedConsole.log('This is a log');
|
|
237
|
+
faro.unpatchedConsole.warn('This is a warning');
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Pause / unpause
|
|
241
|
+
|
|
242
|
+
Faro instance can be paused by invoking `faro.pause()`.
|
|
243
|
+
This will prevent events from being sent to transports.
|
|
244
|
+
Call `faro.unpause()` to resume capturing events.
|
|
245
|
+
|
|
246
|
+
## Isolated Faro instances
|
|
247
|
+
|
|
248
|
+
Sometimes you may want to create one or more isolated Faro instances. For example:
|
|
249
|
+
|
|
250
|
+
- you want to bundle Faro in a reusable library and report certain events only for it while the project where the
|
|
251
|
+
library is used has its own Faro instance
|
|
252
|
+
- you want to log certain events in one system while other events in other systems
|
|
253
|
+
- E2E libraries that may create multiple Faro instances without refreshing the page
|
|
254
|
+
|
|
255
|
+
In order to achieve this, you can use the `isolate` flag when initializing the agent:
|
|
256
|
+
|
|
257
|
+
```ts
|
|
258
|
+
// faro 1 will be isolated
|
|
259
|
+
const faro1 = initializeFaro({
|
|
260
|
+
// ...
|
|
261
|
+
isolate: true,
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
// globalFaro will be available globally
|
|
265
|
+
const globalFaro = initializeFaro({
|
|
266
|
+
// ...
|
|
267
|
+
isolate: false,
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
// another isolated Faro instance
|
|
271
|
+
const faro2 = initializeFaro({
|
|
272
|
+
// ...
|
|
273
|
+
isolate: true,
|
|
274
|
+
});
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
Although an isolated agent may sound like a great idea, there are some limitations which apply to them:
|
|
278
|
+
|
|
279
|
+
- some instrumentations will still register globally (i.e. exceptions instrumentation or console instrumentation)
|
|
280
|
+
- an isolated Faro instance will not be available on the global object
|
|
281
|
+
- the Faro reference should be stored by the project as it won't be available via
|
|
282
|
+
`import { faro } from '@grafana/faro-core';`
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initializeEventsAPI = void 0;
|
|
4
|
+
var initialize_1 = require("./initialize");
|
|
5
|
+
Object.defineProperty(exports, "initializeEventsAPI", { enumerable: true, get: function () { return initialize_1.initializeEventsAPI; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/events/index.ts"],"names":[],"mappings":";;;AACA,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Config } from '../../config';
|
|
2
|
+
import type { InternalLogger } from '../../internalLogger';
|
|
3
|
+
import type { Metas } from '../../metas';
|
|
4
|
+
import { Transports } from '../../transports';
|
|
5
|
+
import type { TracesAPI } from '../traces';
|
|
6
|
+
import type { EventsAPI } from './types';
|
|
7
|
+
export declare function initializeEventsAPI(internalLogger: InternalLogger, config: Config, transports: Transports, metas: Metas, tracesApi: TracesAPI): EventsAPI;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initializeEventsAPI = void 0;
|
|
4
|
+
var transports_1 = require("../../transports");
|
|
5
|
+
var utils_1 = require("../../utils");
|
|
6
|
+
function initializeEventsAPI(internalLogger, config, transports, metas, tracesApi) {
|
|
7
|
+
var lastPayload = null;
|
|
8
|
+
var pushEvent = function (name, attributes, domain, _a) {
|
|
9
|
+
var _b = _a === void 0 ? {} : _a, skipDedupe = _b.skipDedupe;
|
|
10
|
+
try {
|
|
11
|
+
var item = {
|
|
12
|
+
meta: metas.value,
|
|
13
|
+
payload: {
|
|
14
|
+
name: name,
|
|
15
|
+
domain: domain !== null && domain !== void 0 ? domain : config.eventDomain,
|
|
16
|
+
attributes: attributes,
|
|
17
|
+
timestamp: (0, utils_1.getCurrentTimestamp)(),
|
|
18
|
+
trace: tracesApi.getTraceContext(),
|
|
19
|
+
},
|
|
20
|
+
type: transports_1.TransportItemType.EVENT,
|
|
21
|
+
};
|
|
22
|
+
var testingPayload = {
|
|
23
|
+
name: item.payload.name,
|
|
24
|
+
attributes: item.payload.attributes,
|
|
25
|
+
domain: item.payload.domain,
|
|
26
|
+
};
|
|
27
|
+
if (!skipDedupe && config.dedupe && !(0, utils_1.isNull)(lastPayload) && (0, utils_1.deepEqual)(testingPayload, lastPayload)) {
|
|
28
|
+
internalLogger.debug('Skipping event push because it is the same as the last one\n', item.payload);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
lastPayload = testingPayload;
|
|
32
|
+
internalLogger.debug('Pushing event\n', item);
|
|
33
|
+
transports.execute(item);
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
internalLogger.error('Error pushing event', err);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return {
|
|
40
|
+
pushEvent: pushEvent,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.initializeEventsAPI = initializeEventsAPI;
|
|
44
|
+
//# sourceMappingURL=initialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initialize.js","sourceRoot":"","sources":["../../../../src/api/events/initialize.ts"],"names":[],"mappings":";;;AAGA,+CAAgF;AAChF,qCAAqE;AAIrE,SAAgB,mBAAmB,CACjC,cAA8B,EAC9B,MAAc,EACd,UAAsB,EACtB,KAAY,EACZ,SAAoB;IAEpB,IAAI,WAAW,GAA8D,IAAI,CAAC;IAElF,IAAM,SAAS,GAA2B,UAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAmB;YAAnB,qBAAiB,EAAE,KAAA,EAAjB,UAAU,gBAAA;QAC/E,IAAI;YACF,IAAM,IAAI,GAA8B;gBACtC,IAAI,EAAE,KAAK,CAAC,KAAK;gBACjB,OAAO,EAAE;oBACP,IAAI,MAAA;oBACJ,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,MAAM,CAAC,WAAW;oBACpC,UAAU,YAAA;oBACV,SAAS,EAAE,IAAA,2BAAmB,GAAE;oBAChC,KAAK,EAAE,SAAS,CAAC,eAAe,EAAE;iBACnC;gBACD,IAAI,EAAE,8BAAiB,CAAC,KAAK;aAC9B,CAAC;YAEF,IAAM,cAAc,GAAG;gBACrB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;gBACvB,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU;gBACnC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;aAC5B,CAAC;YAEF,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,IAAA,cAAM,EAAC,WAAW,CAAC,IAAI,IAAA,iBAAS,EAAC,cAAc,EAAE,WAAW,CAAC,EAAE;gBAClG,cAAc,CAAC,KAAK,CAAC,8DAA8D,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;gBAEnG,OAAO;aACR;YAED,WAAW,GAAG,cAAc,CAAC;YAE7B,cAAc,CAAC,KAAK,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;YAE9C,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1B;QAAC,OAAO,GAAG,EAAE;YACZ,cAAc,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;SAClD;IACH,CAAC,CAAC;IAEF,OAAO;QACL,SAAS,WAAA;KACV,CAAC;AACJ,CAAC;AAhDD,kDAgDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var metas_1 = require("../../metas");
|
|
4
|
+
var testUtils_1 = require("../../testUtils");
|
|
5
|
+
var transports_1 = require("../../transports");
|
|
6
|
+
var traces_1 = require("../traces");
|
|
7
|
+
var initialize_1 = require("./initialize");
|
|
8
|
+
describe('api.events', function () {
|
|
9
|
+
function createAPI(_a) {
|
|
10
|
+
var _b = _a === void 0 ? { dedupe: true } : _a, dedupe = _b.dedupe;
|
|
11
|
+
var transport = new testUtils_1.MockTransport();
|
|
12
|
+
var config = (0, testUtils_1.mockConfig)({
|
|
13
|
+
dedupe: dedupe,
|
|
14
|
+
transports: [transport],
|
|
15
|
+
});
|
|
16
|
+
var transports = (0, transports_1.initializeTransports)(testUtils_1.mockInternalLogger, config);
|
|
17
|
+
var metas = (0, metas_1.initializeMetas)(testUtils_1.mockInternalLogger, config);
|
|
18
|
+
var tracesAPI = (0, traces_1.initializeTracesAPI)(testUtils_1.mockInternalLogger, config, transports, metas);
|
|
19
|
+
var api = (0, initialize_1.initializeEventsAPI)(testUtils_1.mockInternalLogger, config, transports, metas, tracesAPI);
|
|
20
|
+
return [api, transport];
|
|
21
|
+
}
|
|
22
|
+
describe('pushEvent', function () {
|
|
23
|
+
var api;
|
|
24
|
+
var transport;
|
|
25
|
+
beforeEach(function () {
|
|
26
|
+
var _a;
|
|
27
|
+
_a = createAPI(), api = _a[0], transport = _a[1];
|
|
28
|
+
});
|
|
29
|
+
describe('Filtering', function () {
|
|
30
|
+
it('filters the same event', function () {
|
|
31
|
+
api.pushEvent('test', {
|
|
32
|
+
a: '1',
|
|
33
|
+
});
|
|
34
|
+
expect(transport.items).toHaveLength(1);
|
|
35
|
+
api.pushEvent('test', {
|
|
36
|
+
a: '1',
|
|
37
|
+
});
|
|
38
|
+
expect(transport.items).toHaveLength(1);
|
|
39
|
+
});
|
|
40
|
+
it("doesn't filter events with same name and partially same values", function () {
|
|
41
|
+
api.pushEvent('test', {
|
|
42
|
+
a: '1',
|
|
43
|
+
});
|
|
44
|
+
expect(transport.items).toHaveLength(1);
|
|
45
|
+
api.pushEvent('test', {
|
|
46
|
+
a: '1',
|
|
47
|
+
b: '2',
|
|
48
|
+
});
|
|
49
|
+
expect(transport.items).toHaveLength(2);
|
|
50
|
+
});
|
|
51
|
+
it("doesn't filter events with different name and same values", function () {
|
|
52
|
+
api.pushEvent('test1', {
|
|
53
|
+
a: '1',
|
|
54
|
+
});
|
|
55
|
+
expect(transport.items).toHaveLength(1);
|
|
56
|
+
api.pushEvent('test2', {
|
|
57
|
+
a: '1',
|
|
58
|
+
});
|
|
59
|
+
expect(transport.items).toHaveLength(2);
|
|
60
|
+
});
|
|
61
|
+
it("filters an event and doesn't filter the next different one", function () {
|
|
62
|
+
api.pushEvent('test1', {
|
|
63
|
+
a: '1',
|
|
64
|
+
});
|
|
65
|
+
expect(transport.items).toHaveLength(1);
|
|
66
|
+
api.pushEvent('test1', {
|
|
67
|
+
a: '1',
|
|
68
|
+
});
|
|
69
|
+
expect(transport.items).toHaveLength(1);
|
|
70
|
+
api.pushEvent('test2', {
|
|
71
|
+
b: '1',
|
|
72
|
+
});
|
|
73
|
+
expect(transport.items).toHaveLength(2);
|
|
74
|
+
});
|
|
75
|
+
it("doesn't filter when dedupe is false", function () {
|
|
76
|
+
var _a;
|
|
77
|
+
_a = createAPI({ dedupe: false }), api = _a[0], transport = _a[1];
|
|
78
|
+
api.pushEvent('test');
|
|
79
|
+
expect(transport.items).toHaveLength(1);
|
|
80
|
+
api.pushEvent('test');
|
|
81
|
+
expect(transport.items).toHaveLength(2);
|
|
82
|
+
});
|
|
83
|
+
it("doesn't filter when skipDedupe is true", function () {
|
|
84
|
+
api.pushEvent('test');
|
|
85
|
+
expect(transport.items).toHaveLength(1);
|
|
86
|
+
api.pushEvent('test', {}, undefined, { skipDedupe: true });
|
|
87
|
+
expect(transport.items).toHaveLength(2);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=initialize.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initialize.test.js","sourceRoot":"","sources":["../../../../src/api/events/initialize.test.ts"],"names":[],"mappings":"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"}
|