@utk09/ui-observability 0.11.0 → 1.0.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 +481 -0
- package/README.md +73 -669
- package/bin/uiobs.mjs +1 -1
- package/dist/{batch-CL9uWYY3.js → batch-CXmPmTse.js} +3 -3
- package/dist/batch-CXmPmTse.js.map +1 -0
- package/dist/{batch-C8OcWR2L.cjs → batch-mmPigCpi.cjs} +2 -2
- package/dist/batch-mmPigCpi.cjs.map +1 -0
- package/dist/bus/bus.d.cts +331 -0
- package/dist/bus/bus.d.ts +108 -57
- package/dist/bus/links.d.cts +132 -0
- package/dist/bus/links.d.ts +22 -7
- package/dist/bus/validation.d.cts +16 -0
- package/dist/bus/validation.d.ts +11 -2
- package/dist/bus-C39wspFV.js +775 -0
- package/dist/bus-C39wspFV.js.map +1 -0
- package/dist/bus-_EaOVPGq.cjs +2 -0
- package/dist/bus-_EaOVPGq.cjs.map +1 -0
- package/dist/capture/console.d.cts +37 -0
- package/dist/capture/console.d.ts +11 -11
- package/dist/capture/errors.d.cts +32 -0
- package/dist/capture/errors.d.ts +7 -7
- package/dist/capture/interactions.d.cts +48 -0
- package/dist/capture/interactions.d.ts +15 -15
- package/dist/capture/lifecycle.d.cts +20 -0
- package/dist/capture/lifecycle.d.ts +4 -4
- package/dist/capture/long-frames.d.cts +31 -0
- package/dist/capture/long-frames.d.ts +7 -7
- package/dist/capture/network.d.cts +57 -0
- package/dist/capture/network.d.ts +18 -18
- package/dist/capture/profiler-frames.d.cts +44 -0
- package/dist/capture/profiler-frames.d.ts +44 -0
- package/dist/capture/replay-buffer.d.cts +45 -0
- package/dist/capture/replay-buffer.d.ts +45 -0
- package/dist/capture/replay-upload.d.cts +79 -0
- package/dist/capture/replay-upload.d.ts +79 -0
- package/dist/capture/replay.d.cts +114 -0
- package/dist/capture/replay.d.ts +114 -0
- package/dist/capture/reports.d.cts +17 -0
- package/dist/capture/reports.d.ts +3 -3
- package/dist/capture/resource-timing.d.cts +14 -0
- package/dist/capture/resource-timing.d.ts +2 -2
- package/dist/capture/server-timing.d.cts +19 -0
- package/dist/capture/server-timing.d.ts +3 -3
- package/dist/capture/storm.d.cts +13 -0
- package/dist/capture/storm.d.ts +7 -7
- package/dist/capture/types.d.cts +128 -0
- package/dist/capture/types.d.ts +54 -41
- package/dist/capture/unclean-exit.d.cts +31 -0
- package/dist/capture/unclean-exit.d.ts +9 -9
- package/dist/capture/user-timing.d.cts +22 -0
- package/dist/capture/user-timing.d.ts +4 -4
- package/dist/capture/web-socket.d.cts +40 -0
- package/dist/capture/web-socket.d.ts +14 -14
- package/dist/capture/web-vitals.d.cts +40 -0
- package/dist/capture/web-vitals.d.ts +21 -8
- package/dist/compression-CvED_Jel.cjs +2 -0
- package/dist/compression-CvED_Jel.cjs.map +1 -0
- package/dist/compression-tVtXwVjX.js +11 -0
- package/dist/compression-tVtXwVjX.js.map +1 -0
- package/dist/config-DUs7uHHt.cjs +2 -0
- package/dist/config-DUs7uHHt.cjs.map +1 -0
- package/dist/config-SgQcCP1_.js +560 -0
- package/dist/config-SgQcCP1_.js.map +1 -0
- package/dist/console-BGgGnjSi.js +81 -0
- package/dist/console-BGgGnjSi.js.map +1 -0
- package/dist/console-CSZ5_Vx5.cjs +2 -0
- package/dist/console-CSZ5_Vx5.cjs.map +1 -0
- package/dist/constants-CUyd9cTZ.js +357 -0
- package/dist/constants-CUyd9cTZ.js.map +1 -0
- package/dist/constants-CqdJhTxH.cjs +2 -0
- package/dist/constants-CqdJhTxH.cjs.map +1 -0
- package/dist/constants.d.cts +751 -0
- package/dist/constants.d.ts +231 -116
- package/dist/core/breadcrumbs.d.cts +54 -0
- package/dist/core/breadcrumbs.d.ts +21 -15
- package/dist/core/config.d.cts +45 -0
- package/dist/core/config.d.ts +33 -5
- package/dist/core/context.d.cts +24 -0
- package/dist/core/context.d.ts +8 -13
- package/dist/core/debug-buffer.d.cts +34 -0
- package/dist/core/debug-buffer.d.ts +13 -13
- package/dist/core/debug-bundle.d.cts +12 -0
- package/dist/core/debug-bundle.d.ts +6 -6
- package/dist/core/deferred.d.cts +7 -0
- package/dist/core/deferred.d.ts +4 -4
- package/dist/core/diagnostics.d.cts +86 -0
- package/dist/core/diagnostics.d.ts +25 -22
- package/dist/core/drops.d.cts +39 -0
- package/dist/core/drops.d.ts +22 -12
- package/dist/core/hold-buffer.d.cts +36 -0
- package/dist/core/hold-buffer.d.ts +16 -7
- package/dist/core/journey.d.cts +148 -0
- package/dist/core/journey.d.ts +28 -29
- package/dist/core/logger.d.cts +141 -0
- package/dist/core/logger.d.ts +45 -51
- package/dist/core/measure.d.cts +30 -0
- package/dist/core/measure.d.ts +21 -10
- package/dist/core/meter.d.cts +78 -0
- package/dist/core/meter.d.ts +38 -28
- package/dist/core/pipeline.d.cts +227 -0
- package/dist/core/pipeline.d.ts +114 -50
- package/dist/core/profile-buckets.d.cts +31 -0
- package/dist/core/profile-buckets.d.ts +31 -0
- package/dist/core/profiler.d.cts +218 -0
- package/dist/core/profiler.d.ts +218 -0
- package/dist/core/record.d.cts +190 -0
- package/dist/core/record.d.ts +67 -35
- package/dist/core/remote-rules.d.cts +17 -0
- package/dist/core/remote-rules.d.ts +7 -7
- package/dist/core/remote-sampling.d.cts +74 -0
- package/dist/core/remote-sampling.d.ts +24 -23
- package/dist/core/rotation.d.cts +75 -0
- package/dist/core/rotation.d.ts +75 -0
- package/dist/core/runtime.d.cts +765 -0
- package/dist/core/runtime.d.ts +430 -186
- package/dist/core/sampling.d.cts +86 -0
- package/dist/core/sampling.d.ts +22 -22
- package/dist/core/sender.d.cts +161 -0
- package/dist/core/sender.d.ts +80 -34
- package/dist/core/spans.d.cts +39 -0
- package/dist/core/spans.d.ts +6 -6
- package/dist/{deadline-BOjOxNHj.js → deadline-C4ccAuk5.js} +3 -6
- package/dist/deadline-C4ccAuk5.js.map +1 -0
- package/dist/deadline-CUGbto-y.cjs +2 -0
- package/dist/deadline-CUGbto-y.cjs.map +1 -0
- package/dist/debug-bundle-BXIlwDKM.cjs +2 -0
- package/dist/debug-bundle-BXIlwDKM.cjs.map +1 -0
- package/dist/debug-bundle-CRpYV_ui.js +35 -0
- package/dist/debug-bundle-CRpYV_ui.js.map +1 -0
- package/dist/defineProperty-X1c4tIPD.cjs +1 -0
- package/dist/defineProperty-s2S8BXUc.js +35 -0
- package/dist/doctor.cjs +1 -1
- package/dist/doctor.cjs.map +1 -1
- package/dist/doctor.d.cts +36 -0
- package/dist/doctor.d.ts +19 -6
- package/dist/doctor.js +180 -53
- package/dist/doctor.js.map +1 -1
- package/dist/error-like-B11pB4aL.js.map +1 -1
- package/dist/error-like-gGRx2s36.cjs.map +1 -1
- package/dist/errors-BE_EZV7Q.js +86 -0
- package/dist/errors-BE_EZV7Q.js.map +1 -0
- package/dist/errors-CNPbesMs.cjs +3 -0
- package/dist/errors-CNPbesMs.cjs.map +1 -0
- package/dist/factory-CTi0Is3F.js +404 -0
- package/dist/factory-CTi0Is3F.js.map +1 -0
- package/dist/factory-hRrH32v5.cjs +2 -0
- package/dist/factory-hRrH32v5.cjs.map +1 -0
- package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
- package/dist/fixed-window-Dq3MLUUv.js.map +1 -1
- package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
- package/dist/global-scope-D9I8s-oN.js.map +1 -1
- package/dist/guards-BlYGRK4l.js +10 -0
- package/dist/guards-BlYGRK4l.js.map +1 -0
- package/dist/guards-EjG3ahFp.cjs +2 -0
- package/dist/guards-EjG3ahFp.cjs.map +1 -0
- package/dist/{identity-DT5VmvXy.js → identity-DdhKgrpk.js} +11 -15
- package/dist/identity-DdhKgrpk.js.map +1 -0
- package/dist/identity-DlWRIuwy.cjs +2 -0
- package/dist/identity-DlWRIuwy.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +300 -0
- package/dist/index.d.ts +165 -141
- package/dist/index.js +1283 -1468
- package/dist/index.js.map +1 -1
- package/dist/indexeddb-storage-CL9uqBCy.cjs +2 -0
- package/dist/indexeddb-storage-CL9uqBCy.cjs.map +1 -0
- package/dist/{indexeddb-storage-BJVtiQKm.js → indexeddb-storage-GHdl0t8A.js} +51 -47
- package/dist/indexeddb-storage-GHdl0t8A.js.map +1 -0
- package/dist/interactions-CUkzK8sR.cjs +2 -0
- package/dist/interactions-CUkzK8sR.cjs.map +1 -0
- package/dist/{interactions-DTgKy_6K.js → interactions-DiFvCosX.js} +41 -49
- package/dist/interactions-DiFvCosX.js.map +1 -0
- package/dist/journey-B4Adltjm.cjs +2 -0
- package/dist/journey-B4Adltjm.cjs.map +1 -0
- package/dist/{journey-CuJrHzEg.js → journey-D2_sia57.js} +51 -53
- package/dist/journey-D2_sia57.js.map +1 -0
- package/dist/{library-console-C1m6g1BR.js → library-console-Btrzt814.js} +2 -2
- package/dist/library-console-Btrzt814.js.map +1 -0
- package/dist/{library-console-D2GY9Or6.cjs → library-console-CPW6bvZH.cjs} +2 -2
- package/dist/library-console-CPW6bvZH.cjs.map +1 -0
- package/dist/{library-request-BQBT9N9Q.js → library-request-BJ9PLRaD.js} +2 -2
- package/dist/library-request-BJ9PLRaD.js.map +1 -0
- package/dist/{library-request-1BX_UlaX.cjs → library-request-D7OvTxZV.cjs} +2 -2
- package/dist/library-request-D7OvTxZV.cjs.map +1 -0
- package/dist/{lifecycle-BaKx_-32.js → lifecycle-22CUCrc9.js} +21 -29
- package/dist/lifecycle-22CUCrc9.js.map +1 -0
- package/dist/lifecycle-IaAm1mOC.cjs +2 -0
- package/dist/lifecycle-IaAm1mOC.cjs.map +1 -0
- package/dist/{log-record-CAoGBBf3.js → log-record-BNiLfqtL.js} +8 -7
- package/dist/log-record-BNiLfqtL.js.map +1 -0
- package/dist/log-record-CkivuiEl.cjs +2 -0
- package/dist/log-record-CkivuiEl.cjs.map +1 -0
- package/dist/long-frames-BUUbXd-B.cjs +2 -0
- package/dist/long-frames-BUUbXd-B.cjs.map +1 -0
- package/dist/long-frames-DNFaRnC3.js +62 -0
- package/dist/long-frames-DNFaRnC3.js.map +1 -0
- package/dist/models/batch.d.cts +57 -0
- package/dist/models/batch.d.ts +16 -17
- package/dist/models/bus.d.cts +158 -0
- package/dist/models/bus.d.ts +46 -26
- package/dist/models/config.d.cts +1540 -0
- package/dist/models/config.d.ts +692 -405
- package/dist/models/drop.d.cts +54 -0
- package/dist/models/drop.d.ts +29 -14
- package/dist/models/health.d.cts +148 -0
- package/dist/models/health.d.ts +119 -23
- package/dist/models/log-record.d.cts +61 -0
- package/dist/models/log-record.d.ts +13 -14
- package/dist/models/metric.d.cts +139 -0
- package/dist/models/metric.d.ts +94 -18
- package/dist/models/plugin.d.cts +47 -0
- package/dist/models/plugin.d.ts +16 -16
- package/dist/models/replay.d.cts +60 -0
- package/dist/models/replay.d.ts +60 -0
- package/dist/models/serializer.d.cts +23 -0
- package/dist/models/serializer.d.ts +3 -4
- package/dist/models/storage.d.cts +95 -0
- package/dist/models/storage.d.ts +17 -14
- package/dist/network-CGMLQ-mA.cjs +2 -0
- package/dist/network-CGMLQ-mA.cjs.map +1 -0
- package/dist/{network-DBNwApoF.js → network-on2zZT6H.js} +57 -57
- package/dist/network-on2zZT6H.js.map +1 -0
- package/dist/openfin-Bxelt0yg.js.map +1 -1
- package/dist/openfin-DtH2f7zX.cjs.map +1 -1
- package/dist/otlp-BENHf3g9.cjs +2 -0
- package/dist/otlp-BENHf3g9.cjs.map +1 -0
- package/dist/{otlp-BTJdIa6F.js → otlp-DimfrRor.js} +22 -29
- package/dist/otlp-DimfrRor.js.map +1 -0
- package/dist/patch-BX8KrPCT.cjs.map +1 -1
- package/dist/patch-UdPz1ea8.js.map +1 -1
- package/dist/{platform-DkcuXwe-.js → platform-BaaFIPCU.js} +8 -8
- package/dist/platform-BaaFIPCU.js.map +1 -0
- package/dist/{platform-C2Ez5kDc.cjs → platform-CfA3-7sJ.cjs} +2 -2
- package/dist/platform-CfA3-7sJ.cjs.map +1 -0
- package/dist/profiler-BAZoh7A4.js +292 -0
- package/dist/profiler-BAZoh7A4.js.map +1 -0
- package/dist/profiler-D4tJpDRc.cjs +2 -0
- package/dist/profiler-D4tJpDRc.cjs.map +1 -0
- package/dist/profiler-frames-C4xr7KfH.cjs +2 -0
- package/dist/profiler-frames-C4xr7KfH.cjs.map +1 -0
- package/dist/profiler-frames-cJMx9wNM.js +78 -0
- package/dist/profiler-frames-cJMx9wNM.js.map +1 -0
- package/dist/remote-rules-Dz9MRAsB.js +95 -0
- package/dist/remote-rules-Dz9MRAsB.js.map +1 -0
- package/dist/remote-rules-_tY0zj5o.cjs +2 -0
- package/dist/remote-rules-_tY0zj5o.cjs.map +1 -0
- package/dist/replay-B3gFXIZd.cjs +2 -0
- package/dist/replay-B3gFXIZd.cjs.map +1 -0
- package/dist/replay-Ds-ANH34.js +310 -0
- package/dist/replay-Ds-ANH34.js.map +1 -0
- package/dist/reports-BDSe4dFH.cjs +2 -0
- package/dist/reports-BDSe4dFH.cjs.map +1 -0
- package/dist/{reports-TA-zInnq.js → reports-C-thq-bk.js} +25 -30
- package/dist/reports-C-thq-bk.js.map +1 -0
- package/dist/resource-timing-C576gFIQ.cjs +2 -0
- package/dist/resource-timing-C576gFIQ.cjs.map +1 -0
- package/dist/{resource-timing-BLv3EA2A.js → resource-timing-eUl2dNgC.js} +20 -23
- package/dist/resource-timing-eUl2dNgC.js.map +1 -0
- package/dist/response-body-YdNl-HkR.cjs +3 -0
- package/dist/response-body-YdNl-HkR.cjs.map +1 -0
- package/dist/response-body-eoSQpLiH.js +331 -0
- package/dist/response-body-eoSQpLiH.js.map +1 -0
- package/dist/rotation-Cwct4ckk.js +94 -0
- package/dist/rotation-Cwct4ckk.js.map +1 -0
- package/dist/rotation-D4qUAHAu.cjs +2 -0
- package/dist/rotation-D4qUAHAu.cjs.map +1 -0
- package/dist/sampling-BlrI8jor.js +63 -0
- package/dist/sampling-BlrI8jor.js.map +1 -0
- package/dist/sampling-mXt4dstx.cjs +2 -0
- package/dist/sampling-mXt4dstx.cjs.map +1 -0
- package/dist/{sanitize-6ymPlVvP.js → sanitize-Ba0KqU06.js} +2 -2
- package/dist/sanitize-Ba0KqU06.js.map +1 -0
- package/dist/{sanitize-BAWzkZt0.cjs → sanitize-DQyiI_KY.cjs} +2 -2
- package/dist/sanitize-DQyiI_KY.cjs.map +1 -0
- package/dist/sender-BdRuNVhF.cjs +2 -0
- package/dist/sender-BdRuNVhF.cjs.map +1 -0
- package/dist/sender-Dv8rAmpV.js +979 -0
- package/dist/sender-Dv8rAmpV.js.map +1 -0
- package/dist/storage/context-storage.d.cts +90 -0
- package/dist/storage/context-storage.d.ts +38 -37
- package/dist/storage/emergency-queue.d.cts +27 -0
- package/dist/storage/emergency-queue.d.ts +13 -13
- package/dist/storage/eviction.d.cts +40 -0
- package/dist/storage/eviction.d.ts +13 -13
- package/dist/storage/factory.d.cts +21 -0
- package/dist/storage/factory.d.ts +11 -10
- package/dist/storage/gap.d.cts +20 -0
- package/dist/storage/gap.d.ts +9 -9
- package/dist/storage/idb-driver.d.cts +93 -0
- package/dist/storage/idb-driver.d.ts +32 -33
- package/dist/storage/indexeddb-storage.d.cts +97 -0
- package/dist/storage/indexeddb-storage.d.ts +38 -31
- package/dist/storage/keys.d.cts +17 -0
- package/dist/storage/keys.d.ts +9 -9
- package/dist/storage/local-storage.d.cts +139 -0
- package/dist/storage/local-storage.d.ts +49 -42
- package/dist/storage/memory-storage.d.cts +73 -0
- package/dist/storage/memory-storage.d.ts +25 -25
- package/dist/storage/persistence.d.cts +8 -0
- package/dist/storage/persistence.d.ts +3 -3
- package/dist/storage/stored-context.d.cts +34 -0
- package/dist/storage/stored-context.d.ts +34 -0
- package/dist/stored-context-B2EzVuYm.js +51 -0
- package/dist/stored-context-B2EzVuYm.js.map +1 -0
- package/dist/stored-context-CXt7eHZL.cjs +2 -0
- package/dist/stored-context-CXt7eHZL.cjs.map +1 -0
- package/dist/storm-C-zYSdDX.cjs +2 -0
- package/dist/storm-C-zYSdDX.cjs.map +1 -0
- package/dist/storm-DjKetLKZ.js +9 -0
- package/dist/storm-DjKetLKZ.js.map +1 -0
- package/dist/transport/compression.d.cts +7 -0
- package/dist/transport/compression.d.ts +2 -2
- package/dist/transport/custom-transport.d.cts +22 -0
- package/dist/transport/custom-transport.d.ts +6 -5
- package/dist/transport/errors.d.cts +31 -0
- package/dist/transport/errors.d.ts +7 -7
- package/dist/transport/exit-flush.d.cts +135 -0
- package/dist/transport/exit-flush.d.ts +62 -45
- package/dist/transport/headers.d.cts +8 -0
- package/dist/transport/headers.d.ts +4 -4
- package/dist/transport/http-transport.d.cts +116 -0
- package/dist/transport/http-transport.d.ts +48 -35
- package/dist/transport/memory-transport.d.cts +30 -0
- package/dist/transport/memory-transport.d.ts +8 -8
- package/dist/transport/response-body.d.cts +49 -0
- package/dist/transport/response-body.d.ts +49 -0
- package/dist/transport/retry-engine.d.cts +129 -0
- package/dist/transport/retry-engine.d.ts +62 -43
- package/dist/transport/serializers/ecs.d.cts +3 -0
- package/dist/transport/serializers/ecs.d.ts +2 -2
- package/dist/transport/serializers/otlp-metrics.d.cts +3 -0
- package/dist/transport/serializers/otlp-metrics.d.ts +2 -2
- package/dist/transport/serializers/otlp-traces.d.cts +3 -0
- package/dist/transport/serializers/otlp-traces.d.ts +2 -2
- package/dist/transport/serializers/otlp.d.cts +47 -0
- package/dist/transport/serializers/otlp.d.ts +18 -18
- package/dist/transport/serializers/select.d.cts +38 -0
- package/dist/transport/serializers/select.d.ts +11 -11
- package/dist/transport/status-transport.d.cts +129 -0
- package/dist/transport/status-transport.d.ts +45 -28
- package/dist/transport/worker-client.d.cts +23 -0
- package/dist/transport/worker-client.d.ts +12 -3
- package/dist/transport/worker-entry.d.cts +5 -0
- package/dist/transport/worker-entry.d.ts +1 -1
- package/dist/transport/worker-protocol.d.cts +38 -0
- package/dist/transport/worker-protocol.d.ts +7 -5
- package/dist/transport/worker-server.d.cts +3 -0
- package/dist/transport/worker-server.d.ts +1 -1
- package/dist/transport/worker-transport.d.cts +10 -0
- package/dist/transport/worker-transport.d.ts +5 -4
- package/dist/types-BAerHgCq.js.map +1 -1
- package/dist/types-C7WNpnG1.cjs.map +1 -1
- package/dist/{unclean-exit-CwcUhFOn.js → unclean-exit-DQD1cT7c.js} +23 -30
- package/dist/unclean-exit-DQD1cT7c.js.map +1 -0
- package/dist/unclean-exit-py99ApzT.cjs +2 -0
- package/dist/unclean-exit-py99ApzT.cjs.map +1 -0
- package/dist/unref-CU9Nyz_9.cjs +2 -0
- package/dist/unref-CU9Nyz_9.cjs.map +1 -0
- package/dist/unref-DgHPQeWv.js +7 -0
- package/dist/unref-DgHPQeWv.js.map +1 -0
- package/dist/{user-timing-_jZIhDKI.js → user-timing-BePqb1uN.js} +18 -18
- package/dist/user-timing-BePqb1uN.js.map +1 -0
- package/dist/user-timing-D6XTmpuM.cjs +2 -0
- package/dist/user-timing-D6XTmpuM.cjs.map +1 -0
- package/dist/utils/console.d.cts +36 -0
- package/dist/utils/console.d.ts +6 -6
- package/dist/utils/deadline.d.cts +14 -0
- package/dist/utils/deadline.d.ts +4 -4
- package/dist/utils/error-like.d.cts +25 -0
- package/dist/utils/error-like.d.ts +7 -7
- package/dist/utils/fixed-window.d.cts +25 -0
- package/dist/utils/fixed-window.d.ts +9 -8
- package/dist/utils/global-scope.d.cts +20 -0
- package/dist/utils/global-scope.d.ts +8 -8
- package/dist/utils/guards.d.cts +14 -0
- package/dist/utils/guards.d.ts +10 -2
- package/dist/utils/identity.d.cts +109 -0
- package/dist/utils/identity.d.ts +20 -21
- package/dist/utils/library-console.d.cts +11 -0
- package/dist/utils/library-console.d.ts +4 -4
- package/dist/utils/library-request.d.cts +24 -0
- package/dist/utils/library-request.d.ts +10 -10
- package/dist/utils/lock.d.cts +24 -0
- package/dist/utils/lock.d.ts +11 -10
- package/dist/utils/openfin.d.cts +48 -0
- package/dist/utils/openfin.d.ts +5 -5
- package/dist/utils/patch.d.cts +9 -0
- package/dist/utils/patch.d.ts +6 -6
- package/dist/utils/platform.d.cts +62 -0
- package/dist/utils/platform.d.ts +15 -13
- package/dist/utils/sanitize.d.cts +52 -0
- package/dist/utils/sanitize.d.ts +5 -5
- package/dist/utils/sequence.d.cts +10 -0
- package/dist/utils/tracing.d.cts +158 -0
- package/dist/utils/tracing.d.ts +49 -42
- package/dist/utils/unref.d.cts +9 -0
- package/dist/utils/unref.d.ts +3 -3
- package/dist/web-socket-CoIUBM3C.cjs +2 -0
- package/dist/web-socket-CoIUBM3C.cjs.map +1 -0
- package/dist/{web-socket-CV7yIMnm.js → web-socket-DSHgDiZ6.js} +23 -28
- package/dist/web-socket-DSHgDiZ6.js.map +1 -0
- package/dist/web-vitals-4pWACwaR.js +71 -0
- package/dist/web-vitals-4pWACwaR.js.map +1 -0
- package/dist/web-vitals-__X7t4pj.cjs +2 -0
- package/dist/web-vitals-__X7t4pj.cjs.map +1 -0
- package/dist/worker-protocol-QbvqNazn.cjs +2 -0
- package/dist/worker-protocol-QbvqNazn.cjs.map +1 -0
- package/dist/{worker-protocol-CrsdSDLn.js → worker-protocol-x074Rpet.js} +14 -11
- package/dist/worker-protocol-x074Rpet.js.map +1 -0
- package/dist/worker-server-CFe4nvos.cjs +2 -0
- package/dist/worker-server-CFe4nvos.cjs.map +1 -0
- package/dist/worker-server-iUVSjH8L.js +94 -0
- package/dist/worker-server-iUVSjH8L.js.map +1 -0
- package/dist/worker-transport-CRAX-09c.cjs +2 -0
- package/dist/worker-transport-CRAX-09c.cjs.map +1 -0
- package/dist/worker-transport-Dy1KMA7t.js +190 -0
- package/dist/worker-transport-Dy1KMA7t.js.map +1 -0
- package/llms.txt +397 -0
- package/package.json +55 -41
- package/dist/batch-C8OcWR2L.cjs.map +0 -1
- package/dist/batch-CL9uWYY3.js.map +0 -1
- package/dist/bus-BZ0GldpT.js +0 -660
- package/dist/bus-BZ0GldpT.js.map +0 -1
- package/dist/bus-VWlmM5xs.cjs +0 -2
- package/dist/bus-VWlmM5xs.cjs.map +0 -1
- package/dist/console-BPZCuSLc.cjs +0 -2
- package/dist/console-BPZCuSLc.cjs.map +0 -1
- package/dist/console-BeCF7n59.js +0 -82
- package/dist/console-BeCF7n59.js.map +0 -1
- package/dist/constants-DqKJH_MP.cjs +0 -2
- package/dist/constants-DqKJH_MP.cjs.map +0 -1
- package/dist/constants-zyrqveN4.js +0 -304
- package/dist/constants-zyrqveN4.js.map +0 -1
- package/dist/context-storage-BjzeBSxH.cjs +0 -2
- package/dist/context-storage-BjzeBSxH.cjs.map +0 -1
- package/dist/context-storage-BzkoHzkQ.js +0 -51
- package/dist/context-storage-BzkoHzkQ.js.map +0 -1
- package/dist/deadline-BOjOxNHj.js.map +0 -1
- package/dist/deadline-XSnm95pg.cjs +0 -2
- package/dist/deadline-XSnm95pg.cjs.map +0 -1
- package/dist/debug-bundle-BzJNpbF0.cjs +0 -2
- package/dist/debug-bundle-BzJNpbF0.cjs.map +0 -1
- package/dist/debug-bundle-C7UkHZ-q.js +0 -25
- package/dist/debug-bundle-C7UkHZ-q.js.map +0 -1
- package/dist/emergency-queue-CNTRui5t.cjs +0 -2
- package/dist/emergency-queue-CNTRui5t.cjs.map +0 -1
- package/dist/emergency-queue-Zy6lNafo.js +0 -67
- package/dist/emergency-queue-Zy6lNafo.js.map +0 -1
- package/dist/errors-Dh7kef0i.js +0 -92
- package/dist/errors-Dh7kef0i.js.map +0 -1
- package/dist/errors-tfEr48bS.cjs +0 -3
- package/dist/errors-tfEr48bS.cjs.map +0 -1
- package/dist/factory-BonqI3NL.js +0 -276
- package/dist/factory-BonqI3NL.js.map +0 -1
- package/dist/factory-CJXVYp0R.cjs +0 -2
- package/dist/factory-CJXVYp0R.cjs.map +0 -1
- package/dist/guards-Cidk71ME.js +0 -7
- package/dist/guards-Cidk71ME.js.map +0 -1
- package/dist/guards-nJ70syPt.cjs +0 -2
- package/dist/guards-nJ70syPt.cjs.map +0 -1
- package/dist/identity-Cxgj6pZX.cjs +0 -2
- package/dist/identity-Cxgj6pZX.cjs.map +0 -1
- package/dist/identity-DT5VmvXy.js.map +0 -1
- package/dist/indexeddb-storage-BJVtiQKm.js.map +0 -1
- package/dist/indexeddb-storage-CIoW21Xd.cjs +0 -2
- package/dist/indexeddb-storage-CIoW21Xd.cjs.map +0 -1
- package/dist/interactions-DTgKy_6K.js.map +0 -1
- package/dist/interactions-fEN6FbVo.cjs +0 -2
- package/dist/interactions-fEN6FbVo.cjs.map +0 -1
- package/dist/journey-CuJrHzEg.js.map +0 -1
- package/dist/journey-pffMVMfa.cjs +0 -2
- package/dist/journey-pffMVMfa.cjs.map +0 -1
- package/dist/keys-BHhw_0Wh.cjs +0 -2
- package/dist/keys-BHhw_0Wh.cjs.map +0 -1
- package/dist/keys-BU9j5YqW.js +0 -16
- package/dist/keys-BU9j5YqW.js.map +0 -1
- package/dist/library-console-C1m6g1BR.js.map +0 -1
- package/dist/library-console-D2GY9Or6.cjs.map +0 -1
- package/dist/library-request-1BX_UlaX.cjs.map +0 -1
- package/dist/library-request-BQBT9N9Q.js.map +0 -1
- package/dist/lifecycle-2EtUaRpo.cjs +0 -2
- package/dist/lifecycle-2EtUaRpo.cjs.map +0 -1
- package/dist/lifecycle-BaKx_-32.js.map +0 -1
- package/dist/log-record-CAoGBBf3.js.map +0 -1
- package/dist/log-record-i9zOTkpQ.cjs +0 -2
- package/dist/log-record-i9zOTkpQ.cjs.map +0 -1
- package/dist/long-frames-BVg4i5SC.cjs +0 -2
- package/dist/long-frames-BVg4i5SC.cjs.map +0 -1
- package/dist/long-frames-Czk7IupC.js +0 -64
- package/dist/long-frames-Czk7IupC.js.map +0 -1
- package/dist/models/stats.d.ts +0 -11
- package/dist/network-DBNwApoF.js.map +0 -1
- package/dist/network-xbbuvG_6.cjs +0 -2
- package/dist/network-xbbuvG_6.cjs.map +0 -1
- package/dist/otlp-BDvFrLnc.cjs +0 -2
- package/dist/otlp-BDvFrLnc.cjs.map +0 -1
- package/dist/otlp-BTJdIa6F.js.map +0 -1
- package/dist/platform-C2Ez5kDc.cjs.map +0 -1
- package/dist/platform-DkcuXwe-.js.map +0 -1
- package/dist/remote-rules-Cfb4K-Nl.js +0 -98
- package/dist/remote-rules-Cfb4K-Nl.js.map +0 -1
- package/dist/remote-rules-vzvk7aKf.cjs +0 -2
- package/dist/remote-rules-vzvk7aKf.cjs.map +0 -1
- package/dist/reports-Dk2YhKIh.cjs +0 -2
- package/dist/reports-Dk2YhKIh.cjs.map +0 -1
- package/dist/reports-TA-zInnq.js.map +0 -1
- package/dist/resource-timing-BLv3EA2A.js.map +0 -1
- package/dist/resource-timing-Cysw1S1f.cjs +0 -2
- package/dist/resource-timing-Cysw1S1f.cjs.map +0 -1
- package/dist/sampling-C4VV-1MS.js +0 -60
- package/dist/sampling-C4VV-1MS.js.map +0 -1
- package/dist/sampling-Ckh2yW9k.cjs +0 -2
- package/dist/sampling-Ckh2yW9k.cjs.map +0 -1
- package/dist/sanitize-6ymPlVvP.js.map +0 -1
- package/dist/sanitize-BAWzkZt0.cjs.map +0 -1
- package/dist/select-ZF4by-lF.cjs +0 -3
- package/dist/select-ZF4by-lF.cjs.map +0 -1
- package/dist/select-xtQaenIi.js +0 -270
- package/dist/select-xtQaenIi.js.map +0 -1
- package/dist/sender-CiMHC9YG.js +0 -856
- package/dist/sender-CiMHC9YG.js.map +0 -1
- package/dist/sender-D5wBoXA8.cjs +0 -2
- package/dist/sender-D5wBoXA8.cjs.map +0 -1
- package/dist/storage-BA9RqRO-.cjs +0 -2
- package/dist/storage-BA9RqRO-.cjs.map +0 -1
- package/dist/storage-DZwed89z.js +0 -16
- package/dist/storage-DZwed89z.js.map +0 -1
- package/dist/storm-CYi9Swpx.cjs +0 -2
- package/dist/storm-CYi9Swpx.cjs.map +0 -1
- package/dist/storm-VR024_QN.js +0 -9
- package/dist/storm-VR024_QN.js.map +0 -1
- package/dist/unclean-exit-CwcUhFOn.js.map +0 -1
- package/dist/unclean-exit-DFUN57wY.cjs +0 -2
- package/dist/unclean-exit-DFUN57wY.cjs.map +0 -1
- package/dist/user-timing-C9kfRq3J.cjs +0 -2
- package/dist/user-timing-C9kfRq3J.cjs.map +0 -1
- package/dist/user-timing-_jZIhDKI.js.map +0 -1
- package/dist/utils/timer.d.ts +0 -19
- package/dist/web-socket-BWUoqBh8.cjs +0 -2
- package/dist/web-socket-BWUoqBh8.cjs.map +0 -1
- package/dist/web-socket-CV7yIMnm.js.map +0 -1
- package/dist/web-vitals-Bq4WFHQo.js +0 -52
- package/dist/web-vitals-Bq4WFHQo.js.map +0 -1
- package/dist/web-vitals-DFuoTQbZ.cjs +0 -2
- package/dist/web-vitals-DFuoTQbZ.cjs.map +0 -1
- package/dist/worker-protocol-Bai7GAIA.cjs +0 -2
- package/dist/worker-protocol-Bai7GAIA.cjs.map +0 -1
- package/dist/worker-protocol-CrsdSDLn.js.map +0 -1
- package/dist/worker-server-BrIYkfoa.cjs +0 -2
- package/dist/worker-server-BrIYkfoa.cjs.map +0 -1
- package/dist/worker-server-Dp5HYm4b.js +0 -83
- package/dist/worker-server-Dp5HYm4b.js.map +0 -1
- package/dist/worker-transport-Bwej4N2e.cjs +0 -2
- package/dist/worker-transport-Bwej4N2e.cjs.map +0 -1
- package/dist/worker-transport-D6jtgpqN.js +0 -199
- package/dist/worker-transport-D6jtgpqN.js.map +0 -1
package/dist/constants.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { ConsoleStyles, ResolvedConfig } from "./models/config";
|
|
2
|
-
import type { LogLevel, LogType } from "./models/log-record";
|
|
3
|
-
import type { StorageLimits } from "./models/storage";
|
|
1
|
+
import type { ConsoleStyles, ResolvedConfig } from "./models/config.js";
|
|
2
|
+
import type { LogLevel, LogType } from "./models/log-record.js";
|
|
3
|
+
import type { StorageLimits } from "./models/storage.js";
|
|
4
4
|
/** Prefix on console messages this library writes. */
|
|
5
5
|
export declare const LIBRARY_LOG_PREFIX = "[ui-observability]";
|
|
6
6
|
/**
|
|
7
|
-
* Throttle window
|
|
8
|
-
* loop
|
|
7
|
+
* Throttle window per diagnostic code, in milliseconds. Limits how often an error
|
|
8
|
+
* loop can call the handler.
|
|
9
9
|
*/
|
|
10
10
|
export declare const DIAGNOSTIC_THROTTLE_MS = 1000;
|
|
11
11
|
/** `localStorage` key for the session id and its last-seen time. */
|
|
12
12
|
export declare const SESSION_ID_KEY = "ui-observability.session";
|
|
13
13
|
/** `sessionStorage` key for the tab id. */
|
|
14
14
|
export declare const TAB_ID_KEY = "ui-observability.tab";
|
|
15
|
-
/** sessionStorage key
|
|
15
|
+
/** sessionStorage key for a live page's marker. A clean close removes it. */
|
|
16
16
|
export declare const ALIVE_KEY = "ui-observability.alive";
|
|
17
|
-
/**
|
|
17
|
+
/** How often the alive marker is updated, in milliseconds. */
|
|
18
18
|
export declare const ALIVE_UPDATE_MS = 30000;
|
|
19
19
|
/** Session idle timeout, in milliseconds. */
|
|
20
20
|
export declare const SESSION_IDLE_MS: number;
|
|
@@ -72,15 +72,15 @@ export declare const SEVERITY_NUMBER: Record<LogLevel, number>;
|
|
|
72
72
|
export declare const LEVEL_ORDER: Record<LogLevel, number>;
|
|
73
73
|
/** Record kind attribute key. */
|
|
74
74
|
export declare const ATTR_LOG_TYPE = "log.type";
|
|
75
|
-
/**
|
|
75
|
+
/** A record's sequence number within its context. Starts at 1. */
|
|
76
76
|
export declare const ATTR_LOG_SEQ = "log.seq";
|
|
77
77
|
/** Logger namespace attribute key. */
|
|
78
78
|
export declare const ATTR_APP_NAMESPACE = "app.namespace";
|
|
79
|
-
/**
|
|
79
|
+
/** The document URL at the time the record was built. */
|
|
80
80
|
export declare const ATTR_PAGE_URL = "page.url";
|
|
81
81
|
/**
|
|
82
|
-
* HTTP request URL attribute key
|
|
83
|
-
*
|
|
82
|
+
* HTTP request URL attribute key, set by network capture. Don't reuse `ATTR_PAGE_URL` for it,
|
|
83
|
+
* because the page URL overwrites the request target under that key.
|
|
84
84
|
* @see {@link ATTR_PAGE_URL}
|
|
85
85
|
*/
|
|
86
86
|
export declare const ATTR_URL_FULL = "url.full";
|
|
@@ -92,12 +92,12 @@ export declare const ATTR_JOURNEY_NAME = "journey.name";
|
|
|
92
92
|
export declare const ATTR_JOURNEY_PARENT_ID = "journey.parent_id";
|
|
93
93
|
/** Marks a record whose attributes failed to sanitize. */
|
|
94
94
|
export declare const ATTR_SANITIZE_FAILED = "uiobs.sanitize_failed";
|
|
95
|
-
/**
|
|
95
|
+
/** An Error reason's own fields, or the whole reason when it isn't an Error. */
|
|
96
96
|
export declare const ATTR_ERROR_DATA = "error.data";
|
|
97
|
-
/**
|
|
97
|
+
/** An error record's breadcrumb history. */
|
|
98
98
|
export declare const ATTR_BREADCRUMBS = "breadcrumbs";
|
|
99
99
|
/**
|
|
100
|
-
* Marks a record
|
|
100
|
+
* Marks a record whose attributes were dropped for exceeding the byte budget.
|
|
101
101
|
* @see {@link ATTR_ATTRIBUTES_BYTES}
|
|
102
102
|
*/
|
|
103
103
|
export declare const ATTR_ATTRIBUTES_DROPPED = "uiobs.attributes_dropped";
|
|
@@ -106,11 +106,11 @@ export declare const ATTR_ATTRIBUTES_DROPPED = "uiobs.attributes_dropped";
|
|
|
106
106
|
* @see {@link ATTR_ATTRIBUTES_DROPPED}
|
|
107
107
|
*/
|
|
108
108
|
export declare const ATTR_ATTRIBUTES_BYTES = "uiobs.attributes_bytes";
|
|
109
|
-
/** Server time minus client time, in milliseconds, from
|
|
109
|
+
/** Server time minus client time, in milliseconds, from an accepted answer's Date header. */
|
|
110
110
|
export declare const ATTR_CLOCK_OFFSET_MS = "uiobs.clock_offset_ms";
|
|
111
|
-
/** Marks a record
|
|
111
|
+
/** Marks a record the debug buffer held until an error. */
|
|
112
112
|
export declare const ATTR_DEBUG_BUFFER = "uiobs.debug_buffer";
|
|
113
|
-
/** Half the
|
|
113
|
+
/** Half the HTTP Date header's resolution. Centers the clock offset's error. */
|
|
114
114
|
export declare const DATE_HEADER_HALF_STEP_MS = 500;
|
|
115
115
|
/** Application name resource key. */
|
|
116
116
|
export declare const RESOURCE_SERVICE_NAME = "service.name";
|
|
@@ -153,7 +153,7 @@ export declare const RESOURCE_OPENFIN_NAME = "openfin.name";
|
|
|
153
153
|
*/
|
|
154
154
|
export declare const TELEMETRY_SDK_NAME = "@utk09/ui-observability";
|
|
155
155
|
/**
|
|
156
|
-
* Value of `telemetry.sdk.version`. The build writes the
|
|
156
|
+
* Value of `telemetry.sdk.version`. The build writes the package.json version here.
|
|
157
157
|
* @see {@link RESOURCE_TELEMETRY_SDK_VERSION}
|
|
158
158
|
*/
|
|
159
159
|
export declare const TELEMETRY_SDK_VERSION: string;
|
|
@@ -168,11 +168,11 @@ export declare const SERIALIZER_NAME_OTLP = "otlp";
|
|
|
168
168
|
export declare const SERIALIZER_NAME_ECS = "ecs";
|
|
169
169
|
/**
|
|
170
170
|
* ECS `log.level` names that differ from the lowercase severity text. ECS spells
|
|
171
|
-
* the warning level in full
|
|
171
|
+
* the warning level out in full, and every other level matches in lowercase.
|
|
172
172
|
* @see {@link SERIALIZER_NAME_ECS}
|
|
173
173
|
*/
|
|
174
174
|
export declare const ECS_LEVEL_NAMES: Partial<Record<LogLevel, string>>;
|
|
175
|
-
/** ECS version of the documents
|
|
175
|
+
/** The ECS version of the documents, the same one the Elastic ECS logging libraries write. */
|
|
176
176
|
export declare const ECS_VERSION = "8.10.0";
|
|
177
177
|
/** Content type for an OTLP/JSON body. */
|
|
178
178
|
export declare const CONTENT_TYPE_JSON = "application/json";
|
|
@@ -220,6 +220,8 @@ export declare const HTTP_FORBIDDEN = 403;
|
|
|
220
220
|
export declare const HTTP_REQUEST_TIMEOUT = 408;
|
|
221
221
|
/** 413, payload too large. The transport must split the batch. */
|
|
222
222
|
export declare const HTTP_PAYLOAD_TOO_LARGE = 413;
|
|
223
|
+
/** 415, unsupported media type. A stock OpenTelemetry Collector gives it to a text/plain batch. */
|
|
224
|
+
export declare const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
|
|
223
225
|
/** 429, backpressure. */
|
|
224
226
|
export declare const HTTP_TOO_MANY_REQUESTS = 429;
|
|
225
227
|
/** 500, floor for server-side errors. */
|
|
@@ -230,7 +232,11 @@ export declare const HTTP_SERVICE_UNAVAILABLE = 503;
|
|
|
230
232
|
export declare const MILLIS_PER_SECOND = 1000;
|
|
231
233
|
/** Max exit payload size, in bytes (`sendBeacon`/`fetch(keepalive)` shared budget). */
|
|
232
234
|
export declare const BEACON_LIMIT_BYTES = 60000;
|
|
233
|
-
/**
|
|
235
|
+
/** Largest ingest response body the library reads, in bytes. It skips a larger body. */
|
|
236
|
+
export declare const RESPONSE_BODY_LIMIT_BYTES = 16384;
|
|
237
|
+
/** Longest server message that a diagnostic repeats. The server controls this text. */
|
|
238
|
+
export declare const SERVER_MESSAGE_MAX_CHARS = 256;
|
|
239
|
+
/** Content type for an exit payload. CORS-safelisted, so it doesn't trigger a preflight. */
|
|
234
240
|
export declare const CONTENT_TYPE_TEXT_PLAIN = "text/plain;charset=UTF-8";
|
|
235
241
|
/**
|
|
236
242
|
* Batch id query param name, for the exit path.
|
|
@@ -243,23 +249,24 @@ export declare const QUERY_PARAM_EXIT_REASON = "uiobs_exit";
|
|
|
243
249
|
export declare const BATCH_STORAGE_KEY_PREFIX = "ui-observability.batch.";
|
|
244
250
|
/** Zero-padded digit width for the creation time in a batch key. */
|
|
245
251
|
export declare const BATCH_KEY_TIME_WIDTH = 14;
|
|
246
|
-
/** localStorage key prefix for a batch
|
|
252
|
+
/** localStorage key prefix for a batch stored by the exit flush. */
|
|
247
253
|
export declare const EMERGENCY_STORAGE_KEY_PREFIX = "ui-observability.emergency.";
|
|
248
254
|
/** Maximum number of exit batches in the emergency queue. */
|
|
249
255
|
export declare const EMERGENCY_MAX_ENTRIES = 20;
|
|
250
|
-
/** Key
|
|
256
|
+
/** Key we write to check whether localStorage accepts writes. */
|
|
251
257
|
export declare const STORAGE_PROBE_KEY = "ui-observability.probe";
|
|
252
258
|
/** Fraction of the store to evict on a quota error (1 in N). */
|
|
253
259
|
export declare const QUOTA_EVICTION_DIVISOR = 4;
|
|
254
260
|
/** DOMException name for a full store. */
|
|
255
261
|
export declare const QUOTA_EXCEEDED_ERROR = "QuotaExceededError";
|
|
256
262
|
/**
|
|
257
|
-
* Native IndexedDB version. Version 11 replaced Dexie
|
|
258
|
-
* Dexie opened this database at ten times its declared version
|
|
259
|
-
* open() fail with VersionError
|
|
263
|
+
* Native IndexedDB version. Version 11 replaced Dexie, and version 12 adds the context index.
|
|
264
|
+
* Dexie opened this database at ten times its declared version, so a version below 11 makes
|
|
265
|
+
* open() fail with VersionError on an existing installation, and then nothing can read its
|
|
266
|
+
* batches.
|
|
260
267
|
*/
|
|
261
268
|
export declare const INDEXEDDB_SCHEMA_VERSION = 12;
|
|
262
|
-
/** IndexedDB object store that holds batches.
|
|
269
|
+
/** IndexedDB object store that holds the batches. The name dates from Dexie, since removed. */
|
|
263
270
|
export declare const INDEXEDDB_STORE_NAME = "batches";
|
|
264
271
|
/** Index on the batch store that orders reads by creation time. */
|
|
265
272
|
export declare const INDEXEDDB_CREATED_AT_INDEX = "createdAt";
|
|
@@ -291,30 +298,30 @@ export declare const JOURNEY_STORAGE_KEY = "ui-observability.journey";
|
|
|
291
298
|
*/
|
|
292
299
|
export declare const JOURNEY_TOKEN_NAME_MAX_CHARS = 64;
|
|
293
300
|
/**
|
|
294
|
-
* Max length of a journey id from startJourney(), in characters.
|
|
295
|
-
*
|
|
301
|
+
* Max length of a journey id from startJourney(), in characters. A journey with an id this long
|
|
302
|
+
* and a full-length name still gets a token below the token limit.
|
|
296
303
|
* @see {@link JOURNEY_TOKEN_MAX_CHARS}
|
|
297
304
|
*/
|
|
298
305
|
export declare const JOURNEY_ID_MAX_CHARS = 64;
|
|
299
306
|
/**
|
|
300
|
-
* Accepted journey id from startJourney(): letters, digits, "_", ".", ":" and "-".
|
|
301
|
-
* is one byte in UTF-8. A multibyte id
|
|
307
|
+
* Accepted journey id from startJourney(): letters, digits, "_", ".", ":" and "-". Every
|
|
308
|
+
* character is one byte in UTF-8. A multibyte id would push the token over its limit.
|
|
302
309
|
*/
|
|
303
310
|
export declare const JOURNEY_ID_PATTERN: RegExp;
|
|
304
311
|
/**
|
|
305
|
-
*
|
|
306
|
-
* can disagree on the time
|
|
312
|
+
* How far ahead of this clock a journey token's start time can be, in milliseconds. Two machines
|
|
313
|
+
* can disagree on the time, but a token further ahead than this would never expire.
|
|
307
314
|
*/
|
|
308
315
|
export declare const JOURNEY_CLOCK_SKEW_MS: number;
|
|
309
316
|
/**
|
|
310
|
-
* Max whole-token length, in characters.
|
|
311
|
-
* validate the token content.
|
|
317
|
+
* Max whole-token length, in characters. This only rejects an oversized token. It doesn't
|
|
318
|
+
* validate the token's content.
|
|
312
319
|
* @see {@link JOURNEY_TOKEN_NAME_MAX_CHARS}
|
|
313
320
|
*/
|
|
314
321
|
export declare const JOURNEY_TOKEN_MAX_CHARS = 256;
|
|
315
322
|
/**
|
|
316
|
-
*
|
|
317
|
-
* runtime
|
|
323
|
+
* How long to wait for `fin.me.getOptions()`, in milliseconds. After that, the
|
|
324
|
+
* runtime carries on without a seeded journey.
|
|
318
325
|
* @see {@link OPENFIN_JOURNEY_CUSTOM_DATA_KEY}
|
|
319
326
|
*/
|
|
320
327
|
export declare const OPENFIN_OPTIONS_TIMEOUT_MS = 2000;
|
|
@@ -358,8 +365,8 @@ export declare const FNV_PRIME = 16777619;
|
|
|
358
365
|
/** Largest 32-bit unsigned value. */
|
|
359
366
|
export declare const UINT32_MAX = 4294967295;
|
|
360
367
|
/**
|
|
361
|
-
* Types that minLevel
|
|
362
|
-
* The remote rate cap for records below minLevel
|
|
368
|
+
* Types that minLevel never drops. An action is an audit fact, and a metric or a span is a
|
|
369
|
+
* measurement. The remote rate cap for records below minLevel doesn't apply to them either.
|
|
363
370
|
*/
|
|
364
371
|
export declare const LEVEL_BYPASS_TYPES: readonly LogType[];
|
|
365
372
|
/** Record kind routed to the metric stream. */
|
|
@@ -371,9 +378,9 @@ export declare const LOG_TYPE_SPAN: LogType;
|
|
|
371
378
|
/** Protocol identifier for bus envelopes. The bus drops an envelope with a different version. */
|
|
372
379
|
export declare const BUS_PROTOCOL = "ui-observability/2";
|
|
373
380
|
/**
|
|
374
|
-
* Type tag
|
|
375
|
-
* easy to
|
|
376
|
-
* from other traffic.
|
|
381
|
+
* Type tag for every bus message. Every frame must use the same values. The prefix makes a
|
|
382
|
+
* message easy to spot in a postMessage log, but it is still the BUS_PROTOCOL envelope tag that
|
|
383
|
+
* separates the bus from other traffic.
|
|
377
384
|
*/
|
|
378
385
|
export declare const BUS_TYPE: {
|
|
379
386
|
readonly hello: "ui-observability.message.hello";
|
|
@@ -385,80 +392,88 @@ export declare const BUS_TYPE: {
|
|
|
385
392
|
readonly sampling: "ui-observability.message.sampling";
|
|
386
393
|
readonly samplingRequest: "ui-observability.message.sampling-request";
|
|
387
394
|
readonly tab: "ui-observability.message.tab";
|
|
395
|
+
readonly flushRequest: "ui-observability.message.flush-request";
|
|
396
|
+
readonly flushResult: "ui-observability.message.flush-result";
|
|
388
397
|
};
|
|
389
398
|
/** Global window property key used to locate a same-origin runtime instance. */
|
|
390
399
|
export declare const RUNTIME_GLOBAL_KEY = "ui-observability.runtime";
|
|
391
|
-
/** Global key
|
|
400
|
+
/** Global key for the runtime shutdown() stopped. Calls go to it until the next configure(). */
|
|
392
401
|
export declare const RUNTIME_STOPPED_KEY = "ui-observability.stopped";
|
|
393
|
-
/** Global symbol key
|
|
402
|
+
/** Global symbol key for the library request scope count, shared by every copy on the page. */
|
|
394
403
|
export declare const LIBRARY_REQUEST_KEY = "ui-observability.request-scope";
|
|
395
|
-
/** Global symbol key
|
|
404
|
+
/** Global symbol key for the library console scope count, shared by every copy on the page. */
|
|
396
405
|
export declare const LIBRARY_CONSOLE_KEY = "ui-observability.console-scope";
|
|
397
|
-
/** Global symbol key
|
|
406
|
+
/** Global symbol key for the number of custom transport calls still waiting for an answer. */
|
|
398
407
|
export declare const TRANSPORT_CALL_KEY = "ui-observability.transport-calls";
|
|
399
408
|
/** Maximum error records captured per throttling window before suppression. */
|
|
400
409
|
export declare const ERROR_STORM_MAX_PER_WINDOW = 20;
|
|
401
|
-
/**
|
|
410
|
+
/**
|
|
411
|
+
* Default length of the capture rate limit window, and of the replay upload and error ceiling
|
|
412
|
+
* windows, in milliseconds.
|
|
413
|
+
*/
|
|
402
414
|
export declare const ERROR_STORM_WINDOW_MS = 10000;
|
|
403
415
|
/**
|
|
404
|
-
* Max ERROR and FATAL records
|
|
405
|
-
*
|
|
406
|
-
*
|
|
416
|
+
* Max ERROR and FATAL records the pipeline admits per storm window. This is a safety limit for
|
|
417
|
+
* a render loop, not a way to shape normal traffic. ERROR and FATAL records skip sampling, so a
|
|
418
|
+
* direct logger.error call has no other limit.
|
|
407
419
|
*/
|
|
408
420
|
export declare const ERROR_CEILING_MAX_PER_WINDOW = 500;
|
|
409
|
-
/** Default minimum duration
|
|
421
|
+
/** Default minimum duration for a long frame to be recorded, in milliseconds. */
|
|
410
422
|
export declare const LONG_FRAME_THRESHOLD_MS = 100;
|
|
411
|
-
/** Maximum long frames recorded
|
|
423
|
+
/** Maximum long frames recorded per storm window, so a frozen tab can't flood the pipeline. */
|
|
412
424
|
export declare const LONG_FRAME_MAX_PER_WINDOW = 20;
|
|
413
|
-
/**
|
|
425
|
+
/** Max WebSocket events recorded per storm window, so a reconnect loop can't flood the pipeline. */
|
|
414
426
|
export declare const WEBSOCKET_MAX_PER_WINDOW = 20;
|
|
415
427
|
/** Maximum character length of a console breadcrumb message. */
|
|
416
428
|
export declare const CONSOLE_BREADCRUMB_MAX_CHARS = 200;
|
|
417
429
|
/** Maximum distinct error signatures tracked for deduplication before LRU eviction. */
|
|
418
430
|
export declare const MAX_TRACKED_ERROR_SIGNATURES = 200;
|
|
419
|
-
/** Maximum
|
|
431
|
+
/** Maximum characters of a clicked element's text kept in a breadcrumb. */
|
|
420
432
|
export declare const CLICK_TEXT_MAX_CHARS = 50;
|
|
421
|
-
/** Attribute that names a click action
|
|
433
|
+
/** Attribute that names a click action, unless the app configures a different one. */
|
|
422
434
|
export declare const ACTION_ATTRIBUTE_DEFAULT = "data-observability-action";
|
|
423
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Selector for the regions the app keeps out of the records. Click capture skips them by
|
|
437
|
+
* default, and session replay always blocks them, so a hidden region can't leak through either.
|
|
438
|
+
*/
|
|
439
|
+
export declare const IGNORE_SELECTOR = "[data-observability-ignore]";
|
|
440
|
+
/** How many clicks on one element make a rage click, by default. */
|
|
424
441
|
export declare const RAGE_CLICK_COUNT = 3;
|
|
425
|
-
/**
|
|
442
|
+
/** The time window a rage click's clicks must fall within, in milliseconds, by default. */
|
|
426
443
|
export declare const RAGE_CLICK_WINDOW_MS = 1000;
|
|
427
|
-
/**
|
|
444
|
+
/** How long to wait for a visible response before a click counts as dead, in milliseconds. */
|
|
428
445
|
export declare const DEAD_CLICK_MS = 1000;
|
|
429
|
-
/** Controls
|
|
446
|
+
/** Controls that should respond visibly to a click. Only these get a dead click check. */
|
|
430
447
|
export declare const DEAD_CLICK_CONTROLS = "a, button, summary, input[type=\"button\"], input[type=\"submit\"], input[type=\"reset\"], [role=\"button\"], [role=\"link\"], [role=\"menuitem\"], [role=\"tab\"]";
|
|
431
|
-
/** Maximum
|
|
448
|
+
/** Maximum characters of an aria-label kept in a generated selector. */
|
|
432
449
|
export declare const ARIA_LABEL_MAX_CHARS = 40;
|
|
433
|
-
/** Maximum class names
|
|
450
|
+
/** Maximum class names per element in a generated CSS selector. */
|
|
434
451
|
export declare const SELECTOR_MAX_CLASSES = 2;
|
|
435
|
-
/** Default CSS
|
|
452
|
+
/** Default CSS for the console prefix. The colors are readable in light and dark devtools. */
|
|
436
453
|
export declare const CONSOLE_DEFAULT_STYLES: Readonly<Required<ConsoleStyles>>;
|
|
437
|
-
/**
|
|
438
|
-
export declare const DURATION_PRECISION = 1000;
|
|
439
|
-
/** Minimum duration in milliseconds between storage gap warning reports. */
|
|
454
|
+
/** Minimum time between storage gap warning reports, in milliseconds. */
|
|
440
455
|
export declare const GAP_REPORT_THROTTLE_MS = 60000;
|
|
441
|
-
/** Default namespace for
|
|
456
|
+
/** Default namespace for records the auto-capture modules emit. */
|
|
442
457
|
export declare const CAPTURE_NAMESPACE = "uiobs.capture";
|
|
443
|
-
/** Default namespace for
|
|
458
|
+
/** Default namespace for records the storage subsystems emit. */
|
|
444
459
|
export declare const STORAGE_NAMESPACE = "uiobs.storage";
|
|
445
|
-
/** Namespace
|
|
460
|
+
/** Namespace for the records `diagnostics.records` produces. */
|
|
446
461
|
export declare const DIAGNOSTICS_NAMESPACE = "uiobs.diagnostics";
|
|
447
|
-
/**
|
|
462
|
+
/** The measurement unit used when a call doesn't give one. */
|
|
448
463
|
export declare const DEFAULT_METRIC_UNIT = "count";
|
|
449
|
-
/** Namespace
|
|
464
|
+
/** Namespace for the points the counter and histogram instruments produce. */
|
|
450
465
|
export declare const METRIC_NAMESPACE = "uiobs.metrics";
|
|
451
|
-
/** Maximum attribute sets
|
|
466
|
+
/** Maximum attribute sets per instrument per interval. Any more go into one overflow set. */
|
|
452
467
|
export declare const METRIC_MAX_SERIES = 100;
|
|
453
|
-
/** Maximum bucket boundaries
|
|
468
|
+
/** Maximum bucket boundaries per histogram. More than that makes for a large point. */
|
|
454
469
|
export declare const METRIC_MAX_BOUNDARIES = 50;
|
|
455
|
-
/** Attribute
|
|
470
|
+
/** Attribute on the overflow set. OpenTelemetry uses the same key. */
|
|
456
471
|
export declare const ATTR_METRIC_OVERFLOW = "otel.metric.overflow";
|
|
457
|
-
/** Default histogram boundaries
|
|
472
|
+
/** Default histogram boundaries, the same as OpenTelemetry's defaults. */
|
|
458
473
|
export declare const METRIC_DEFAULT_BOUNDARIES: readonly number[];
|
|
459
474
|
/**
|
|
460
|
-
* Attribute keys
|
|
461
|
-
* Sampling keeps
|
|
475
|
+
* Attribute keys on an aggregated metric point, read by the OTLP metrics serializer.
|
|
476
|
+
* Sampling keeps every record that has a start time, because sampling a sum gives a false sum.
|
|
462
477
|
*/
|
|
463
478
|
export declare const METRIC_KEYS: {
|
|
464
479
|
readonly start: "metric.start_time_unix_nano";
|
|
@@ -470,9 +485,61 @@ export declare const METRIC_KEYS: {
|
|
|
470
485
|
readonly bounds: "metric.bounds";
|
|
471
486
|
readonly buckets: "metric.bucket_counts";
|
|
472
487
|
};
|
|
488
|
+
/**
|
|
489
|
+
* Every metric field the library writes on a metric record. The OTLP metrics serializer keeps
|
|
490
|
+
* them off a point's attributes, because the record holds the library's value under that name.
|
|
491
|
+
*/
|
|
492
|
+
export declare const METRIC_FIELD_KEYS: readonly string[];
|
|
493
|
+
/** Precision of the profiler histogram: 2^4 = 16 sub-buckets per power of two. */
|
|
494
|
+
export declare const PROFILE_SUB_BITS = 4;
|
|
495
|
+
/** Buckets per probe: 16 for 0 to 15 us, then 16 for each exponent from 4 to 25. */
|
|
496
|
+
export declare const PROFILE_BUCKETS = 368;
|
|
497
|
+
/** Largest tracked duration in microseconds (2^26 - 1). Larger values go in the last bucket. */
|
|
498
|
+
export declare const PROFILE_MAX_US = 67108863;
|
|
499
|
+
/** Cap on the buckets in one profiler summary record, to keep the payload small. */
|
|
500
|
+
export declare const PROFILE_POINT_BUCKETS = 100;
|
|
501
|
+
/** Default probe limit. The runtime fixes the limit at startup. */
|
|
502
|
+
export declare const PROFILER_MAX_PROBES = 64;
|
|
503
|
+
/** Metric name for profiler summary records. */
|
|
504
|
+
export declare const PROFILE_METRIC_NAME = "ui.profile.duration";
|
|
505
|
+
/** Attribute keys on profiler summary records. */
|
|
506
|
+
export declare const PROFILE_KEYS: {
|
|
507
|
+
readonly probe: "profile.probe";
|
|
508
|
+
readonly sampleEvery: "profile.sample_every";
|
|
509
|
+
readonly p50: "profile.p50";
|
|
510
|
+
readonly p90: "profile.p90";
|
|
511
|
+
readonly p99: "profile.p99";
|
|
512
|
+
readonly overhead: "profile.overhead_ns";
|
|
513
|
+
readonly selfP99: "profile.self_p99";
|
|
514
|
+
readonly framePhase: "profile.frame_phase";
|
|
515
|
+
};
|
|
516
|
+
/** How deep spans can nest and still get a self time. Going deeper drops the frames below. */
|
|
517
|
+
export declare const PROFILER_STACK_DEPTH = 32;
|
|
518
|
+
/** How many recent spans the profiler keeps for linking to long animation frames. */
|
|
519
|
+
export declare const PROFILER_RING_SPANS = 256;
|
|
520
|
+
/** Shortest span, in ms, that gets linked to a long animation frame. */
|
|
521
|
+
export declare const PROFILER_LINK_MIN_MS = 1;
|
|
522
|
+
/** Metric name for long animation frame phases, reported per probe in the frame. */
|
|
523
|
+
export declare const PROFILE_FRAME_METRIC_NAME = "ui.profile.frame.duration";
|
|
524
|
+
/** Probe name for frame pacing. Each value is the time between two frames. */
|
|
525
|
+
export declare const PROFILE_FRAME_PROBE = "frame.interval";
|
|
526
|
+
/** Reported when the library can't read an instrument's options. */
|
|
527
|
+
export declare const INSTRUMENT_OPTIONS_FAULT = "The library could not read the options of an instrument. The library uses the defaults.";
|
|
528
|
+
/** Ambient attribute that ties every record to the session replay recording. */
|
|
529
|
+
export declare const REPLAY_ID_KEY = "replay.id";
|
|
530
|
+
/** Put this attribute on an element to leave its text unmasked in session replay. */
|
|
531
|
+
export declare const REPLAY_UNMASK_ATTRIBUTE = "data-observability-unmask";
|
|
532
|
+
/** Hard cap on registered probe names, and so the upper bound for profiler.maxProbes. */
|
|
533
|
+
export declare const PROFILER_PROBE_LIMIT = 1024;
|
|
534
|
+
/** Global symbol key for the profiler core. Copies of the same library version share the core. */
|
|
535
|
+
export declare const PROFILER_GLOBAL_KEY = "ui-observability.profiler";
|
|
536
|
+
/** Minimum window for the profiler's overhead measurement, in ms. */
|
|
537
|
+
export declare const PROFILER_CALIBRATION_MS = 2;
|
|
538
|
+
/** Cap on begin()/end() pairs in the profiler's overhead measurement. */
|
|
539
|
+
export declare const PROFILER_CALIBRATION_PAIRS = 100000;
|
|
473
540
|
/** Namespace of the span records. */
|
|
474
541
|
export declare const TRACE_NAMESPACE = "uiobs.traces";
|
|
475
|
-
/** Attribute keys
|
|
542
|
+
/** Attribute keys for the span fields on a span record, read by the traces serializer. */
|
|
476
543
|
export declare const SPAN_KEYS: {
|
|
477
544
|
readonly kind: "span.kind";
|
|
478
545
|
readonly parentId: "span.parent_id";
|
|
@@ -482,9 +549,9 @@ export declare const SPAN_KEYS: {
|
|
|
482
549
|
readonly linkTraceId: "span.link.trace_id";
|
|
483
550
|
readonly linkSpanId: "span.link.span_id";
|
|
484
551
|
};
|
|
485
|
-
/** Protocol
|
|
552
|
+
/** Protocol for the private transport worker channel. */
|
|
486
553
|
export declare const TRANSPORT_WORKER_PROTOCOL = "ui-observability.transport/1";
|
|
487
|
-
/** Type tags
|
|
554
|
+
/** Type tags for the private transport worker messages. */
|
|
488
555
|
export declare const TRANSPORT_WORKER_TYPE: {
|
|
489
556
|
readonly connect: "connect";
|
|
490
557
|
readonly ready: "ready";
|
|
@@ -492,7 +559,7 @@ export declare const TRANSPORT_WORKER_TYPE: {
|
|
|
492
559
|
readonly result: "result";
|
|
493
560
|
readonly cancel: "cancel";
|
|
494
561
|
};
|
|
495
|
-
/**
|
|
562
|
+
/** The worker entry's refusal message. A constant keeps the protocol code out of the main chunk. */
|
|
496
563
|
export declare const TRANSPORT_WORKER_REFUSAL: {
|
|
497
564
|
readonly p: "ui-observability.transport/1";
|
|
498
565
|
readonly v: string;
|
|
@@ -501,18 +568,24 @@ export declare const TRANSPORT_WORKER_REFUSAL: {
|
|
|
501
568
|
};
|
|
502
569
|
/** Maximum requests in one transport worker. */
|
|
503
570
|
export declare const TRANSPORT_WORKER_MAX_JOBS = 64;
|
|
504
|
-
/**
|
|
571
|
+
/**
|
|
572
|
+
* Extra wait for the transport worker's answer after the request deadline. The worker replies
|
|
573
|
+
* with a status it got in time when the deadline ends its body read, and that reply needs a
|
|
574
|
+
* message hop.
|
|
575
|
+
*/
|
|
576
|
+
export declare const WORKER_REPLY_GRACE_MS = 1000;
|
|
577
|
+
/** Longest the deferred logger waits for idle time before it builds its records. */
|
|
505
578
|
export declare const DEFER_IDLE_TIMEOUT_MS = 1000;
|
|
506
|
-
/** Maximum pending payload references
|
|
579
|
+
/** Maximum pending payload references per runtime. A full queue builds its records first. */
|
|
507
580
|
export declare const DEFER_QUEUE_LIMIT = 1000;
|
|
508
|
-
/** Default minimum duration
|
|
581
|
+
/** Default minimum duration for a slow resource event, in milliseconds. */
|
|
509
582
|
export declare const RESOURCE_SLOW_MS = 1000;
|
|
510
583
|
/** Response header with server duration entries. */
|
|
511
584
|
export declare const SERVER_TIMING_HEADER = "Server-Timing";
|
|
512
585
|
/** Maximum Server-Timing header length and entry count. */
|
|
513
586
|
export declare const SERVER_TIMING_MAX_CHARS = 4096;
|
|
514
587
|
export declare const SERVER_TIMING_MAX_ENTRIES = 32;
|
|
515
|
-
/** Capture switches
|
|
588
|
+
/** Capture switches a remote rule can change. Privacy controls stay local. */
|
|
516
589
|
export declare const REMOTE_CAPTURE_FLAGS: readonly ["errors", "rejections", "resourceErrors", "fetch", "xhr", "httpMetrics", "navigation", "webVitals", "longFrames", "interactions", "console", "webSocket", "uncleanExit", "userTiming", "serverTiming", "reports", "resourceTiming", "lifecycle"];
|
|
517
590
|
/** Default `service.name` when a consumer sets none. */
|
|
518
591
|
export declare const UNKNOWN_SERVICE_NAME = "unknown-service";
|
|
@@ -520,20 +593,15 @@ export declare const UNKNOWN_SERVICE_NAME = "unknown-service";
|
|
|
520
593
|
export declare const SAMPLING_RATE_MIN = 0;
|
|
521
594
|
/** Highest sampling rate (keep everything). */
|
|
522
595
|
export declare const SAMPLING_RATE_MAX = 1;
|
|
523
|
-
/**
|
|
524
|
-
* Fallback for an invalid sampling rate (keep everything).
|
|
525
|
-
* @see {@link SAMPLING_RATE_MAX}
|
|
526
|
-
*/
|
|
527
|
-
export declare const SAMPLING_RATE_FALLBACK = 1;
|
|
528
|
-
/** Version of the remote sampling rules that the library accepts. */
|
|
596
|
+
/** The remote sampling rules version this library accepts. */
|
|
529
597
|
export declare const REMOTE_SAMPLING_VERSION = 1;
|
|
530
598
|
/** Maximum length of the sampling header, in characters. */
|
|
531
599
|
export declare const REMOTE_SAMPLING_MAX_CHARS = 4096;
|
|
532
|
-
/**
|
|
600
|
+
/** Longest that remote sampling rules stay in effect, in milliseconds. */
|
|
533
601
|
export declare const REMOTE_SAMPLING_MAX_TTL_MS: number;
|
|
534
602
|
/** Maximum namespace rates in one set of remote sampling rules. */
|
|
535
603
|
export declare const REMOTE_SAMPLING_MAX_RATES = 100;
|
|
536
|
-
/**
|
|
604
|
+
/** How often a forwarder asks for the remote sampling rules, in milliseconds. */
|
|
537
605
|
export declare const REMOTE_SAMPLING_POLL_MS = 30000;
|
|
538
606
|
/**
|
|
539
607
|
* Config keys with no default, excluded from `DEFAULT_CONFIG`.
|
|
@@ -544,29 +612,29 @@ export declare const UNDEFAULTED_CONFIG_KEYS: readonly ["contextProvider", "reda
|
|
|
544
612
|
* Nested config section keys.
|
|
545
613
|
* @see {@link ResolvedConfig}
|
|
546
614
|
*/
|
|
547
|
-
export declare const CONFIG_SECTIONS: readonly ["
|
|
615
|
+
export declare const CONFIG_SECTIONS: readonly ["captureLimits", "metadata", "storage", "diagnostics", "correlation", "metrics", "buffering", "delivery", "loggerCache", "securityContext", "sampling", "bus", "journey", "batching", "retention", "limits", "capture", "debugBuffer", "profiler", "replay"];
|
|
548
616
|
/**
|
|
549
617
|
* Section keys with no default, excluded from their section of `DEFAULT_CONFIG`.
|
|
550
618
|
* @see {@link UNDEFAULTED_CONFIG_KEYS}
|
|
551
619
|
*/
|
|
552
620
|
export declare const UNDEFAULTED_SECTION_KEYS: Record<(typeof CONFIG_SECTIONS)[number], string[]>;
|
|
553
|
-
/** Console
|
|
621
|
+
/** Console output level used when a consumer passes `consoleOutput: true`. */
|
|
554
622
|
export declare const CONSOLE_DEFAULT_LEVEL: LogLevel;
|
|
555
623
|
/** Max time a partial log batch waits before the pipeline sends it, in milliseconds. */
|
|
556
624
|
export declare const LOG_FLUSH_INTERVAL_MS = 2000;
|
|
557
625
|
/** Max records per log batch. At this count, the pipeline sends the batch early. */
|
|
558
626
|
export declare const LOG_BATCH_SIZE = 100;
|
|
559
627
|
/**
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
* caller
|
|
628
|
+
* Default interval of the counter, histogram and profiler points, in milliseconds. A partial
|
|
629
|
+
* metric batch waits this long too, longer than a log batch, because metrics have a higher
|
|
630
|
+
* volume and no caller is waiting for them.
|
|
563
631
|
*/
|
|
564
|
-
export declare const
|
|
632
|
+
export declare const METRIC_INTERVAL_MS = 10000;
|
|
565
633
|
/** Max records per metric batch. At this count, the pipeline sends the batch early. */
|
|
566
634
|
export declare const METRIC_BATCH_SIZE = 500;
|
|
567
635
|
/** Max concurrent ingest requests, across both streams. */
|
|
568
636
|
export declare const MAX_CONCURRENT_REQUESTS = 2;
|
|
569
|
-
/** Max time for one ingest request, in milliseconds.
|
|
637
|
+
/** Max time for one ingest request, in milliseconds. The transport then aborts and retries it. */
|
|
570
638
|
export declare const REQUEST_TIMEOUT_MS = 15000;
|
|
571
639
|
/** Min payload size to compress, in bytes. */
|
|
572
640
|
export declare const COMPRESSION_THRESHOLD_BYTES = 1024;
|
|
@@ -575,17 +643,24 @@ export declare const STORAGE_DB_NAME = "UiObservability";
|
|
|
575
643
|
/** Capacity and retention thresholds every storage adapter enforces. */
|
|
576
644
|
export declare const STORAGE_LIMITS: StorageLimits;
|
|
577
645
|
/**
|
|
578
|
-
* Max time for one storage call, in milliseconds.
|
|
579
|
-
*
|
|
646
|
+
* Max time for one storage call, in milliseconds. After that the call counts as failed, because
|
|
647
|
+
* a call that never settles would hold on to a dispatch slot or the drain flag.
|
|
580
648
|
*/
|
|
581
649
|
export declare const STORAGE_DEADLINE_MS = 10000;
|
|
582
|
-
/**
|
|
650
|
+
/** Default wait of flush() and of a rotation's flush, in milliseconds. */
|
|
651
|
+
export declare const FLUSH_TIMEOUT_MS = 5000;
|
|
652
|
+
/**
|
|
653
|
+
* Longest wait of flush() and of a rotation's flush, in milliseconds. A browser timer fires at
|
|
654
|
+
* once for a delay above 2^31 - 1 ms, so the wait has a ceiling.
|
|
655
|
+
*/
|
|
656
|
+
export declare const FLUSH_TIMEOUT_MAX_MS = 600000;
|
|
657
|
+
/** First backoff step, in milliseconds. Doubles with every attempt. */
|
|
583
658
|
export declare const RETRY_BASE_DELAY_MS = 2000;
|
|
584
659
|
/** Backoff ceiling, in milliseconds. */
|
|
585
660
|
export declare const RETRY_MAX_DELAY_MS = 60000;
|
|
586
661
|
/** How often to check for stored work when nothing has failed recently, in milliseconds. */
|
|
587
662
|
export declare const RETRY_IDLE_DELAY_MS = 30000;
|
|
588
|
-
/** Max time a journey stays open, in milliseconds.
|
|
663
|
+
/** Max time a journey stays open, in milliseconds. After that it counts as abandoned. */
|
|
589
664
|
export declare const JOURNEY_MAX_AGE_MS: number;
|
|
590
665
|
/** True if the journey ends for all contexts when the owning context closes. */
|
|
591
666
|
export declare const JOURNEY_END_ON_OWNER_CLOSE = false;
|
|
@@ -597,25 +672,49 @@ export declare const BUS_CHANNEL_NAME = "ui_observability_control";
|
|
|
597
672
|
export declare const BUS_HANDSHAKE_TIMEOUT_MS = 1500;
|
|
598
673
|
/** Handshake attempts allowed before a cross-origin forwarder promotes itself to sender. */
|
|
599
674
|
export declare const BUS_MAX_HANDSHAKE_ATTEMPTS = 3;
|
|
600
|
-
/**
|
|
675
|
+
/**
|
|
676
|
+
* Max named sources, for example OpenFin identities, whose message rate the bus tracks at once.
|
|
677
|
+
* A new source past it is refused, so a flood of fake names can't grow the map without end.
|
|
678
|
+
*/
|
|
679
|
+
export declare const BUS_MAX_TRACKED_SOURCES = 256;
|
|
680
|
+
/**
|
|
681
|
+
* Max flush requests from other contexts that wait for the next flush. A request past it gets
|
|
682
|
+
* no answer, so a flood of requests can't grow the list without end.
|
|
683
|
+
*/
|
|
684
|
+
export declare const BUS_MAX_FLUSH_REQUESTS = 100;
|
|
685
|
+
/** Max flush requests of one source that wait, so one frame can't fill the whole list. */
|
|
686
|
+
export declare const BUS_MAX_FLUSH_REQUESTS_PER_SOURCE = 4;
|
|
687
|
+
/**
|
|
688
|
+
* Min time between the starts of two flushes that the bus runs for other contexts, in
|
|
689
|
+
* milliseconds. A request in the gap joins the next one, so a flood can't flush without a pause.
|
|
690
|
+
*/
|
|
691
|
+
export declare const BUS_FLUSH_GAP_MS = 1000;
|
|
692
|
+
/**
|
|
693
|
+
* Share of a forwarder's time left that it gives its sender in a flush request. The rest is for
|
|
694
|
+
* the answer, so the caller's wait outlasts the callee's deadline at each hop of a chain.
|
|
695
|
+
*/
|
|
696
|
+
export declare const FLUSH_REQUEST_SHARE = 0.9;
|
|
697
|
+
/** Default of buffering.maxHeldRecords, the cap on non-action records in one hold buffer. */
|
|
601
698
|
export declare const BUS_MAX_BOOT_BUFFER_RECORDS = 500;
|
|
602
|
-
/** Max action records in one hold buffer.
|
|
699
|
+
/** Max action records in one hold buffer. Their own cap means a log storm can't push one out. */
|
|
603
700
|
export declare const BUS_MAX_BOOT_BUFFER_ACTIONS = 2000;
|
|
604
|
-
/**
|
|
701
|
+
/**
|
|
702
|
+
* Records of each kind that a full hold buffer never drops, counted from the first one. The
|
|
703
|
+
* first error of a failed startup is usually the cause, so it has to outlive the storm.
|
|
704
|
+
*/
|
|
705
|
+
export declare const HOLD_BUFFER_HEAD_RECORDS = 100;
|
|
706
|
+
/** Max distinct values in each list of an onDrop summary. */
|
|
605
707
|
export declare const DROP_SUMMARY_MAX_ITEMS = 20;
|
|
606
708
|
/**
|
|
607
|
-
* Max characters of an untrusted message type in a diagnostic detail
|
|
608
|
-
* The longest BUS_TYPE value
|
|
709
|
+
* Max characters of an untrusted message type in a diagnostic detail, since the sender controls
|
|
710
|
+
* that text. The longest BUS_TYPE value is 41 characters, so every valid type fits.
|
|
609
711
|
*/
|
|
610
712
|
export declare const BUS_TYPE_DETAIL_MAX_CHARS = 48;
|
|
611
713
|
/** Breadcrumbs kept as context for the next error. */
|
|
612
714
|
export declare const MAX_BREADCRUMBS = 50;
|
|
613
|
-
/**
|
|
614
|
-
* Time window in which the library counts identical errors but does not send them again,
|
|
615
|
-
* in milliseconds.
|
|
616
|
-
*/
|
|
715
|
+
/** How long identical errors are counted without being sent again, in milliseconds. */
|
|
617
716
|
export declare const ERROR_DEDUPE_MS = 5000;
|
|
618
|
-
/** Size caps for every record
|
|
717
|
+
/** Size caps for every record, applied after sanitize and after redact. */
|
|
619
718
|
export declare const RECORD_LIMITS: {
|
|
620
719
|
maxBodyChars: number;
|
|
621
720
|
maxAttributeChars: number;
|
|
@@ -627,9 +726,25 @@ export declare const RECORD_LIMITS: {
|
|
|
627
726
|
maxRecordBytes: number;
|
|
628
727
|
};
|
|
629
728
|
/**
|
|
630
|
-
*
|
|
631
|
-
*
|
|
632
|
-
|
|
729
|
+
* Routing settings a rotation resets when the update leaves them out. The rotation also spreads
|
|
730
|
+
* this into its base, where undefined means no hook, so an undefined key in the update resets too.
|
|
731
|
+
*/
|
|
732
|
+
export declare const ROUTING_RESET: {
|
|
733
|
+
readonly endpoint: null;
|
|
734
|
+
readonly metricsEndpoint: null;
|
|
735
|
+
readonly tracesEndpoint: null;
|
|
736
|
+
readonly headers: undefined;
|
|
737
|
+
readonly credentials: "omit";
|
|
738
|
+
readonly transport: undefined;
|
|
739
|
+
readonly transportOnExit: undefined;
|
|
740
|
+
readonly transportWorker: undefined;
|
|
741
|
+
};
|
|
742
|
+
/** Routing settings that configure() can't change while isolation is on. */
|
|
743
|
+
export declare const ROUTING_KEYS: (keyof typeof ROUTING_RESET)[];
|
|
744
|
+
/**
|
|
745
|
+
* The default runtime config, before the consumer calls `configure()`. `serializer` is left
|
|
746
|
+
* out, because `resolveConfig` supplies that default to avoid a circular import.
|
|
747
|
+
* This sits below the constants it reads, since a const can't be read before its own line.
|
|
633
748
|
* @see {@link ResolvedConfig}
|
|
634
749
|
* @see {@link UNDEFAULTED_CONFIG_KEYS}
|
|
635
750
|
*/
|