@safaricom-mxl/web-sdk 0.0.11 → 0.0.13
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/DATA_EXPORT.md +1 -1
- package/REACT.md +1 -1
- package/README.md +19 -28
- package/UPGRADING.md +2 -2
- package/dist/_virtual/_rolldown/runtime.cjs +7 -13
- package/dist/api-logs/api/LogAPI/LogAPI.cjs +6 -7
- package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.cts +0 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.cts.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.ts +0 -2
- package/dist/api-logs/api/LogAPI/LogAPI.d.ts.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.js +1 -2
- package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
- package/dist/api-logs/api/LogAPI/index.cjs +3 -4
- package/dist/api-logs/api/LogAPI/index.js +1 -2
- package/dist/api-logs/api/LogAPI/types.d.cts +0 -1
- package/dist/api-logs/api/LogAPI/types.d.cts.map +1 -1
- package/dist/api-logs/api/LogAPI/types.d.ts +0 -2
- package/dist/api-logs/api/LogAPI/types.d.ts.map +1 -1
- package/dist/api-logs/api/index.cjs +3 -4
- package/dist/api-logs/api/index.d.ts +0 -1
- package/dist/api-logs/api/index.js +1 -2
- package/dist/api-logs/index.cjs +5 -6
- package/dist/api-logs/index.d.ts +0 -1
- package/dist/api-logs/index.js +1 -2
- package/dist/api-logs/logAPI.cjs +3 -5
- package/dist/api-logs/logAPI.cjs.map +1 -1
- package/dist/api-logs/logAPI.js +1 -2
- package/dist/api-logs/logAPI.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs +2 -3
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts +0 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts +0 -2
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/index.cjs +3 -4
- package/dist/api-logs/manager/NoOpLogManager/index.js +1 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs +3 -5
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts +0 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts +0 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js +1 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/index.cjs +3 -4
- package/dist/api-logs/manager/ProxyLogManager/index.js +1 -2
- package/dist/api-logs/manager/index.cjs +4 -5
- package/dist/api-logs/manager/index.js +1 -2
- package/dist/api-page/api/PageAPI/PageAPI.cjs +6 -7
- package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
- package/dist/api-page/api/PageAPI/PageAPI.js +1 -2
- package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
- package/dist/api-page/api/PageAPI/index.cjs +3 -4
- package/dist/api-page/api/PageAPI/index.js +1 -2
- package/dist/api-page/api/index.cjs +3 -4
- package/dist/api-page/api/index.js +1 -2
- package/dist/api-page/index.cjs +5 -6
- package/dist/api-page/index.js +1 -2
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs +2 -3
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/index.cjs +3 -4
- package/dist/api-page/manager/NoOpPageManager/index.js +1 -2
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs +3 -5
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js +1 -2
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/index.cjs +3 -4
- package/dist/api-page/manager/ProxyPageManager/index.js +1 -2
- package/dist/api-page/manager/index.cjs +4 -5
- package/dist/api-page/manager/index.js +1 -2
- package/dist/api-page/pageAPI.cjs +3 -5
- package/dist/api-page/pageAPI.cjs.map +1 -1
- package/dist/api-page/pageAPI.js +1 -2
- package/dist/api-page/pageAPI.js.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs +6 -7
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts +0 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts +0 -2
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js +1 -2
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
- package/dist/api-sessions/api/SessionAPI/index.cjs +3 -4
- package/dist/api-sessions/api/SessionAPI/index.js +1 -2
- package/dist/api-sessions/api/SessionAPI/types.d.cts +0 -1
- package/dist/api-sessions/api/SessionAPI/types.d.cts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/types.d.ts +0 -2
- package/dist/api-sessions/api/SessionAPI/types.d.ts.map +1 -1
- package/dist/api-sessions/api/index.cjs +3 -4
- package/dist/api-sessions/api/index.d.ts +0 -1
- package/dist/api-sessions/api/index.js +1 -2
- package/dist/api-sessions/index.cjs +5 -6
- package/dist/api-sessions/index.d.ts +0 -1
- package/dist/api-sessions/index.js +1 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs +2 -3
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts +0 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.cjs +3 -4
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.js +1 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs +3 -5
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts +0 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js +1 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.cjs +3 -4
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.js +1 -2
- package/dist/api-sessions/manager/index.cjs +4 -5
- package/dist/api-sessions/manager/index.d.ts +0 -2
- package/dist/api-sessions/manager/index.js +1 -2
- package/dist/api-sessions/manager/types.d.cts +3 -0
- package/dist/api-sessions/manager/types.d.cts.map +1 -1
- package/dist/api-sessions/manager/types.d.ts +3 -1
- package/dist/api-sessions/manager/types.d.ts.map +1 -1
- package/dist/api-sessions/sessionAPI.cjs +3 -5
- package/dist/api-sessions/sessionAPI.cjs.map +1 -1
- package/dist/api-sessions/sessionAPI.js +1 -2
- package/dist/api-sessions/sessionAPI.js.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs +6 -7
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts +0 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts +0 -2
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.js +1 -2
- package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
- package/dist/api-traces/api/TraceAPI/index.cjs +3 -4
- package/dist/api-traces/api/TraceAPI/index.js +1 -2
- package/dist/api-traces/api/TraceAPI/types.d.cts.map +1 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts +0 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts.map +1 -1
- package/dist/api-traces/api/index.cjs +3 -4
- package/dist/api-traces/api/index.d.ts +0 -1
- package/dist/api-traces/api/index.js +1 -2
- package/dist/api-traces/index.cjs +5 -6
- package/dist/api-traces/index.d.ts +0 -2
- package/dist/api-traces/index.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs +4 -5
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts +0 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs +3 -4
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts +0 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/index.cjs +3 -4
- package/dist/api-traces/manager/NoOpTraceManager/index.js +1 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs +3 -5
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts +0 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js +1 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/index.cjs +3 -4
- package/dist/api-traces/manager/ProxyTraceManager/index.js +1 -2
- package/dist/api-traces/manager/index.cjs +4 -5
- package/dist/api-traces/manager/index.d.ts +0 -2
- package/dist/api-traces/manager/index.js +1 -2
- package/dist/api-traces/manager/types.d.ts +0 -1
- package/dist/api-traces/manager/types.d.ts.map +1 -1
- package/dist/api-traces/traceAPI.cjs +3 -5
- package/dist/api-traces/traceAPI.cjs.map +1 -1
- package/dist/api-traces/traceAPI.js +1 -2
- package/dist/api-traces/traceAPI.js.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.cjs +6 -7
- package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.js +1 -2
- package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
- package/dist/api-users/api/UserAPI/index.cjs +3 -4
- package/dist/api-users/api/UserAPI/index.js +1 -2
- package/dist/api-users/api/index.cjs +3 -4
- package/dist/api-users/api/index.js +1 -2
- package/dist/api-users/index.cjs +6 -7
- package/dist/api-users/index.js +1 -2
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs +2 -3
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs.map +1 -1
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js +1 -1
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js.map +1 -1
- package/dist/api-users/manager/NoOpUserManager/index.cjs +3 -4
- package/dist/api-users/manager/NoOpUserManager/index.js +1 -2
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs +3 -5
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js +1 -2
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/index.cjs +3 -4
- package/dist/api-users/manager/ProxyUserManager/index.js +1 -2
- package/dist/api-users/manager/constants/index.cjs +2 -3
- package/dist/api-users/manager/constants/index.cjs.map +1 -1
- package/dist/api-users/manager/constants/index.js +1 -1
- package/dist/api-users/manager/index.cjs +5 -6
- package/dist/api-users/manager/index.js +1 -2
- package/dist/api-users/userAPI.cjs +3 -5
- package/dist/api-users/userAPI.cjs.map +1 -1
- package/dist/api-users/userAPI.js +1 -2
- package/dist/api-users/userAPI.js.map +1 -1
- package/dist/common/attributes.cjs +3 -5
- package/dist/common/attributes.cjs.map +1 -1
- package/dist/common/attributes.js +1 -2
- package/dist/common/attributes.js.map +1 -1
- package/dist/common/index.cjs +3 -4
- package/dist/common/index.js +1 -2
- package/dist/common/types.d.cts +1 -0
- package/dist/common/types.d.cts.map +1 -1
- package/dist/common/types.d.ts +1 -0
- package/dist/common/types.d.ts.map +1 -1
- package/dist/constants/attributes.cjs +11 -3
- package/dist/constants/attributes.cjs.map +1 -1
- package/dist/constants/attributes.d.cts +11 -4
- package/dist/constants/attributes.d.cts.map +1 -1
- package/dist/constants/attributes.d.ts +11 -4
- package/dist/constants/attributes.d.ts.map +1 -1
- package/dist/constants/attributes.js +10 -2
- package/dist/constants/attributes.js.map +1 -1
- package/dist/constants/index.cjs +4 -4
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -3
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs +2 -3
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs.map +1 -1
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js +1 -1
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js.map +1 -1
- package/dist/exporters/BaseFetchExporter/index.cjs +3 -4
- package/dist/exporters/BaseFetchExporter/index.js +1 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs +6 -7
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js +1 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +9 -6
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts +4 -0
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +4 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +5 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
- package/dist/exporters/MXLLogExporter/index.cjs +3 -4
- package/dist/exporters/MXLLogExporter/index.js +1 -2
- package/dist/exporters/MXLLogExporter/utils.cjs +3 -4
- package/dist/exporters/MXLLogExporter/utils.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/utils.js +1 -2
- package/dist/exporters/MXLLogExporter/utils.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs +6 -7
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js +1 -2
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs +5 -6
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts +0 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js +1 -2
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/index.cjs +3 -4
- package/dist/exporters/MXLTraceExporter/index.js +1 -2
- package/dist/exporters/MXLTraceExporter/utils.cjs +3 -4
- package/dist/exporters/MXLTraceExporter/utils.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/utils.js +1 -2
- package/dist/exporters/MXLTraceExporter/utils.js.map +1 -1
- package/dist/exporters/constants.cjs +3 -6
- package/dist/exporters/constants.cjs.map +1 -1
- package/dist/exporters/constants.js +2 -4
- package/dist/exporters/constants.js.map +1 -1
- package/dist/exporters/index.cjs +7 -8
- package/dist/exporters/index.d.ts +0 -2
- package/dist/exporters/index.js +1 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.cjs +5 -6
- package/dist/exporters/otlpBrowserFetchExportDelegate.cjs.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts +2 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts +2 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.js +1 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.js.map +1 -1
- package/dist/exporters/utils.cjs +2 -3
- package/dist/exporters/utils.cjs.map +1 -1
- package/dist/exporters/utils.d.cts.map +1 -1
- package/dist/exporters/utils.d.ts.map +1 -1
- package/dist/exporters/utils.js +1 -1
- package/dist/exporters/utils.js.map +1 -1
- package/dist/index.cjs +17 -16
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -6
- package/dist/index.js +2 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs +3 -4
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js +1 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/index.cjs +3 -4
- package/dist/instrumentations/InstrumentationAbstract/index.js +1 -2
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +16 -8
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +7 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +7 -5
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +11 -3
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/index.cjs +3 -4
- package/dist/instrumentations/MXLInstrumentationBase/index.js +1 -2
- package/dist/instrumentations/MXLInstrumentationBase/types.d.cts +3 -0
- package/dist/instrumentations/MXLInstrumentationBase/types.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/types.d.ts +3 -1
- package/dist/instrumentations/MXLInstrumentationBase/types.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +4 -5
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts +0 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +1 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/clicks/ClicksInstrumentation/index.js +1 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs +2 -3
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.js +1 -1
- package/dist/instrumentations/clicks/index.cjs +3 -4
- package/dist/instrumentations/clicks/index.d.ts +0 -1
- package/dist/instrumentations/clicks/index.js +1 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +12 -13
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts +0 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +8 -9
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs +2 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs +2 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.cjs +4 -5
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.js +1 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts +0 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +6 -7
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +4 -5
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
- package/dist/instrumentations/document-load/index.cjs +4 -5
- package/dist/instrumentations/document-load/index.d.ts +0 -1
- package/dist/instrumentations/document-load/index.js +1 -2
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +67 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts +19 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts +19 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +66 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs +21 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts +12 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts +12 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js +13 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts +16 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts +16 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/element-timing/index.cjs +3 -0
- package/dist/instrumentations/element-timing/index.d.cts +3 -0
- package/dist/instrumentations/element-timing/index.d.ts +3 -0
- package/dist/instrumentations/element-timing/index.js +2 -0
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +3 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts +0 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +1 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.js +1 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/empty-root/index.cjs +3 -4
- package/dist/instrumentations/empty-root/index.d.ts +0 -1
- package/dist/instrumentations/empty-root/index.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +3 -4
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts +0 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/index.cjs +3 -4
- package/dist/instrumentations/exceptions/index.d.ts +0 -1
- package/dist/instrumentations/exceptions/index.js +1 -2
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs +7 -8
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js +3 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.cjs +3 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.js +1 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs +3 -4
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js +1 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js.map +1 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.js +1 -2
- package/dist/instrumentations/fetch/index.cjs +3 -4
- package/dist/instrumentations/fetch/index.d.ts +0 -1
- package/dist/instrumentations/fetch/index.js +1 -2
- package/dist/instrumentations/index.cjs +19 -20
- package/dist/instrumentations/index.d.cts +9 -9
- package/dist/instrumentations/index.d.ts +9 -19
- package/dist/instrumentations/index.js +5 -6
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +168 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +33 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +33 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +166 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs +29 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts +16 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts +16 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.js +17 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.js +2 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts +6 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts +6 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.js +0 -0
- package/dist/instrumentations/loaf/index.cjs +3 -0
- package/dist/instrumentations/loaf/index.d.cts +3 -0
- package/dist/instrumentations/loaf/index.d.ts +3 -0
- package/dist/instrumentations/loaf/index.js +2 -0
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +7 -8
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/index.cjs +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts +0 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs +8 -9
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs +5 -6
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs +8 -9
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/navigation/index.cjs +4 -5
- package/dist/instrumentations/navigation/index.d.ts +0 -1
- package/dist/instrumentations/navigation/index.js +1 -2
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +59 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts +19 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts +19 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +57 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs +13 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts +8 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts +8 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js +9 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts +7 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts +7 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/server-timing/index.cjs +3 -0
- package/dist/instrumentations/server-timing/index.d.cts +3 -0
- package/dist/instrumentations/server-timing/index.d.ts +3 -0
- package/dist/instrumentations/server-timing/index.js +2 -0
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs +7 -8
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs +2 -3
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs +4 -5
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs +2 -3
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs +10 -73
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts +1 -14
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts +1 -17
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js +8 -71
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts +1 -6
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts +1 -7
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/index.cjs +6 -11
- package/dist/instrumentations/session/index.d.cts +1 -5
- package/dist/instrumentations/session/index.d.ts +1 -11
- package/dist/instrumentations/session/index.js +1 -4
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +95 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts +23 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts +23 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +93 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs +17 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts +10 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts +10 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js +11 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts +18 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts +18 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/user-timing/index.cjs +3 -0
- package/dist/instrumentations/user-timing/index.d.cts +3 -0
- package/dist/instrumentations/user-timing/index.d.ts +3 -0
- package/dist/instrumentations/user-timing/index.js +2 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +79 -105
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts +0 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +75 -101
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs +19 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts +11 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts +11 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js +12 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs +60 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js +57 -3
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.js +1 -2
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +1 -2
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/index.cjs +3 -4
- package/dist/instrumentations/web-vitals/index.d.ts +0 -1
- package/dist/instrumentations/web-vitals/index.js +1 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs +3 -4
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js +1 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js.map +1 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.js +1 -2
- package/dist/instrumentations/xhr/index.cjs +3 -4
- package/dist/instrumentations/xhr/index.d.ts +0 -1
- package/dist/instrumentations/xhr/index.js +1 -2
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +43 -10
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts +10 -0
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts +10 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +39 -6
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
- package/dist/managers/MXLConfigManager/constants.cjs +2 -3
- package/dist/managers/MXLConfigManager/constants.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/constants.d.cts +0 -1
- package/dist/managers/MXLConfigManager/constants.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/constants.d.ts +0 -2
- package/dist/managers/MXLConfigManager/constants.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/constants.js +1 -1
- package/dist/managers/MXLConfigManager/index.cjs +3 -4
- package/dist/managers/MXLConfigManager/index.js +1 -2
- package/dist/managers/MXLConfigManager/types.d.cts +2 -1
- package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/types.d.ts +2 -2
- package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/utils.cjs +2 -3
- package/dist/managers/MXLConfigManager/utils.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/utils.js +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +24 -8
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts +3 -0
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts +3 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.js +22 -6
- package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
- package/dist/managers/MXLLimitManager/constants.cjs +11 -8
- package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/constants.js +10 -6
- package/dist/managers/MXLLimitManager/constants.js.map +1 -1
- package/dist/managers/MXLLimitManager/index.cjs +4 -5
- package/dist/managers/MXLLimitManager/index.js +1 -2
- package/dist/managers/MXLLimitManager/types.d.cts +7 -1
- package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/types.d.ts +7 -2
- package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.cjs +11 -12
- package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts +0 -2
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.js +5 -6
- package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
- package/dist/managers/MXLLogManager/index.cjs +3 -4
- package/dist/managers/MXLLogManager/index.js +1 -2
- package/dist/managers/MXLLogManager/types.d.ts +0 -3
- package/dist/managers/MXLLogManager/types.d.ts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.cjs +3 -4
- package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.js +1 -2
- package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
- package/dist/managers/MXLPageManager/index.cjs +3 -4
- package/dist/managers/MXLPageManager/index.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs +3 -4
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/index.cjs +3 -4
- package/dist/managers/MXLSDKFeaturesManager/index.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts +0 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts +0 -2
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs +18 -17
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts +3 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts +3 -3
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js +9 -8
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js.map +1 -1
- package/dist/managers/MXLSpanSessionManager/constants.cjs +2 -3
- package/dist/managers/MXLSpanSessionManager/constants.cjs.map +1 -1
- package/dist/managers/MXLSpanSessionManager/constants.js +1 -1
- package/dist/managers/MXLSpanSessionManager/index.cjs +3 -4
- package/dist/managers/MXLSpanSessionManager/index.js +1 -2
- package/dist/managers/MXLSpanSessionManager/types.d.cts +5 -0
- package/dist/managers/MXLSpanSessionManager/types.d.cts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/types.d.ts +5 -3
- package/dist/managers/MXLSpanSessionManager/types.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs +3 -4
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.cts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts +0 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.js +1 -2
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.cjs +8 -8
- package/dist/managers/MXLTraceManager/MXLTraceManager.cjs.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts +0 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.js +5 -5
- package/dist/managers/MXLTraceManager/MXLTraceManager.js.map +1 -1
- package/dist/managers/MXLTraceManager/index.cjs +4 -5
- package/dist/managers/MXLTraceManager/index.js +1 -2
- package/dist/managers/MXLUserManager/MXLUserManager.cjs +7 -8
- package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.js +1 -2
- package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
- package/dist/managers/MXLUserManager/constants.cjs +2 -3
- package/dist/managers/MXLUserManager/constants.cjs.map +1 -1
- package/dist/managers/MXLUserManager/constants.js +1 -1
- package/dist/managers/MXLUserManager/index.cjs +3 -4
- package/dist/managers/MXLUserManager/index.js +1 -2
- package/dist/managers/MXLUserManager/types.cjs +4 -5
- package/dist/managers/MXLUserManager/types.cjs.map +1 -1
- package/dist/managers/MXLUserManager/types.js +3 -4
- package/dist/managers/MXLUserManager/types.js.map +1 -1
- package/dist/managers/index.cjs +12 -13
- package/dist/managers/index.d.cts +1 -1
- package/dist/managers/index.d.ts +1 -9
- package/dist/managers/index.js +1 -2
- package/dist/mxl-web-sdk.js +38 -1
- package/dist/mxl-web-sdk.js.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.cjs +480 -177
- package/dist/packages/otlp-transformer/dist/index.cjs.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.cts +6 -2
- package/dist/packages/otlp-transformer/dist/index.d.cts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.ts +6 -2
- package/dist/packages/otlp-transformer/dist/index.d.ts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.js +480 -176
- package/dist/packages/otlp-transformer/dist/index.js.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs +4 -5
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.cts.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.ts.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js +2 -3
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/BrowserLogRecordProcessor/index.js +1 -2
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs +4 -5
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.cts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.ts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js +2 -3
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
- package/dist/processors/BrowserSpanProcessor/index.cjs +3 -4
- package/dist/processors/BrowserSpanProcessor/index.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs +4 -5
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js.map +1 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs +2 -3
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/index.cjs +3 -4
- package/dist/processors/LogRecordScrubProcessor/index.js +1 -2
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs +5 -6
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js +3 -4
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/MXLLogRecordProcessor/index.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs +6 -7
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/index.cjs +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/index.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs +6 -7
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js +3 -4
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.cjs +3 -4
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.js +1 -2
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts.map +1 -1
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs +5 -6
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js +3 -4
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
- package/dist/processors/PageLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/PageLogRecordProcessor/index.js +1 -2
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs +5 -6
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js +3 -4
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
- package/dist/processors/PageSpanProcessor/index.cjs +3 -4
- package/dist/processors/PageSpanProcessor/index.js +1 -2
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs +2 -3
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
- package/dist/processors/SpanScrubProcessor/index.cjs +3 -4
- package/dist/processors/SpanScrubProcessor/index.js +1 -2
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs +3 -4
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js +1 -2
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js.map +1 -1
- package/dist/processors/UserLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/UserLogRecordProcessor/index.js +1 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs +3 -4
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js +1 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
- package/dist/processors/UserSpanProcessor/index.cjs +3 -4
- package/dist/processors/UserSpanProcessor/index.js +1 -2
- package/dist/processors/index.cjs +14 -15
- package/dist/processors/index.d.ts +0 -12
- package/dist/processors/index.js +1 -2
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs +4 -5
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs.map +1 -1
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js +1 -2
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js.map +1 -1
- package/dist/propagators/MXLW3CTraceContextPropagator/index.cjs +3 -4
- package/dist/propagators/MXLW3CTraceContextPropagator/index.js +1 -2
- package/dist/propagators/index.cjs +3 -4
- package/dist/propagators/index.d.ts +0 -1
- package/dist/propagators/index.js +1 -2
- package/dist/react-instrumentation/index.cjs +7 -8
- package/dist/react-instrumentation/index.d.ts +0 -3
- package/dist/react-instrumentation/index.js +1 -2
- package/dist/resources/appInstanceId.cjs +4 -5
- package/dist/resources/appInstanceId.cjs.map +1 -1
- package/dist/resources/appInstanceId.js +1 -2
- package/dist/resources/appInstanceId.js.map +1 -1
- package/dist/resources/constants/index.cjs +3 -4
- package/dist/resources/constants/index.cjs.map +1 -1
- package/dist/resources/constants/index.d.cts +1 -1
- package/dist/resources/constants/index.d.ts +1 -1
- package/dist/resources/constants/index.js +2 -2
- package/dist/resources/constants/index.js.map +1 -1
- package/dist/resources/index.cjs +7 -6
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +2 -3
- package/dist/resources/webSdkResource.cjs +22 -9
- package/dist/resources/webSdkResource.cjs.map +1 -1
- package/dist/resources/webSdkResource.d.cts +16 -1
- package/dist/resources/webSdkResource.d.cts.map +1 -1
- package/dist/resources/webSdkResource.d.ts +16 -1
- package/dist/resources/webSdkResource.d.ts.map +1 -1
- package/dist/resources/webSdkResource.js +17 -6
- package/dist/resources/webSdkResource.js.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.cjs +3 -4
- package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.js +1 -2
- package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
- package/dist/sdk/index.cjs +3 -4
- package/dist/sdk/index.d.cts +2 -2
- package/dist/sdk/index.d.ts +2 -2
- package/dist/sdk/index.js +1 -2
- package/dist/sdk/initSDK.cjs +75 -58
- package/dist/sdk/initSDK.cjs.map +1 -1
- package/dist/sdk/initSDK.d.cts +4 -1
- package/dist/sdk/initSDK.d.cts.map +1 -1
- package/dist/sdk/initSDK.d.ts +4 -1
- package/dist/sdk/initSDK.d.ts.map +1 -1
- package/dist/sdk/initSDK.js +37 -20
- package/dist/sdk/initSDK.js.map +1 -1
- package/dist/sdk/registry.cjs +3 -4
- package/dist/sdk/registry.cjs.map +1 -1
- package/dist/sdk/registry.js +1 -2
- package/dist/sdk/registry.js.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.cjs +36 -28
- package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.cts +2 -3
- package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.ts +2 -3
- package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.js +26 -19
- package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
- package/dist/sdk/setupSessionRecorder.cjs +45 -0
- package/dist/sdk/setupSessionRecorder.cjs.map +1 -0
- package/dist/sdk/setupSessionRecorder.d.cts +21 -0
- package/dist/sdk/setupSessionRecorder.d.cts.map +1 -0
- package/dist/sdk/setupSessionRecorder.d.ts +21 -0
- package/dist/sdk/setupSessionRecorder.d.ts.map +1 -0
- package/dist/sdk/setupSessionRecorder.js +42 -0
- package/dist/sdk/setupSessionRecorder.js.map +1 -0
- package/dist/sdk/types.d.cts +51 -17
- package/dist/sdk/types.d.cts.map +1 -1
- package/dist/sdk/types.d.ts +51 -23
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/utils.cjs +3 -4
- package/dist/sdk/utils.cjs.map +1 -1
- package/dist/sdk/utils.js +1 -2
- package/dist/sdk/utils.js.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.cjs +3 -4
- package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.js +1 -2
- package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
- package/dist/transport/FetchTransport/createFetchTransport.cjs +3 -4
- package/dist/transport/FetchTransport/createFetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/createFetchTransport.js +1 -2
- package/dist/transport/FetchTransport/createFetchTransport.js.map +1 -1
- package/dist/transport/FetchTransport/index.cjs +3 -4
- package/dist/transport/FetchTransport/index.js +1 -2
- package/dist/transport/RetryingTransport/RetryingTransport.cjs +6 -7
- package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.d.ts +0 -1
- package/dist/transport/RetryingTransport/RetryingTransport.d.ts.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.js +4 -5
- package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
- package/dist/transport/RetryingTransport/constants.cjs +2 -3
- package/dist/transport/RetryingTransport/constants.cjs.map +1 -1
- package/dist/transport/RetryingTransport/constants.js +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.cjs +4 -5
- package/dist/transport/RetryingTransport/createRetryingTransport.cjs.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.cts.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.ts +0 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.ts.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.js +1 -2
- package/dist/transport/RetryingTransport/createRetryingTransport.js.map +1 -1
- package/dist/transport/RetryingTransport/index.cjs +3 -4
- package/dist/transport/RetryingTransport/index.js +1 -2
- package/dist/transport/index.cjs +4 -5
- package/dist/transport/index.d.ts +0 -2
- package/dist/transport/index.js +1 -2
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs +4 -5
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs.map +1 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts +0 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts.map +1 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js +1 -2
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js.map +1 -1
- package/dist/utils/MXLSpanStorage/index.cjs +3 -4
- package/dist/utils/MXLSpanStorage/index.d.ts +0 -1
- package/dist/utils/MXLSpanStorage/index.js +1 -2
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs +12 -3
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts +8 -0
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts +8 -0
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.js +11 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.js.map +1 -1
- package/dist/utils/NamespacedStorage/index.cjs +3 -4
- package/dist/utils/NamespacedStorage/index.js +1 -2
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs +4 -4
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts +1 -0
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts +1 -0
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js +2 -2
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
- package/dist/utils/PerformanceManager/index.cjs +3 -4
- package/dist/utils/PerformanceManager/index.js +1 -2
- package/dist/utils/PerformanceManager/types.d.cts +1 -0
- package/dist/utils/PerformanceManager/types.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/types.d.ts +1 -0
- package/dist/utils/PerformanceManager/types.d.ts.map +1 -1
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs +2 -3
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs.map +1 -1
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.js +1 -1
- package/dist/utils/bulkAddEventListener/index.cjs +3 -4
- package/dist/utils/bulkAddEventListener/index.js +1 -2
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs +2 -3
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs.map +1 -1
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.js +1 -1
- package/dist/utils/bulkRemoveEventListener/index.cjs +3 -4
- package/dist/utils/bulkRemoveEventListener/index.js +1 -2
- package/dist/utils/createSafeProxy/createSafeProxy.cjs +2 -3
- package/dist/utils/createSafeProxy/createSafeProxy.cjs.map +1 -1
- package/dist/utils/createSafeProxy/createSafeProxy.js +1 -1
- package/dist/utils/createSafeProxy/index.cjs +3 -4
- package/dist/utils/createSafeProxy/index.js +1 -2
- package/dist/utils/generateUUID.cjs +2 -3
- package/dist/utils/generateUUID.cjs.map +1 -1
- package/dist/utils/generateUUID.js +1 -1
- package/dist/utils/generateWebVitalID.cjs +9 -0
- package/dist/utils/generateWebVitalID.cjs.map +1 -0
- package/dist/utils/generateWebVitalID.d.cts +5 -0
- package/dist/utils/generateWebVitalID.d.cts.map +1 -0
- package/dist/utils/generateWebVitalID.d.ts +5 -0
- package/dist/utils/generateWebVitalID.d.ts.map +1 -0
- package/dist/utils/generateWebVitalID.js +8 -0
- package/dist/utils/generateWebVitalID.js.map +1 -0
- package/dist/utils/getIncrementedCount.cjs +6 -3
- package/dist/utils/getIncrementedCount.cjs.map +1 -1
- package/dist/utils/getIncrementedCount.js +5 -1
- package/dist/utils/getIncrementedCount.js.map +1 -1
- package/dist/utils/getVisibilityState.cjs +4 -5
- package/dist/utils/getVisibilityState.cjs.map +1 -1
- package/dist/utils/getVisibilityState.js +3 -4
- package/dist/utils/getVisibilityState.js.map +1 -1
- package/dist/utils/globalConfig.cjs +2 -3
- package/dist/utils/globalConfig.cjs.map +1 -1
- package/dist/utils/globalConfig.js +1 -1
- package/dist/utils/index.cjs +20 -16
- package/dist/utils/index.d.cts +4 -2
- package/dist/utils/index.d.ts +4 -5
- package/dist/utils/index.js +3 -2
- package/dist/utils/isDeviceIdEnabled.cjs +2 -3
- package/dist/utils/isDeviceIdEnabled.cjs.map +1 -1
- package/dist/utils/isDeviceIdEnabled.js +1 -1
- package/dist/utils/isDeviceIdEnabled.js.map +1 -1
- package/dist/utils/nsfConfigValidation.cjs +2 -3
- package/dist/utils/nsfConfigValidation.cjs.map +1 -1
- package/dist/utils/nsfConfigValidation.d.ts +0 -2
- package/dist/utils/nsfConfigValidation.d.ts.map +1 -1
- package/dist/utils/nsfConfigValidation.js +1 -1
- package/dist/utils/performanceObserver/index.cjs +4 -0
- package/dist/utils/performanceObserver/index.d.cts +2 -0
- package/dist/utils/performanceObserver/index.d.ts +2 -0
- package/dist/utils/performanceObserver/index.js +2 -0
- package/dist/utils/performanceObserver/performanceObserver.cjs +47 -0
- package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.d.cts +23 -0
- package/dist/utils/performanceObserver/performanceObserver.d.cts.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.d.ts +23 -0
- package/dist/utils/performanceObserver/performanceObserver.d.ts.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.js +45 -0
- package/dist/utils/performanceObserver/performanceObserver.js.map +1 -0
- package/dist/utils/throttle.cjs +2 -3
- package/dist/utils/throttle.cjs.map +1 -1
- package/dist/utils/throttle.js +1 -1
- package/package.json +15 -13
|
@@ -1,228 +1,532 @@
|
|
|
1
1
|
//#region packages/otlp-transformer/dist/index.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const VERSION = "1.9.1";
|
|
3
|
+
const re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
4
|
+
/**
|
|
5
|
+
* Create a function to test an API version to see if it is compatible with the provided ownVersion.
|
|
6
|
+
*
|
|
7
|
+
* The returned function has the following semantics:
|
|
8
|
+
* - Exact match is always compatible
|
|
9
|
+
* - Major versions must match exactly
|
|
10
|
+
* - 1.x package cannot use global 2.x package
|
|
11
|
+
* - 2.x package cannot use global 1.x package
|
|
12
|
+
* - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
|
|
13
|
+
* - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
|
|
14
|
+
* - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
|
|
15
|
+
* - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
|
|
16
|
+
* - Patch and build tag differences are not considered at this time
|
|
17
|
+
*
|
|
18
|
+
* @param ownVersion version which should be checked against
|
|
19
|
+
*/
|
|
20
|
+
function _makeCompatibilityCheck(ownVersion) {
|
|
21
|
+
const acceptedVersions = new Set([ownVersion]);
|
|
22
|
+
const rejectedVersions = /* @__PURE__ */ new Set();
|
|
23
|
+
const myVersionMatch = ownVersion.match(re);
|
|
24
|
+
if (!myVersionMatch) return () => false;
|
|
25
|
+
const ownVersionParsed = {
|
|
26
|
+
major: +myVersionMatch[1],
|
|
27
|
+
minor: +myVersionMatch[2],
|
|
28
|
+
patch: +myVersionMatch[3],
|
|
29
|
+
prerelease: myVersionMatch[4]
|
|
30
|
+
};
|
|
31
|
+
if (ownVersionParsed.prerelease != null) return function isExactmatch(globalVersion) {
|
|
32
|
+
return globalVersion === ownVersion;
|
|
33
|
+
};
|
|
34
|
+
function _reject(v) {
|
|
35
|
+
rejectedVersions.add(v);
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
function _accept(v) {
|
|
39
|
+
acceptedVersions.add(v);
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
return function isCompatible(globalVersion) {
|
|
43
|
+
if (acceptedVersions.has(globalVersion)) return true;
|
|
44
|
+
if (rejectedVersions.has(globalVersion)) return false;
|
|
45
|
+
const globalVersionMatch = globalVersion.match(re);
|
|
46
|
+
if (!globalVersionMatch) return _reject(globalVersion);
|
|
47
|
+
const globalVersionParsed = {
|
|
48
|
+
major: +globalVersionMatch[1],
|
|
49
|
+
minor: +globalVersionMatch[2],
|
|
50
|
+
patch: +globalVersionMatch[3],
|
|
51
|
+
prerelease: globalVersionMatch[4]
|
|
52
|
+
};
|
|
53
|
+
if (globalVersionParsed.prerelease != null) return _reject(globalVersion);
|
|
54
|
+
if (ownVersionParsed.major !== globalVersionParsed.major) return _reject(globalVersion);
|
|
55
|
+
if (ownVersionParsed.major === 0) {
|
|
56
|
+
if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) return _accept(globalVersion);
|
|
57
|
+
return _reject(globalVersion);
|
|
58
|
+
}
|
|
59
|
+
if (ownVersionParsed.minor <= globalVersionParsed.minor) return _accept(globalVersion);
|
|
60
|
+
return _reject(globalVersion);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Test an API version to see if it is compatible with this API.
|
|
65
|
+
*
|
|
66
|
+
* - Exact match is always compatible
|
|
67
|
+
* - Major versions must match exactly
|
|
68
|
+
* - 1.x package cannot use global 2.x package
|
|
69
|
+
* - 2.x package cannot use global 1.x package
|
|
70
|
+
* - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
|
|
71
|
+
* - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
|
|
72
|
+
* - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
|
|
73
|
+
* - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
|
|
74
|
+
* - Patch and build tag differences are not considered at this time
|
|
75
|
+
*
|
|
76
|
+
* @param version version of the API requesting an instance of the global API
|
|
77
|
+
*/
|
|
78
|
+
const isCompatible = _makeCompatibilityCheck(VERSION);
|
|
79
|
+
const major = VERSION.split(".")[0];
|
|
80
|
+
const GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
|
|
81
|
+
const _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
82
|
+
function registerGlobal(type, instance, diag, allowOverride = false) {
|
|
83
|
+
var _a;
|
|
84
|
+
const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : { version: VERSION };
|
|
85
|
+
if (!allowOverride && api[type]) {
|
|
86
|
+
const err = /* @__PURE__ */ new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
|
|
87
|
+
diag.error(err.stack || err.message);
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
if (api.version !== "1.9.1") {
|
|
91
|
+
const err = /* @__PURE__ */ new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${VERSION}`);
|
|
92
|
+
diag.error(err.stack || err.message);
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
api[type] = instance;
|
|
96
|
+
diag.debug(`@opentelemetry/api: Registered a global for ${type} v${VERSION}.`);
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
function getGlobal(type) {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
const globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version;
|
|
102
|
+
if (!globalVersion || !isCompatible(globalVersion)) return;
|
|
103
|
+
return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];
|
|
104
|
+
}
|
|
105
|
+
function unregisterGlobal(type, diag) {
|
|
106
|
+
diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${VERSION}.`);
|
|
107
|
+
const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
108
|
+
if (api) delete api[type];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Component Logger which is meant to be used as part of any component which
|
|
112
|
+
* will add automatically additional namespace in front of the log message.
|
|
113
|
+
* It will then forward all message to global diag logger
|
|
114
|
+
* @example
|
|
115
|
+
* const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });
|
|
116
|
+
* cLogger.debug('test');
|
|
117
|
+
* // @opentelemetry/instrumentation-http test
|
|
118
|
+
*/
|
|
119
|
+
var DiagComponentLogger = class {
|
|
120
|
+
constructor(props) {
|
|
121
|
+
this._namespace = props.namespace || "DiagComponentLogger";
|
|
122
|
+
}
|
|
123
|
+
debug(...args) {
|
|
124
|
+
return logProxy("debug", this._namespace, args);
|
|
125
|
+
}
|
|
126
|
+
error(...args) {
|
|
127
|
+
return logProxy("error", this._namespace, args);
|
|
128
|
+
}
|
|
129
|
+
info(...args) {
|
|
130
|
+
return logProxy("info", this._namespace, args);
|
|
131
|
+
}
|
|
132
|
+
warn(...args) {
|
|
133
|
+
return logProxy("warn", this._namespace, args);
|
|
134
|
+
}
|
|
135
|
+
verbose(...args) {
|
|
136
|
+
return logProxy("verbose", this._namespace, args);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
function logProxy(funcName, namespace, args) {
|
|
140
|
+
const logger = getGlobal("diag");
|
|
141
|
+
if (!logger) return;
|
|
142
|
+
return logger[funcName](namespace, ...args);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Defines the available internal logging levels for the diagnostic logger, the numeric values
|
|
146
|
+
* of the levels are defined to match the original values from the initial LogLevel to avoid
|
|
147
|
+
* compatibility/migration issues for any implementation that assume the numeric ordering.
|
|
148
|
+
*/
|
|
149
|
+
var DiagLogLevel;
|
|
150
|
+
(function(DiagLogLevel) {
|
|
151
|
+
/** Diagnostic Logging level setting to disable all logging (except and forced logs) */
|
|
152
|
+
DiagLogLevel[DiagLogLevel["NONE"] = 0] = "NONE";
|
|
153
|
+
/** Identifies an error scenario */
|
|
154
|
+
DiagLogLevel[DiagLogLevel["ERROR"] = 30] = "ERROR";
|
|
155
|
+
/** Identifies a warning scenario */
|
|
156
|
+
DiagLogLevel[DiagLogLevel["WARN"] = 50] = "WARN";
|
|
157
|
+
/** General informational log message */
|
|
158
|
+
DiagLogLevel[DiagLogLevel["INFO"] = 60] = "INFO";
|
|
159
|
+
/** General debug log message */
|
|
160
|
+
DiagLogLevel[DiagLogLevel["DEBUG"] = 70] = "DEBUG";
|
|
161
|
+
/**
|
|
162
|
+
* Detailed trace level logging should only be used for development, should only be set
|
|
163
|
+
* in a development environment.
|
|
164
|
+
*/
|
|
165
|
+
DiagLogLevel[DiagLogLevel["VERBOSE"] = 80] = "VERBOSE";
|
|
166
|
+
/** Used to set the logging level to include all logging */
|
|
167
|
+
DiagLogLevel[DiagLogLevel["ALL"] = 9999] = "ALL";
|
|
168
|
+
})(DiagLogLevel || (DiagLogLevel = {}));
|
|
169
|
+
function createLogLevelDiagLogger(maxLevel, logger) {
|
|
170
|
+
if (maxLevel < DiagLogLevel.NONE) maxLevel = DiagLogLevel.NONE;
|
|
171
|
+
else if (maxLevel > DiagLogLevel.ALL) maxLevel = DiagLogLevel.ALL;
|
|
172
|
+
logger = logger || {};
|
|
173
|
+
function _filterFunc(funcName, theLevel) {
|
|
174
|
+
const theFunc = logger[funcName];
|
|
175
|
+
if (typeof theFunc === "function" && maxLevel >= theLevel) return theFunc.bind(logger);
|
|
176
|
+
return function() {};
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
error: _filterFunc("error", DiagLogLevel.ERROR),
|
|
180
|
+
warn: _filterFunc("warn", DiagLogLevel.WARN),
|
|
181
|
+
info: _filterFunc("info", DiagLogLevel.INFO),
|
|
182
|
+
debug: _filterFunc("debug", DiagLogLevel.DEBUG),
|
|
183
|
+
verbose: _filterFunc("verbose", DiagLogLevel.VERBOSE)
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
const API_NAME = "diag";
|
|
187
|
+
/**
|
|
188
|
+
* Entrypoint for Diag API.
|
|
189
|
+
* Defines Diagnostic handler used for internal diagnostic logging operations.
|
|
190
|
+
* The default provides a Noop DiagLogger implementation which may be changed via the
|
|
191
|
+
* diag.setLogger(logger: DiagLogger) function.
|
|
192
|
+
*
|
|
193
|
+
* @since 1.0.0
|
|
194
|
+
*/
|
|
195
|
+
const diag = class DiagAPI {
|
|
196
|
+
/** Get the singleton instance of the DiagAPI API */
|
|
197
|
+
static instance() {
|
|
198
|
+
if (!this._instance) this._instance = new DiagAPI();
|
|
199
|
+
return this._instance;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Private internal constructor
|
|
203
|
+
* @private
|
|
204
|
+
*/
|
|
205
|
+
constructor() {
|
|
206
|
+
function _logProxy(funcName) {
|
|
207
|
+
return function(...args) {
|
|
208
|
+
const logger = getGlobal("diag");
|
|
209
|
+
if (!logger) return;
|
|
210
|
+
return logger[funcName](...args);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
const self = this;
|
|
214
|
+
const setLogger = (logger, optionsOrLogLevel = { logLevel: DiagLogLevel.INFO }) => {
|
|
215
|
+
var _a, _b, _c;
|
|
216
|
+
if (logger === self) {
|
|
217
|
+
const err = /* @__PURE__ */ new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
218
|
+
self.error((_a = err.stack) !== null && _a !== void 0 ? _a : err.message);
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
if (typeof optionsOrLogLevel === "number") optionsOrLogLevel = { logLevel: optionsOrLogLevel };
|
|
222
|
+
const oldLogger = getGlobal("diag");
|
|
223
|
+
const newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger);
|
|
224
|
+
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
|
225
|
+
const stack = (_c = (/* @__PURE__ */ new Error()).stack) !== null && _c !== void 0 ? _c : "<failed to generate stacktrace>";
|
|
226
|
+
oldLogger.warn(`Current logger will be overwritten from ${stack}`);
|
|
227
|
+
newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
|
|
228
|
+
}
|
|
229
|
+
return registerGlobal("diag", newLogger, self, true);
|
|
230
|
+
};
|
|
231
|
+
self.setLogger = setLogger;
|
|
232
|
+
self.disable = () => {
|
|
233
|
+
unregisterGlobal(API_NAME, self);
|
|
234
|
+
};
|
|
235
|
+
self.createComponentLogger = (options) => {
|
|
236
|
+
return new DiagComponentLogger(options);
|
|
237
|
+
};
|
|
238
|
+
self.verbose = _logProxy("verbose");
|
|
239
|
+
self.debug = _logProxy("debug");
|
|
240
|
+
self.info = _logProxy("info");
|
|
241
|
+
self.warn = _logProxy("warn");
|
|
242
|
+
self.error = _logProxy("error");
|
|
243
|
+
}
|
|
244
|
+
}.instance();
|
|
245
|
+
const SECOND_TO_NANOSECONDS = Math.pow(10, 9);
|
|
246
|
+
/**
|
|
247
|
+
* Convert hrTime to nanoseconds.
|
|
248
|
+
* @param time
|
|
249
|
+
*/
|
|
250
|
+
function hrTimeToNanoseconds(time) {
|
|
251
|
+
return time[0] * SECOND_TO_NANOSECONDS + time[1];
|
|
252
|
+
}
|
|
253
|
+
function createResource(resource, encoder) {
|
|
254
|
+
const result = {
|
|
255
|
+
attributes: toAttributes(resource.attributes, encoder),
|
|
5
256
|
droppedAttributesCount: 0
|
|
6
|
-
}
|
|
7
|
-
|
|
257
|
+
};
|
|
258
|
+
const schemaUrl = resource.schemaUrl;
|
|
259
|
+
if (schemaUrl && schemaUrl !== "") result.schemaUrl = schemaUrl;
|
|
260
|
+
return result;
|
|
8
261
|
}
|
|
9
|
-
function createInstrumentationScope(
|
|
262
|
+
function createInstrumentationScope(scope) {
|
|
10
263
|
return {
|
|
11
|
-
name:
|
|
12
|
-
version:
|
|
264
|
+
name: scope.name,
|
|
265
|
+
version: scope.version
|
|
13
266
|
};
|
|
14
267
|
}
|
|
15
|
-
function toAttributes(
|
|
16
|
-
return Object.keys(
|
|
268
|
+
function toAttributes(attributes, encoder) {
|
|
269
|
+
return Object.keys(attributes).map((key) => toKeyValue(key, attributes[key], encoder));
|
|
17
270
|
}
|
|
18
|
-
function toKeyValue(
|
|
271
|
+
function toKeyValue(key, value, encoder) {
|
|
19
272
|
return {
|
|
20
|
-
key
|
|
21
|
-
value: toAnyValue(
|
|
273
|
+
key,
|
|
274
|
+
value: toAnyValue(value, encoder)
|
|
22
275
|
};
|
|
23
276
|
}
|
|
24
|
-
function toAnyValue(
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
277
|
+
function toAnyValue(value, encoder) {
|
|
278
|
+
const t = typeof value;
|
|
279
|
+
if (t === "string") return { stringValue: value };
|
|
280
|
+
if (t === "number") {
|
|
281
|
+
if (!Number.isInteger(value)) return { doubleValue: value };
|
|
282
|
+
return { intValue: value };
|
|
283
|
+
}
|
|
284
|
+
if (t === "boolean") return { boolValue: value };
|
|
285
|
+
if (value instanceof Uint8Array) return { bytesValue: encoder.encodeUint8Array(value) };
|
|
286
|
+
if (Array.isArray(value)) {
|
|
287
|
+
const values = new Array(value.length);
|
|
288
|
+
for (let i = 0; i < value.length; i++) values[i] = toAnyValue(value[i], encoder);
|
|
289
|
+
return { arrayValue: { values } };
|
|
290
|
+
}
|
|
291
|
+
if (t === "object" && value != null) {
|
|
292
|
+
const keys = Object.keys(value);
|
|
293
|
+
const values = new Array(keys.length);
|
|
294
|
+
for (let i = 0; i < keys.length; i++) values[i] = {
|
|
295
|
+
key: keys[i],
|
|
296
|
+
value: toAnyValue(value[keys[i]], encoder)
|
|
40
297
|
};
|
|
41
|
-
return { kvlistValue: { values
|
|
298
|
+
return { kvlistValue: { values } };
|
|
42
299
|
}
|
|
43
300
|
return {};
|
|
44
301
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
302
|
+
function hrTimeToNanos(hrTime) {
|
|
303
|
+
const NANOSECONDS = BigInt(1e9);
|
|
304
|
+
return BigInt(Math.trunc(hrTime[0])) * NANOSECONDS + BigInt(Math.trunc(hrTime[1]));
|
|
305
|
+
}
|
|
306
|
+
function encodeAsString(hrTime) {
|
|
307
|
+
return hrTimeToNanos(hrTime).toString();
|
|
47
308
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
309
|
+
const encodeTimestamp = typeof BigInt !== "undefined" ? encodeAsString : hrTimeToNanoseconds;
|
|
310
|
+
function identity(value) {
|
|
311
|
+
return value;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Encoder for JSON format.
|
|
315
|
+
* Uses string timestamps, hex for span/trace IDs, and base64 for Uint8Array.
|
|
316
|
+
*/
|
|
317
|
+
const JSON_ENCODER = {
|
|
318
|
+
encodeHrTime: encodeTimestamp,
|
|
319
|
+
encodeSpanContext: identity,
|
|
320
|
+
encodeOptionalSpanContext: identity,
|
|
321
|
+
encodeUint8Array: (bytes) => {
|
|
322
|
+
if (typeof Buffer !== "undefined") return Buffer.from(bytes).toString("base64");
|
|
323
|
+
const chars = new Array(bytes.length);
|
|
324
|
+
for (let i = 0; i < bytes.length; i++) chars[i] = String.fromCharCode(bytes[i]);
|
|
325
|
+
return btoa(chars.join(""));
|
|
55
326
|
}
|
|
56
|
-
|
|
327
|
+
};
|
|
328
|
+
function createExportLogsServiceRequest(logRecords, encoder) {
|
|
329
|
+
return { resourceLogs: logRecordsToResourceLogs(logRecords, encoder) };
|
|
57
330
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
331
|
+
function createResourceMap$1(logRecords) {
|
|
332
|
+
const resourceMap = /* @__PURE__ */ new Map();
|
|
333
|
+
for (const record of logRecords) {
|
|
334
|
+
const { resource, instrumentationScope: { name, version = "", schemaUrl = "" } } = record;
|
|
335
|
+
let ismMap = resourceMap.get(resource);
|
|
336
|
+
if (!ismMap) {
|
|
337
|
+
ismMap = /* @__PURE__ */ new Map();
|
|
338
|
+
resourceMap.set(resource, ismMap);
|
|
339
|
+
}
|
|
340
|
+
const ismKey = `${name}@${version}:${schemaUrl}`;
|
|
341
|
+
let records = ismMap.get(ismKey);
|
|
342
|
+
if (!records) {
|
|
343
|
+
records = [];
|
|
344
|
+
ismMap.set(ismKey, records);
|
|
345
|
+
}
|
|
346
|
+
records.push(record);
|
|
347
|
+
}
|
|
348
|
+
return resourceMap;
|
|
349
|
+
}
|
|
350
|
+
function logRecordsToResourceLogs(logRecords, encoder) {
|
|
351
|
+
const resourceMap = createResourceMap$1(logRecords);
|
|
352
|
+
return Array.from(resourceMap, ([resource, ismMap]) => {
|
|
353
|
+
const processedResource = createResource(resource, encoder);
|
|
62
354
|
return {
|
|
63
|
-
resource:
|
|
64
|
-
scopeLogs: Array.from(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
355
|
+
resource: processedResource,
|
|
356
|
+
scopeLogs: Array.from(ismMap, ([, scopeLogs]) => {
|
|
357
|
+
return {
|
|
358
|
+
scope: createInstrumentationScope(scopeLogs[0].instrumentationScope),
|
|
359
|
+
logRecords: scopeLogs.map((log) => toLogRecord(log, encoder)),
|
|
360
|
+
schemaUrl: scopeLogs[0].instrumentationScope.schemaUrl
|
|
361
|
+
};
|
|
362
|
+
}),
|
|
363
|
+
schemaUrl: processedResource.schemaUrl
|
|
70
364
|
};
|
|
71
365
|
});
|
|
72
366
|
}
|
|
73
|
-
function toLogRecord(
|
|
367
|
+
function toLogRecord(log, encoder) {
|
|
74
368
|
return {
|
|
75
|
-
timeUnixNano:
|
|
76
|
-
observedTimeUnixNano:
|
|
77
|
-
severityNumber: toSeverityNumber(
|
|
78
|
-
severityText:
|
|
79
|
-
body: toAnyValue(
|
|
80
|
-
eventName:
|
|
81
|
-
attributes: toLogAttributes(
|
|
82
|
-
droppedAttributesCount:
|
|
83
|
-
flags:
|
|
84
|
-
traceId:
|
|
85
|
-
spanId:
|
|
369
|
+
timeUnixNano: encoder.encodeHrTime(log.hrTime),
|
|
370
|
+
observedTimeUnixNano: encoder.encodeHrTime(log.hrTimeObserved),
|
|
371
|
+
severityNumber: toSeverityNumber(log.severityNumber),
|
|
372
|
+
severityText: log.severityText,
|
|
373
|
+
body: toAnyValue(log.body, encoder),
|
|
374
|
+
eventName: log.eventName,
|
|
375
|
+
attributes: toLogAttributes(log.attributes, encoder),
|
|
376
|
+
droppedAttributesCount: log.droppedAttributesCount,
|
|
377
|
+
flags: log.spanContext?.traceFlags,
|
|
378
|
+
traceId: encoder.encodeOptionalSpanContext(log.spanContext?.traceId),
|
|
379
|
+
spanId: encoder.encodeOptionalSpanContext(log.spanContext?.spanId)
|
|
86
380
|
};
|
|
87
381
|
}
|
|
88
|
-
function toSeverityNumber(
|
|
89
|
-
return
|
|
90
|
-
}
|
|
91
|
-
function toLogAttributes(e, t) {
|
|
92
|
-
return Object.keys(e).map((n) => toKeyValue(n, e[n], t));
|
|
93
|
-
}
|
|
94
|
-
const SECOND_TO_NANOSECONDS = 10 ** 9;
|
|
95
|
-
function hrTimeToNanoseconds(e) {
|
|
96
|
-
return e[0] * SECOND_TO_NANOSECONDS + e[1];
|
|
97
|
-
}
|
|
98
|
-
function hrTimeToNanos(e) {
|
|
99
|
-
let t = BigInt(1e9);
|
|
100
|
-
return BigInt(Math.trunc(e[0])) * t + BigInt(Math.trunc(e[1]));
|
|
101
|
-
}
|
|
102
|
-
function encodeAsString(e) {
|
|
103
|
-
return hrTimeToNanos(e).toString();
|
|
382
|
+
function toSeverityNumber(severityNumber) {
|
|
383
|
+
return severityNumber;
|
|
104
384
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return e;
|
|
385
|
+
function toLogAttributes(attributes, encoder) {
|
|
386
|
+
return Object.keys(attributes).map((key) => toKeyValue(key, attributes[key], encoder));
|
|
108
387
|
}
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
388
|
+
const JsonLogsSerializer = {
|
|
389
|
+
serializeRequest: (arg) => {
|
|
390
|
+
const request = createExportLogsServiceRequest(arg, JSON_ENCODER);
|
|
391
|
+
return new TextEncoder().encode(JSON.stringify(request));
|
|
392
|
+
},
|
|
393
|
+
deserializeResponse: (arg) => {
|
|
394
|
+
if (arg.length === 0) return {};
|
|
395
|
+
const decoder = new TextDecoder();
|
|
396
|
+
try {
|
|
397
|
+
return JSON.parse(decoder.decode(arg));
|
|
398
|
+
} catch (err) {
|
|
399
|
+
diag.warn(`Failed to parse logs export response: ${err.message}. Returning empty response`);
|
|
400
|
+
return {};
|
|
401
|
+
}
|
|
118
402
|
}
|
|
119
403
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
404
|
+
const SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK = 256;
|
|
405
|
+
const SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 512;
|
|
406
|
+
/**
|
|
407
|
+
* Builds the 32-bit span flags value combining the low 8-bit W3C TraceFlags
|
|
408
|
+
* with the HAS_IS_REMOTE and IS_REMOTE bits according to the OTLP spec.
|
|
409
|
+
*/
|
|
410
|
+
function buildSpanFlagsFrom(traceFlags, isRemote) {
|
|
411
|
+
let flags = traceFlags & 255 | SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK;
|
|
412
|
+
if (isRemote) flags |= SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK;
|
|
413
|
+
return flags;
|
|
123
414
|
}
|
|
124
|
-
function sdkSpanToOtlpSpan(
|
|
125
|
-
|
|
415
|
+
function sdkSpanToOtlpSpan(span, encoder) {
|
|
416
|
+
const ctx = span.spanContext();
|
|
417
|
+
const status = span.status;
|
|
418
|
+
const parentSpanId = span.parentSpanContext?.spanId ? encoder.encodeSpanContext(span.parentSpanContext?.spanId) : void 0;
|
|
126
419
|
return {
|
|
127
|
-
traceId:
|
|
128
|
-
spanId:
|
|
129
|
-
parentSpanId
|
|
130
|
-
traceState:
|
|
131
|
-
name:
|
|
132
|
-
kind:
|
|
133
|
-
startTimeUnixNano:
|
|
134
|
-
endTimeUnixNano:
|
|
135
|
-
attributes: toAttributes(
|
|
136
|
-
droppedAttributesCount:
|
|
137
|
-
events:
|
|
138
|
-
droppedEventsCount:
|
|
420
|
+
traceId: encoder.encodeSpanContext(ctx.traceId),
|
|
421
|
+
spanId: encoder.encodeSpanContext(ctx.spanId),
|
|
422
|
+
parentSpanId,
|
|
423
|
+
traceState: ctx.traceState?.serialize(),
|
|
424
|
+
name: span.name,
|
|
425
|
+
kind: span.kind == null ? 0 : span.kind + 1,
|
|
426
|
+
startTimeUnixNano: encoder.encodeHrTime(span.startTime),
|
|
427
|
+
endTimeUnixNano: encoder.encodeHrTime(span.endTime),
|
|
428
|
+
attributes: toAttributes(span.attributes, encoder),
|
|
429
|
+
droppedAttributesCount: span.droppedAttributesCount,
|
|
430
|
+
events: span.events.map((event) => toOtlpSpanEvent(event, encoder)),
|
|
431
|
+
droppedEventsCount: span.droppedEventsCount,
|
|
139
432
|
status: {
|
|
140
|
-
code:
|
|
141
|
-
message:
|
|
433
|
+
code: status.code,
|
|
434
|
+
message: status.message
|
|
142
435
|
},
|
|
143
|
-
links:
|
|
144
|
-
droppedLinksCount:
|
|
145
|
-
flags: buildSpanFlagsFrom(
|
|
436
|
+
links: span.links.map((link) => toOtlpLink(link, encoder)),
|
|
437
|
+
droppedLinksCount: span.droppedLinksCount,
|
|
438
|
+
flags: buildSpanFlagsFrom(ctx.traceFlags, span.parentSpanContext?.isRemote)
|
|
146
439
|
};
|
|
147
440
|
}
|
|
148
|
-
function toOtlpLink(
|
|
441
|
+
function toOtlpLink(link, encoder) {
|
|
149
442
|
return {
|
|
150
|
-
attributes:
|
|
151
|
-
spanId:
|
|
152
|
-
traceId:
|
|
153
|
-
traceState:
|
|
154
|
-
droppedAttributesCount:
|
|
155
|
-
flags: buildSpanFlagsFrom(
|
|
443
|
+
attributes: link.attributes ? toAttributes(link.attributes, encoder) : [],
|
|
444
|
+
spanId: encoder.encodeSpanContext(link.context.spanId),
|
|
445
|
+
traceId: encoder.encodeSpanContext(link.context.traceId),
|
|
446
|
+
traceState: link.context.traceState?.serialize(),
|
|
447
|
+
droppedAttributesCount: link.droppedAttributesCount || 0,
|
|
448
|
+
flags: buildSpanFlagsFrom(link.context.traceFlags, link.context.isRemote)
|
|
156
449
|
};
|
|
157
450
|
}
|
|
158
|
-
function toOtlpSpanEvent(
|
|
451
|
+
function toOtlpSpanEvent(timedEvent, encoder) {
|
|
159
452
|
return {
|
|
160
|
-
attributes:
|
|
161
|
-
name:
|
|
162
|
-
timeUnixNano:
|
|
163
|
-
droppedAttributesCount:
|
|
453
|
+
attributes: timedEvent.attributes ? toAttributes(timedEvent.attributes, encoder) : [],
|
|
454
|
+
name: timedEvent.name,
|
|
455
|
+
timeUnixNano: encoder.encodeHrTime(timedEvent.time),
|
|
456
|
+
droppedAttributesCount: timedEvent.droppedAttributesCount || 0
|
|
164
457
|
};
|
|
165
458
|
}
|
|
166
|
-
function createExportTraceServiceRequest(
|
|
167
|
-
return { resourceSpans: spanRecordsToResourceSpans(
|
|
168
|
-
}
|
|
169
|
-
function createResourceMap(
|
|
170
|
-
|
|
171
|
-
for (
|
|
172
|
-
let
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
459
|
+
function createExportTraceServiceRequest(spans, encoder) {
|
|
460
|
+
return { resourceSpans: spanRecordsToResourceSpans(spans, encoder) };
|
|
461
|
+
}
|
|
462
|
+
function createResourceMap(readableSpans) {
|
|
463
|
+
const resourceMap = /* @__PURE__ */ new Map();
|
|
464
|
+
for (const record of readableSpans) {
|
|
465
|
+
let ilsMap = resourceMap.get(record.resource);
|
|
466
|
+
if (!ilsMap) {
|
|
467
|
+
ilsMap = /* @__PURE__ */ new Map();
|
|
468
|
+
resourceMap.set(record.resource, ilsMap);
|
|
469
|
+
}
|
|
470
|
+
const instrumentationScopeKey = `${record.instrumentationScope.name}@${record.instrumentationScope.version || ""}:${record.instrumentationScope.schemaUrl || ""}`;
|
|
471
|
+
let records = ilsMap.get(instrumentationScopeKey);
|
|
472
|
+
if (!records) {
|
|
473
|
+
records = [];
|
|
474
|
+
ilsMap.set(instrumentationScopeKey, records);
|
|
475
|
+
}
|
|
476
|
+
records.push(record);
|
|
477
|
+
}
|
|
478
|
+
return resourceMap;
|
|
479
|
+
}
|
|
480
|
+
function spanRecordsToResourceSpans(readableSpans, encoder) {
|
|
481
|
+
const resourceMap = createResourceMap(readableSpans);
|
|
482
|
+
const out = [];
|
|
483
|
+
const entryIterator = resourceMap.entries();
|
|
484
|
+
let entry = entryIterator.next();
|
|
485
|
+
while (!entry.done) {
|
|
486
|
+
const [resource, ilmMap] = entry.value;
|
|
487
|
+
const scopeResourceSpans = [];
|
|
488
|
+
const ilmIterator = ilmMap.values();
|
|
489
|
+
let ilmEntry = ilmIterator.next();
|
|
490
|
+
while (!ilmEntry.done) {
|
|
491
|
+
const scopeSpans = ilmEntry.value;
|
|
492
|
+
if (scopeSpans.length > 0) {
|
|
493
|
+
const spans = scopeSpans.map((readableSpan) => sdkSpanToOtlpSpan(readableSpan, encoder));
|
|
494
|
+
scopeResourceSpans.push({
|
|
495
|
+
scope: createInstrumentationScope(scopeSpans[0].instrumentationScope),
|
|
496
|
+
spans,
|
|
497
|
+
schemaUrl: scopeSpans[0].instrumentationScope.schemaUrl
|
|
191
498
|
});
|
|
192
499
|
}
|
|
193
|
-
|
|
500
|
+
ilmEntry = ilmIterator.next();
|
|
194
501
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
502
|
+
const processedResource = createResource(resource, encoder);
|
|
503
|
+
const transformedSpans = {
|
|
504
|
+
resource: processedResource,
|
|
505
|
+
scopeSpans: scopeResourceSpans,
|
|
506
|
+
schemaUrl: processedResource.schemaUrl
|
|
199
507
|
};
|
|
200
|
-
|
|
508
|
+
out.push(transformedSpans);
|
|
509
|
+
entry = entryIterator.next();
|
|
201
510
|
}
|
|
202
|
-
return
|
|
511
|
+
return out;
|
|
203
512
|
}
|
|
204
|
-
const
|
|
205
|
-
serializeRequest: (
|
|
206
|
-
|
|
207
|
-
return new TextEncoder().encode(JSON.stringify(
|
|
513
|
+
const JsonTraceSerializer = {
|
|
514
|
+
serializeRequest: (arg) => {
|
|
515
|
+
const request = createExportTraceServiceRequest(arg, JSON_ENCODER);
|
|
516
|
+
return new TextEncoder().encode(JSON.stringify(request));
|
|
208
517
|
},
|
|
209
|
-
deserializeResponse: (
|
|
210
|
-
if (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
deserializeResponse: (e) => {
|
|
220
|
-
if (e.length === 0) return {};
|
|
221
|
-
let t = new TextDecoder();
|
|
222
|
-
return JSON.parse(t.decode(e));
|
|
518
|
+
deserializeResponse: (arg) => {
|
|
519
|
+
if (arg.length === 0) return {};
|
|
520
|
+
const decoder = new TextDecoder();
|
|
521
|
+
try {
|
|
522
|
+
return JSON.parse(decoder.decode(arg));
|
|
523
|
+
} catch (err) {
|
|
524
|
+
diag.warn(`Failed to parse trace export response: ${err.message}. Returning empty response`);
|
|
525
|
+
return {};
|
|
526
|
+
}
|
|
223
527
|
}
|
|
224
528
|
};
|
|
225
|
-
|
|
226
529
|
//#endregion
|
|
227
530
|
export { JsonLogsSerializer, JsonTraceSerializer };
|
|
531
|
+
|
|
228
532
|
//# sourceMappingURL=index.js.map
|