@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,114 @@
|
|
|
1
|
+
import { type Capture, type CaptureContext } from "./types.js";
|
|
2
|
+
/** Records the DOM and uploads the recent events after an error. */
|
|
3
|
+
export declare class ReplayCapture implements Capture {
|
|
4
|
+
private readonly ctx;
|
|
5
|
+
/** Capture module identifier. */
|
|
6
|
+
readonly name = "replay";
|
|
7
|
+
/** Recent events. An upload empties it. */
|
|
8
|
+
private readonly buffer;
|
|
9
|
+
/** Cuts the events into segments and sends them. */
|
|
10
|
+
private readonly uploader;
|
|
11
|
+
/** Upload rate limit, so an error storm doesn't upload the page over and over. */
|
|
12
|
+
private readonly window;
|
|
13
|
+
/** The recorder's record function. Undefined while the recorder isn't running. */
|
|
14
|
+
private record;
|
|
15
|
+
/** Stops the recorder. */
|
|
16
|
+
private stopRecorder;
|
|
17
|
+
/** Id of the current recording. */
|
|
18
|
+
private replayId;
|
|
19
|
+
/** True between install() and uninstall(). */
|
|
20
|
+
private installed;
|
|
21
|
+
/** True while start() is loading the recorder. */
|
|
22
|
+
private starting;
|
|
23
|
+
/** Bumped on every stop, so a start that finishes after a stop records nothing. */
|
|
24
|
+
private generation;
|
|
25
|
+
/** True right after an error, while new events go straight to the uploader. */
|
|
26
|
+
private live;
|
|
27
|
+
/** True once we've reported a full snapshot that doesn't fit in the buffer. */
|
|
28
|
+
private starvedReported;
|
|
29
|
+
/** Ends the live period after an error. */
|
|
30
|
+
private liveTimer;
|
|
31
|
+
/**
|
|
32
|
+
* @param ctx Capture context: configuration, diagnostics and the runtime hooks.
|
|
33
|
+
*/
|
|
34
|
+
constructor(ctx: CaptureContext);
|
|
35
|
+
/** Starts listening for error records, and starts the recorder unless consent is still needed. */
|
|
36
|
+
install(): void;
|
|
37
|
+
/** Stops the recorder and drops whatever hasn't been sent. */
|
|
38
|
+
uninstall(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Loads the recorder and starts it. Never rejects.
|
|
41
|
+
* @returns A promise that resolves once the recorder is running, or can't run.
|
|
42
|
+
*/
|
|
43
|
+
start(): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Drops the buffer and, if the recorder was running, starts a fresh recording. The runtime
|
|
46
|
+
* calls this on a new session, so the next user never gets the previous user's page.
|
|
47
|
+
*/
|
|
48
|
+
reset(): void;
|
|
49
|
+
/** Stops the recorder and drops whatever hasn't been sent. */
|
|
50
|
+
stop(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Reads the mask and block selectors. An invalid selector aborts the start: a replay with a
|
|
53
|
+
* missing mask would show text the app meant to hide.
|
|
54
|
+
* @returns The selectors for the recorder, or undefined if one of them is invalid.
|
|
55
|
+
*/
|
|
56
|
+
private selectors;
|
|
57
|
+
/**
|
|
58
|
+
* Masks one piece of page text. The recorder calls this for every text the mask selector
|
|
59
|
+
* matches.
|
|
60
|
+
* @param text The node's text.
|
|
61
|
+
* @param element The element that holds the text, or null.
|
|
62
|
+
* @returns The text to record.
|
|
63
|
+
*/
|
|
64
|
+
private readonly maskText;
|
|
65
|
+
/**
|
|
66
|
+
* Masks an input value. The result always has the same length.
|
|
67
|
+
* @param text The input's value.
|
|
68
|
+
* @returns The text to record.
|
|
69
|
+
*/
|
|
70
|
+
private readonly maskInput;
|
|
71
|
+
/**
|
|
72
|
+
* Strips what the recorder's own masking misses: the query string of the page URL, and text
|
|
73
|
+
* sitting directly in a shadow root that changed after the snapshot.
|
|
74
|
+
* @param event Recorder event.
|
|
75
|
+
*/
|
|
76
|
+
private scrub;
|
|
77
|
+
/**
|
|
78
|
+
* Masks text that sits directly in a shadow root. The recorder masks it in a full snapshot
|
|
79
|
+
* but not in later mutations.
|
|
80
|
+
* @param text Text from the mutation.
|
|
81
|
+
* @param id The recorder's id for the text node.
|
|
82
|
+
* @returns The text to record.
|
|
83
|
+
*/
|
|
84
|
+
private shadowText;
|
|
85
|
+
/**
|
|
86
|
+
* Vets a request from the recorder's network plugin.
|
|
87
|
+
* @param request The plugin's request.
|
|
88
|
+
* @returns The request to record, or undefined to skip it.
|
|
89
|
+
*/
|
|
90
|
+
private readonly transformRequest;
|
|
91
|
+
/**
|
|
92
|
+
* Receives one event from the recorder, which calls this from its observers.
|
|
93
|
+
* @param event Recorder event.
|
|
94
|
+
* @param isCheckout True for the events of a new full snapshot.
|
|
95
|
+
*/
|
|
96
|
+
private readonly emit;
|
|
97
|
+
/**
|
|
98
|
+
* Reports an error from the recorder, or from serializing an event.
|
|
99
|
+
* @param error What the recorder caught.
|
|
100
|
+
*/
|
|
101
|
+
private readonly onFault;
|
|
102
|
+
/**
|
|
103
|
+
* Starts an upload when an ERROR or FATAL record comes through.
|
|
104
|
+
* @param record The record the runtime emitted.
|
|
105
|
+
*/
|
|
106
|
+
private readonly onError;
|
|
107
|
+
/** Ends the live period. The buffer starts over with a full snapshot. */
|
|
108
|
+
private readonly endLive;
|
|
109
|
+
/**
|
|
110
|
+
* Reports why the replay is off, once per document.
|
|
111
|
+
* @param message Report text.
|
|
112
|
+
*/
|
|
113
|
+
private reportOnce;
|
|
114
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Capture, CaptureContext } from "./types.cjs";
|
|
2
|
+
/** Records browser reports without message text, code samples or URL queries. */
|
|
3
|
+
export declare class ReportCapture implements Capture {
|
|
4
|
+
private readonly ctx;
|
|
5
|
+
readonly name = "reports";
|
|
6
|
+
private installed;
|
|
7
|
+
private observer;
|
|
8
|
+
private readonly window;
|
|
9
|
+
constructor(ctx: CaptureContext);
|
|
10
|
+
/** Installs the report and CSP listeners. CSP reports don't need ReportingObserver. */
|
|
11
|
+
install(): void;
|
|
12
|
+
/** Disconnects the observer and removes the CSP listener. */
|
|
13
|
+
uninstall(): void;
|
|
14
|
+
private readonly onCsp;
|
|
15
|
+
/** Reads only a fixed set of report fields. The diagnostics guard contains a failed read. */
|
|
16
|
+
private record;
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Capture, CaptureContext } from "./types";
|
|
1
|
+
import type { Capture, CaptureContext } from "./types.js";
|
|
2
2
|
/** Records browser reports without message text, code samples or URL queries. */
|
|
3
3
|
export declare class ReportCapture implements Capture {
|
|
4
4
|
private readonly ctx;
|
|
@@ -7,11 +7,11 @@ export declare class ReportCapture implements Capture {
|
|
|
7
7
|
private observer;
|
|
8
8
|
private readonly window;
|
|
9
9
|
constructor(ctx: CaptureContext);
|
|
10
|
-
/** Installs report and CSP listeners. CSP reports
|
|
10
|
+
/** Installs the report and CSP listeners. CSP reports don't need ReportingObserver. */
|
|
11
11
|
install(): void;
|
|
12
12
|
/** Disconnects the observer and removes the CSP listener. */
|
|
13
13
|
uninstall(): void;
|
|
14
14
|
private readonly onCsp;
|
|
15
|
-
/** Reads only fixed report fields. The diagnostics guard contains a failed
|
|
15
|
+
/** Reads only a fixed set of report fields. The diagnostics guard contains a failed read. */
|
|
16
16
|
private record;
|
|
17
17
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Capture, type CaptureContext } from "./types.cjs";
|
|
2
|
+
/** Records bounded resource timings and slow resource events. */
|
|
3
|
+
export declare class ResourceTimingCapture implements Capture {
|
|
4
|
+
private readonly ctx;
|
|
5
|
+
readonly name = "resourceTiming";
|
|
6
|
+
private observer;
|
|
7
|
+
private readonly window;
|
|
8
|
+
constructor(ctx: CaptureContext);
|
|
9
|
+
/** Reads buffered resources only on the first install in this document. */
|
|
10
|
+
install(): void;
|
|
11
|
+
/** Disconnects the observer. */
|
|
12
|
+
uninstall(): void;
|
|
13
|
+
private record;
|
|
14
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Capture, type CaptureContext } from "./types";
|
|
1
|
+
import { type Capture, type CaptureContext } from "./types.js";
|
|
2
2
|
/** Records bounded resource timings and slow resource events. */
|
|
3
3
|
export declare class ResourceTimingCapture implements Capture {
|
|
4
4
|
private readonly ctx;
|
|
@@ -6,7 +6,7 @@ export declare class ResourceTimingCapture implements Capture {
|
|
|
6
6
|
private observer;
|
|
7
7
|
private readonly window;
|
|
8
8
|
constructor(ctx: CaptureContext);
|
|
9
|
-
/** Reads buffered resources only
|
|
9
|
+
/** Reads buffered resources only on the first install in this document. */
|
|
10
10
|
install(): void;
|
|
11
11
|
/** Disconnects the observer. */
|
|
12
12
|
uninstall(): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** One duration entry from the Server-Timing response header. */
|
|
2
|
+
interface ServerTimingEntry {
|
|
3
|
+
name: string;
|
|
4
|
+
duration: number;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
/** Server duration entries, plus the server span they name. */
|
|
8
|
+
export interface ServerTiming {
|
|
9
|
+
entries: ServerTimingEntry[];
|
|
10
|
+
link?: {
|
|
11
|
+
traceId: string;
|
|
12
|
+
spanId: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/** Finds the header in an XHR header list. Reading a hidden header directly logs a Chrome error. */
|
|
16
|
+
export declare function xhrServerTiming(headers: string): string | null;
|
|
17
|
+
/** Reads a bounded number of server duration entries. A missing header gives none. */
|
|
18
|
+
export declare function readServerTiming(header: string | null): ServerTiming;
|
|
19
|
+
export {};
|
|
@@ -4,7 +4,7 @@ interface ServerTimingEntry {
|
|
|
4
4
|
duration: number;
|
|
5
5
|
description: string;
|
|
6
6
|
}
|
|
7
|
-
/** Server duration entries
|
|
7
|
+
/** Server duration entries, plus the server span they name. */
|
|
8
8
|
export interface ServerTiming {
|
|
9
9
|
entries: ServerTimingEntry[];
|
|
10
10
|
link?: {
|
|
@@ -12,8 +12,8 @@ export interface ServerTiming {
|
|
|
12
12
|
spanId: string;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
/** Finds the header in an XHR header list.
|
|
15
|
+
/** Finds the header in an XHR header list. Reading a hidden header directly logs a Chrome error. */
|
|
16
16
|
export declare function xhrServerTiming(headers: string): string | null;
|
|
17
|
-
/** Reads bounded server duration entries. A missing header gives
|
|
17
|
+
/** Reads a bounded number of server duration entries. A missing header gives none. */
|
|
18
18
|
export declare function readServerTiming(header: string | null): ServerTiming;
|
|
19
19
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Diagnostics } from "../core/diagnostics.cjs";
|
|
2
|
+
import { type StormWindow } from "../utils/fixed-window.cjs";
|
|
3
|
+
export type { StormWindow } from "../utils/fixed-window.cjs";
|
|
4
|
+
/**
|
|
5
|
+
* Counts one event in a fixed window and reports every event over the limit.
|
|
6
|
+
* @param window Window state to update.
|
|
7
|
+
* @param limit Maximum events per window. 0 allows none, and null means no limit.
|
|
8
|
+
* @param diagnostics Diagnostics reporter.
|
|
9
|
+
* @param what Plural name of the events, for the diagnostic message.
|
|
10
|
+
* @param windowMs Rate limit window, in milliseconds.
|
|
11
|
+
* @returns False when the window has no allowance left. The caller must drop the event.
|
|
12
|
+
*/
|
|
13
|
+
export declare function allowInWindow(window: StormWindow, limit: number | null, diagnostics: Diagnostics, what: string, windowMs?: number): boolean;
|
package/dist/capture/storm.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Diagnostics } from "../core/diagnostics";
|
|
2
|
-
import { type StormWindow } from "../utils/fixed-window";
|
|
3
|
-
export type { StormWindow } from "../utils/fixed-window";
|
|
1
|
+
import type { Diagnostics } from "../core/diagnostics.js";
|
|
2
|
+
import { type StormWindow } from "../utils/fixed-window.js";
|
|
3
|
+
export type { StormWindow } from "../utils/fixed-window.js";
|
|
4
4
|
/**
|
|
5
|
-
* Counts one event in a fixed window
|
|
6
|
-
* @param window Window state to
|
|
7
|
-
* @param limit Maximum events
|
|
5
|
+
* Counts one event in a fixed window and reports every event over the limit.
|
|
6
|
+
* @param window Window state to update.
|
|
7
|
+
* @param limit Maximum events per window. 0 allows none, and null means no limit.
|
|
8
8
|
* @param diagnostics Diagnostics reporter.
|
|
9
9
|
* @param what Plural name of the events, for the diagnostic message.
|
|
10
10
|
* @param windowMs Rate limit window, in milliseconds.
|
|
11
11
|
* @returns False when the window has no allowance left. The caller must drop the event.
|
|
12
12
|
*/
|
|
13
|
-
export declare function allowInWindow(window: StormWindow, limit: number, diagnostics: Diagnostics, what: string, windowMs?: number): boolean;
|
|
13
|
+
export declare function allowInWindow(window: StormWindow, limit: number | null, diagnostics: Diagnostics, what: string, windowMs?: number): boolean;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { BreadcrumbBuffer } from "../core/breadcrumbs.cjs";
|
|
2
|
+
import type { Diagnostics } from "../core/diagnostics.cjs";
|
|
3
|
+
import type { SpanData } from "../core/spans.cjs";
|
|
4
|
+
import type { ResolvedConfig } from "../models/config.cjs";
|
|
5
|
+
import type { LogRecord, MetricType } from "../models/log-record.cjs";
|
|
6
|
+
import type { InstrumentDef, MetricAttributes } from "../models/metric.cjs";
|
|
7
|
+
import type { TraceEngine } from "../utils/tracing.cjs";
|
|
8
|
+
/**
|
|
9
|
+
* The logging interface the auto-capture modules use. Referring to the runtime class here
|
|
10
|
+
* would create an import cycle, because the runtime installs the capture modules.
|
|
11
|
+
*/
|
|
12
|
+
export interface CaptureLogger {
|
|
13
|
+
/**
|
|
14
|
+
* Logs an error event, with the error or reason behind it.
|
|
15
|
+
* @param message Error description.
|
|
16
|
+
* @param error The caught error or reason.
|
|
17
|
+
* @param payload Optional attributes.
|
|
18
|
+
*/
|
|
19
|
+
error(message: string, error?: unknown, payload?: Record<string, unknown>): void;
|
|
20
|
+
/**
|
|
21
|
+
* Logs a warning event.
|
|
22
|
+
* @param message Warning description.
|
|
23
|
+
* @param payload Optional attributes.
|
|
24
|
+
*/
|
|
25
|
+
warn(message: string, payload?: Record<string, unknown>): void;
|
|
26
|
+
/**
|
|
27
|
+
* Logs a single lifecycle or user event.
|
|
28
|
+
* @param name Event identifier.
|
|
29
|
+
* @param payload Optional attributes.
|
|
30
|
+
*/
|
|
31
|
+
logEvent(name: string, payload?: Record<string, unknown>): void;
|
|
32
|
+
/**
|
|
33
|
+
* Logs a numeric metric measurement.
|
|
34
|
+
* @param name Metric name.
|
|
35
|
+
* @param value The measurement.
|
|
36
|
+
* @param unit Unit of measurement.
|
|
37
|
+
* @param type Metric type.
|
|
38
|
+
* @param attrs Optional metric attributes. With metricsEndpoint they're point attributes.
|
|
39
|
+
* @param recordOnly Optional attributes for the record only, never on the OTLP point.
|
|
40
|
+
*/
|
|
41
|
+
logMetric(name: string, value: number, unit?: string, type?: MetricType, attrs?: Record<string, unknown>, recordOnly?: Record<string, unknown>): void;
|
|
42
|
+
/**
|
|
43
|
+
* Logs a debug message.
|
|
44
|
+
* @param message Debug message.
|
|
45
|
+
* @param payload Optional attributes.
|
|
46
|
+
*/
|
|
47
|
+
debug(message: string, payload?: Record<string, unknown>): void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Capture work that runs once per document, not once per install. A reconfigure
|
|
51
|
+
* builds new capture instances, so instance state can't hold these flags.
|
|
52
|
+
* web-vitals has no unsubscribe, and a second subscription would report every
|
|
53
|
+
* metric twice.
|
|
54
|
+
*/
|
|
55
|
+
export interface CaptureOnce {
|
|
56
|
+
/** True once the web-vitals reporters are subscribed. */
|
|
57
|
+
webVitals: boolean;
|
|
58
|
+
/** True once navigation timing has been reported. */
|
|
59
|
+
navigationTiming: boolean;
|
|
60
|
+
/** True after the first long frame install. Only that install reads buffered frames. */
|
|
61
|
+
longFrames: boolean;
|
|
62
|
+
/** True once we've read the previous page's alive marker. */
|
|
63
|
+
uncleanExit: boolean;
|
|
64
|
+
/** True after the first user timing install. Only that install reads buffered entries. */
|
|
65
|
+
userTiming: boolean;
|
|
66
|
+
/** True after the first resource timing install. Later installs skip buffered entries. */
|
|
67
|
+
resourceTiming?: boolean;
|
|
68
|
+
/** Page state and when it started. A reinstall keeps them, so it logs no false transition. */
|
|
69
|
+
lifecycle?: {
|
|
70
|
+
state: string;
|
|
71
|
+
enteredAt: number;
|
|
72
|
+
};
|
|
73
|
+
/** Set once the frame phases capture has reported a browser without long animation frames. */
|
|
74
|
+
framePhases?: boolean;
|
|
75
|
+
/** Set once the profiler's frame pacing has reported a context without frame callbacks. */
|
|
76
|
+
framePacing?: boolean;
|
|
77
|
+
/** Set once session replay has reported why it can't record in this document. */
|
|
78
|
+
replay?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/** Runtime dependencies shared by all auto-capture instances. */
|
|
81
|
+
export interface CaptureContext {
|
|
82
|
+
/** False while the runtime is stopping or changing its security context. */
|
|
83
|
+
isActive?: () => boolean;
|
|
84
|
+
/** Active runtime configuration. */
|
|
85
|
+
config: ResolvedConfig;
|
|
86
|
+
/** Diagnostics reporter for capture faults. */
|
|
87
|
+
diagnostics: Diagnostics;
|
|
88
|
+
/** Logger for the telemetry the captures record. */
|
|
89
|
+
logger: CaptureLogger;
|
|
90
|
+
/** Breadcrumb buffer. */
|
|
91
|
+
breadcrumbs: BreadcrumbBuffer;
|
|
92
|
+
/** Active trace context provider. */
|
|
93
|
+
tracing: TraceEngine;
|
|
94
|
+
/** Guards for capture work that a reinstall must not repeat. */
|
|
95
|
+
once: CaptureOnce;
|
|
96
|
+
/** Adds a value to one of the runtime's counters or histograms. */
|
|
97
|
+
recordMetric: (def: InstrumentDef, value: number, attributes?: MetricAttributes) => void;
|
|
98
|
+
/** Records a span. The runtime drops it when spans are off. */
|
|
99
|
+
recordSpan: (span: SpanData) => void;
|
|
100
|
+
/** Returns the current session id. */
|
|
101
|
+
sessionId: () => string;
|
|
102
|
+
/** Sets or clears the hook that receives every ERROR and FATAL record from the runtime. */
|
|
103
|
+
onError?: (hook: ((record: LogRecord) => void) | undefined) => void;
|
|
104
|
+
/** Sets an ambient attribute on every later record. Undefined removes it. */
|
|
105
|
+
setContext?: (key: string, value: string | undefined) => void;
|
|
106
|
+
/** True after startReplay(), false after stopReplay(), undefined if neither was called. */
|
|
107
|
+
replayConsent?: () => boolean | undefined;
|
|
108
|
+
}
|
|
109
|
+
/** Lifecycle interface for the browser instrumentation modules. */
|
|
110
|
+
export interface Capture {
|
|
111
|
+
/** Module identifier used in diagnostics. */
|
|
112
|
+
readonly name: string;
|
|
113
|
+
/**
|
|
114
|
+
* Attaches the instrumentation listeners and patches the target APIs. Patching an
|
|
115
|
+
* already patched function adds a second wrapper and doubles every record, so a
|
|
116
|
+
* second call must do nothing.
|
|
117
|
+
*/
|
|
118
|
+
install(): void;
|
|
119
|
+
/** Restores the native APIs and removes the listeners. */
|
|
120
|
+
uninstall(): void;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Checks whether a URL matches any of the substring or regular expression patterns.
|
|
124
|
+
* @param url URL to test. A value that isn't a string matches nothing.
|
|
125
|
+
* @param patterns Substrings and regular expressions to test against.
|
|
126
|
+
* @returns True if any pattern matches the URL.
|
|
127
|
+
*/
|
|
128
|
+
export declare function matchesAny(url: unknown, patterns: (string | RegExp)[]): boolean;
|
package/dist/capture/types.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { BreadcrumbBuffer } from "../core/breadcrumbs";
|
|
2
|
-
import type { Diagnostics } from "../core/diagnostics";
|
|
3
|
-
import type { SpanData } from "../core/spans";
|
|
4
|
-
import type { ResolvedConfig } from "../models/config";
|
|
5
|
-
import type { MetricType } from "../models/log-record";
|
|
6
|
-
import type { InstrumentDef, MetricAttributes } from "../models/metric";
|
|
7
|
-
import type { TraceEngine } from "../utils/tracing";
|
|
1
|
+
import type { BreadcrumbBuffer } from "../core/breadcrumbs.js";
|
|
2
|
+
import type { Diagnostics } from "../core/diagnostics.js";
|
|
3
|
+
import type { SpanData } from "../core/spans.js";
|
|
4
|
+
import type { ResolvedConfig } from "../models/config.js";
|
|
5
|
+
import type { LogRecord, MetricType } from "../models/log-record.js";
|
|
6
|
+
import type { InstrumentDef, MetricAttributes } from "../models/metric.js";
|
|
7
|
+
import type { TraceEngine } from "../utils/tracing.js";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The logging interface the auto-capture modules use. Referring to the runtime class here
|
|
10
|
+
* would create an import cycle, because the runtime installs the capture modules.
|
|
11
11
|
*/
|
|
12
12
|
export interface CaptureLogger {
|
|
13
13
|
/**
|
|
14
|
-
* Logs an error event with
|
|
14
|
+
* Logs an error event, with the error or reason behind it.
|
|
15
15
|
* @param message Error description.
|
|
16
|
-
* @param error
|
|
16
|
+
* @param error The caught error or reason.
|
|
17
17
|
* @param payload Optional attributes.
|
|
18
18
|
*/
|
|
19
19
|
error(message: string, error?: unknown, payload?: Record<string, unknown>): void;
|
|
@@ -24,91 +24,104 @@ export interface CaptureLogger {
|
|
|
24
24
|
*/
|
|
25
25
|
warn(message: string, payload?: Record<string, unknown>): void;
|
|
26
26
|
/**
|
|
27
|
-
* Logs a
|
|
27
|
+
* Logs a single lifecycle or user event.
|
|
28
28
|
* @param name Event identifier.
|
|
29
29
|
* @param payload Optional attributes.
|
|
30
30
|
*/
|
|
31
31
|
logEvent(name: string, payload?: Record<string, unknown>): void;
|
|
32
32
|
/**
|
|
33
|
-
* Logs a
|
|
33
|
+
* Logs a numeric metric measurement.
|
|
34
34
|
* @param name Metric name.
|
|
35
|
-
* @param value
|
|
35
|
+
* @param value The measurement.
|
|
36
36
|
* @param unit Unit of measurement.
|
|
37
|
-
* @param type Metric type
|
|
38
|
-
* @param attrs Optional metric attributes.
|
|
37
|
+
* @param type Metric type.
|
|
38
|
+
* @param attrs Optional metric attributes. With metricsEndpoint they're point attributes.
|
|
39
|
+
* @param recordOnly Optional attributes for the record only, never on the OTLP point.
|
|
39
40
|
*/
|
|
40
|
-
logMetric(name: string, value: number, unit?: string, type?: MetricType, attrs?: Record<string, unknown>): void;
|
|
41
|
+
logMetric(name: string, value: number, unit?: string, type?: MetricType, attrs?: Record<string, unknown>, recordOnly?: Record<string, unknown>): void;
|
|
41
42
|
/**
|
|
42
|
-
* Logs a
|
|
43
|
+
* Logs a debug message.
|
|
43
44
|
* @param message Debug message.
|
|
44
45
|
* @param payload Optional attributes.
|
|
45
46
|
*/
|
|
46
47
|
debug(message: string, payload?: Record<string, unknown>): void;
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
|
-
* Capture work that runs
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
50
|
+
* Capture work that runs once per document, not once per install. A reconfigure
|
|
51
|
+
* builds new capture instances, so instance state can't hold these flags.
|
|
52
|
+
* web-vitals has no unsubscribe, and a second subscription would report every
|
|
53
|
+
* metric twice.
|
|
53
54
|
*/
|
|
54
55
|
export interface CaptureOnce {
|
|
55
|
-
/** True
|
|
56
|
+
/** True once the web-vitals reporters are subscribed. */
|
|
56
57
|
webVitals: boolean;
|
|
57
|
-
/** True
|
|
58
|
+
/** True once navigation timing has been reported. */
|
|
58
59
|
navigationTiming: boolean;
|
|
59
60
|
/** True after the first long frame install. Only that install reads buffered frames. */
|
|
60
61
|
longFrames: boolean;
|
|
61
|
-
/** True
|
|
62
|
+
/** True once we've read the previous page's alive marker. */
|
|
62
63
|
uncleanExit: boolean;
|
|
63
64
|
/** True after the first user timing install. Only that install reads buffered entries. */
|
|
64
65
|
userTiming: boolean;
|
|
65
|
-
/** True after the first resource timing install. Later installs
|
|
66
|
+
/** True after the first resource timing install. Later installs skip buffered entries. */
|
|
66
67
|
resourceTiming?: boolean;
|
|
67
|
-
/** Page state and
|
|
68
|
+
/** Page state and when it started. A reinstall keeps them, so it logs no false transition. */
|
|
68
69
|
lifecycle?: {
|
|
69
70
|
state: string;
|
|
70
71
|
enteredAt: number;
|
|
71
72
|
};
|
|
73
|
+
/** Set once the frame phases capture has reported a browser without long animation frames. */
|
|
74
|
+
framePhases?: boolean;
|
|
75
|
+
/** Set once the profiler's frame pacing has reported a context without frame callbacks. */
|
|
76
|
+
framePacing?: boolean;
|
|
77
|
+
/** Set once session replay has reported why it can't record in this document. */
|
|
78
|
+
replay?: boolean;
|
|
72
79
|
}
|
|
73
|
-
/**
|
|
80
|
+
/** Runtime dependencies shared by all auto-capture instances. */
|
|
74
81
|
export interface CaptureContext {
|
|
75
|
-
/** False while the runtime
|
|
82
|
+
/** False while the runtime is stopping or changing its security context. */
|
|
76
83
|
isActive?: () => boolean;
|
|
77
84
|
/** Active runtime configuration. */
|
|
78
85
|
config: ResolvedConfig;
|
|
79
86
|
/** Diagnostics reporter for capture faults. */
|
|
80
87
|
diagnostics: Diagnostics;
|
|
81
|
-
/** Logger
|
|
88
|
+
/** Logger for the telemetry the captures record. */
|
|
82
89
|
logger: CaptureLogger;
|
|
83
|
-
/**
|
|
90
|
+
/** Breadcrumb buffer. */
|
|
84
91
|
breadcrumbs: BreadcrumbBuffer;
|
|
85
92
|
/** Active trace context provider. */
|
|
86
93
|
tracing: TraceEngine;
|
|
87
|
-
/** Guards for
|
|
94
|
+
/** Guards for capture work that a reinstall must not repeat. */
|
|
88
95
|
once: CaptureOnce;
|
|
89
|
-
/** Adds a value to
|
|
96
|
+
/** Adds a value to one of the runtime's counters or histograms. */
|
|
90
97
|
recordMetric: (def: InstrumentDef, value: number, attributes?: MetricAttributes) => void;
|
|
91
98
|
/** Records a span. The runtime drops it when spans are off. */
|
|
92
99
|
recordSpan: (span: SpanData) => void;
|
|
93
|
-
/**
|
|
100
|
+
/** Returns the current session id. */
|
|
94
101
|
sessionId: () => string;
|
|
102
|
+
/** Sets or clears the hook that receives every ERROR and FATAL record from the runtime. */
|
|
103
|
+
onError?: (hook: ((record: LogRecord) => void) | undefined) => void;
|
|
104
|
+
/** Sets an ambient attribute on every later record. Undefined removes it. */
|
|
105
|
+
setContext?: (key: string, value: string | undefined) => void;
|
|
106
|
+
/** True after startReplay(), false after stopReplay(), undefined if neither was called. */
|
|
107
|
+
replayConsent?: () => boolean | undefined;
|
|
95
108
|
}
|
|
96
|
-
/** Lifecycle interface for browser instrumentation modules. */
|
|
109
|
+
/** Lifecycle interface for the browser instrumentation modules. */
|
|
97
110
|
export interface Capture {
|
|
98
111
|
/** Module identifier used in diagnostics. */
|
|
99
112
|
readonly name: string;
|
|
100
113
|
/**
|
|
101
|
-
* Attaches instrumentation listeners and patches target APIs.
|
|
102
|
-
* patched function adds a second wrapper and doubles
|
|
103
|
-
* must do nothing.
|
|
114
|
+
* Attaches the instrumentation listeners and patches the target APIs. Patching an
|
|
115
|
+
* already patched function adds a second wrapper and doubles every record, so a
|
|
116
|
+
* second call must do nothing.
|
|
104
117
|
*/
|
|
105
118
|
install(): void;
|
|
106
|
-
/** Restores native APIs and removes
|
|
119
|
+
/** Restores the native APIs and removes the listeners. */
|
|
107
120
|
uninstall(): void;
|
|
108
121
|
}
|
|
109
122
|
/**
|
|
110
|
-
*
|
|
111
|
-
* @param url
|
|
123
|
+
* Checks whether a URL matches any of the substring or regular expression patterns.
|
|
124
|
+
* @param url URL to test. A value that isn't a string matches nothing.
|
|
112
125
|
* @param patterns Substrings and regular expressions to test against.
|
|
113
126
|
* @returns True if any pattern matches the URL.
|
|
114
127
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Capture, CaptureContext } from "./types.cjs";
|
|
2
|
+
/** Reports the previous page's unclean exit, and maintains this page's marker. */
|
|
3
|
+
export declare class UncleanExitCapture implements Capture {
|
|
4
|
+
private readonly ctx;
|
|
5
|
+
/** Capture module identifier. */
|
|
6
|
+
readonly name = "uncleanExit";
|
|
7
|
+
/** Prevents duplicate listener registration. */
|
|
8
|
+
private installed;
|
|
9
|
+
/** Timer that updates the marker. */
|
|
10
|
+
private timer;
|
|
11
|
+
/** True after pagehide. Needed because the browser fires visibilitychange after pagehide. */
|
|
12
|
+
private closing;
|
|
13
|
+
/**
|
|
14
|
+
* @param ctx Capture context with the config, diagnostics, logger and session id.
|
|
15
|
+
*/
|
|
16
|
+
constructor(ctx: CaptureContext);
|
|
17
|
+
/** Reports the previous page's marker once, then starts maintaining this page's own. */
|
|
18
|
+
install(): void;
|
|
19
|
+
/** Removes the listeners, the timer and the marker, since the capture stopped without a crash. */
|
|
20
|
+
uninstall(): void;
|
|
21
|
+
/** Logs WARN `ui.unclean_exit` if this tab's previous page left its marker behind. */
|
|
22
|
+
private reportPrevious;
|
|
23
|
+
/** Writes this page's marker with the current time and visibility. */
|
|
24
|
+
private readonly mark;
|
|
25
|
+
/** Removes this page's marker. */
|
|
26
|
+
private clear;
|
|
27
|
+
/** A clean close removes the marker. The page may still live on in the back-forward cache. */
|
|
28
|
+
private readonly onPageHide;
|
|
29
|
+
/** A page that comes back from the back-forward cache is alive again. */
|
|
30
|
+
private readonly onPageShow;
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Capture, CaptureContext } from "./types";
|
|
2
|
-
/** Reports the unclean exit
|
|
1
|
+
import type { Capture, CaptureContext } from "./types.js";
|
|
2
|
+
/** Reports the previous page's unclean exit, and maintains this page's marker. */
|
|
3
3
|
export declare class UncleanExitCapture implements Capture {
|
|
4
4
|
private readonly ctx;
|
|
5
5
|
/** Capture module identifier. */
|
|
@@ -8,23 +8,23 @@ export declare class UncleanExitCapture implements Capture {
|
|
|
8
8
|
private installed;
|
|
9
9
|
/** Timer that updates the marker. */
|
|
10
10
|
private timer;
|
|
11
|
-
/** True after pagehide.
|
|
11
|
+
/** True after pagehide. Needed because the browser fires visibilitychange after pagehide. */
|
|
12
12
|
private closing;
|
|
13
13
|
/**
|
|
14
14
|
* @param ctx Capture context with the config, diagnostics, logger and session id.
|
|
15
15
|
*/
|
|
16
16
|
constructor(ctx: CaptureContext);
|
|
17
|
-
/** Reports the
|
|
17
|
+
/** Reports the previous page's marker once, then starts maintaining this page's own. */
|
|
18
18
|
install(): void;
|
|
19
|
-
/** Removes the listeners, the timer and the marker
|
|
19
|
+
/** Removes the listeners, the timer and the marker, since the capture stopped without a crash. */
|
|
20
20
|
uninstall(): void;
|
|
21
|
-
/** Logs WARN `ui.unclean_exit`
|
|
21
|
+
/** Logs WARN `ui.unclean_exit` if this tab's previous page left its marker behind. */
|
|
22
22
|
private reportPrevious;
|
|
23
|
-
/** Writes
|
|
23
|
+
/** Writes this page's marker with the current time and visibility. */
|
|
24
24
|
private readonly mark;
|
|
25
|
-
/** Removes
|
|
25
|
+
/** Removes this page's marker. */
|
|
26
26
|
private clear;
|
|
27
|
-
/** A clean close removes the marker. The
|
|
27
|
+
/** A clean close removes the marker. The page may still live on in the back-forward cache. */
|
|
28
28
|
private readonly onPageHide;
|
|
29
29
|
/** A page that comes back from the back-forward cache is alive again. */
|
|
30
30
|
private readonly onPageShow;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Capture, type CaptureContext } from "./types.cjs";
|
|
2
|
+
/** Observes the app's marks and measures. */
|
|
3
|
+
export declare class UserTimingCapture implements Capture {
|
|
4
|
+
private readonly ctx;
|
|
5
|
+
/** Capture module identifier. */
|
|
6
|
+
readonly name = "userTiming";
|
|
7
|
+
/** Observer for the mark and measure entries. */
|
|
8
|
+
private observer;
|
|
9
|
+
/**
|
|
10
|
+
* @param ctx Capture context with the config, the meter and the breadcrumbs.
|
|
11
|
+
*/
|
|
12
|
+
constructor(ctx: CaptureContext);
|
|
13
|
+
/** Observes marks and measures. Only the first install in a document reads buffered entries. */
|
|
14
|
+
install(): void;
|
|
15
|
+
/** Disconnects the observer. */
|
|
16
|
+
uninstall(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Records the entries whose name `userTiming.include` selects.
|
|
19
|
+
* @param entries Mark and measure entries.
|
|
20
|
+
*/
|
|
21
|
+
private record;
|
|
22
|
+
}
|