@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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/** Attribute set of a metric point. Keep it small, because every set is a series in the backend. */
|
|
2
|
+
export type MetricAttributes = Record<string, string | number | boolean>;
|
|
3
|
+
/** Instrument options. */
|
|
4
|
+
export interface InstrumentOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Unit of the values, for example "ms" or "By".
|
|
7
|
+
* @default "count"
|
|
8
|
+
*/
|
|
9
|
+
unit?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Histogram options. */
|
|
12
|
+
export interface HistogramOptions extends InstrumentOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Ascending bucket boundaries, at most 50. A value goes into the first bucket whose boundary
|
|
15
|
+
* is greater than or equal to it.
|
|
16
|
+
* @default [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000]
|
|
17
|
+
*/
|
|
18
|
+
boundaries?: readonly number[];
|
|
19
|
+
}
|
|
20
|
+
/** Counter that sums its values in memory. The library sends one point every interval. */
|
|
21
|
+
export interface Counter {
|
|
22
|
+
/**
|
|
23
|
+
* Adds a value to an attribute set's sum.
|
|
24
|
+
* @param value Finite number, 0 or larger.
|
|
25
|
+
* @param attributes The point's attribute set.
|
|
26
|
+
*/
|
|
27
|
+
add(value: number, attributes?: MetricAttributes): void;
|
|
28
|
+
}
|
|
29
|
+
/** Gauge that keeps the last value for each attribute set. The library sends it every interval. */
|
|
30
|
+
export interface Gauge {
|
|
31
|
+
/**
|
|
32
|
+
* Sets the value of an attribute set. The last value in an interval goes out.
|
|
33
|
+
* @param value Finite number.
|
|
34
|
+
* @param attributes The point's attribute set.
|
|
35
|
+
*/
|
|
36
|
+
set(value: number, attributes?: MetricAttributes): void;
|
|
37
|
+
}
|
|
38
|
+
/** Histogram that counts its values into buckets in memory. Sends one point every interval. */
|
|
39
|
+
export interface Histogram {
|
|
40
|
+
/**
|
|
41
|
+
* Adds a value to an attribute set's buckets.
|
|
42
|
+
* @param value Finite number.
|
|
43
|
+
* @param attributes The point's attribute set.
|
|
44
|
+
*/
|
|
45
|
+
record(value: number, attributes?: MetricAttributes): void;
|
|
46
|
+
}
|
|
47
|
+
/** Handle for one timed operation. */
|
|
48
|
+
export interface Measure {
|
|
49
|
+
/**
|
|
50
|
+
* Closes the open phase and starts the next one. Does nothing after `end()`.
|
|
51
|
+
* @param name Phase name. Every name creates its own series.
|
|
52
|
+
*/
|
|
53
|
+
phase(name: string): void;
|
|
54
|
+
/**
|
|
55
|
+
* Closes the open phase and records the total. A second call does nothing.
|
|
56
|
+
* @param outcome Result of the operation. `"error"` marks its span as failed. @default "ok"
|
|
57
|
+
*/
|
|
58
|
+
end(outcome?: string): void;
|
|
59
|
+
}
|
|
60
|
+
/** Probe options. */
|
|
61
|
+
export interface ProbeOptions {
|
|
62
|
+
/**
|
|
63
|
+
* Record one span out of every `sampleEvery`. An integer from 1 to 2147483647.
|
|
64
|
+
* @default 1
|
|
65
|
+
*/
|
|
66
|
+
sampleEvery?: number;
|
|
67
|
+
/**
|
|
68
|
+
* A span that runs longer than this many milliseconds leaves a breadcrumb. Must be a finite
|
|
69
|
+
* number, 0 or more. Unset by default, which means no breadcrumbs.
|
|
70
|
+
*/
|
|
71
|
+
slowMs?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Set to true when an `await` splits the probe's spans. Those spans report total time only:
|
|
74
|
+
* they have no self time, and they don't eat into the self time of other spans.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
async?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Times one span of app code. Every member is a function property rather than a method, so you
|
|
81
|
+
* can destructure them and unbound-method lint rules stay quiet.
|
|
82
|
+
*/
|
|
83
|
+
export interface Probe {
|
|
84
|
+
/**
|
|
85
|
+
* Starts a span.
|
|
86
|
+
* @returns A token to pass to `end()`, or -1 if the profiler isn't measuring this span.
|
|
87
|
+
*/
|
|
88
|
+
begin: () => number;
|
|
89
|
+
/**
|
|
90
|
+
* Ends a span.
|
|
91
|
+
* @param token The token `begin()` returned.
|
|
92
|
+
*/
|
|
93
|
+
end: (token: number) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Ends a span after the page's next paint, so the duration includes style, layout and paint.
|
|
96
|
+
* Where there is no frame callback, or the page is hidden, the span ends right away.
|
|
97
|
+
* @param token The token `begin()` returned.
|
|
98
|
+
*/
|
|
99
|
+
endAfterPaint: (token: number) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Adds a duration you measured some other way.
|
|
102
|
+
* @param durationMs Duration in milliseconds. A finite number, 0 or larger.
|
|
103
|
+
*/
|
|
104
|
+
record: (durationMs: number) => void;
|
|
105
|
+
}
|
|
106
|
+
/** Creates the app's probes. `probe` is a function property, so destructuring it works. */
|
|
107
|
+
export interface Profiler {
|
|
108
|
+
/**
|
|
109
|
+
* Returns the probe for a name. The same name always gives the same probe, and only the
|
|
110
|
+
* options from the first call count.
|
|
111
|
+
* @param name Probe name. A non-empty string.
|
|
112
|
+
* @param options Probe options.
|
|
113
|
+
* @returns The probe.
|
|
114
|
+
*/
|
|
115
|
+
probe: (name: string, options?: ProbeOptions) => Probe;
|
|
116
|
+
/**
|
|
117
|
+
* Calls a function and times it with the named probe. If the result has a `then` function,
|
|
118
|
+
* the span ends when it settles. Errors from the function go to the caller.
|
|
119
|
+
* @param name Probe name. A non-empty string.
|
|
120
|
+
* @param fn The function to call.
|
|
121
|
+
* @returns Whatever `fn` returned, or the result of its `then` call.
|
|
122
|
+
*/
|
|
123
|
+
time: <T>(name: string, fn: () => T) => T;
|
|
124
|
+
}
|
|
125
|
+
/** Instrument kind. */
|
|
126
|
+
export type InstrumentKind = "counter" | "gauge" | "histogram";
|
|
127
|
+
/** Instrument definition. A handle passes it to the meter on every call. */
|
|
128
|
+
export interface InstrumentDef {
|
|
129
|
+
/** Metric name. */
|
|
130
|
+
name: string;
|
|
131
|
+
/** Instrument kind. */
|
|
132
|
+
kind: InstrumentKind;
|
|
133
|
+
/** Unit of the values. */
|
|
134
|
+
unit: string;
|
|
135
|
+
/** A histogram's bucket boundaries. A counter and a gauge have none. */
|
|
136
|
+
boundaries: readonly number[];
|
|
137
|
+
/** True when the app gave the boundaries. Only those count against maxHistogramBoundaries. */
|
|
138
|
+
fromApp?: boolean;
|
|
139
|
+
}
|
package/dist/models/metric.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** Attribute set of a metric point. Keep it small
|
|
1
|
+
/** Attribute set of a metric point. Keep it small, because every set is a series in the backend. */
|
|
2
2
|
export type MetricAttributes = Record<string, string | number | boolean>;
|
|
3
|
-
/**
|
|
3
|
+
/** Instrument options. */
|
|
4
4
|
export interface InstrumentOptions {
|
|
5
5
|
/**
|
|
6
6
|
* Unit of the values, for example "ms" or "By".
|
|
@@ -8,38 +8,47 @@ export interface InstrumentOptions {
|
|
|
8
8
|
*/
|
|
9
9
|
unit?: string;
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
11
|
+
/** Histogram options. */
|
|
12
12
|
export interface HistogramOptions extends InstrumentOptions {
|
|
13
13
|
/**
|
|
14
14
|
* Ascending bucket boundaries, at most 50. A value goes into the first bucket whose boundary
|
|
15
|
-
* is
|
|
15
|
+
* is greater than or equal to it.
|
|
16
16
|
* @default [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000]
|
|
17
17
|
*/
|
|
18
18
|
boundaries?: readonly number[];
|
|
19
19
|
}
|
|
20
|
-
/** Counter that sums its values in memory. The library sends one point
|
|
20
|
+
/** Counter that sums its values in memory. The library sends one point every interval. */
|
|
21
21
|
export interface Counter {
|
|
22
22
|
/**
|
|
23
|
-
* Adds a value to
|
|
23
|
+
* Adds a value to an attribute set's sum.
|
|
24
24
|
* @param value Finite number, 0 or larger.
|
|
25
|
-
* @param attributes
|
|
25
|
+
* @param attributes The point's attribute set.
|
|
26
26
|
*/
|
|
27
27
|
add(value: number, attributes?: MetricAttributes): void;
|
|
28
28
|
}
|
|
29
|
-
/**
|
|
29
|
+
/** Gauge that keeps the last value for each attribute set. The library sends it every interval. */
|
|
30
|
+
export interface Gauge {
|
|
31
|
+
/**
|
|
32
|
+
* Sets the value of an attribute set. The last value in an interval goes out.
|
|
33
|
+
* @param value Finite number.
|
|
34
|
+
* @param attributes The point's attribute set.
|
|
35
|
+
*/
|
|
36
|
+
set(value: number, attributes?: MetricAttributes): void;
|
|
37
|
+
}
|
|
38
|
+
/** Histogram that counts its values into buckets in memory. Sends one point every interval. */
|
|
30
39
|
export interface Histogram {
|
|
31
40
|
/**
|
|
32
|
-
* Adds a value to
|
|
41
|
+
* Adds a value to an attribute set's buckets.
|
|
33
42
|
* @param value Finite number.
|
|
34
|
-
* @param attributes
|
|
43
|
+
* @param attributes The point's attribute set.
|
|
35
44
|
*/
|
|
36
45
|
record(value: number, attributes?: MetricAttributes): void;
|
|
37
46
|
}
|
|
38
|
-
/** Handle
|
|
47
|
+
/** Handle for one timed operation. */
|
|
39
48
|
export interface Measure {
|
|
40
49
|
/**
|
|
41
|
-
* Closes the open phase and starts the next
|
|
42
|
-
* @param name Phase name.
|
|
50
|
+
* Closes the open phase and starts the next one. Does nothing after `end()`.
|
|
51
|
+
* @param name Phase name. Every name creates its own series.
|
|
43
52
|
*/
|
|
44
53
|
phase(name: string): void;
|
|
45
54
|
/**
|
|
@@ -48,16 +57,83 @@ export interface Measure {
|
|
|
48
57
|
*/
|
|
49
58
|
end(outcome?: string): void;
|
|
50
59
|
}
|
|
51
|
-
/**
|
|
52
|
-
export
|
|
53
|
-
/**
|
|
60
|
+
/** Probe options. */
|
|
61
|
+
export interface ProbeOptions {
|
|
62
|
+
/**
|
|
63
|
+
* Record one span out of every `sampleEvery`. An integer from 1 to 2147483647.
|
|
64
|
+
* @default 1
|
|
65
|
+
*/
|
|
66
|
+
sampleEvery?: number;
|
|
67
|
+
/**
|
|
68
|
+
* A span that runs longer than this many milliseconds leaves a breadcrumb. Must be a finite
|
|
69
|
+
* number, 0 or more. Unset by default, which means no breadcrumbs.
|
|
70
|
+
*/
|
|
71
|
+
slowMs?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Set to true when an `await` splits the probe's spans. Those spans report total time only:
|
|
74
|
+
* they have no self time, and they don't eat into the self time of other spans.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
async?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Times one span of app code. Every member is a function property rather than a method, so you
|
|
81
|
+
* can destructure them and unbound-method lint rules stay quiet.
|
|
82
|
+
*/
|
|
83
|
+
export interface Probe {
|
|
84
|
+
/**
|
|
85
|
+
* Starts a span.
|
|
86
|
+
* @returns A token to pass to `end()`, or -1 if the profiler isn't measuring this span.
|
|
87
|
+
*/
|
|
88
|
+
begin: () => number;
|
|
89
|
+
/**
|
|
90
|
+
* Ends a span.
|
|
91
|
+
* @param token The token `begin()` returned.
|
|
92
|
+
*/
|
|
93
|
+
end: (token: number) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Ends a span after the page's next paint, so the duration includes style, layout and paint.
|
|
96
|
+
* Where there is no frame callback, or the page is hidden, the span ends right away.
|
|
97
|
+
* @param token The token `begin()` returned.
|
|
98
|
+
*/
|
|
99
|
+
endAfterPaint: (token: number) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Adds a duration you measured some other way.
|
|
102
|
+
* @param durationMs Duration in milliseconds. A finite number, 0 or larger.
|
|
103
|
+
*/
|
|
104
|
+
record: (durationMs: number) => void;
|
|
105
|
+
}
|
|
106
|
+
/** Creates the app's probes. `probe` is a function property, so destructuring it works. */
|
|
107
|
+
export interface Profiler {
|
|
108
|
+
/**
|
|
109
|
+
* Returns the probe for a name. The same name always gives the same probe, and only the
|
|
110
|
+
* options from the first call count.
|
|
111
|
+
* @param name Probe name. A non-empty string.
|
|
112
|
+
* @param options Probe options.
|
|
113
|
+
* @returns The probe.
|
|
114
|
+
*/
|
|
115
|
+
probe: (name: string, options?: ProbeOptions) => Probe;
|
|
116
|
+
/**
|
|
117
|
+
* Calls a function and times it with the named probe. If the result has a `then` function,
|
|
118
|
+
* the span ends when it settles. Errors from the function go to the caller.
|
|
119
|
+
* @param name Probe name. A non-empty string.
|
|
120
|
+
* @param fn The function to call.
|
|
121
|
+
* @returns Whatever `fn` returned, or the result of its `then` call.
|
|
122
|
+
*/
|
|
123
|
+
time: <T>(name: string, fn: () => T) => T;
|
|
124
|
+
}
|
|
125
|
+
/** Instrument kind. */
|
|
126
|
+
export type InstrumentKind = "counter" | "gauge" | "histogram";
|
|
127
|
+
/** Instrument definition. A handle passes it to the meter on every call. */
|
|
54
128
|
export interface InstrumentDef {
|
|
55
129
|
/** Metric name. */
|
|
56
130
|
name: string;
|
|
57
|
-
/**
|
|
131
|
+
/** Instrument kind. */
|
|
58
132
|
kind: InstrumentKind;
|
|
59
133
|
/** Unit of the values. */
|
|
60
134
|
unit: string;
|
|
61
|
-
/**
|
|
135
|
+
/** A histogram's bucket boundaries. A counter and a gauge have none. */
|
|
62
136
|
boundaries: readonly number[];
|
|
137
|
+
/** True when the app gave the boundaries. Only those count against maxHistogramBoundaries. */
|
|
138
|
+
fromApp?: boolean;
|
|
63
139
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { OneLogger as Logger } from "../core/logger.cjs";
|
|
2
|
+
import type { Counter, Histogram, HistogramOptions, InstrumentOptions } from "./metric.cjs";
|
|
3
|
+
/** Tools the library hands to a capture plugin. */
|
|
4
|
+
export interface PluginContext {
|
|
5
|
+
/** Logger for the `uiobs.capture.<plugin name>` namespace. */
|
|
6
|
+
logger: Logger;
|
|
7
|
+
/**
|
|
8
|
+
* Returns a counter. Same as `counter()`.
|
|
9
|
+
* @param name Metric name.
|
|
10
|
+
* @param options Unit of the values.
|
|
11
|
+
* @returns The counter.
|
|
12
|
+
*/
|
|
13
|
+
counter(name: string, options?: InstrumentOptions): Counter;
|
|
14
|
+
/**
|
|
15
|
+
* Returns a histogram. Same as `histogram()`.
|
|
16
|
+
* @param name Metric name.
|
|
17
|
+
* @param options Unit of the values and the bucket boundaries.
|
|
18
|
+
* @returns The histogram.
|
|
19
|
+
*/
|
|
20
|
+
histogram(name: string, options?: HistogramOptions): Histogram;
|
|
21
|
+
/**
|
|
22
|
+
* Adds a breadcrumb with the category `custom`. Same as `addBreadcrumb()`.
|
|
23
|
+
* @param message Description of the event.
|
|
24
|
+
* @param data Optional metadata.
|
|
25
|
+
*/
|
|
26
|
+
addBreadcrumb(message: string, data?: Record<string, unknown>): void;
|
|
27
|
+
/**
|
|
28
|
+
* Runs a function. The network capture doesn't record any request the function starts
|
|
29
|
+
* synchronously, and doesn't add `traceparent` to it. Use it for the plugin's own requests.
|
|
30
|
+
* @param fn Function that starts the request.
|
|
31
|
+
* @returns The function's return value.
|
|
32
|
+
*/
|
|
33
|
+
ownRequest<T>(fn: () => T): T;
|
|
34
|
+
}
|
|
35
|
+
/** Capture module supplied by the app. The library installs it alongside the built-in ones. */
|
|
36
|
+
export interface CapturePlugin {
|
|
37
|
+
/** Plugin name, used in its logger namespace and its diagnostic messages. */
|
|
38
|
+
readonly name: string;
|
|
39
|
+
/**
|
|
40
|
+
* Starts the capture. A later `configure()` that changes the capture section calls
|
|
41
|
+
* `uninstall()` and then `install()` again.
|
|
42
|
+
* @param ctx The plugin's tools.
|
|
43
|
+
*/
|
|
44
|
+
install(ctx: PluginContext): void;
|
|
45
|
+
/** Stops the capture. Restore every function the plugin replaced. */
|
|
46
|
+
uninstall(): void;
|
|
47
|
+
}
|
package/dist/models/plugin.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import type { OneLogger } from "../core/logger";
|
|
2
|
-
import type { Counter, Histogram, HistogramOptions, InstrumentOptions } from "./metric";
|
|
3
|
-
/** Tools
|
|
1
|
+
import type { OneLogger as Logger } from "../core/logger.js";
|
|
2
|
+
import type { Counter, Histogram, HistogramOptions, InstrumentOptions } from "./metric.js";
|
|
3
|
+
/** Tools the library hands to a capture plugin. */
|
|
4
4
|
export interface PluginContext {
|
|
5
|
-
/** Logger for the
|
|
6
|
-
logger:
|
|
5
|
+
/** Logger for the `uiobs.capture.<plugin name>` namespace. */
|
|
6
|
+
logger: Logger;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Returns a counter. Same as `counter()`.
|
|
9
9
|
* @param name Metric name.
|
|
10
10
|
* @param options Unit of the values.
|
|
11
11
|
* @returns The counter.
|
|
12
12
|
*/
|
|
13
13
|
counter(name: string, options?: InstrumentOptions): Counter;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Returns a histogram. Same as `histogram()`.
|
|
16
16
|
* @param name Metric name.
|
|
17
17
|
* @param options Unit of the values and the bucket boundaries.
|
|
18
18
|
* @returns The histogram.
|
|
19
19
|
*/
|
|
20
20
|
histogram(name: string, options?: HistogramOptions): Histogram;
|
|
21
21
|
/**
|
|
22
|
-
* Adds a breadcrumb with the category `custom`.
|
|
22
|
+
* Adds a breadcrumb with the category `custom`. Same as `addBreadcrumb()`.
|
|
23
23
|
* @param message Description of the event.
|
|
24
24
|
* @param data Optional metadata.
|
|
25
25
|
*/
|
|
26
26
|
addBreadcrumb(message: string, data?: Record<string, unknown>): void;
|
|
27
27
|
/**
|
|
28
|
-
* Runs a function. The network capture
|
|
29
|
-
* synchronously, and
|
|
28
|
+
* Runs a function. The network capture doesn't record any request the function starts
|
|
29
|
+
* synchronously, and doesn't add `traceparent` to it. Use it for the plugin's own requests.
|
|
30
30
|
* @param fn Function that starts the request.
|
|
31
|
-
* @returns The return value
|
|
31
|
+
* @returns The function's return value.
|
|
32
32
|
*/
|
|
33
33
|
ownRequest<T>(fn: () => T): T;
|
|
34
34
|
}
|
|
35
|
-
/** Capture module
|
|
35
|
+
/** Capture module supplied by the app. The library installs it alongside the built-in ones. */
|
|
36
36
|
export interface CapturePlugin {
|
|
37
|
-
/**
|
|
37
|
+
/** Plugin name, used in its logger namespace and its diagnostic messages. */
|
|
38
38
|
readonly name: string;
|
|
39
39
|
/**
|
|
40
40
|
* Starts the capture. A later `configure()` that changes the capture section calls
|
|
41
|
-
* `uninstall()
|
|
42
|
-
* @param ctx
|
|
41
|
+
* `uninstall()` and then `install()` again.
|
|
42
|
+
* @param ctx The plugin's tools.
|
|
43
43
|
*/
|
|
44
44
|
install(ctx: PluginContext): void;
|
|
45
|
-
/** Stops the capture. Restore
|
|
45
|
+
/** Stops the capture. Restore every function the plugin replaced. */
|
|
46
46
|
uninstall(): void;
|
|
47
47
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** A recorder event. The library only looks at the type. */
|
|
2
|
+
export interface ReplayEvent {
|
|
3
|
+
/** The recorder's event type. 4 is the meta event that starts a full snapshot. */
|
|
4
|
+
type: number;
|
|
5
|
+
}
|
|
6
|
+
/** The parts of the `record` function from `@rrweb/record` that the library uses. */
|
|
7
|
+
export interface ReplayRecord {
|
|
8
|
+
/**
|
|
9
|
+
* Starts the recorder.
|
|
10
|
+
* @param options Recorder options.
|
|
11
|
+
* @returns A function that stops the recorder, or undefined.
|
|
12
|
+
*/
|
|
13
|
+
(options: Record<string, unknown>): (() => void) | undefined;
|
|
14
|
+
/** Takes a full snapshot right now. Not every recorder version has it. */
|
|
15
|
+
takeFullSnapshot?: (isCheckout?: boolean) => void;
|
|
16
|
+
/** Looks up the DOM node for a recorder node id. Not every recorder version has it. */
|
|
17
|
+
mirror?: {
|
|
18
|
+
getNode: (id: number) => unknown;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/** Loads the recorder package. The app owns the import, e.g. `import("@rrweb/record")`. */
|
|
22
|
+
export type ReplayLoader = () => Promise<{
|
|
23
|
+
record: ReplayRecord;
|
|
24
|
+
}>;
|
|
25
|
+
/** What the library passes to a plugin loader. */
|
|
26
|
+
export interface ReplayPluginTools {
|
|
27
|
+
/**
|
|
28
|
+
* A ready-made `transformRequestFn` for the recorder's network plugin. It skips requests to
|
|
29
|
+
* any URL in `capture.ignoreUrls`, which includes every library endpoint and the replay
|
|
30
|
+
* endpoint. It also strips the query and fragment from URLs unless `capture.fullUrls` is set.
|
|
31
|
+
* @param request The network plugin's request.
|
|
32
|
+
* @returns The request to record, or undefined to skip it.
|
|
33
|
+
*/
|
|
34
|
+
transformRequest: <T extends {
|
|
35
|
+
name: string;
|
|
36
|
+
}>(request: T) => T | undefined;
|
|
37
|
+
}
|
|
38
|
+
/** Creates one of the recorder's record plugins. The app owns the import of the plugin package. */
|
|
39
|
+
export type ReplayPluginLoader = (tools: ReplayPluginTools) => unknown;
|
|
40
|
+
/** One chunk of a replay upload. */
|
|
41
|
+
export interface ReplaySegment {
|
|
42
|
+
/** Recording id. Every recorder start gets a new one. */
|
|
43
|
+
"replay.id": string;
|
|
44
|
+
/** Session id from the record that triggered the upload. */
|
|
45
|
+
"session.id": string;
|
|
46
|
+
/** Tab id from the record that triggered the upload. */
|
|
47
|
+
"tab.id": string;
|
|
48
|
+
/** The runtime's service name. */
|
|
49
|
+
"service.name": string;
|
|
50
|
+
/** Position of the segment within its recording, starting at 0. */
|
|
51
|
+
sequence: number;
|
|
52
|
+
/** Number of events in the segment. */
|
|
53
|
+
events: number;
|
|
54
|
+
/** Length of the payload. */
|
|
55
|
+
bytes: number;
|
|
56
|
+
/** The event list as JSON text. */
|
|
57
|
+
payload: string;
|
|
58
|
+
}
|
|
59
|
+
/** What triggers an upload. `onError` uploads after an ERROR or FATAL record. */
|
|
60
|
+
export type ReplayMode = "onError";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** A recorder event. The library only looks at the type. */
|
|
2
|
+
export interface ReplayEvent {
|
|
3
|
+
/** The recorder's event type. 4 is the meta event that starts a full snapshot. */
|
|
4
|
+
type: number;
|
|
5
|
+
}
|
|
6
|
+
/** The parts of the `record` function from `@rrweb/record` that the library uses. */
|
|
7
|
+
export interface ReplayRecord {
|
|
8
|
+
/**
|
|
9
|
+
* Starts the recorder.
|
|
10
|
+
* @param options Recorder options.
|
|
11
|
+
* @returns A function that stops the recorder, or undefined.
|
|
12
|
+
*/
|
|
13
|
+
(options: Record<string, unknown>): (() => void) | undefined;
|
|
14
|
+
/** Takes a full snapshot right now. Not every recorder version has it. */
|
|
15
|
+
takeFullSnapshot?: (isCheckout?: boolean) => void;
|
|
16
|
+
/** Looks up the DOM node for a recorder node id. Not every recorder version has it. */
|
|
17
|
+
mirror?: {
|
|
18
|
+
getNode: (id: number) => unknown;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/** Loads the recorder package. The app owns the import, e.g. `import("@rrweb/record")`. */
|
|
22
|
+
export type ReplayLoader = () => Promise<{
|
|
23
|
+
record: ReplayRecord;
|
|
24
|
+
}>;
|
|
25
|
+
/** What the library passes to a plugin loader. */
|
|
26
|
+
export interface ReplayPluginTools {
|
|
27
|
+
/**
|
|
28
|
+
* A ready-made `transformRequestFn` for the recorder's network plugin. It skips requests to
|
|
29
|
+
* any URL in `capture.ignoreUrls`, which includes every library endpoint and the replay
|
|
30
|
+
* endpoint. It also strips the query and fragment from URLs unless `capture.fullUrls` is set.
|
|
31
|
+
* @param request The network plugin's request.
|
|
32
|
+
* @returns The request to record, or undefined to skip it.
|
|
33
|
+
*/
|
|
34
|
+
transformRequest: <T extends {
|
|
35
|
+
name: string;
|
|
36
|
+
}>(request: T) => T | undefined;
|
|
37
|
+
}
|
|
38
|
+
/** Creates one of the recorder's record plugins. The app owns the import of the plugin package. */
|
|
39
|
+
export type ReplayPluginLoader = (tools: ReplayPluginTools) => unknown;
|
|
40
|
+
/** One chunk of a replay upload. */
|
|
41
|
+
export interface ReplaySegment {
|
|
42
|
+
/** Recording id. Every recorder start gets a new one. */
|
|
43
|
+
"replay.id": string;
|
|
44
|
+
/** Session id from the record that triggered the upload. */
|
|
45
|
+
"session.id": string;
|
|
46
|
+
/** Tab id from the record that triggered the upload. */
|
|
47
|
+
"tab.id": string;
|
|
48
|
+
/** The runtime's service name. */
|
|
49
|
+
"service.name": string;
|
|
50
|
+
/** Position of the segment within its recording, starting at 0. */
|
|
51
|
+
sequence: number;
|
|
52
|
+
/** Number of events in the segment. */
|
|
53
|
+
events: number;
|
|
54
|
+
/** Length of the payload. */
|
|
55
|
+
bytes: number;
|
|
56
|
+
/** The event list as JSON text. */
|
|
57
|
+
payload: string;
|
|
58
|
+
}
|
|
59
|
+
/** What triggers an upload. `onError` uploads after an ERROR or FATAL record. */
|
|
60
|
+
export type ReplayMode = "onError";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { LogRecord } from "./log-record.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* Serialized batch payload with its content type.
|
|
4
|
+
* @see {@link LogSerializer}
|
|
5
|
+
*/
|
|
6
|
+
export interface SerializedBatch {
|
|
7
|
+
/** Request body bytes. */
|
|
8
|
+
body: string;
|
|
9
|
+
/** Content-Type header value. */
|
|
10
|
+
contentType: string;
|
|
11
|
+
}
|
|
12
|
+
/** Log record serializer interface. */
|
|
13
|
+
export interface LogSerializer {
|
|
14
|
+
/** Serializer name used in configuration. */
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Serializes a batch of records to payload bytes. The transport calls it once per delivery
|
|
18
|
+
* attempt, not once per batch, so every retry encodes the records again.
|
|
19
|
+
* @param records Batch records, in log order.
|
|
20
|
+
* @returns Serialized batch ready for transport.
|
|
21
|
+
*/
|
|
22
|
+
serialize(records: LogRecord[]): SerializedBatch;
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LogRecord } from "./log-record";
|
|
1
|
+
import type { LogRecord } from "./log-record.js";
|
|
2
2
|
/**
|
|
3
3
|
* Serialized batch payload with its content type.
|
|
4
4
|
* @see {@link LogSerializer}
|
|
@@ -14,9 +14,8 @@ export interface LogSerializer {
|
|
|
14
14
|
/** Serializer name used in configuration. */
|
|
15
15
|
name: string;
|
|
16
16
|
/**
|
|
17
|
-
* Serializes a batch of records to payload bytes.
|
|
18
|
-
*
|
|
19
|
-
* Thus each retry encodes the records again.
|
|
17
|
+
* Serializes a batch of records to payload bytes. The transport calls it once per delivery
|
|
18
|
+
* attempt, not once per batch, so every retry encodes the records again.
|
|
20
19
|
* @param records Batch records, in log order.
|
|
21
20
|
* @returns Serialized batch ready for transport.
|
|
22
21
|
*/
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { LogBatch } from "./batch.cjs";
|
|
2
|
+
import type { RetentionOptions } from "./config.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* State of the request for persistent storage. "off" means no request was made and "pending"
|
|
5
|
+
* is waiting for the browser. "unsupported" means the browser has no
|
|
6
|
+
* `navigator.storage.persist()`.
|
|
7
|
+
*/
|
|
8
|
+
export type StoragePersistence = "off" | "pending" | "granted" | "denied" | "unsupported";
|
|
9
|
+
/** Persistent batch storage interface. All methods must resolve and never throw. */
|
|
10
|
+
export interface StorageAdapter {
|
|
11
|
+
/** Adapter name. */
|
|
12
|
+
readonly name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Persists a batch to storage.
|
|
15
|
+
* @param batch The batch to store.
|
|
16
|
+
* @returns True if the batch is in storage when the save ends. A save's own prune can remove
|
|
17
|
+
* it, and the second write after a quota error runs no prune. False means nothing sends it again.
|
|
18
|
+
*/
|
|
19
|
+
save(batch: LogBatch): Promise<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Reads up to `limit` batches in FIFO order without removing them.
|
|
22
|
+
* @param limit Maximum number of batches to retrieve.
|
|
23
|
+
* @returns Oldest persisted batches.
|
|
24
|
+
*/
|
|
25
|
+
take(limit: number): Promise<LogBatch[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Reads one context's batches without loading those of other contexts.
|
|
28
|
+
* @param id Delivery context id.
|
|
29
|
+
* @param limit Maximum batches to return.
|
|
30
|
+
* @returns This context's batches, oldest first.
|
|
31
|
+
*/
|
|
32
|
+
takeContext?(id: string, limit: number): Promise<LogBatch[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Counts one context's batches without loading them.
|
|
35
|
+
* @param id Delivery context id.
|
|
36
|
+
* @returns Number of batches in this context.
|
|
37
|
+
*/
|
|
38
|
+
countContext?(id: string): Promise<number>;
|
|
39
|
+
/**
|
|
40
|
+
* Removes a batch by ID. A call with an unknown ID resolves without error.
|
|
41
|
+
* @param id Batch identifier.
|
|
42
|
+
*/
|
|
43
|
+
remove(id: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Updates the total delivery attempts for a batch.
|
|
46
|
+
* @param id Batch identifier.
|
|
47
|
+
* @param attempts Absolute attempt count.
|
|
48
|
+
*/
|
|
49
|
+
bumpAttempts(id: string, attempts: number): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Deletes expired and over-capacity batches.
|
|
52
|
+
* @returns Prune summary metrics.
|
|
53
|
+
*/
|
|
54
|
+
prune(): Promise<PruneResult>;
|
|
55
|
+
/** Returns the total number of stored batches. */
|
|
56
|
+
count(): Promise<number>;
|
|
57
|
+
/** Deletes all batches in storage. */
|
|
58
|
+
clear(): Promise<void>;
|
|
59
|
+
/** Closes storage connections and releases resources. */
|
|
60
|
+
close(): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
/** Capacity and retention thresholds enforced by a storage adapter. */
|
|
63
|
+
export interface StorageLimits {
|
|
64
|
+
/** Maximum batch capacity before FIFO eviction. */
|
|
65
|
+
maxBatches: number;
|
|
66
|
+
/** Maximum time-to-live for a stored batch in milliseconds. */
|
|
67
|
+
maxAgeMs: number;
|
|
68
|
+
/** Maximum delivery attempts before dead-letter drop. */
|
|
69
|
+
maxAttempts: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns the storage limits for a retention setting. A null age or attempt limit becomes
|
|
73
|
+
* Infinity, so a batch stays until it's delivered, but the batch cap still applies.
|
|
74
|
+
* @param retention Retention setting from the config.
|
|
75
|
+
* @returns The limits for the storage adapters and the retry engine.
|
|
76
|
+
*/
|
|
77
|
+
export declare function storageLimits(retention: RetentionOptions): StorageLimits;
|
|
78
|
+
/** Metrics for batches and records dropped during storage pruning. */
|
|
79
|
+
export interface PruneResult {
|
|
80
|
+
/** Total batches dropped. */
|
|
81
|
+
batches: number;
|
|
82
|
+
/** Total records dropped within evicted batches. */
|
|
83
|
+
records: number;
|
|
84
|
+
/**
|
|
85
|
+
* Cause of the drop. If more than one rule applied, this is the last one. "not_stored" means
|
|
86
|
+
* storage did not keep a batch after a failed send.
|
|
87
|
+
*/
|
|
88
|
+
reason: "expired" | "over_capacity" | "quota" | "not_stored";
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Callback invoked when dropped records create a telemetry gap.
|
|
92
|
+
* @param result Summary of evicted data.
|
|
93
|
+
* @param dropped The dropped batches. A corrupt entry has no batch, so the list omits it.
|
|
94
|
+
*/
|
|
95
|
+
export type GapReporter = (result: PruneResult, dropped: readonly LogBatch[]) => void;
|