@utk09/ui-observability 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +111 -219
- package/README.md +24 -26
- package/dist/{batch-CXmPmTse.js → batch-120Kc9jr.js} +3 -3
- package/dist/{batch-CXmPmTse.js.map → batch-120Kc9jr.js.map} +1 -1
- package/dist/{batch-mmPigCpi.cjs → batch-C3uNp5kU.cjs} +2 -2
- package/dist/{batch-mmPigCpi.cjs.map → batch-C3uNp5kU.cjs.map} +1 -1
- package/dist/bus/bus.d.cts +31 -2
- package/dist/bus/bus.d.ts +31 -2
- package/dist/bus-Dj8IEVcC.cjs +2 -0
- package/dist/bus-Dj8IEVcC.cjs.map +1 -0
- package/dist/{bus-C39wspFV.js → bus-DyNafxZN.js} +127 -104
- package/dist/bus-DyNafxZN.js.map +1 -0
- package/dist/capture/errors.d.cts +10 -0
- package/dist/capture/errors.d.ts +10 -0
- package/dist/capture/interactions.d.cts +35 -3
- package/dist/capture/interactions.d.ts +35 -3
- package/dist/capture/observed-windows.d.cts +51 -0
- package/dist/capture/observed-windows.d.ts +51 -0
- package/dist/capture/replay.d.cts +1 -1
- package/dist/capture/replay.d.ts +1 -1
- package/dist/capture/types.d.cts +5 -0
- package/dist/capture/types.d.ts +5 -0
- package/dist/capture/web-vitals.d.cts +1 -0
- package/dist/capture/web-vitals.d.ts +1 -0
- package/dist/{compression-tVtXwVjX.js → compression-BWkDWY3v.js} +2 -2
- package/dist/{compression-tVtXwVjX.js.map → compression-BWkDWY3v.js.map} +1 -1
- package/dist/{compression-CvED_Jel.cjs → compression-CEVe7NPX.cjs} +2 -2
- package/dist/{compression-CvED_Jel.cjs.map → compression-CEVe7NPX.cjs.map} +1 -1
- package/dist/config-C0PtemvC.cjs +2 -0
- package/dist/config-C0PtemvC.cjs.map +1 -0
- package/dist/config-DK1Zf7jn.js +556 -0
- package/dist/config-DK1Zf7jn.js.map +1 -0
- package/dist/{console-BGgGnjSi.js → console-CAyCQOpm.js} +5 -5
- package/dist/{console-BGgGnjSi.js.map → console-CAyCQOpm.js.map} +1 -1
- package/dist/{console-CSZ5_Vx5.cjs → console-Dk6GH4yj.cjs} +2 -2
- package/dist/{console-CSZ5_Vx5.cjs.map → console-Dk6GH4yj.cjs.map} +1 -1
- package/dist/{constants-CUyd9cTZ.js → constants-CEHN6KuY.js} +46 -25
- package/dist/constants-CEHN6KuY.js.map +1 -0
- package/dist/constants-NtiQDWL_.cjs +2 -0
- package/dist/constants-NtiQDWL_.cjs.map +1 -0
- package/dist/constants.d.cts +23 -0
- package/dist/constants.d.ts +23 -0
- package/dist/core/config.d.cts +9 -3
- package/dist/core/config.d.ts +9 -3
- package/dist/core/diagnostics.d.cts +1 -1
- package/dist/core/diagnostics.d.ts +1 -1
- package/dist/core/pipeline.d.cts +11 -0
- package/dist/core/pipeline.d.ts +11 -0
- package/dist/core/record.d.cts +2 -2
- package/dist/core/record.d.ts +2 -2
- package/dist/core/rotation.d.cts +26 -2
- package/dist/core/rotation.d.ts +26 -2
- package/dist/core/runtime.d.cts +9 -0
- package/dist/core/runtime.d.ts +9 -0
- package/dist/core/sender.d.cts +3 -2
- package/dist/core/sender.d.ts +3 -2
- package/dist/{debug-bundle-BXIlwDKM.cjs → debug-bundle-DMzUfiQc.cjs} +2 -2
- package/dist/{debug-bundle-BXIlwDKM.cjs.map → debug-bundle-DMzUfiQc.cjs.map} +1 -1
- package/dist/{debug-bundle-CRpYV_ui.js → debug-bundle-w78W46zr.js} +4 -4
- package/dist/{debug-bundle-CRpYV_ui.js.map → debug-bundle-w78W46zr.js.map} +1 -1
- package/dist/doctor.cjs +1 -1
- package/dist/doctor.js +36 -36
- package/dist/doctor.js.map +1 -1
- package/dist/errors-07pmZ7VY.cjs +3 -0
- package/dist/errors-07pmZ7VY.cjs.map +1 -0
- package/dist/{errors-BE_EZV7Q.js → errors-C-LYbqyB.js} +27 -24
- package/dist/errors-C-LYbqyB.js.map +1 -0
- package/dist/{factory-CTi0Is3F.js → factory-BHYrcSaU.js} +39 -28
- package/dist/factory-BHYrcSaU.js.map +1 -0
- package/dist/factory-DsaNdcXp.cjs +2 -0
- package/dist/factory-DsaNdcXp.cjs.map +1 -0
- package/dist/{identity-DdhKgrpk.js → identity-Byh3gCdT.js} +35 -24
- package/dist/identity-Byh3gCdT.js.map +1 -0
- package/dist/identity-BzAzdQyv.cjs +2 -0
- package/dist/identity-BzAzdQyv.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +453 -417
- package/dist/index.js.map +1 -1
- package/dist/{indexeddb-storage-GHdl0t8A.js → indexeddb-storage-BYywz-v6.js} +17 -17
- package/dist/{indexeddb-storage-GHdl0t8A.js.map → indexeddb-storage-BYywz-v6.js.map} +1 -1
- package/dist/{indexeddb-storage-CL9uqBCy.cjs → indexeddb-storage-BfqGkLFe.cjs} +2 -2
- package/dist/{indexeddb-storage-CL9uqBCy.cjs.map → indexeddb-storage-BfqGkLFe.cjs.map} +1 -1
- package/dist/interactions-BXzEel4F.cjs +2 -0
- package/dist/interactions-BXzEel4F.cjs.map +1 -0
- package/dist/interactions-DdKPMWIN.js +207 -0
- package/dist/interactions-DdKPMWIN.js.map +1 -0
- package/dist/{journey-B4Adltjm.cjs → journey-BUmsrgaw.cjs} +2 -2
- package/dist/{journey-B4Adltjm.cjs.map → journey-BUmsrgaw.cjs.map} +1 -1
- package/dist/{journey-D2_sia57.js → journey-Nu655gEO.js} +14 -14
- package/dist/{journey-D2_sia57.js.map → journey-Nu655gEO.js.map} +1 -1
- package/dist/{library-console-CPW6bvZH.cjs → library-console-DdIlzzph.cjs} +2 -2
- package/dist/{library-console-CPW6bvZH.cjs.map → library-console-DdIlzzph.cjs.map} +1 -1
- package/dist/{library-console-Btrzt814.js → library-console-amePMnP8.js} +2 -2
- package/dist/{library-console-Btrzt814.js.map → library-console-amePMnP8.js.map} +1 -1
- package/dist/{library-request-BJ9PLRaD.js → library-request-Cv7C05jf.js} +2 -2
- package/dist/{library-request-BJ9PLRaD.js.map → library-request-Cv7C05jf.js.map} +1 -1
- package/dist/{library-request-D7OvTxZV.cjs → library-request-DO3Ec7KE.cjs} +2 -2
- package/dist/{library-request-D7OvTxZV.cjs.map → library-request-DO3Ec7KE.cjs.map} +1 -1
- package/dist/{lifecycle-IaAm1mOC.cjs → lifecycle-B5yfH5is.cjs} +2 -2
- package/dist/{lifecycle-IaAm1mOC.cjs.map → lifecycle-B5yfH5is.cjs.map} +1 -1
- package/dist/{lifecycle-22CUCrc9.js → lifecycle-CMHz2Zbs.js} +2 -2
- package/dist/{lifecycle-22CUCrc9.js.map → lifecycle-CMHz2Zbs.js.map} +1 -1
- package/dist/{log-record-BNiLfqtL.js → log-record-B_nSqxoe.js} +2 -2
- package/dist/{log-record-BNiLfqtL.js.map → log-record-B_nSqxoe.js.map} +1 -1
- package/dist/{log-record-CkivuiEl.cjs → log-record-Bdywwg0k.cjs} +2 -2
- package/dist/{log-record-CkivuiEl.cjs.map → log-record-Bdywwg0k.cjs.map} +1 -1
- package/dist/{long-frames-DNFaRnC3.js → long-frames-6NGl1-uN.js} +3 -3
- package/dist/{long-frames-DNFaRnC3.js.map → long-frames-6NGl1-uN.js.map} +1 -1
- package/dist/{long-frames-BUUbXd-B.cjs → long-frames-D9DfSWqv.cjs} +2 -2
- package/dist/{long-frames-BUUbXd-B.cjs.map → long-frames-D9DfSWqv.cjs.map} +1 -1
- package/dist/models/bus.d.cts +6 -1
- package/dist/models/bus.d.ts +6 -1
- package/dist/models/config.d.cts +27 -11
- package/dist/models/config.d.ts +27 -11
- package/dist/models/serializer.d.cts +3 -1
- package/dist/models/serializer.d.ts +3 -1
- package/dist/{network-CGMLQ-mA.cjs → network-BNHBI0Fc.cjs} +2 -2
- package/dist/{network-CGMLQ-mA.cjs.map → network-BNHBI0Fc.cjs.map} +1 -1
- package/dist/{network-on2zZT6H.js → network-Cc3tSB7e.js} +5 -5
- package/dist/{network-on2zZT6H.js.map → network-Cc3tSB7e.js.map} +1 -1
- package/dist/observed-windows-8JtCsIr1.js +64 -0
- package/dist/observed-windows-8JtCsIr1.js.map +1 -0
- package/dist/observed-windows-BlE25nrn.cjs +2 -0
- package/dist/observed-windows-BlE25nrn.cjs.map +1 -0
- package/dist/openfin-Bxelt0yg.js.map +1 -1
- package/dist/openfin-DtH2f7zX.cjs.map +1 -1
- package/dist/{otlp-DimfrRor.js → otlp-Btix3EBa.js} +7 -7
- package/dist/{otlp-DimfrRor.js.map → otlp-Btix3EBa.js.map} +1 -1
- package/dist/{otlp-BENHf3g9.cjs → otlp-CFSW-Dno.cjs} +2 -2
- package/dist/{otlp-BENHf3g9.cjs.map → otlp-CFSW-Dno.cjs.map} +1 -1
- package/dist/patch-DlcKzIi-.cjs +2 -0
- package/dist/patch-DlcKzIi-.cjs.map +1 -0
- package/dist/patch-Sr1wKg7W.js +9 -0
- package/dist/patch-Sr1wKg7W.js.map +1 -0
- package/dist/platform-BZjp9wp1.cjs +2 -0
- package/dist/platform-BZjp9wp1.cjs.map +1 -0
- package/dist/platform-Dba6R3Hp.js +75 -0
- package/dist/platform-Dba6R3Hp.js.map +1 -0
- package/dist/{profiler-BAZoh7A4.js → profiler-DNKcqu09.js} +60 -60
- package/dist/{profiler-BAZoh7A4.js.map → profiler-DNKcqu09.js.map} +1 -1
- package/dist/{profiler-D4tJpDRc.cjs → profiler-DpoPi1hH.cjs} +2 -2
- package/dist/{profiler-D4tJpDRc.cjs.map → profiler-DpoPi1hH.cjs.map} +1 -1
- package/dist/{profiler-frames-C4xr7KfH.cjs → profiler-frames-C9zJNd8_.cjs} +2 -2
- package/dist/{profiler-frames-C4xr7KfH.cjs.map → profiler-frames-C9zJNd8_.cjs.map} +1 -1
- package/dist/{profiler-frames-cJMx9wNM.js → profiler-frames-CGXZeZ_3.js} +16 -16
- package/dist/{profiler-frames-cJMx9wNM.js.map → profiler-frames-CGXZeZ_3.js.map} +1 -1
- package/dist/{remote-rules-Dz9MRAsB.js → remote-rules-DNK96vLa.js} +25 -25
- package/dist/{remote-rules-Dz9MRAsB.js.map → remote-rules-DNK96vLa.js.map} +1 -1
- package/dist/{remote-rules-_tY0zj5o.cjs → remote-rules-DuMFRlit.cjs} +2 -2
- package/dist/{remote-rules-_tY0zj5o.cjs.map → remote-rules-DuMFRlit.cjs.map} +1 -1
- package/dist/replay-Cab-lSit.cjs +2 -0
- package/dist/replay-Cab-lSit.cjs.map +1 -0
- package/dist/{replay-Ds-ANH34.js → replay-Dy6OiaOZ.js} +104 -77
- package/dist/replay-Dy6OiaOZ.js.map +1 -0
- package/dist/{reports-BDSe4dFH.cjs → reports-CGK9YQch.cjs} +2 -2
- package/dist/{reports-BDSe4dFH.cjs.map → reports-CGK9YQch.cjs.map} +1 -1
- package/dist/{reports-C-thq-bk.js → reports-CX57-S9s.js} +3 -3
- package/dist/{reports-C-thq-bk.js.map → reports-CX57-S9s.js.map} +1 -1
- package/dist/{resource-timing-eUl2dNgC.js → resource-timing-CWVDCbrY.js} +4 -4
- package/dist/{resource-timing-eUl2dNgC.js.map → resource-timing-CWVDCbrY.js.map} +1 -1
- package/dist/{resource-timing-C576gFIQ.cjs → resource-timing-DalulXiR.cjs} +2 -2
- package/dist/{resource-timing-C576gFIQ.cjs.map → resource-timing-DalulXiR.cjs.map} +1 -1
- package/dist/response-body-Cpz5__4g.cjs +3 -0
- package/dist/response-body-Cpz5__4g.cjs.map +1 -0
- package/dist/{response-body-eoSQpLiH.js → response-body-yi92Rpvo.js} +109 -109
- package/dist/response-body-yi92Rpvo.js.map +1 -0
- package/dist/{rotation-Cwct4ckk.js → rotation-ChBbNDE2.js} +27 -28
- package/dist/rotation-ChBbNDE2.js.map +1 -0
- package/dist/rotation-fTnNJcfH.cjs +2 -0
- package/dist/rotation-fTnNJcfH.cjs.map +1 -0
- package/dist/{sampling-BlrI8jor.js → sampling-DZTOD28D.js} +16 -16
- package/dist/{sampling-BlrI8jor.js.map → sampling-DZTOD28D.js.map} +1 -1
- package/dist/{sampling-mXt4dstx.cjs → sampling-wAVJIZXp.cjs} +2 -2
- package/dist/{sampling-mXt4dstx.cjs.map → sampling-wAVJIZXp.cjs.map} +1 -1
- package/dist/{sanitize-Ba0KqU06.js → sanitize-B2GKlSFp.js} +2 -2
- package/dist/{sanitize-Ba0KqU06.js.map → sanitize-B2GKlSFp.js.map} +1 -1
- package/dist/{sanitize-DQyiI_KY.cjs → sanitize-BZdhoghq.cjs} +2 -2
- package/dist/{sanitize-DQyiI_KY.cjs.map → sanitize-BZdhoghq.cjs.map} +1 -1
- package/dist/{sender-Dv8rAmpV.js → sender-BRSpc7R8.js} +192 -178
- package/dist/sender-BRSpc7R8.js.map +1 -0
- package/dist/sender-CFu98DAB.cjs +2 -0
- package/dist/sender-CFu98DAB.cjs.map +1 -0
- package/dist/storage/emergency-queue.d.cts +3 -1
- package/dist/storage/emergency-queue.d.ts +3 -1
- package/dist/storage/stored-context.d.cts +3 -2
- package/dist/storage/stored-context.d.ts +3 -2
- package/dist/stored-context-CPLlzgpm.cjs +2 -0
- package/dist/stored-context-CPLlzgpm.cjs.map +1 -0
- package/dist/{stored-context-B2EzVuYm.js → stored-context-df1dEnht.js} +12 -10
- package/dist/stored-context-df1dEnht.js.map +1 -0
- package/dist/{storm-DjKetLKZ.js → storm-U3_ek1nA.js} +2 -2
- package/dist/{storm-DjKetLKZ.js.map → storm-U3_ek1nA.js.map} +1 -1
- package/dist/{storm-C-zYSdDX.cjs → storm-qiE_AMC7.cjs} +2 -2
- package/dist/{storm-C-zYSdDX.cjs.map → storm-qiE_AMC7.cjs.map} +1 -1
- package/dist/transport/exit-flush.d.cts +23 -0
- package/dist/transport/exit-flush.d.ts +23 -0
- package/dist/transport/http-transport.d.cts +3 -2
- package/dist/transport/http-transport.d.ts +3 -2
- package/dist/transport/retry-engine.d.cts +11 -3
- package/dist/transport/retry-engine.d.ts +11 -3
- package/dist/types-BAerHgCq.js.map +1 -1
- package/dist/types-C7WNpnG1.cjs.map +1 -1
- package/dist/{unclean-exit-DQD1cT7c.js → unclean-exit-Bj6gYHeL.js} +2 -2
- package/dist/{unclean-exit-DQD1cT7c.js.map → unclean-exit-Bj6gYHeL.js.map} +1 -1
- package/dist/{unclean-exit-py99ApzT.cjs → unclean-exit-CuBh-ee5.cjs} +2 -2
- package/dist/{unclean-exit-py99ApzT.cjs.map → unclean-exit-CuBh-ee5.cjs.map} +1 -1
- package/dist/{user-timing-D6XTmpuM.cjs → user-timing-BWqzYF2Q.cjs} +2 -2
- package/dist/{user-timing-D6XTmpuM.cjs.map → user-timing-BWqzYF2Q.cjs.map} +1 -1
- package/dist/{user-timing-BePqb1uN.js → user-timing-Duz0d-OA.js} +2 -2
- package/dist/{user-timing-BePqb1uN.js.map → user-timing-Duz0d-OA.js.map} +1 -1
- package/dist/utils/identity.d.cts +5 -0
- package/dist/utils/identity.d.ts +5 -0
- package/dist/utils/lock.d.cts +3 -2
- package/dist/utils/lock.d.ts +3 -2
- package/dist/utils/openfin.d.cts +18 -6
- package/dist/utils/openfin.d.ts +18 -6
- package/dist/utils/patch.d.cts +1 -1
- package/dist/utils/patch.d.ts +1 -1
- package/dist/utils/platform.d.cts +6 -0
- package/dist/utils/platform.d.ts +6 -0
- package/dist/{web-socket-DSHgDiZ6.js → web-socket-CE_9Q22z.js} +5 -5
- package/dist/{web-socket-DSHgDiZ6.js.map → web-socket-CE_9Q22z.js.map} +1 -1
- package/dist/{web-socket-CoIUBM3C.cjs → web-socket-sm3rD-A_.cjs} +2 -2
- package/dist/{web-socket-CoIUBM3C.cjs.map → web-socket-sm3rD-A_.cjs.map} +1 -1
- package/dist/{web-vitals-4pWACwaR.js → web-vitals-CGwXGF-M.js} +4 -4
- package/dist/web-vitals-CGwXGF-M.js.map +1 -0
- package/dist/web-vitals-Df4Wsfx9.cjs +2 -0
- package/dist/web-vitals-Df4Wsfx9.cjs.map +1 -0
- package/dist/{worker-protocol-QbvqNazn.cjs → worker-protocol-D5VnCdWY.cjs} +2 -2
- package/dist/{worker-protocol-QbvqNazn.cjs.map → worker-protocol-D5VnCdWY.cjs.map} +1 -1
- package/dist/{worker-protocol-x074Rpet.js → worker-protocol-h4-tRWqy.js} +6 -6
- package/dist/{worker-protocol-x074Rpet.js.map → worker-protocol-h4-tRWqy.js.map} +1 -1
- package/dist/{worker-server-CFe4nvos.cjs → worker-server-CF1yatXq.cjs} +2 -2
- package/dist/{worker-server-CFe4nvos.cjs.map → worker-server-CF1yatXq.cjs.map} +1 -1
- package/dist/worker-server-FYfKHQhJ.js +94 -0
- package/dist/{worker-server-iUVSjH8L.js.map → worker-server-FYfKHQhJ.js.map} +1 -1
- package/dist/worker-transport-COgY4RX8.cjs +2 -0
- package/dist/worker-transport-COgY4RX8.cjs.map +1 -0
- package/dist/{worker-transport-Dy1KMA7t.js → worker-transport-jzX1IusG.js} +49 -45
- package/dist/worker-transport-jzX1IusG.js.map +1 -0
- package/llms.txt +14 -12
- package/package.json +13 -5
- package/dist/bus-C39wspFV.js.map +0 -1
- package/dist/bus-_EaOVPGq.cjs +0 -2
- package/dist/bus-_EaOVPGq.cjs.map +0 -1
- package/dist/config-DUs7uHHt.cjs +0 -2
- package/dist/config-DUs7uHHt.cjs.map +0 -1
- package/dist/config-SgQcCP1_.js +0 -560
- package/dist/config-SgQcCP1_.js.map +0 -1
- package/dist/constants-CUyd9cTZ.js.map +0 -1
- package/dist/constants-CqdJhTxH.cjs +0 -2
- package/dist/constants-CqdJhTxH.cjs.map +0 -1
- package/dist/errors-BE_EZV7Q.js.map +0 -1
- package/dist/errors-CNPbesMs.cjs +0 -3
- package/dist/errors-CNPbesMs.cjs.map +0 -1
- package/dist/factory-CTi0Is3F.js.map +0 -1
- package/dist/factory-hRrH32v5.cjs +0 -2
- package/dist/factory-hRrH32v5.cjs.map +0 -1
- package/dist/identity-DdhKgrpk.js.map +0 -1
- package/dist/identity-DlWRIuwy.cjs +0 -2
- package/dist/identity-DlWRIuwy.cjs.map +0 -1
- package/dist/interactions-CUkzK8sR.cjs +0 -2
- package/dist/interactions-CUkzK8sR.cjs.map +0 -1
- package/dist/interactions-DiFvCosX.js +0 -111
- package/dist/interactions-DiFvCosX.js.map +0 -1
- package/dist/patch-BX8KrPCT.cjs +0 -2
- package/dist/patch-BX8KrPCT.cjs.map +0 -1
- package/dist/patch-UdPz1ea8.js +0 -8
- package/dist/patch-UdPz1ea8.js.map +0 -1
- package/dist/platform-BaaFIPCU.js +0 -62
- package/dist/platform-BaaFIPCU.js.map +0 -1
- package/dist/platform-CfA3-7sJ.cjs +0 -2
- package/dist/platform-CfA3-7sJ.cjs.map +0 -1
- package/dist/replay-B3gFXIZd.cjs +0 -2
- package/dist/replay-B3gFXIZd.cjs.map +0 -1
- package/dist/replay-Ds-ANH34.js.map +0 -1
- package/dist/response-body-YdNl-HkR.cjs +0 -3
- package/dist/response-body-YdNl-HkR.cjs.map +0 -1
- package/dist/response-body-eoSQpLiH.js.map +0 -1
- package/dist/rotation-Cwct4ckk.js.map +0 -1
- package/dist/rotation-D4qUAHAu.cjs +0 -2
- package/dist/rotation-D4qUAHAu.cjs.map +0 -1
- package/dist/sender-BdRuNVhF.cjs +0 -2
- package/dist/sender-BdRuNVhF.cjs.map +0 -1
- package/dist/sender-Dv8rAmpV.js.map +0 -1
- package/dist/stored-context-B2EzVuYm.js.map +0 -1
- package/dist/stored-context-CXt7eHZL.cjs +0 -2
- package/dist/stored-context-CXt7eHZL.cjs.map +0 -1
- package/dist/web-vitals-4pWACwaR.js.map +0 -1
- package/dist/web-vitals-__X7t4pj.cjs +0 -2
- package/dist/web-vitals-__X7t4pj.cjs.map +0 -1
- package/dist/worker-server-iUVSjH8L.js +0 -94
- package/dist/worker-transport-CRAX-09c.cjs +0 -2
- package/dist/worker-transport-CRAX-09c.cjs.map +0 -1
- package/dist/worker-transport-Dy1KMA7t.js.map +0 -1
package/dist/config-SgQcCP1_.js
DELETED
|
@@ -1,560 +0,0 @@
|
|
|
1
|
-
import { D as e, Fn as t, I as n, L as r, R as i, W as a, Xt as o, dr as s, kt as c, lr as l, sn as u, ur as d } from "./constants-CUyd9cTZ.js";
|
|
2
|
-
import { n as f, t as p } from "./guards-BlYGRK4l.js";
|
|
3
|
-
// src/core/config.ts
|
|
4
|
-
var m = Object.keys(c), ee = ["gzip", "none"], te = [
|
|
5
|
-
"omit",
|
|
6
|
-
"same-origin",
|
|
7
|
-
"include"
|
|
8
|
-
], ne = [
|
|
9
|
-
"auto",
|
|
10
|
-
"indexeddb",
|
|
11
|
-
"localstorage",
|
|
12
|
-
"memory",
|
|
13
|
-
"none"
|
|
14
|
-
], re = ["storage", "memory"], ie = [
|
|
15
|
-
"auto",
|
|
16
|
-
"sender",
|
|
17
|
-
"forwarder",
|
|
18
|
-
"off"
|
|
19
|
-
], ae = [
|
|
20
|
-
"auto",
|
|
21
|
-
"provider",
|
|
22
|
-
"client"
|
|
23
|
-
], oe = [
|
|
24
|
-
"auto",
|
|
25
|
-
"context",
|
|
26
|
-
"tab",
|
|
27
|
-
"origin"
|
|
28
|
-
], h = [
|
|
29
|
-
"error",
|
|
30
|
-
"warn",
|
|
31
|
-
"info",
|
|
32
|
-
"log"
|
|
33
|
-
], g = [
|
|
34
|
-
"action",
|
|
35
|
-
"event",
|
|
36
|
-
"metric",
|
|
37
|
-
"log",
|
|
38
|
-
"system",
|
|
39
|
-
"span"
|
|
40
|
-
], se = {
|
|
41
|
-
logFlushIntervalMs: [100, 6e4],
|
|
42
|
-
logBatchSize: [1, 1e3],
|
|
43
|
-
metricBatchSize: [1, 1e3]
|
|
44
|
-
}, ce = [1, 5e3], le = [6e4, 6048e5], ue = [1, 20], de = {
|
|
45
|
-
maxBodyChars: [256, 65536],
|
|
46
|
-
maxAttributeChars: [256, 65536],
|
|
47
|
-
maxAttributeCount: [1, 1024],
|
|
48
|
-
maxStackChars: [256, 65536],
|
|
49
|
-
maxDepth: [1, 16],
|
|
50
|
-
maxArrayLength: [1, 1e4],
|
|
51
|
-
maxNodes: [100, 1e5],
|
|
52
|
-
maxRecordBytes: [1024, e]
|
|
53
|
-
}, fe = [6e4, 864e5], _ = [0, 2147483647], v = [1, _[1]], y = [0, 2 ** 53 - 1], b = [1, 2 ** 53 - 1], x = [100, 1e4], S = (e) => Array.isArray(e) && e.every((e) => typeof e == "string"), C = (e) => Array.isArray(e) && e.every((e) => typeof e == "function"), w = (e) => e === null || typeof e == "function", pe = (e) => e === null, me = /^[a-z][a-z\d+.-]*:/i, T = (e) => typeof e == "number" && e >= 0 && e <= 1, E = "a function or null", D = "a URL string or null", he = (e) => w(e) || O(e) && Object.values(e).every((e) => typeof e == "string"), O = (e) => typeof e == "object" && !!e && !Array.isArray(e);
|
|
54
|
-
function k(e, t, n = R) {
|
|
55
|
-
return (r, i, a, o) => i === void 0 ? a : e(i) ? i : (B(o, r, t, i, "the current value", n), a);
|
|
56
|
-
}
|
|
57
|
-
function ge() {
|
|
58
|
-
return typeof document < "u" ? document.baseURI : typeof location > "u" ? void 0 : location.href;
|
|
59
|
-
}
|
|
60
|
-
function A(e, t, n, r) {
|
|
61
|
-
let i;
|
|
62
|
-
try {
|
|
63
|
-
i = new URL(t, ge());
|
|
64
|
-
} catch (t) {
|
|
65
|
-
return r.report("config.invalid", `${e} is not a valid URL. The library keeps the current value.`, void 0, t), n;
|
|
66
|
-
}
|
|
67
|
-
return i.username !== "" || i.password !== "" ? (r.report("config.invalid", `${e} has a user name or a password. The library keeps the current value.`), n) : me.test(t) ? t : (r.report("config.invalid", `${e} is relative. The library sends to ${i.origin}.`), i.href);
|
|
68
|
-
}
|
|
69
|
-
function j(e, t, n, r) {
|
|
70
|
-
return typeof t == "string" ? t.trim() === "" ? (r.report("config.invalid", `${e} is empty. The library turns it off. Use null to turn it off.`), null) : t === n ? t : A(e, t, n, r) : k(pe, D, z)(e, t, n, r);
|
|
71
|
-
}
|
|
72
|
-
function M(e, t, n) {
|
|
73
|
-
return typeof e == "string" ? e === "" || e === t ? e : e.trim() === "" ? (n.report("config.invalid", "endpoint is blank. The library keeps the current value."), t) : A("endpoint", e, t, n) : k(pe, D, z)("endpoint", e, t, n);
|
|
74
|
-
}
|
|
75
|
-
var N = {
|
|
76
|
-
captureLimits: {
|
|
77
|
-
ranges: {
|
|
78
|
-
breadcrumbs: [0, 1e6],
|
|
79
|
-
errorDedupeMs: _,
|
|
80
|
-
windowMs: v
|
|
81
|
-
},
|
|
82
|
-
limits: {
|
|
83
|
-
errorsPerWindow: y,
|
|
84
|
-
consolePerWindow: y,
|
|
85
|
-
longFramesPerWindow: y,
|
|
86
|
-
webSocketPerWindow: y,
|
|
87
|
-
reportsPerWindow: y,
|
|
88
|
-
resourcesPerWindow: y,
|
|
89
|
-
lifecyclePerWindow: y
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
metadata: {
|
|
93
|
-
ranges: {},
|
|
94
|
-
limits: {}
|
|
95
|
-
},
|
|
96
|
-
storage: {
|
|
97
|
-
ranges: {},
|
|
98
|
-
limits: {},
|
|
99
|
-
choices: { backend: ne }
|
|
100
|
-
},
|
|
101
|
-
diagnostics: {
|
|
102
|
-
ranges: { throttleMs: _ },
|
|
103
|
-
limits: {},
|
|
104
|
-
custom: { records: Ae }
|
|
105
|
-
},
|
|
106
|
-
correlation: {
|
|
107
|
-
ranges: {},
|
|
108
|
-
limits: {
|
|
109
|
-
sessionIdleMs: v,
|
|
110
|
-
traceMaxAgeMs: v
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
metrics: {
|
|
114
|
-
ranges: { intervalMs: [1e3, 6e5] },
|
|
115
|
-
limits: {
|
|
116
|
-
maxSeries: y,
|
|
117
|
-
maxInstruments: y,
|
|
118
|
-
maxHistogramBoundaries: y
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
buffering: {
|
|
122
|
-
ranges: { maxHeldRecords: [200, 1e4] },
|
|
123
|
-
limits: {
|
|
124
|
-
maxPendingRecords: b,
|
|
125
|
-
maxPendingBytes: b
|
|
126
|
-
},
|
|
127
|
-
choices: { overflow: [
|
|
128
|
-
"drop-oldest",
|
|
129
|
-
"drop-newest",
|
|
130
|
-
"persist"
|
|
131
|
-
] }
|
|
132
|
-
},
|
|
133
|
-
delivery: {
|
|
134
|
-
ranges: {
|
|
135
|
-
requestTimeoutMs: [1, _[1]],
|
|
136
|
-
maxConcurrentRequests: b,
|
|
137
|
-
retryBaseDelayMs: _,
|
|
138
|
-
retryMaxDelayMs: _
|
|
139
|
-
},
|
|
140
|
-
limits: {},
|
|
141
|
-
choices: { priority: [
|
|
142
|
-
"low",
|
|
143
|
-
"auto",
|
|
144
|
-
"high"
|
|
145
|
-
] }
|
|
146
|
-
},
|
|
147
|
-
debugBuffer: {
|
|
148
|
-
ranges: { maxRecords: [1, 1e4] },
|
|
149
|
-
limits: { maxAgeMs: v }
|
|
150
|
-
},
|
|
151
|
-
profiler: {
|
|
152
|
-
ranges: { maxProbes: [1, o] },
|
|
153
|
-
limits: {}
|
|
154
|
-
},
|
|
155
|
-
replay: {
|
|
156
|
-
ranges: {
|
|
157
|
-
bufferMs: [5e3, 6e5],
|
|
158
|
-
maxBufferBytes: [1e5, 2e8],
|
|
159
|
-
afterErrorMs: [0, 6e5],
|
|
160
|
-
uploadWindowMs: v,
|
|
161
|
-
maxSegmentEvents: [1, 1e4],
|
|
162
|
-
maxSegmentBytes: [1e4, 1e7],
|
|
163
|
-
flushIntervalMs: [100, 6e4],
|
|
164
|
-
maxQueueBytes: [1e5, 2e8],
|
|
165
|
-
maxAttempts: [1, 10]
|
|
166
|
-
},
|
|
167
|
-
limits: { uploadsPerWindow: y },
|
|
168
|
-
choices: { mode: ["onError"] },
|
|
169
|
-
custom: {
|
|
170
|
-
endpoint: j,
|
|
171
|
-
maskSelectors: k(S, "a list of strings"),
|
|
172
|
-
blockSelectors: k(S, "a list of strings"),
|
|
173
|
-
loader: k(w, E, z),
|
|
174
|
-
onSegment: k(w, E, z),
|
|
175
|
-
headers: k(he, "an object of strings, a function or null", z),
|
|
176
|
-
plugins: k(C, "a list of functions"),
|
|
177
|
-
recordOptions: k(O, "an object")
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}, _e = [
|
|
181
|
-
"errors",
|
|
182
|
-
"rejections",
|
|
183
|
-
"resourceErrors",
|
|
184
|
-
"fetch",
|
|
185
|
-
"xhr",
|
|
186
|
-
"httpMetrics",
|
|
187
|
-
"navigation",
|
|
188
|
-
"fullUrls",
|
|
189
|
-
"webSocket",
|
|
190
|
-
"uncleanExit",
|
|
191
|
-
"serverTiming",
|
|
192
|
-
"reports",
|
|
193
|
-
"lifecycle"
|
|
194
|
-
], ve = "null", P = `a level name: ${L(m)}`, ye = `a list of ${L(h)}`, F = "a list of strings and RegExp patterns", be = "a list of origin URLs such as \"https://api.example\" and RegExp patterns", xe = "a list of origin URLs such as \"https://app.example\". For a sandboxed frame, set bus.mode: \"sender\" in the frame", Se = `a list of log types: ${L(g)}`, I = "true, false or a list of diagnostic codes";
|
|
195
|
-
function L(e) {
|
|
196
|
-
let t = e.map((e) => `"${e}"`);
|
|
197
|
-
return `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
198
|
-
}
|
|
199
|
-
function R(e) {
|
|
200
|
-
return typeof e == "string" ? `"${e}"` : typeof e == "function" ? "a function" : typeof e == "object" && e ? "an object" : String(e);
|
|
201
|
-
}
|
|
202
|
-
function z(e) {
|
|
203
|
-
return e === null ? "null" : Array.isArray(e) ? "a list" : typeof e == "object" ? "an object" : `a ${typeof e}`;
|
|
204
|
-
}
|
|
205
|
-
function B(e, t, n, r, i, a = R) {
|
|
206
|
-
e.report("config.invalid", `${t} must be ${n}. The value is ${a(r)}. The library keeps ${i}.`);
|
|
207
|
-
}
|
|
208
|
-
function V(e, t, n, r, i) {
|
|
209
|
-
if (t === void 0) return r;
|
|
210
|
-
let a = n.find((e) => e === t);
|
|
211
|
-
return a === void 0 ? (i.report("config.invalid", `${e} must be ${L(n)}. The library keeps "${r}".`), r) : a;
|
|
212
|
-
}
|
|
213
|
-
function H(e, t, n, r) {
|
|
214
|
-
return t === void 0 ? n : typeof t == "boolean" ? t : (B(r, e, "true or false", t, String(n)), n);
|
|
215
|
-
}
|
|
216
|
-
function U(e, t, n, r) {
|
|
217
|
-
return t === void 0 ? n : typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : (B(r, e, "a finite number of 0 or more", t, String(n)), n);
|
|
218
|
-
}
|
|
219
|
-
function W(e, t, n, r, i) {
|
|
220
|
-
if (t === void 0) return r;
|
|
221
|
-
let [a, o] = n;
|
|
222
|
-
return typeof t == "number" && Number.isInteger(t) && t >= a && t <= o ? t : (B(i, e, `an integer from ${String(a)} to ${String(o)}`, t, String(r)), r);
|
|
223
|
-
}
|
|
224
|
-
function G(e, t, n, r, i) {
|
|
225
|
-
if (t === void 0) return r;
|
|
226
|
-
if (t === null) return null;
|
|
227
|
-
let [a, o] = n;
|
|
228
|
-
return typeof t == "number" && Number.isInteger(t) && t >= a && t <= o ? t : (B(i, e, `an integer from ${String(a)} to ${String(o)}, or null for no limit`, t, String(r)), r);
|
|
229
|
-
}
|
|
230
|
-
function K(e, t, n, r) {
|
|
231
|
-
if (t === void 0) return n;
|
|
232
|
-
if (t !== null) return typeof t == "function" ? t : (B(r, e, E, t, "the current value", z), n);
|
|
233
|
-
}
|
|
234
|
-
var q = () => null;
|
|
235
|
-
function Ce(e, t, n) {
|
|
236
|
-
return e == null || typeof e == "function" || t ? K("redact", e, t, n) : (n.report("config.invalid", `redact must be ${E}. The value is ${z(e)}. The library drops each record until redact is a function or null.`), q);
|
|
237
|
-
}
|
|
238
|
-
function we(e, t, n) {
|
|
239
|
-
return e === void 0 ? t : C(e) ? [...e] : t.length > 0 ? (B(n, "processors", "a list of functions", e, "the current list", z), t) : (n.report("config.invalid", `processors must be a list of functions. The value is ${z(e)}. The library drops each record until processors is a list of functions or [].`), [q]);
|
|
240
|
-
}
|
|
241
|
-
function J(e, t, n, r) {
|
|
242
|
-
return t === void 0 ? n : typeof t == "string" ? t : (B(r, e, "a string", t, "the current value"), n);
|
|
243
|
-
}
|
|
244
|
-
function Y(e, t, n, r) {
|
|
245
|
-
return t === void 0 ? n : T(t) ? t : (r.report("config.invalid", `${e} must be 0..1. The value is ${R(t)}. The library keeps ${String(n)}.`), n);
|
|
246
|
-
}
|
|
247
|
-
function Te(e, t, n) {
|
|
248
|
-
if (e === void 0) return t;
|
|
249
|
-
if (!f(e)) return B(n, "sampling.rates", "an object of rates", e, "the current value"), t;
|
|
250
|
-
let r = [];
|
|
251
|
-
for (let [t, i] of Object.entries(e)) T(i) ? r.push([t, i]) : i !== void 0 && n.report("config.invalid", `sampling.rates["${t}"] must be 0..1. The value is ${R(i)}. The library ignores this entry.`);
|
|
252
|
-
return Object.fromEntries(r);
|
|
253
|
-
}
|
|
254
|
-
function Ee(e, t, n, r, i) {
|
|
255
|
-
let a = t ?? {}, o = Object.keys(r);
|
|
256
|
-
return Object.fromEntries(o.map((t) => [t, W(`${e}.${t}`, a[t], r[t], n[t], i)]));
|
|
257
|
-
}
|
|
258
|
-
function X(e) {
|
|
259
|
-
if (typeof e != "string") return;
|
|
260
|
-
let t = e.toUpperCase();
|
|
261
|
-
return m.find((e) => e === t);
|
|
262
|
-
}
|
|
263
|
-
function De(e, t, n, r) {
|
|
264
|
-
if (t === void 0) return n;
|
|
265
|
-
let i = X(t);
|
|
266
|
-
return i === void 0 ? (B(r, e, P, t, `"${n}"`), n) : i;
|
|
267
|
-
}
|
|
268
|
-
function Oe(e, t, n) {
|
|
269
|
-
if (e === void 0) return t;
|
|
270
|
-
if (!f(e)) return B(n, "minLevels", "an object of level names", e, "the current value"), t;
|
|
271
|
-
let r = [];
|
|
272
|
-
for (let [t, i] of Object.entries(e)) {
|
|
273
|
-
let e = X(i);
|
|
274
|
-
t !== "" && e !== void 0 ? r.push([t, e]) : B(n, `minLevels["${t}"]`, P, i, "minLevel for it");
|
|
275
|
-
}
|
|
276
|
-
return Object.fromEntries(r);
|
|
277
|
-
}
|
|
278
|
-
function Z(e, t, n, r, i, a) {
|
|
279
|
-
if (t === void 0) return n;
|
|
280
|
-
if (!Array.isArray(t)) return B(a, e, r, t, "the current list"), n;
|
|
281
|
-
let o = [], s = t;
|
|
282
|
-
for (let t of s) {
|
|
283
|
-
let n = i(t);
|
|
284
|
-
n === void 0 ? a.report("config.invalid", `The library ignores the ${e} entry ${R(t)}. ${e} must be ${r}.`) : o.push(n);
|
|
285
|
-
}
|
|
286
|
-
return o;
|
|
287
|
-
}
|
|
288
|
-
function ke(e) {
|
|
289
|
-
return f(e) && typeof e.name == "string" && e.name !== "" && typeof e.install == "function" && typeof e.uninstall == "function" ? e : void 0;
|
|
290
|
-
}
|
|
291
|
-
function Ae(e, t, n, r) {
|
|
292
|
-
return t === void 0 || typeof t == "boolean" ? t ?? n : Array.isArray(t) ? Z(e, t, [], I, je, r) : (B(r, e, I, t, "the current value"), n);
|
|
293
|
-
}
|
|
294
|
-
function je(e) {
|
|
295
|
-
return typeof e == "string" ? e : void 0;
|
|
296
|
-
}
|
|
297
|
-
function Me(e) {
|
|
298
|
-
return g.find((t) => t === e);
|
|
299
|
-
}
|
|
300
|
-
function Ne(e) {
|
|
301
|
-
return typeof e == "string" || e instanceof RegExp ? e : void 0;
|
|
302
|
-
}
|
|
303
|
-
function Pe(e) {
|
|
304
|
-
return h.find((t) => t === e);
|
|
305
|
-
}
|
|
306
|
-
function Q(e) {
|
|
307
|
-
if (typeof e == "string") try {
|
|
308
|
-
let { origin: t } = new URL(e);
|
|
309
|
-
return t === ve ? void 0 : t;
|
|
310
|
-
} catch {
|
|
311
|
-
return;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
function Fe(e) {
|
|
315
|
-
return e instanceof RegExp ? e : Q(e);
|
|
316
|
-
}
|
|
317
|
-
function Ie(e) {
|
|
318
|
-
return f(e) ? Object.values(e).every((e) => typeof e == "string") : !1;
|
|
319
|
-
}
|
|
320
|
-
function Le(e, t, n) {
|
|
321
|
-
if (e === void 0) return t;
|
|
322
|
-
if (e !== null) return typeof e == "function" || Ie(e) ? e : (n.report("config.invalid", "headers must be an object of strings or a function. The library keeps the current headers."), t);
|
|
323
|
-
}
|
|
324
|
-
function Re(e) {
|
|
325
|
-
return typeof e != "object" || !e ? !1 : typeof Reflect.get(e, "serialize") == "function";
|
|
326
|
-
}
|
|
327
|
-
function ze(e, n, r) {
|
|
328
|
-
return e === void 0 ? n ?? "otlp" : e === "otlp" || e === "ecs" || Re(e) ? e : (r.report("config.invalid", `serializer must be "${t}", "ecs" or an implementation. The library keeps the current serializer.`), n ?? "otlp");
|
|
329
|
-
}
|
|
330
|
-
var Be = new Set(Object.keys(i));
|
|
331
|
-
function Ve(e, t) {
|
|
332
|
-
let n = {};
|
|
333
|
-
if (e !== void 0 && !f(e)) return B(t, "consoleOutput.styles", "an object of CSS strings", e, "the styles"), n;
|
|
334
|
-
let r = Object.entries(e ?? {});
|
|
335
|
-
for (let [e, i] of r) Be.has(e) ? i !== void 0 && (typeof i == "string" ? n[e] = i : t.report("config.invalid", `consoleOutput.styles.${e} must be a string. The library keeps the current style.`)) : t.report("config.invalid", `The library ignores the unknown consoleOutput.styles key "${e}". Check the spelling.`);
|
|
336
|
-
return n;
|
|
337
|
-
}
|
|
338
|
-
function He(e, t, n) {
|
|
339
|
-
if (e === void 0) return t;
|
|
340
|
-
let r = X(e);
|
|
341
|
-
return r === void 0 ? (B(n, "consoleOutput.level", P, e, "the current console level"), t) : r;
|
|
342
|
-
}
|
|
343
|
-
function Ue(e, t, n) {
|
|
344
|
-
if (e === void 0) return t;
|
|
345
|
-
if (e === !1) return {
|
|
346
|
-
level: null,
|
|
347
|
-
styles: t.styles
|
|
348
|
-
};
|
|
349
|
-
if (e === !0) return {
|
|
350
|
-
level: r,
|
|
351
|
-
styles: t.styles
|
|
352
|
-
};
|
|
353
|
-
if (typeof e == "string") {
|
|
354
|
-
let r = X(e);
|
|
355
|
-
return r === void 0 ? (B(n, "consoleOutput", P, e, "the current console level"), t) : {
|
|
356
|
-
level: r,
|
|
357
|
-
styles: t.styles
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
return typeof e != "object" || !e ? (n.report("config.invalid", "consoleOutput must be a boolean, a level or an object. The current console settings stay."), t) : {
|
|
361
|
-
level: He(e.level, t.level, n),
|
|
362
|
-
styles: {
|
|
363
|
-
...t.styles,
|
|
364
|
-
...Ve(e.styles, n)
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
function We(e, t, n) {
|
|
369
|
-
let r = e ?? {};
|
|
370
|
-
return {
|
|
371
|
-
defaultRate: Y("sampling.defaultRate", r.defaultRate, t.defaultRate, n),
|
|
372
|
-
remoteMaxRate: Y("sampling.remoteMaxRate", r.remoteMaxRate, t.remoteMaxRate, n),
|
|
373
|
-
rates: Te(r.rates, t.rates, n),
|
|
374
|
-
alwaysSampleTypes: Z("sampling.alwaysSampleTypes", r.alwaysSampleTypes, t.alwaysSampleTypes, Se, Me, n),
|
|
375
|
-
alwaysSampleFrom: De("sampling.alwaysSampleFrom", r.alwaysSampleFrom, t.alwaysSampleFrom, n),
|
|
376
|
-
errorCeiling: G("sampling.errorCeiling", r.errorCeiling, y, t.errorCeiling, n),
|
|
377
|
-
errorCeilingWindowMs: W("sampling.errorCeilingWindowMs", r.errorCeilingWindowMs, v, t.errorCeilingWindowMs, n),
|
|
378
|
-
remote: H("sampling.remote", r.remote, t.remote, n)
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
function Ge(e, t, n) {
|
|
382
|
-
let r = e ?? {};
|
|
383
|
-
return {
|
|
384
|
-
sourcePolicy: V("bus.sourcePolicy", r.sourcePolicy, ["registered", "trusted-origin"], t.sourcePolicy, n),
|
|
385
|
-
maxMessageBytes: G("bus.maxMessageBytes", r.maxMessageBytes, b, t.maxMessageBytes, n),
|
|
386
|
-
maxRecordsPerMessage: G("bus.maxRecordsPerMessage", r.maxRecordsPerMessage, b, t.maxRecordsPerMessage, n),
|
|
387
|
-
maxMessagesPerSecond: G("bus.maxMessagesPerSecond", r.maxMessagesPerSecond, b, t.maxMessagesPerSecond, n),
|
|
388
|
-
mode: V("bus.mode", r.mode, ie, t.mode, n),
|
|
389
|
-
trustedOrigins: Z("bus.trustedOrigins", r.trustedOrigins, t.trustedOrigins, xe, Q, n),
|
|
390
|
-
openFinRole: V("bus.openFinRole", r.openFinRole, ae, t.openFinRole, n)
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
function Ke(e, t, n) {
|
|
394
|
-
let r = e ?? {};
|
|
395
|
-
return {
|
|
396
|
-
scope: V("journey.scope", r.scope, oe, t.scope, n),
|
|
397
|
-
maxAgeMs: W("journey.maxAgeMs", r.maxAgeMs, fe, t.maxAgeMs, n)
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
function qe(e, t, n) {
|
|
401
|
-
let r = e ?? {};
|
|
402
|
-
return {
|
|
403
|
-
maxBatches: W("retention.maxBatches", r.maxBatches, ce, t.maxBatches, n),
|
|
404
|
-
maxAgeMs: G("retention.maxAgeMs", r.maxAgeMs, le, t.maxAgeMs, n),
|
|
405
|
-
maxAttempts: G("retention.maxAttempts", r.maxAttempts, ue, t.maxAttempts, n)
|
|
406
|
-
};
|
|
407
|
-
}
|
|
408
|
-
function $(e, t, n, r, i) {
|
|
409
|
-
if (t === void 0) return n;
|
|
410
|
-
if (typeof t == "boolean") return t;
|
|
411
|
-
if (!f(t)) return r.report("config.invalid", `capture.${e} must be a boolean or an options object.`), n;
|
|
412
|
-
let a = i(t, typeof n == "object" ? n : {});
|
|
413
|
-
for (let n of Object.keys(t)) p(a, n) || r.report("config.invalid", `The library ignores the unknown config key "capture.${e}.${n}". Check the spelling.`);
|
|
414
|
-
return a;
|
|
415
|
-
}
|
|
416
|
-
function Je(e, t, n) {
|
|
417
|
-
let r = e ?? {}, i = {
|
|
418
|
-
...t,
|
|
419
|
-
urlTransform: K("capture.urlTransform", r.urlTransform, t.urlTransform, n),
|
|
420
|
-
remoteToggles: Z("capture.remoteToggles", r.remoteToggles, t.remoteToggles, "a list of capture switch names without privacy controls", (e) => u.find((t) => t === e), n),
|
|
421
|
-
resourceTiming: $("resourceTiming", r.resourceTiming, t.resourceTiming, n, (e, t) => ({ slowMs: U("capture.resourceTiming.slowMs", e.slowMs, t.slowMs ?? 1e3, n) })),
|
|
422
|
-
interactions: $("interactions", r.interactions, t.interactions, n, (e, t) => Ye(e, t, n)),
|
|
423
|
-
console: $("console", r.console, t.console, n, (e, t) => ({ levels: Z("capture.console.levels", e.levels, t.levels ?? ["error", "warn"], ye, Pe, n) })),
|
|
424
|
-
longFrames: $("longFrames", r.longFrames, t.longFrames, n, (e, t) => ({ thresholdMs: U("capture.longFrames.thresholdMs", e.thresholdMs, t.thresholdMs ?? 100, n) })),
|
|
425
|
-
userTiming: $("userTiming", r.userTiming, t.userTiming, n, (e, t) => ({ include: Z("capture.userTiming.include", e.include, t.include ?? [], F, Ne, n) })),
|
|
426
|
-
webVitals: $("webVitals", r.webVitals, t.webVitals, n, (e, t) => ({ loader: K("capture.webVitals.loader", e.loader, t.loader, n) })),
|
|
427
|
-
ignoreUrls: Z("capture.ignoreUrls", r.ignoreUrls, t.ignoreUrls, F, Ne, n),
|
|
428
|
-
propagateTraceHeaderTo: Z("capture.propagateTraceHeaderTo", r.propagateTraceHeaderTo, t.propagateTraceHeaderTo, be, Fe, n),
|
|
429
|
-
plugins: Z("capture.plugins", r.plugins, t.plugins, "a list of objects with a name, install() and uninstall()", ke, n)
|
|
430
|
-
};
|
|
431
|
-
for (let e of _e) i[e] = H(`capture.${e}`, r[e], t[e], n);
|
|
432
|
-
return i;
|
|
433
|
-
}
|
|
434
|
-
function Ye(e, t, n) {
|
|
435
|
-
let r = e.ignoreSelector, i = r === void 0 ? t.ignoreSelector : r;
|
|
436
|
-
if (i != null) try {
|
|
437
|
-
if (typeof i != "string") throw Error("Invalid selector");
|
|
438
|
-
typeof document < "u" && document.createElement("div").matches(i);
|
|
439
|
-
} catch {
|
|
440
|
-
n.report("config.invalid", "capture.interactions.ignoreSelector must be a valid CSS selector or null."), i = t.ignoreSelector;
|
|
441
|
-
}
|
|
442
|
-
let a = t.actionAttribute ?? "data-observability-action";
|
|
443
|
-
return e.actionAttribute !== void 0 && (typeof e.actionAttribute == "string" && /^[a-z][\w-]*$/i.test(e.actionAttribute) ? a = e.actionAttribute : B(n, "capture.interactions.actionAttribute", "an attribute name of letters, digits, hyphens and underscores", e.actionAttribute, `"${a}"`)), {
|
|
444
|
-
actionAttribute: a,
|
|
445
|
-
text: H("capture.interactions.text", e.text, t.text ?? !1, n),
|
|
446
|
-
selector: H("capture.interactions.selector", e.selector, t.selector ?? !1, n),
|
|
447
|
-
ignoreSelector: typeof i == "string" || i === null ? i : void 0,
|
|
448
|
-
maxTextChars: W("capture.interactions.maxTextChars", e.maxTextChars, [0, 2 ** 53 - 1], t.maxTextChars ?? 50, n),
|
|
449
|
-
rageClicks: H("capture.interactions.rageClicks", e.rageClicks, t.rageClicks ?? !1, n),
|
|
450
|
-
rageClickCount: W("capture.interactions.rageClickCount", e.rageClickCount, [2, 20], t.rageClickCount ?? 3, n),
|
|
451
|
-
rageClickWindowMs: W("capture.interactions.rageClickWindowMs", e.rageClickWindowMs, x, t.rageClickWindowMs ?? 1e3, n),
|
|
452
|
-
deadClicks: H("capture.interactions.deadClicks", e.deadClicks, t.deadClicks ?? !1, n),
|
|
453
|
-
deadClickMs: W("capture.interactions.deadClickMs", e.deadClickMs, x, t.deadClickMs ?? 1e3, n)
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
var Xe = {
|
|
457
|
-
metricsEndpoint: "The library sends metric records as log records.",
|
|
458
|
-
tracesEndpoint: "The library sends no span."
|
|
459
|
-
};
|
|
460
|
-
function Ze(e, n, r, i, a) {
|
|
461
|
-
let o = j(e, n, r, a);
|
|
462
|
-
return o !== null && i !== "otlp" ? (a.report("config.invalid", `${e} needs serializer "${t}". ${Xe[e]}`), null) : o;
|
|
463
|
-
}
|
|
464
|
-
function Qe(e, t, n, r, i) {
|
|
465
|
-
let a = { ...n };
|
|
466
|
-
for (let o of Object.keys(n)) {
|
|
467
|
-
let s = t?.[o], c = n[o], l = r.ranges[o], u = r.limits[o], d = r.choices?.[o], f = r.custom?.[o], p = c;
|
|
468
|
-
f ? p = f(`${e}.${o}`, s, c, i) : u ? p = G(`${e}.${o}`, s, u, c, i) : typeof c == "number" && l ? p = W(`${e}.${o}`, s, l, c, i) : typeof c == "boolean" ? p = H(`${e}.${o}`, s, c, i) : d ? p = V(`${e}.${o}`, s, d, String(c), i) : s === void 0 || typeof s == "string" ? p = s ?? c : B(i, `${e}.${o}`, "a string", s, String(c)), Object.assign(a, { [o]: p });
|
|
469
|
-
}
|
|
470
|
-
return a;
|
|
471
|
-
}
|
|
472
|
-
function $e(e, t) {
|
|
473
|
-
let r = e;
|
|
474
|
-
for (let i of n) {
|
|
475
|
-
let n = e[i];
|
|
476
|
-
n !== void 0 && !f(n) && (B(t, i, "an object", n, "the current values"), r = {
|
|
477
|
-
...r,
|
|
478
|
-
[i]: void 0
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
return r;
|
|
482
|
-
}
|
|
483
|
-
function et(e, t, n) {
|
|
484
|
-
let { capture: r, sampling: i } = t, a = (e, t) => {
|
|
485
|
-
n.report("config.invalid", `${e} has no effect ${t}. The value stays.`);
|
|
486
|
-
};
|
|
487
|
-
(e.transport !== void 0 || e.transportWorker !== void 0) && t.transport && t.transportWorker && a("transportWorker", "with transport"), (e.transport !== void 0 || e.transportOnExit !== void 0) && t.transportOnExit && !t.transport && a("transportOnExit", "without transport"), (e.capture?.remoteToggles !== void 0 || e.sampling?.remote !== void 0) && r.remoteToggles.length > 0 && !i.remote && a("capture.remoteToggles", "without sampling.remote");
|
|
488
|
-
let o = r.fetch || r.xhr || r.remoteToggles.includes("fetch") || r.remoteToggles.includes("xhr");
|
|
489
|
-
(e.capture?.propagateTraceHeaderTo !== void 0 || e.capture?.fetch !== void 0 || e.capture?.xhr !== void 0) && r.propagateTraceHeaderTo.length > 0 && !o && a("capture.propagateTraceHeaderTo", "without capture.fetch or capture.xhr");
|
|
490
|
-
}
|
|
491
|
-
function tt(e, t, n) {
|
|
492
|
-
let r = n ?? a, i = $e(e, t), o = Object.fromEntries(Object.keys(N).map((e) => [e, Qe(e, i[e], r[e], N[e], t)])), c = {
|
|
493
|
-
...r,
|
|
494
|
-
...o,
|
|
495
|
-
lockConfiguration: H("lockConfiguration", i.lockConfiguration, r.lockConfiguration, t),
|
|
496
|
-
loggerCache: { maxEntries: G("loggerCache.maxEntries", i.loggerCache?.maxEntries, y, r.loggerCache.maxEntries, t) },
|
|
497
|
-
securityContext: {
|
|
498
|
-
id: J("securityContext.id", i.securityContext?.id, r.securityContext.id, t) || r.securityContext.id,
|
|
499
|
-
isolation: H("securityContext.isolation", i.securityContext?.isolation, r.securityContext.isolation, t)
|
|
500
|
-
},
|
|
501
|
-
endpoint: M(i.endpoint, r.endpoint, t),
|
|
502
|
-
serviceName: J("serviceName", i.serviceName, r.serviceName, t),
|
|
503
|
-
serviceVersion: J("serviceVersion", i.serviceVersion, r.serviceVersion, t),
|
|
504
|
-
environment: J("environment", i.environment, r.environment, t),
|
|
505
|
-
enabled: H("enabled", i.enabled, r.enabled, t),
|
|
506
|
-
payloadMode: V("payloadMode", i.payloadMode, ["copy", "defer"], r.payloadMode, t),
|
|
507
|
-
minLevel: De("minLevel", i.minLevel, r.minLevel, t),
|
|
508
|
-
minLevels: Oe(i.minLevels, r.minLevels, t),
|
|
509
|
-
processors: we(i.processors, r.processors, t),
|
|
510
|
-
compression: V("compression", i.compression, ee, r.compression, t),
|
|
511
|
-
credentials: V("credentials", i.credentials, te, r.credentials, t),
|
|
512
|
-
headers: Le(i.headers, r.headers, t),
|
|
513
|
-
identity: V("identity", i.identity, re, r.identity, t),
|
|
514
|
-
serializer: ze(i.serializer, n?.serializer, t),
|
|
515
|
-
consoleOutput: Ue(i.consoleOutput, r.consoleOutput, t),
|
|
516
|
-
sampling: We(i.sampling, r.sampling, t),
|
|
517
|
-
bus: Ge(i.bus, r.bus, t),
|
|
518
|
-
batching: Ee("batching", i.batching, r.batching, se, t),
|
|
519
|
-
retention: qe(i.retention, r.retention, t),
|
|
520
|
-
limits: Ee("limits", i.limits, r.limits, de, t),
|
|
521
|
-
journey: Ke(i.journey, r.journey, t),
|
|
522
|
-
capture: Je(i.capture, r.capture, t),
|
|
523
|
-
transport: K("transport", i.transport, r.transport, t),
|
|
524
|
-
transportOnExit: K("transportOnExit", i.transportOnExit, r.transportOnExit, t),
|
|
525
|
-
transportWorker: K("transportWorker", i.transportWorker, r.transportWorker, t),
|
|
526
|
-
otelLoader: K("otelLoader", i.otelLoader, r.otelLoader, t),
|
|
527
|
-
contextProvider: K("contextProvider", i.contextProvider, r.contextProvider, t),
|
|
528
|
-
redact: Ce(i.redact, r.redact, t),
|
|
529
|
-
onDiagnostic: K("onDiagnostic", i.onDiagnostic, r.onDiagnostic, t),
|
|
530
|
-
onDrop: K("onDrop", i.onDrop, r.onDrop, t)
|
|
531
|
-
};
|
|
532
|
-
for (let e of ["metricsEndpoint", "tracesEndpoint"]) c[e] = Ze(e, i[e], r[e], c.serializer, t);
|
|
533
|
-
c.endpoint === "" && c.transport === void 0 && t.report("config.invalid", "endpoint is missing. The library drops each record. Set endpoint: null for console-only mode.");
|
|
534
|
-
for (let e of ["metricsEndpoint", "tracesEndpoint"]) c[e] !== null && c.endpoint === null && !c.transport && t.report("config.invalid", `${e} needs endpoint or transport. The library sends nothing to ${e}.`);
|
|
535
|
-
c.serviceName ||= (t.report("config.invalid", `serviceName is missing. Every record reports service.name as '${s}'.`), s), c.capture.ignoreUrls = c.capture.ignoreUrls.filter((e) => e !== n?.endpoint && e !== n?.metricsEndpoint && e !== n?.tracesEndpoint && e !== n?.replay.endpoint);
|
|
536
|
-
for (let e of [
|
|
537
|
-
c.endpoint,
|
|
538
|
-
c.metricsEndpoint,
|
|
539
|
-
c.tracesEndpoint,
|
|
540
|
-
c.replay.endpoint
|
|
541
|
-
]) e && !c.capture.ignoreUrls.includes(e) && (c.capture.ignoreUrls = [...c.capture.ignoreUrls, e]);
|
|
542
|
-
return c.delivery.retryMaxDelayMs < c.delivery.retryBaseDelayMs && (t.report("config.invalid", "delivery.retryMaxDelayMs must be at least retryBaseDelayMs."), c.delivery.retryBaseDelayMs = r.delivery.retryBaseDelayMs, c.delivery.retryMaxDelayMs = r.delivery.retryMaxDelayMs), et(i, c, t), nt(e, t), c;
|
|
543
|
-
}
|
|
544
|
-
function nt(e, t) {
|
|
545
|
-
let r = /* @__PURE__ */ new Set([...Object.keys(a), ...l]);
|
|
546
|
-
for (let n of Object.keys(e)) r.has(n) || t.report("config.invalid", `The library ignores the unknown config key "${n}". Check the spelling.`);
|
|
547
|
-
for (let r of n) {
|
|
548
|
-
let n = e[r];
|
|
549
|
-
if (typeof n != "object" || !n) continue;
|
|
550
|
-
let i = /* @__PURE__ */ new Set([...Object.keys(a[r]), ...d[r]]);
|
|
551
|
-
for (let e of Object.keys(n)) i.has(e) || t.report("config.invalid", `The library ignores the unknown config key "${r}.${e}". Check the spelling.`);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
function rt(e, t) {
|
|
555
|
-
for (let r of Object.keys(t)) n.includes(r) || Object.assign(e, { [r]: t[r] });
|
|
556
|
-
for (let r of n) Object.assign(e[r], t[r]);
|
|
557
|
-
}
|
|
558
|
-
export { M as a, j as i, rt as n, tt as r, q as t };
|
|
559
|
-
|
|
560
|
-
//# sourceMappingURL=config-SgQcCP1_.js.map
|