@utk09/ui-observability 0.12.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 +420 -0
- package/README.md +72 -839
- package/dist/{batch-BjQUwjA6.js → batch-CXmPmTse.js} +4 -4
- package/dist/{batch-BjQUwjA6.js.map → batch-CXmPmTse.js.map} +1 -1
- package/dist/{batch-D5LlU4Q9.cjs → batch-mmPigCpi.cjs} +2 -2
- package/dist/{batch-D5LlU4Q9.cjs.map → batch-mmPigCpi.cjs.map} +1 -1
- package/dist/bus/bus.d.cts +331 -0
- package/dist/bus/bus.d.ts +60 -10
- package/dist/bus/links.d.cts +132 -0
- package/dist/bus/links.d.ts +18 -3
- package/dist/bus/validation.d.cts +16 -0
- package/dist/bus/validation.d.ts +10 -1
- package/dist/{bus-ecxUNTja.js → bus-C39wspFV.js} +308 -193
- 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 +1 -1
- package/dist/capture/errors.d.cts +32 -0
- package/dist/capture/errors.d.ts +1 -1
- package/dist/capture/interactions.d.cts +48 -0
- package/dist/capture/interactions.d.ts +1 -1
- package/dist/capture/lifecycle.d.cts +20 -0
- package/dist/capture/lifecycle.d.ts +1 -1
- package/dist/capture/long-frames.d.cts +31 -0
- package/dist/capture/long-frames.d.ts +1 -1
- package/dist/capture/network.d.cts +57 -0
- package/dist/capture/network.d.ts +1 -1
- package/dist/capture/profiler-frames.d.cts +44 -0
- package/dist/capture/profiler-frames.d.ts +1 -1
- package/dist/capture/replay-buffer.d.cts +45 -0
- package/dist/capture/replay-buffer.d.ts +9 -10
- package/dist/capture/replay-upload.d.cts +79 -0
- package/dist/capture/replay-upload.d.ts +7 -2
- package/dist/capture/replay.d.cts +114 -0
- package/dist/capture/replay.d.ts +1 -1
- package/dist/capture/reports.d.cts +17 -0
- package/dist/capture/reports.d.ts +1 -1
- package/dist/capture/resource-timing.d.cts +14 -0
- package/dist/capture/resource-timing.d.ts +1 -1
- package/dist/capture/server-timing.d.cts +19 -0
- package/dist/capture/storm.d.cts +13 -0
- package/dist/capture/storm.d.ts +5 -5
- package/dist/capture/types.d.cts +128 -0
- package/dist/capture/types.d.ts +10 -9
- package/dist/capture/unclean-exit.d.cts +31 -0
- package/dist/capture/unclean-exit.d.ts +1 -1
- package/dist/capture/user-timing.d.cts +22 -0
- package/dist/capture/user-timing.d.ts +2 -2
- package/dist/capture/web-socket.d.cts +40 -0
- package/dist/capture/web-socket.d.ts +3 -3
- package/dist/capture/web-vitals.d.cts +40 -0
- package/dist/capture/web-vitals.d.ts +1 -1
- package/dist/{compression-lD9abCcO.cjs → compression-CvED_Jel.cjs} +2 -2
- package/dist/{compression-lD9abCcO.cjs.map → compression-CvED_Jel.cjs.map} +1 -1
- package/dist/{compression-AJJCMBOa.js → compression-tVtXwVjX.js} +2 -2
- package/dist/{compression-AJJCMBOa.js.map → compression-tVtXwVjX.js.map} +1 -1
- 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 +88 -20
- package/dist/core/breadcrumbs.d.cts +54 -0
- package/dist/core/breadcrumbs.d.ts +5 -0
- package/dist/core/config.d.cts +45 -0
- package/dist/core/config.d.ts +30 -2
- package/dist/core/context.d.cts +24 -0
- package/dist/core/context.d.ts +3 -8
- package/dist/core/debug-buffer.d.cts +34 -0
- package/dist/core/debug-buffer.d.ts +3 -3
- package/dist/core/debug-bundle.d.cts +12 -0
- package/dist/core/debug-bundle.d.ts +3 -3
- package/dist/core/deferred.d.cts +7 -0
- package/dist/core/deferred.d.ts +2 -2
- package/dist/core/diagnostics.d.cts +86 -0
- package/dist/core/diagnostics.d.ts +1 -1
- package/dist/core/drops.d.cts +39 -0
- package/dist/core/drops.d.ts +16 -6
- 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 +7 -7
- package/dist/core/logger.d.cts +141 -0
- package/dist/core/logger.d.ts +23 -30
- package/dist/core/measure.d.cts +30 -0
- package/dist/core/measure.d.ts +14 -3
- package/dist/core/meter.d.cts +78 -0
- package/dist/core/meter.d.ts +14 -8
- package/dist/core/pipeline.d.cts +227 -0
- package/dist/core/pipeline.d.ts +73 -10
- package/dist/core/profile-buckets.d.cts +31 -0
- package/dist/core/profiler.d.cts +218 -0
- package/dist/core/profiler.d.ts +2 -2
- package/dist/core/record.d.cts +190 -0
- package/dist/core/record.d.ts +44 -12
- package/dist/core/remote-rules.d.cts +17 -0
- package/dist/core/remote-rules.d.ts +3 -3
- package/dist/core/remote-sampling.d.cts +74 -0
- package/dist/core/remote-sampling.d.ts +3 -3
- 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 +245 -70
- package/dist/core/sampling.d.cts +86 -0
- package/dist/core/sampling.d.ts +5 -5
- package/dist/core/sender.d.cts +161 -0
- package/dist/core/sender.d.ts +59 -15
- package/dist/core/spans.d.cts +39 -0
- package/dist/core/spans.d.ts +1 -1
- 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 +5 -2
- package/dist/doctor.js +121 -89
- package/dist/doctor.js.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/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-BrQp_5J5.js → identity-DdhKgrpk.js} +20 -24
- 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 +89 -98
- package/dist/index.js +1173 -1506
- 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-DLXQzAGh.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-B6z2I4tU.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-35yCMNFo.js → journey-D2_sia57.js} +45 -48
- package/dist/journey-D2_sia57.js.map +1 -0
- package/dist/{library-console-Dl_Ly6DQ.js → library-console-Btrzt814.js} +2 -2
- package/dist/{library-console-Dl_Ly6DQ.js.map → library-console-Btrzt814.js.map} +1 -1
- package/dist/{library-console-BFWEuQsl.cjs → library-console-CPW6bvZH.cjs} +2 -2
- package/dist/{library-console-BFWEuQsl.cjs.map → library-console-CPW6bvZH.cjs.map} +1 -1
- package/dist/{library-request-nI6pvI6I.js → library-request-BJ9PLRaD.js} +2 -2
- package/dist/{library-request-nI6pvI6I.js.map → library-request-BJ9PLRaD.js.map} +1 -1
- package/dist/{library-request-Da-CHKzT.cjs → library-request-D7OvTxZV.cjs} +2 -2
- package/dist/{library-request-Da-CHKzT.cjs.map → library-request-D7OvTxZV.cjs.map} +1 -1
- package/dist/{lifecycle-CZ6RRXc6.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-DIA6McNr.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-430_85Da.js → long-frames-DNFaRnC3.js} +18 -22
- package/dist/long-frames-DNFaRnC3.js.map +1 -0
- package/dist/models/batch.d.cts +57 -0
- package/dist/models/batch.d.ts +2 -2
- package/dist/models/bus.d.cts +158 -0
- package/dist/models/bus.d.ts +22 -2
- package/dist/models/config.d.cts +1540 -0
- package/dist/models/config.d.ts +360 -259
- package/dist/models/drop.d.cts +54 -0
- package/dist/models/drop.d.ts +16 -3
- package/dist/models/health.d.cts +148 -0
- package/dist/models/health.d.ts +108 -12
- package/dist/models/log-record.d.cts +61 -0
- package/dist/models/metric.d.cts +139 -0
- package/dist/models/metric.d.ts +13 -2
- package/dist/models/plugin.d.cts +47 -0
- package/dist/models/plugin.d.ts +3 -3
- package/dist/models/replay.d.cts +60 -0
- package/dist/models/serializer.d.cts +23 -0
- package/dist/models/serializer.d.ts +1 -1
- package/dist/models/storage.d.cts +95 -0
- package/dist/models/storage.d.ts +7 -5
- package/dist/network-CGMLQ-mA.cjs +2 -0
- package/dist/network-CGMLQ-mA.cjs.map +1 -0
- package/dist/{network-C7SkLf4v.js → network-on2zZT6H.js} +51 -51
- package/dist/network-on2zZT6H.js.map +1 -0
- package/dist/{otlp-2MCrC3kd.cjs → otlp-BENHf3g9.cjs} +2 -2
- package/dist/{otlp-2MCrC3kd.cjs.map → otlp-BENHf3g9.cjs.map} +1 -1
- package/dist/{otlp-COq033e3.js → otlp-DimfrRor.js} +12 -12
- package/dist/{otlp-COq033e3.js.map → otlp-DimfrRor.js.map} +1 -1
- package/dist/{platform-CVewe4wQ.js → platform-BaaFIPCU.js} +10 -10
- package/dist/{platform-CVewe4wQ.js.map → platform-BaaFIPCU.js.map} +1 -1
- package/dist/{platform-12uR7kBQ.cjs → platform-CfA3-7sJ.cjs} +2 -2
- package/dist/{platform-12uR7kBQ.cjs.map → platform-CfA3-7sJ.cjs.map} +1 -1
- package/dist/{profiler-BVWIOgnq.js → profiler-BAZoh7A4.js} +89 -107
- 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-CLXlT_xL.js → profiler-frames-cJMx9wNM.js} +29 -37
- 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-BuXekPOS.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-CXGHwFRD.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-CNmsD9r3.js → sanitize-Ba0KqU06.js} +2 -2
- package/dist/sanitize-Ba0KqU06.js.map +1 -0
- package/dist/{sanitize-ChLn97Ch.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 +5 -5
- package/dist/storage/emergency-queue.d.cts +27 -0
- package/dist/storage/emergency-queue.d.ts +4 -4
- package/dist/storage/eviction.d.cts +40 -0
- package/dist/storage/eviction.d.ts +1 -1
- package/dist/storage/factory.d.cts +21 -0
- package/dist/storage/factory.d.ts +3 -3
- package/dist/storage/gap.d.cts +20 -0
- package/dist/storage/gap.d.ts +3 -3
- package/dist/storage/idb-driver.d.cts +93 -0
- package/dist/storage/idb-driver.d.ts +1 -1
- package/dist/storage/indexeddb-storage.d.cts +97 -0
- package/dist/storage/indexeddb-storage.d.ts +12 -4
- package/dist/storage/keys.d.cts +17 -0
- package/dist/storage/keys.d.ts +2 -2
- package/dist/storage/local-storage.d.cts +139 -0
- package/dist/storage/local-storage.d.ts +11 -4
- package/dist/storage/memory-storage.d.cts +73 -0
- package/dist/storage/memory-storage.d.ts +4 -3
- package/dist/storage/persistence.d.cts +8 -0
- package/dist/storage/persistence.d.ts +2 -2
- 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/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/exit-flush.d.cts +135 -0
- package/dist/transport/exit-flush.d.ts +30 -13
- package/dist/transport/headers.d.cts +8 -0
- package/dist/transport/headers.d.ts +2 -2
- package/dist/transport/http-transport.d.cts +116 -0
- package/dist/transport/http-transport.d.ts +20 -8
- package/dist/transport/memory-transport.d.cts +30 -0
- package/dist/transport/memory-transport.d.ts +2 -2
- 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 +27 -9
- package/dist/transport/serializers/ecs.d.cts +3 -0
- package/dist/transport/serializers/ecs.d.ts +1 -1
- package/dist/transport/serializers/otlp-metrics.d.cts +3 -0
- package/dist/transport/serializers/otlp-metrics.d.ts +1 -1
- package/dist/transport/serializers/otlp-traces.d.cts +3 -0
- package/dist/transport/serializers/otlp-traces.d.ts +1 -1
- package/dist/transport/serializers/otlp.d.cts +47 -0
- package/dist/transport/serializers/otlp.d.ts +2 -2
- package/dist/transport/serializers/select.d.cts +38 -0
- package/dist/transport/serializers/select.d.ts +5 -5
- package/dist/transport/status-transport.d.cts +129 -0
- package/dist/transport/status-transport.d.ts +25 -8
- 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 +4 -2
- 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-Cob_jyTv.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/{user-timing-DgHubxCI.js → user-timing-BePqb1uN.js} +15 -17
- 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 +4 -4
- package/dist/utils/deadline.d.cts +14 -0
- package/dist/utils/error-like.d.cts +25 -0
- package/dist/utils/fixed-window.d.cts +25 -0
- package/dist/utils/global-scope.d.cts +20 -0
- package/dist/utils/guards.d.cts +14 -0
- package/dist/utils/guards.d.ts +8 -0
- package/dist/utils/identity.d.cts +109 -0
- package/dist/utils/identity.d.ts +3 -4
- package/dist/utils/library-console.d.cts +11 -0
- package/dist/utils/library-request.d.cts +24 -0
- package/dist/utils/lock.d.cts +24 -0
- package/dist/utils/lock.d.ts +1 -1
- package/dist/utils/openfin.d.cts +48 -0
- package/dist/utils/patch.d.cts +9 -0
- package/dist/utils/platform.d.cts +62 -0
- package/dist/utils/platform.d.ts +2 -2
- package/dist/utils/sanitize.d.cts +52 -0
- package/dist/utils/sanitize.d.ts +1 -1
- package/dist/utils/sequence.d.cts +10 -0
- package/dist/utils/tracing.d.cts +158 -0
- package/dist/utils/tracing.d.ts +11 -4
- package/dist/utils/unref.d.cts +9 -0
- package/dist/web-socket-CoIUBM3C.cjs +2 -0
- package/dist/{web-socket-DthJuSAg.js.map → web-socket-CoIUBM3C.cjs.map} +1 -1
- package/dist/{web-socket-DthJuSAg.js → web-socket-DSHgDiZ6.js} +23 -28
- package/dist/web-socket-DSHgDiZ6.js.map +1 -0
- package/dist/{web-vitals-CsGCWnUr.js → web-vitals-4pWACwaR.js} +15 -21
- 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-B0_8rWy5.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 +54 -46
- package/dist/bus-D_7pd7RN.cjs +0 -2
- package/dist/bus-D_7pd7RN.cjs.map +0 -1
- package/dist/bus-ecxUNTja.js.map +0 -1
- package/dist/console-CLz_PvFn.cjs +0 -2
- package/dist/console-CLz_PvFn.cjs.map +0 -1
- package/dist/console-cwgHKXvM.js +0 -82
- package/dist/console-cwgHKXvM.js.map +0 -1
- package/dist/constants-Bwl_YtQi.js +0 -349
- package/dist/constants-Bwl_YtQi.js.map +0 -1
- package/dist/constants-DakMxVB2.cjs +0 -2
- package/dist/constants-DakMxVB2.cjs.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/debug-bundle-BOdYmCeV.js +0 -32
- package/dist/debug-bundle-BOdYmCeV.js.map +0 -1
- package/dist/debug-bundle-Ex4L_LSP.cjs +0 -2
- package/dist/debug-bundle-Ex4L_LSP.cjs.map +0 -1
- package/dist/emergency-queue-B9WZxanZ.js +0 -67
- package/dist/emergency-queue-B9WZxanZ.js.map +0 -1
- package/dist/emergency-queue-HBpL5r3V.cjs +0 -2
- package/dist/emergency-queue-HBpL5r3V.cjs.map +0 -1
- package/dist/errors-D6bwgJtO.js +0 -92
- package/dist/errors-D6bwgJtO.js.map +0 -1
- package/dist/errors-DCOCRdSi.cjs +0 -3
- package/dist/errors-DCOCRdSi.cjs.map +0 -1
- package/dist/factory-DLFDjdLv.cjs +0 -2
- package/dist/factory-DLFDjdLv.cjs.map +0 -1
- package/dist/factory-e9Qo3K0z.js +0 -276
- package/dist/factory-e9Qo3K0z.js.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-BlvlgjrU.cjs +0 -2
- package/dist/identity-BlvlgjrU.cjs.map +0 -1
- package/dist/identity-BrQp_5J5.js.map +0 -1
- package/dist/indexeddb-storage-CtLvZH1r.cjs +0 -2
- package/dist/indexeddb-storage-CtLvZH1r.cjs.map +0 -1
- package/dist/indexeddb-storage-DLXQzAGh.js.map +0 -1
- package/dist/interactions-B6z2I4tU.js.map +0 -1
- package/dist/interactions-P6pz08Jn.cjs +0 -2
- package/dist/interactions-P6pz08Jn.cjs.map +0 -1
- package/dist/journey-35yCMNFo.js.map +0 -1
- package/dist/journey-DAGh5h9k.cjs +0 -2
- package/dist/journey-DAGh5h9k.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/lifecycle-BGGOcN4N.cjs +0 -2
- package/dist/lifecycle-BGGOcN4N.cjs.map +0 -1
- package/dist/lifecycle-CZ6RRXc6.js.map +0 -1
- package/dist/log-record-D7bA1RPb.cjs +0 -2
- package/dist/log-record-D7bA1RPb.cjs.map +0 -1
- package/dist/log-record-DIA6McNr.js.map +0 -1
- package/dist/long-frames-430_85Da.js.map +0 -1
- package/dist/long-frames-Dd8tsi2U.cjs +0 -2
- package/dist/long-frames-Dd8tsi2U.cjs.map +0 -1
- package/dist/models/stats.d.ts +0 -11
- package/dist/network-C7SkLf4v.js.map +0 -1
- package/dist/network-pEX3PAJv.cjs +0 -2
- package/dist/network-pEX3PAJv.cjs.map +0 -1
- package/dist/profiler-BVWIOgnq.js.map +0 -1
- package/dist/profiler-eVCknCzS.cjs +0 -2
- package/dist/profiler-eVCknCzS.cjs.map +0 -1
- package/dist/profiler-frames-CLXlT_xL.js.map +0 -1
- package/dist/profiler-frames-Dg2OebB2.cjs +0 -2
- package/dist/profiler-frames-Dg2OebB2.cjs.map +0 -1
- package/dist/remote-rules-BJGDJGwA.js +0 -98
- package/dist/remote-rules-BJGDJGwA.js.map +0 -1
- package/dist/remote-rules-CJD3ToVk.cjs +0 -2
- package/dist/remote-rules-CJD3ToVk.cjs.map +0 -1
- package/dist/replay-0zAJv9T3.js +0 -338
- package/dist/replay-0zAJv9T3.js.map +0 -1
- package/dist/replay-DomJpXqW.cjs +0 -2
- package/dist/replay-DomJpXqW.cjs.map +0 -1
- package/dist/reports-BsbqmP8h.cjs +0 -2
- package/dist/reports-BsbqmP8h.cjs.map +0 -1
- package/dist/reports-BuXekPOS.js.map +0 -1
- package/dist/resource-timing-CXGHwFRD.js.map +0 -1
- package/dist/resource-timing-DkycFGDa.cjs +0 -2
- package/dist/resource-timing-DkycFGDa.cjs.map +0 -1
- package/dist/sampling-Dd0wllyq.cjs +0 -2
- package/dist/sampling-Dd0wllyq.cjs.map +0 -1
- package/dist/sampling-UUDbi3K0.js +0 -60
- package/dist/sampling-UUDbi3K0.js.map +0 -1
- package/dist/sanitize-CNmsD9r3.js.map +0 -1
- package/dist/sanitize-ChLn97Ch.cjs.map +0 -1
- package/dist/select-CTk-K5mG.cjs +0 -3
- package/dist/select-CTk-K5mG.cjs.map +0 -1
- package/dist/select-DPv_j6wq.js +0 -270
- package/dist/select-DPv_j6wq.js.map +0 -1
- package/dist/sender-15zEsZpr.js +0 -857
- package/dist/sender-15zEsZpr.js.map +0 -1
- package/dist/sender-Bfpv9tad.cjs +0 -2
- package/dist/sender-Bfpv9tad.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-BTSNTIWI.js +0 -9
- package/dist/storm-BTSNTIWI.js.map +0 -1
- package/dist/storm-D0_qZOEg.cjs +0 -2
- package/dist/storm-D0_qZOEg.cjs.map +0 -1
- package/dist/unclean-exit-ClGzrc2A.cjs +0 -2
- package/dist/unclean-exit-ClGzrc2A.cjs.map +0 -1
- package/dist/unclean-exit-Cob_jyTv.js.map +0 -1
- package/dist/user-timing-CdYqx3PF.cjs +0 -2
- package/dist/user-timing-CdYqx3PF.cjs.map +0 -1
- package/dist/user-timing-DgHubxCI.js.map +0 -1
- package/dist/utils/timer.d.ts +0 -19
- package/dist/web-socket-BTuvYoJI.cjs +0 -2
- package/dist/web-socket-BTuvYoJI.cjs.map +0 -1
- package/dist/web-vitals-Ch5BpDmo.cjs +0 -2
- package/dist/web-vitals-Ch5BpDmo.cjs.map +0 -1
- package/dist/web-vitals-CsGCWnUr.js.map +0 -1
- package/dist/worker-protocol-B0_8rWy5.js.map +0 -1
- package/dist/worker-protocol-BjzFORfq.cjs +0 -2
- package/dist/worker-protocol-BjzFORfq.cjs.map +0 -1
- package/dist/worker-server-4en-Lt-3.cjs +0 -2
- package/dist/worker-server-4en-Lt-3.cjs.map +0 -1
- package/dist/worker-server-Cne9MX9I.js +0 -83
- package/dist/worker-server-Cne9MX9I.js.map +0 -1
- package/dist/worker-transport-B-GF4Aqn.cjs +0 -2
- package/dist/worker-transport-B-GF4Aqn.cjs.map +0 -1
- package/dist/worker-transport-C3SjJAEC.js +0 -200
- package/dist/worker-transport-C3SjJAEC.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,426 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
+
## [1.0.0] - 2026-11-20
|
|
6
|
+
|
|
7
|
+
The first stable release. It has breaking changes from 0.12.0. Read `docs/migration-v1.md` before you upgrade. Each feature of 1.0.0 is stable. `docs/release-and-support.md` gives the stability rules and the deprecation policy.
|
|
8
|
+
|
|
9
|
+
### Added - v1.0.0
|
|
10
|
+
|
|
11
|
+
- `gauge(name, options)` returns a gauge. `set(value, attributes?)` keeps the last value for each attribute set. Each interval sends that value as one point. With `metricsEndpoint`, the point is an OTLP gauge.
|
|
12
|
+
- `measure(name, fn, attributes?)` times one function call. A promise result ends the measure when it settles. A throw or a rejection gives the outcome `"error"`. The histogram is `ui.measure.duration` with the attributes `measure.name` and `measure.outcome`.
|
|
13
|
+
`shutdown(options?)` takes options. The default `pending: "flush"` sends the open interval of the meters and the profiler, and each record in memory. It waits for those requests, then runs the exit flush and stops each request that is still open. The stored batches stay in storage.
|
|
14
|
+
- `shutdown({ pending: "discard" })` sends nothing and runs no exit flush. `onDrop` reports each record in memory with `discarded`.
|
|
15
|
+
- `shutdown({ clearStorage: "context" | "namespace" })` discards. It removes the stored batches, the emergency queue entries, the stored session id, the tab id and the journey. It also works after an earlier `shutdown()`. `clearStorage: null` removes nothing.
|
|
16
|
+
- `flush({ timeoutMs })` and the flush result. The result has `status`, `accepted`, `stored`, `dropped`, `forwarded` and `pending`. Each count is a number of records. `status` is `"complete"`, `"timeout"` or `"inactive"`. `"complete"` means that no record waits. It does not prove delivery.
|
|
17
|
+
- `getHealth().delivery` has `lastFailureAt`, `consecutiveFailures`, `throttledUntil` and `dropped`. A rotation resets the first three. It keeps `dropped` and `lastSendAt`.
|
|
18
|
+
- The `LossReason` `"partially_rejected"`. An OTLP `2xx` answer with `partialSuccess` gives the rejected count to `onDrop`. The library does not send the batch again.
|
|
19
|
+
- The `LossReason` `"disabled"`. It reports a record that a child context forwards during a pause. It also reports the held records when the first `configure()` call sets `enabled: false`. It also reports the records in memory at a `pagehide` or a `shutdown()` during a pause. Each record is reported one time.
|
|
20
|
+
- The `LossReason` `"discarded"`.
|
|
21
|
+
- `buffering.maxHeldRecords` limits each hold buffer. The default is 500, and the range is 200 to 10000.
|
|
22
|
+
- The diagnostic codes `transport.partial_success`, `capture.trace_header_kept`, `bus.protocol_mismatch` and `security.rotation_failed`.
|
|
23
|
+
- The `getHealth()` issues `security.rotation_failed` and `records.refused`.
|
|
24
|
+
- The bus messages `ui-observability.message.flush-request` and `ui-observability.message.flush-result`.
|
|
25
|
+
- New exported types: `DeliveryHealth`, `FlushOptions`, `FlushResult`, `FlushStatus`, `Gauge`, `Logger`, `RoutingOptions`, `ShutdownOptions` and `StorageScope`. The package exports the options type of each config section.
|
|
26
|
+
- `llms.txt` in the package. It describes the library for a large language model, with the public functions, the main config keys, the recipes and the common mistakes.
|
|
27
|
+
- `docs/migration-v1.md`. It gives the steps from 0.12.x to 1.0.0.
|
|
28
|
+
- `docs/api.md`, `docs/configuration.md`, `docs/guides.md`, `docs/ingest-server.md` and `docs/development.md`. They hold the reference text from the README.
|
|
29
|
+
- `docs/release-and-support.md`, the release contract. It has a release step that turns on GitHub private vulnerability reporting.
|
|
30
|
+
- `docs/production-recipes.md`. It gives login, logout, tenant rotation, token refresh, consent withdrawal and the initialization order. It also tells how to change the context after a failed load of the rotation code.
|
|
31
|
+
- `docs/architecture.md`. It gives the record path, the buffers and the state changes of the runtime.
|
|
32
|
+
- `SECURITY.md`. It gives the private route for a vulnerability report.
|
|
33
|
+
- `pnpm run check:consumers`. It packs the package and type-checks three consumers. `verify` runs it.
|
|
34
|
+
- `pnpm run test:e2e`. It runs the browser tests in Chromium, Firefox and WebKit. The tests include the session replay with the real `@rrweb/record` recorder, a `srcdoc` frame on the message link and a failed load of the rotation code.
|
|
35
|
+
- `pnpm run test:collector`. It sends records to a pinned OpenTelemetry Collector and checks what the collector wrote.
|
|
36
|
+
- `pnpm run bench:release`. It runs the release benchmark against `bench/budgets.json`.
|
|
37
|
+
- The mock ingest server has `GET /__received`, `GET /__echo` and `POST /__reset` for tests. `UIOBS_MOCK_PORT` sets its port. `UIOBS_MOCK_RECORD=1` keeps the requests.
|
|
38
|
+
- `uiobs doctor` names the `415` of a stock OpenTelemetry Collector in the result of the `beacon` rule.
|
|
39
|
+
|
|
40
|
+
### Changed - v1.0.0
|
|
41
|
+
|
|
42
|
+
#### Start and pause
|
|
43
|
+
|
|
44
|
+
- **Breaking:** The library starts at the first `configure()` call that works. Before that call, it installs no capture. It starts no bus and no sender. It sends nothing.
|
|
45
|
+
- A log call before `configure()` waits in the hold buffer. With the default `consoleOutput` settings, it prints nothing.
|
|
46
|
+
- At the start, a held record gets the `processors`, the `redact` hook, the identity, the levels, the sampling, the `limits` and the `page.url` rule of the startup call.
|
|
47
|
+
- At the start, the library removes the breadcrumbs of log calls from before the start. The breadcrumbs of `addBreadcrumb()` stay.
|
|
48
|
+
- Before the first `configure()` call that works, the ids stay in memory. The library writes nothing to `localStorage` or `sessionStorage`.
|
|
49
|
+
- The first `configure()` call that works sets each setting that is fixed at startup, also after an early log call. This includes `identity`, `correlation`, `storage`, `bus.mode`, `bus.openFinRole` and `otelLoader`.
|
|
50
|
+
- **Breaking:** `enabled: false` pauses the library at any time. The library first sends the open interval of the counters, gauges, histograms and probes. It then removes its captures, the replay recorder and its network patches. The sender sends nothing. The records from before the pause go out after `enabled: true`.
|
|
51
|
+
- A pause stores no new record. A failed request in flight, a sender load that ends, a `retain` rotation and a logout deletion still change storage.
|
|
52
|
+
- A first `configure()` call with `enabled: false` fixes the startup settings. It starts no bus and no sender, and it writes nothing to storage. The runtime starts at the first `enabled: true`.
|
|
53
|
+
- A paused forwarder drops the records of its child contexts.
|
|
54
|
+
- `shutdown()` during a pause sends nothing. A rotation with `pending: "flush"` during a pause acts as `discard`.
|
|
55
|
+
- **Breaking:** `rotateSecurityContext()` rejects before the first `configure()` call that works.
|
|
56
|
+
- **Breaking:** `getHealth().status` has two new values, `"unconfigured"` and `"disabled"`. A failed first `configure()` call reports `"unconfigured"`.
|
|
57
|
+
|
|
58
|
+
#### Config rules
|
|
59
|
+
|
|
60
|
+
- **Breaking:** In each `configure()` call, an omitted key or a key with the value `undefined` keeps its current value. This applies at each depth.
|
|
61
|
+
- **Breaking, security:** `headers: undefined` now keeps the headers and the token in them. With isolation on, which is the default, use `rotateSecurityContext()` at logout. With isolation off, use `headers: null`.
|
|
62
|
+
- **Breaking:** `null` removes a hook. This applies to `redact`, `onDrop`, `onDiagnostic`, `contextProvider`, `otelLoader`, `transport`, `transportOnExit`, `transportWorker`, `capture.urlTransform` and the `loader` of `capture.webVitals`.
|
|
63
|
+
- **Breaking, security:** A `redact` value that is not a function keeps the current hook. Without a current hook, the library drops each record until `redact` is a function or `null`.
|
|
64
|
+
- **Breaking, security:** A `processors` list with an entry that is not a function keeps the current list. Without a current list, the library drops each record until `processors` is a list of functions or `[]`.
|
|
65
|
+
- **Breaking, security:** If the first `configure()` call cannot read its options, the library writes a console warning. It installs no capture and drops each record until a call sets `redact` to a function or `null`.
|
|
66
|
+
- **Breaking:** On a limit key, `null` sets no limit and `0` sets a limit of zero. Before, `0` set no limit.
|
|
67
|
+
- **Breaking:** These keys do not accept `0`: `buffering.maxPendingRecords`, `buffering.maxPendingBytes`, `correlation.sessionIdleMs`, `correlation.traceMaxAgeMs`, `debugBuffer.maxAgeMs`, `bus.maxMessageBytes`, `bus.maxRecordsPerMessage` and `bus.maxMessagesPerSecond`. `captureLimits.windowMs` must be 1 or more.
|
|
68
|
+
- **Breaking:** `null` turns off `metricsEndpoint`, `tracesEndpoint` and `replay.endpoint`. Their default is `null`. An empty or blank string also turns them off, and it reports `config.invalid`.
|
|
69
|
+
- **Breaking, security:** A relative endpoint URL resolves against `document.baseURI`. The library reports the origin that gets the records. It refuses an endpoint URL with a user name or a password, and it refuses a blank `endpoint`.
|
|
70
|
+
- **Breaking:** A new `sampling.rates` map replaces the current map. A rate outside 0 to 1 removes its entry.
|
|
71
|
+
- **Breaking:** `sampling.alwaysSampleTypes` has the type `LogType[]`. An unknown type reports `config.invalid`.
|
|
72
|
+
- **Breaking:** A `consoleOutput` object without `level` keeps the current level.
|
|
73
|
+
- **Breaking:** `metrics.maxHistogramBoundaries` applies only to the boundaries that the app gives to `histogram()`.
|
|
74
|
+
- **Breaking:** You cannot change `bus.mode` and `bus.openFinRole` after startup. A later change reports `config.invalid` and keeps the value.
|
|
75
|
+
- An invalid `sampling.defaultRate`, `sampling.remoteMaxRate` or `serializer` keeps the current value.
|
|
76
|
+
- A message for a hook, a URL key or a choice key does not print the text of the value.
|
|
77
|
+
- A config section that is not an object reports `config.invalid`.
|
|
78
|
+
- These pairs report `config.invalid`, and the values stay: `transport` with `transportWorker`, `transportOnExit` without `transport`, `capture.remoteToggles` without `sampling.remote`, and `capture.propagateTraceHeaderTo` without `capture.fetch` or `capture.xhr`.
|
|
79
|
+
- The resolved config no longer copies an unknown key.
|
|
80
|
+
|
|
81
|
+
#### Config shape
|
|
82
|
+
|
|
83
|
+
- **Breaking:** The section `capturePolicy` is now `captureLimits`. `captureLimits.windowMs` sets only the capture rate limits.
|
|
84
|
+
- **Breaking:** `sampling.errorCeiling` replaces `capturePolicy.errorCeiling`. `sampling.errorCeilingWindowMs` sets its window.
|
|
85
|
+
- **Breaking:** `metrics.intervalMs` replaces `batching.metricFlushIntervalMs` and `profiler.flushIntervalMs`. Counters, gauges, histograms and probes use this interval.
|
|
86
|
+
- **Breaking:** A capture with options takes `true` or an options object. `longFrames: { thresholdMs }`, `userTiming: { include }`, `webVitals: { loader }` and `console: { levels }` replace `longFrameMs`, `userTimingInclude`, `webVitalsLoader` and the console list. An unknown key inside an options object reports `config.invalid`.
|
|
87
|
+
- **Breaking:** The `storage` section replaces the `storage` string and the `persistence` section: `storage: { backend, namespace, requestPersistent }`. You cannot change the section after startup.
|
|
88
|
+
- **Breaking:** `consoleOutput` replaces the top-level `console` key. `ConsoleOutputOptions` replaces `ConsoleOptions`.
|
|
89
|
+
- **Breaking:** Each section type has the name of its key plus `Options`, for example `SamplingOptions`. The `...Policy` type names are gone.
|
|
90
|
+
- **Breaking:** `replay.maxSegmentEvents` and `replay.maxSegmentBytes` replace `replay.batchSize` and `replay.batchBytes`.
|
|
91
|
+
- **Breaking:** `replay.uploadWindowMs` sets the window of `replay.uploadsPerWindow`. Before, `capturePolicy.windowMs` set it.
|
|
92
|
+
|
|
93
|
+
#### Security context rotation
|
|
94
|
+
|
|
95
|
+
- **Breaking:** `rotateSecurityContext()` takes the routing settings in `routing`. The type `DeliveryOptions` is now `RoutingOptions`. Each key that is not a routing setting reports `config.invalid`, and the rotation ignores it.
|
|
96
|
+
- **Breaking:** Rotation `timeoutMs` accepts 0 to 600000. A value outside this range rejects the rotation.
|
|
97
|
+
- **Breaking, security:** A rejected rotation stops the delivery of the old context. The library drops each new record with the `onDrop` reason `security_context` until a rotation succeeds. `getHealth()` shows `security.rotation_failed` and `senderReady: false`.
|
|
98
|
+
- **Breaking, security:** After a rejected rotation, the next rotation that succeeds applies its `pending` rule to the stored records and the emergency queue of the closed context. With `flush`, it removes them, as `discard` does.
|
|
99
|
+
- **Breaking:** `rotateSecurityContext()` calls run in call order. A call during another rotation waits, and then it runs.
|
|
100
|
+
- **Breaking:** A rotation rejects only for a routing value that it cannot apply. A warning does not reject it.
|
|
101
|
+
- **Breaking:** A rotation in a forwarder rejects, and the forwarder's delivery stays open.
|
|
102
|
+
- **Breaking:** A record that the library builds during a rotation goes to `onDrop` at once with `security_context`.
|
|
103
|
+
- A rotation with `pending: "discard"` or `"flush"` removes the stored batches of the old context also when no sender runs, for example during a pause or before consent.
|
|
104
|
+
- A rotation with `pending: "retain"` stores the records that wait in memory under the old context.
|
|
105
|
+
- `rotateSecurityContext()` rejects an `update.context` that is not an object. A `null` context counts as no context. A `null` or `undefined` value in `update.context` sets no key.
|
|
106
|
+
- The rotation code loads in its own chunk on the first `rotateSecurityContext()`.
|
|
107
|
+
|
|
108
|
+
#### Public API
|
|
109
|
+
|
|
110
|
+
- **Breaking:** `flush()` now returns `Promise<FlushResult>`, not `Promise<void>`.
|
|
111
|
+
- **Breaking:** `flush()` now waits at most 5000 ms by default. `timeoutMs` sets the wait, from 0 to 600000 ms.
|
|
112
|
+
- **Breaking:** In a frame, a worker or an OpenFin view, `flush()` now waits for the answer of the sender. The sender gets 90 percent of the time that is left.
|
|
113
|
+
- **Breaking:** `getHealth()` puts the delivery state in a `delivery` block. `pending`, `inFlight`, `stored` and `lastSendAt` are no longer top-level fields.
|
|
114
|
+
- **Breaking:** `setContext(values)` takes an attribute map and merges it. A `null` value removes its key. An `undefined` value keeps the current value. A value that is not an object reports `config.invalid` and changes nothing.
|
|
115
|
+
- **Breaking:** `getJourneyToken()` returns `null` when no journey is active.
|
|
116
|
+
- **Breaking:** The package exports the logger class only as the type `Logger`. `getLogger()` and `PluginContext.logger` use `Logger`.
|
|
117
|
+
- **Breaking:** `startTrace()` is now `newTrace()`.
|
|
118
|
+
- `getHealth().delivery.consecutiveFailures` resets only when the server accepts a batch.
|
|
119
|
+
|
|
120
|
+
#### Delivery
|
|
121
|
+
|
|
122
|
+
- **Breaking:** Without `headers`, the exit batch to another origin is a keepalive `fetch` with `text/plain;charset=UTF-8`. It obeys `credentials`, so by default it sends no cookie. Only `credentials: "include"` uses `sendBeacon`. The CORS answer of the ingest server must permit the origin of the page.
|
|
123
|
+
- **Breaking:** The exit batch to an endpoint on the origin of the page is a keepalive `fetch` with the content type of the serializer. Before, it was a `text/plain` beacon.
|
|
124
|
+
- **Breaking:** A `fetch` request that already has a `traceparent` header keeps it. The library records no client span for it and reports `capture.trace_header_kept`. Before, the library replaced the header.
|
|
125
|
+
- **Breaking:** On a metric point from a frame or a worker, the `redact` of the sender can change `metric.name`, `metric.unit` and `metric.attribute_keys`.
|
|
126
|
+
- A forwarded record gets its metric and span fields back only when its `log.type` and namespace are those of the library, and each field has the shape that the library writes.
|
|
127
|
+
- The library reads at most 16 KiB of the body of a `413` or of an OTLP `2xx` answer. `delivery.requestTimeoutMs` also limits that read.
|
|
128
|
+
- The main thread waits 1000 ms more for an answer from a transport worker that is ready.
|
|
129
|
+
- A full hold buffer keeps its first 100 records of each kind. It drops the oldest record after them.
|
|
130
|
+
- `StorageAdapter.save()` returns `Promise<boolean>`. The value is true only when the batch is in storage when the save ends.
|
|
131
|
+
- The `transport.http_error` and `transport.throttled` texts tell whether storage kept the batch.
|
|
132
|
+
- The exit flush counts the keepalive bytes that are still in flight from the flush of the hidden page.
|
|
133
|
+
|
|
134
|
+
#### Bus
|
|
135
|
+
|
|
136
|
+
- **Breaking:** A same-origin child frame compares the bus protocol tag of its parent with its own tag before a direct call. With a different tag, it reports `bus.protocol_mismatch` and tries a message link.
|
|
137
|
+
- The bus starts a flush for other contexts at most one time each second. It keeps at most 4 waiting flush requests for each source and 100 in total.
|
|
138
|
+
- The bus does not take a flush request on the broadcast link.
|
|
139
|
+
- A flush that a frame or a worker asks for does not send the open interval of the metrics and the profiler of its sender.
|
|
140
|
+
- The bus sends each answer for a worker to that worker only.
|
|
141
|
+
|
|
142
|
+
#### Session replay
|
|
143
|
+
|
|
144
|
+
- **Breaking:** Session replay always blocks each element in `[data-observability-ignore]`.
|
|
145
|
+
- The `capture.rate_limited` text for a full replay buffer says that the replay of an error in that time starts at the error, with no events from before it.
|
|
146
|
+
|
|
147
|
+
#### Build, browsers and docs
|
|
148
|
+
|
|
149
|
+
- The build targets ES2021. The library supports Chrome 85, Edge 85, Firefox 79 and Safari 14.1 and later.
|
|
150
|
+
- The README and `docs/browser-support.md` state that OpenFin support is not validated on a real OpenFin runtime.
|
|
151
|
+
- The gzip budget of the main graph is 55,524 B. The measured main graph is 50,478 B.
|
|
152
|
+
- The README is short. It has the installation, the quick start, three recipes and a table of the reference documents.
|
|
153
|
+
- The ingest contract is in `docs/ingest-server.md`. Its rules do not change.
|
|
154
|
+
- Lint enforces braces on each conditional again. `eslint-config-prettier` had turned the `curly` rule off.
|
|
155
|
+
|
|
156
|
+
### Removed - v1.0.0
|
|
157
|
+
|
|
158
|
+
- **Breaking:** `logMetric()` and the logger method `logMetric()`. Use `counter()`, `gauge()` or `histogram()`.
|
|
159
|
+
- **Breaking:** `timeSync()`, `timeAsync()` and the logger methods of the same names. Use `measure()`. `measure()` logs no ERROR record on a failure.
|
|
160
|
+
- **Breaking:** `getStats()` and `getQueueDepth()`. Use `getHealth().delivery`.
|
|
161
|
+
- **Breaking:** `clearPersistedLogs()`. Use `shutdown({ pending: "discard", clearStorage: scope })`.
|
|
162
|
+
- **Breaking:** `setContextMap()`. Use `setContext(values)`.
|
|
163
|
+
- **Breaking:** The type `DeliveryStats` and the value export `OneLogger`.
|
|
164
|
+
- **Breaking:** `retention.mode`. Set `retention.maxAgeMs` and `retention.maxAttempts` to `null` in place of `"until-delivered"`.
|
|
165
|
+
- **Breaking:** `delivery.retryIdleDelayMs`, `delivery.batchesPerDrain`, `correlation.sessionTouchMs`, `bus.maxTrackedSources` and `capturePolicy.maxErrorSignatures`. A config with one of these keys reports `config.invalid`.
|
|
166
|
+
- **Breaking:** `bus.validation`. The bus always checks each message. `getHealth().bus` no longer has `validation` and `maxTrackedSources`.
|
|
167
|
+
|
|
168
|
+
### Fixed - v1.0.0
|
|
169
|
+
|
|
170
|
+
- A log call no longer throws in Chrome 92, Firefox 91 and Safari 15.3 or older. Before, with console output or with `processors`, each log call threw. A second `configure()` also threw.
|
|
171
|
+
- Session replay sets `replay.id` when the browser has no `crypto.randomUUID`. This also applies to a page on plain `http`.
|
|
172
|
+
- `TransportError` keeps its `cause` in browsers without the ES2022 `cause` option.
|
|
173
|
+
- The type declarations work for a strict consumer with `moduleResolution` `"NodeNext"` (ES module or CommonJS) or `"Bundler"`, also with `skipLibCheck: false`. `exports` gives `import` and `require` each its own declarations, `index.d.ts` and `index.d.cts`.
|
|
174
|
+
- `configure({ redact: undefined })` no longer removes `redact`. The other hooks and the transports have the same fix.
|
|
175
|
+
- `redact`, `onDiagnostic`, `otelLoader` and the `loader` of `capture.webVitals` report `config.invalid` for a value that is not a function.
|
|
176
|
+
- `configure()` no longer throws when a getter in its input throws.
|
|
177
|
+
- `configure()` no longer writes into the app's object.
|
|
178
|
+
- A key that is fixed at startup no longer reports "cannot change after startup" for the value `undefined`.
|
|
179
|
+
- A histogram without custom boundaries no longer reports `config.invalid` when the boundary limit is low.
|
|
180
|
+
- `sampling: { defaultRate: undefined }` no longer sets the rate to `1`.
|
|
181
|
+
- `serviceName`, `serviceVersion`, `environment` and `securityContext.id` report `config.invalid` for a value that is not a string.
|
|
182
|
+
- An `undefined` style no longer reports `config.invalid`. `consoleOutput.styles: null` now reports `config.invalid`.
|
|
183
|
+
- A failed first `configure()` call after an early log call no longer lets records go out without `redact`.
|
|
184
|
+
- A failed first `configure()` call writes no id to `localStorage` or `sessionStorage`. It reports `config.invalid` to diagnostics, and it writes the console warning.
|
|
185
|
+
- A frame that logs before `configure()` uses the `bus.mode` of its first `configure()` call.
|
|
186
|
+
- A journey that starts before `configure()` stays active after the call. The journey token leaves the URL.
|
|
187
|
+
- A `newSession()` call before `configure()` keeps its session after the start.
|
|
188
|
+
- `onDrop` reports each lost record one time, also when a `pagehide` comes before a later rotation or `shutdown()`.
|
|
189
|
+
- A `shutdown()` before the end of startup reports the held records to `onDrop` with `load_failed`.
|
|
190
|
+
- A rotation that waits for the delivery stack load at `shutdown()` stops and rejects. Before, it could remove the stored batches of the old context.
|
|
191
|
+
- A rotation that a shutdown stops after it took the old records reports those records to `onDrop` with `security_context`.
|
|
192
|
+
- A rotation that a shutdown meets in its storage step rejects, and does not apply the new context.
|
|
193
|
+
- A delivery stack load that ends after a rejected rotation no longer sends the stored batches of the old context.
|
|
194
|
+
- After `shutdown()`, `startJourney()` and `adoptJourney()` write nothing to `sessionStorage`.
|
|
195
|
+
- `flush()` no longer waits without end for a request or a storage call that does not settle.
|
|
196
|
+
- A response body that stalls no longer holds a send past the request deadline or after a stop.
|
|
197
|
+
- `fetch(request, init)` with trace propagation builds the request one time with the whole init of the caller. With an empty init, it keeps the referrer of the request.
|
|
198
|
+
- A refused beacon marks the keepalive budget as used, so a later exit batch goes to the emergency queue.
|
|
199
|
+
- A diagnostic no longer says that the library stored a batch that storage did not keep.
|
|
200
|
+
- A `srcdoc` or `about:blank` frame forwards its records through its same-origin parent. Before, the parent refused its `"null"` origin, and the frame sent its own records past the `redact` of the parent.
|
|
201
|
+
- In Firefox, a `srcdoc` frame without a direct link finds its same-origin parent through the `origin` global of the parent. A `srcdoc` frame inside a `srcdoc` frame also finds it.
|
|
202
|
+
- A `srcdoc` or `about:blank` parent sends a new security context to its direct children. Before, the next batch of such a child was dropped with only a `security.context_mismatch` count.
|
|
203
|
+
- A `srcdoc` parent under `bus.sourcePolicy: "trusted-origin"` accepts its same-origin children. It also does not report them as untrusted.
|
|
204
|
+
- A `srcdoc` forwarder accepts the sampling rules of its parent on the message link.
|
|
205
|
+
- A replay snapshot that fails at an error no longer keeps the upload open. Before, each later event went to the replay endpoint with no end. Now the library sends no replay for that error and reports `capture.record_failed`.
|
|
206
|
+
- A replay snapshot that fails halfway sends no part of itself. The buffer then waits for the next full snapshot, so an upload always starts with one.
|
|
207
|
+
- A failed replay snapshot does not use an upload of `replay.uploadsPerWindow`.
|
|
208
|
+
- The library reports a full replay buffer one time for each recording, also when the first snapshot is too large.
|
|
209
|
+
- A new replay recording does not report the dropped events of an earlier recording.
|
|
210
|
+
- The replay uploader sends no segment after a later call removes both `replay.endpoint` and `replay.onSegment`.
|
|
211
|
+
- The mock ingest server no longer stops on a log record, a span or a metric point with no time. It prints `observedTimeUnixNano` for a log record, or `-` when the record has no time.
|
|
212
|
+
- The mock ingest server answers `400` to a JSON body that does not have the expected shape. Before, that body stopped the server.
|
|
213
|
+
- `docs/ingest-server.md` names `application/x-ndjson` for `serializer: "ecs"`. It says that `408` and each `5xx` make the library send the batch again.
|
|
214
|
+
|
|
215
|
+
## [1.0.0] - 2026-11-20
|
|
216
|
+
|
|
217
|
+
The first stable release. It has breaking changes from 0.12.0. Read `docs/migration-v1.md` before you upgrade. Each feature of 1.0.0 is stable. `docs/release-and-support.md` gives the stability rules and the deprecation policy.
|
|
218
|
+
|
|
219
|
+
### Added - v1.0.0
|
|
220
|
+
|
|
221
|
+
- `gauge(name, options)` returns a gauge. `set(value, attributes?)` keeps the last value for each attribute set. Each interval sends that value as one point. With `metricsEndpoint`, the point is an OTLP gauge.
|
|
222
|
+
- `measure(name, fn, attributes?)` times one function call. A promise result ends the measure when it settles. A throw or a rejection gives the outcome `"error"`. The histogram is `ui.measure.duration` with the attributes `measure.name` and `measure.outcome`.
|
|
223
|
+
- `shutdown(options?)` takes options. The default `pending: "flush"` sends the open interval of the meters and the profiler, and each record in memory. It waits for those requests, then runs the exit flush and stops each request that is still open. The stored batches stay in storage.
|
|
224
|
+
- `shutdown({ pending: "discard" })` sends nothing and runs no exit flush. `onDrop` reports each record in memory with `discarded`.
|
|
225
|
+
- `shutdown({ clearStorage: "context" | "namespace" })` discards. It removes the stored batches, the emergency queue entries, the stored session id, the tab id and the journey. It also works after an earlier `shutdown()`. `clearStorage: null` removes nothing.
|
|
226
|
+
- `flush({ timeoutMs })` and the flush result. The result has `status`, `accepted`, `stored`, `dropped`, `forwarded` and `pending`. Each count is a number of records. `status` is `"complete"`, `"timeout"` or `"inactive"`. `"complete"` means that no record waits. It does not prove delivery.
|
|
227
|
+
- `getHealth().delivery` has `lastFailureAt`, `consecutiveFailures`, `throttledUntil` and `dropped`. A rotation resets the first three. It keeps `dropped` and `lastSendAt`.
|
|
228
|
+
- The `LossReason` `"partially_rejected"`. An OTLP `2xx` answer with `partialSuccess` gives the rejected count to `onDrop`. The library does not send the batch again.
|
|
229
|
+
- The `LossReason` `"disabled"`. It reports a record that a child context forwards during a pause. It also reports the held records when the first `configure()` call sets `enabled: false`. It also reports the records in memory at a `pagehide` or a `shutdown()` during a pause. Each record is reported one time.
|
|
230
|
+
- The `LossReason` `"discarded"`.
|
|
231
|
+
- `buffering.maxHeldRecords` limits each hold buffer. The default is 500, and the range is 200 to 10000.
|
|
232
|
+
- The diagnostic codes `transport.partial_success`, `capture.trace_header_kept`, `bus.protocol_mismatch` and `security.rotation_failed`.
|
|
233
|
+
- The `getHealth()` issues `security.rotation_failed` and `records.refused`.
|
|
234
|
+
- The bus messages `ui-observability.message.flush-request` and `ui-observability.message.flush-result`.
|
|
235
|
+
- New exported types: `DeliveryHealth`, `FlushOptions`, `FlushResult`, `FlushStatus`, `Gauge`, `Logger`, `RoutingOptions`, `ShutdownOptions` and `StorageScope`. The package exports the options type of each config section.
|
|
236
|
+
- `llms.txt` in the package. It describes the library for a large language model, with the public functions, the main config keys, the recipes and the common mistakes.
|
|
237
|
+
- `docs/migration-v1.md`. It gives the steps from 0.12.x to 1.0.0.
|
|
238
|
+
- `docs/api.md`, `docs/configuration.md`, `docs/guides.md`, `docs/ingest-server.md` and `docs/development.md`. They hold the reference text from the README.
|
|
239
|
+
- `docs/release-and-support.md`, the release contract. It has a release step that turns on GitHub private vulnerability reporting.
|
|
240
|
+
- `docs/production-recipes.md`. It gives login, logout, tenant rotation, token refresh, consent withdrawal and the initialization order. It also tells how to change the context after a failed load of the rotation code.
|
|
241
|
+
- `docs/architecture.md`. It gives the record path, the buffers and the state changes of the runtime.
|
|
242
|
+
- `SECURITY.md`. It gives the private route for a vulnerability report.
|
|
243
|
+
- `pnpm run check:consumers`. It packs the package and type-checks three consumers. `verify` runs it.
|
|
244
|
+
- `pnpm run test:e2e`. It runs the browser tests in Chromium, Firefox and WebKit. The tests include the session replay with the real `@rrweb/record` recorder, a `srcdoc` frame on the message link and a failed load of the rotation code.
|
|
245
|
+
- `pnpm run test:collector`. It sends records to a pinned OpenTelemetry Collector and checks what the collector wrote.
|
|
246
|
+
- `pnpm run bench:release`. It runs the release benchmark against `bench/budgets.json`.
|
|
247
|
+
- The mock ingest server has `GET /__received`, `GET /__echo` and `POST /__reset` for tests. `UIOBS_MOCK_PORT` sets its port. `UIOBS_MOCK_RECORD=1` keeps the requests.
|
|
248
|
+
- `uiobs doctor` names the `415` of a stock OpenTelemetry Collector in the result of the `beacon` rule.
|
|
249
|
+
|
|
250
|
+
### Changed - v1.0.0
|
|
251
|
+
|
|
252
|
+
#### Start and pause
|
|
253
|
+
|
|
254
|
+
- **Breaking:** The library starts at the first `configure()` call that works. Before that call, it installs no capture. It starts no bus and no sender. It sends nothing.
|
|
255
|
+
- A log call before `configure()` waits in the hold buffer. With the default `consoleOutput` settings, it prints nothing.
|
|
256
|
+
- At the start, a held record gets the `processors`, the `redact` hook, the identity, the levels, the sampling, the `limits` and the `page.url` rule of the startup call.
|
|
257
|
+
- At the start, the library removes the breadcrumbs of log calls from before the start. The breadcrumbs of `addBreadcrumb()` stay.
|
|
258
|
+
- Before the first `configure()` call that works, the ids stay in memory. The library writes nothing to `localStorage` or `sessionStorage`.
|
|
259
|
+
- The first `configure()` call that works sets each setting that is fixed at startup, also after an early log call. This includes `identity`, `correlation`, `storage`, `bus.mode`, `bus.openFinRole` and `otelLoader`.
|
|
260
|
+
- **Breaking:** `enabled: false` pauses the library at any time. The library first sends the open interval of the counters, gauges, histograms and probes. It then removes its captures, the replay recorder and its network patches. The sender sends nothing. The records from before the pause go out after `enabled: true`.
|
|
261
|
+
- A pause stores no new record. A failed request in flight, a sender load that ends, a `retain` rotation and a logout deletion still change storage.
|
|
262
|
+
- A first `configure()` call with `enabled: false` fixes the startup settings. It starts no bus and no sender, and it writes nothing to storage. The runtime starts at the first `enabled: true`.
|
|
263
|
+
- A paused forwarder drops the records of its child contexts.
|
|
264
|
+
- `shutdown()` during a pause sends nothing. A rotation with `pending: "flush"` during a pause acts as `discard`.
|
|
265
|
+
- **Breaking:** `rotateSecurityContext()` rejects before the first `configure()` call that works.
|
|
266
|
+
- **Breaking:** `getHealth().status` has two new values, `"unconfigured"` and `"disabled"`. A failed first `configure()` call reports `"unconfigured"`.
|
|
267
|
+
|
|
268
|
+
#### Config rules
|
|
269
|
+
|
|
270
|
+
- **Breaking:** In each `configure()` call, an omitted key or a key with the value `undefined` keeps its current value. This applies at each depth.
|
|
271
|
+
- **Breaking, security:** `headers: undefined` now keeps the headers and the token in them. With isolation on, which is the default, use `rotateSecurityContext()` at logout. With isolation off, use `headers: null`.
|
|
272
|
+
- **Breaking:** `null` removes a hook. This applies to `redact`, `onDrop`, `onDiagnostic`, `contextProvider`, `otelLoader`, `transport`, `transportOnExit`, `transportWorker`, `capture.urlTransform` and the `loader` of `capture.webVitals`.
|
|
273
|
+
- **Breaking, security:** A `redact` value that is not a function keeps the current hook. Without a current hook, the library drops each record until `redact` is a function or `null`.
|
|
274
|
+
- **Breaking, security:** A `processors` list with an entry that is not a function keeps the current list. Without a current list, the library drops each record until `processors` is a list of functions or `[]`.
|
|
275
|
+
- **Breaking, security:** If the first `configure()` call cannot read its options, the library writes a console warning. It installs no capture and drops each record until a call sets `redact` to a function or `null`.
|
|
276
|
+
- **Breaking:** On a limit key, `null` sets no limit and `0` sets a limit of zero. Before, `0` set no limit.
|
|
277
|
+
- **Breaking:** These keys do not accept `0`: `buffering.maxPendingRecords`, `buffering.maxPendingBytes`, `correlation.sessionIdleMs`, `correlation.traceMaxAgeMs`, `debugBuffer.maxAgeMs`, `bus.maxMessageBytes`, `bus.maxRecordsPerMessage` and `bus.maxMessagesPerSecond`. `captureLimits.windowMs` must be 1 or more.
|
|
278
|
+
- **Breaking:** `null` turns off `metricsEndpoint`, `tracesEndpoint` and `replay.endpoint`. Their default is `null`. An empty or blank string also turns them off, and it reports `config.invalid`.
|
|
279
|
+
- **Breaking, security:** A relative endpoint URL resolves against `document.baseURI`. The library reports the origin that gets the records. It refuses an endpoint URL with a user name or a password, and it refuses a blank `endpoint`.
|
|
280
|
+
- **Breaking:** A new `sampling.rates` map replaces the current map. A rate outside 0 to 1 removes its entry.
|
|
281
|
+
- **Breaking:** `sampling.alwaysSampleTypes` has the type `LogType[]`. An unknown type reports `config.invalid`.
|
|
282
|
+
- **Breaking:** A `consoleOutput` object without `level` keeps the current level.
|
|
283
|
+
- **Breaking:** `metrics.maxHistogramBoundaries` applies only to the boundaries that the app gives to `histogram()`.
|
|
284
|
+
- **Breaking:** You cannot change `bus.mode` and `bus.openFinRole` after startup. A later change reports `config.invalid` and keeps the value.
|
|
285
|
+
- An invalid `sampling.defaultRate`, `sampling.remoteMaxRate` or `serializer` keeps the current value.
|
|
286
|
+
- A message for a hook, a URL key or a choice key does not print the text of the value.
|
|
287
|
+
- A config section that is not an object reports `config.invalid`.
|
|
288
|
+
- These pairs report `config.invalid`, and the values stay: `transport` with `transportWorker`, `transportOnExit` without `transport`, `capture.remoteToggles` without `sampling.remote`, and `capture.propagateTraceHeaderTo` without `capture.fetch` or `capture.xhr`.
|
|
289
|
+
- The resolved config no longer copies an unknown key.
|
|
290
|
+
|
|
291
|
+
#### Config shape
|
|
292
|
+
|
|
293
|
+
- **Breaking:** The section `capturePolicy` is now `captureLimits`. `captureLimits.windowMs` sets only the capture rate limits.
|
|
294
|
+
- **Breaking:** `sampling.errorCeiling` replaces `capturePolicy.errorCeiling`. `sampling.errorCeilingWindowMs` sets its window.
|
|
295
|
+
- **Breaking:** `metrics.intervalMs` replaces `batching.metricFlushIntervalMs` and `profiler.flushIntervalMs`. Counters, gauges, histograms and probes use this interval.
|
|
296
|
+
- **Breaking:** A capture with options takes `true` or an options object. `longFrames: { thresholdMs }`, `userTiming: { include }`, `webVitals: { loader }` and `console: { levels }` replace `longFrameMs`, `userTimingInclude`, `webVitalsLoader` and the console list. An unknown key inside an options object reports `config.invalid`.
|
|
297
|
+
- **Breaking:** The `storage` section replaces the `storage` string and the `persistence` section: `storage: { backend, namespace, requestPersistent }`. You cannot change the section after startup.
|
|
298
|
+
- **Breaking:** `consoleOutput` replaces the top-level `console` key. `ConsoleOutputOptions` replaces `ConsoleOptions`.
|
|
299
|
+
- **Breaking:** Each section type has the name of its key plus `Options`, for example `SamplingOptions`. The `...Policy` type names are gone.
|
|
300
|
+
- **Breaking:** `replay.maxSegmentEvents` and `replay.maxSegmentBytes` replace `replay.batchSize` and `replay.batchBytes`.
|
|
301
|
+
- **Breaking:** `replay.uploadWindowMs` sets the window of `replay.uploadsPerWindow`. Before, `capturePolicy.windowMs` set it.
|
|
302
|
+
|
|
303
|
+
#### Security context rotation
|
|
304
|
+
|
|
305
|
+
- **Breaking:** `rotateSecurityContext()` takes the routing settings in `routing`. The type `DeliveryOptions` is now `RoutingOptions`. Each key that is not a routing setting reports `config.invalid`, and the rotation ignores it.
|
|
306
|
+
- **Breaking:** Rotation `timeoutMs` accepts 0 to 600000. A value outside this range rejects the rotation.
|
|
307
|
+
- **Breaking, security:** A rejected rotation stops the delivery of the old context. The library drops each new record with the `onDrop` reason `security_context` until a rotation succeeds. `getHealth()` shows `security.rotation_failed` and `senderReady: false`.
|
|
308
|
+
- **Breaking, security:** After a rejected rotation, the next rotation that succeeds applies its `pending` rule to the stored records and the emergency queue of the closed context. With `flush`, it removes them, as `discard` does.
|
|
309
|
+
- **Breaking:** `rotateSecurityContext()` calls run in call order. A call during another rotation waits, and then it runs.
|
|
310
|
+
- **Breaking:** A rotation rejects only for a routing value that it cannot apply. A warning does not reject it.
|
|
311
|
+
- **Breaking:** A rotation in a forwarder rejects, and the forwarder's delivery stays open.
|
|
312
|
+
- **Breaking:** A record that the library builds during a rotation goes to `onDrop` at once with `security_context`.
|
|
313
|
+
- A rotation with `pending: "discard"` or `"flush"` removes the stored batches of the old context also when no sender runs, for example during a pause or before consent.
|
|
314
|
+
- A rotation with `pending: "retain"` stores the records that wait in memory under the old context.
|
|
315
|
+
- `rotateSecurityContext()` rejects an `update.context` that is not an object. A `null` context counts as no context. A `null` or `undefined` value in `update.context` sets no key.
|
|
316
|
+
- The rotation code loads in its own chunk on the first `rotateSecurityContext()`.
|
|
317
|
+
|
|
318
|
+
#### Public API
|
|
319
|
+
|
|
320
|
+
- **Breaking:** `flush()` now returns `Promise<FlushResult>`, not `Promise<void>`.
|
|
321
|
+
- **Breaking:** `flush()` now waits at most 5000 ms by default. `timeoutMs` sets the wait, from 0 to 600000 ms.
|
|
322
|
+
- **Breaking:** In a frame, a worker or an OpenFin view, `flush()` now waits for the answer of the sender. The sender gets 90 percent of the time that is left.
|
|
323
|
+
- **Breaking:** `getHealth()` puts the delivery state in a `delivery` block. `pending`, `inFlight`, `stored` and `lastSendAt` are no longer top-level fields.
|
|
324
|
+
- **Breaking:** `setContext(values)` takes an attribute map and merges it. A `null` value removes its key. An `undefined` value keeps the current value. A value that is not an object reports `config.invalid` and changes nothing.
|
|
325
|
+
- **Breaking:** `getJourneyToken()` returns `null` when no journey is active.
|
|
326
|
+
- **Breaking:** The package exports the logger class only as the type `Logger`. `getLogger()` and `PluginContext.logger` use `Logger`.
|
|
327
|
+
- **Breaking:** `startTrace()` is now `newTrace()`.
|
|
328
|
+
- `getHealth().delivery.consecutiveFailures` resets only when the server accepts a batch.
|
|
329
|
+
|
|
330
|
+
#### Delivery
|
|
331
|
+
|
|
332
|
+
- **Breaking:** Without `headers`, the exit batch to another origin is a keepalive `fetch` with `text/plain;charset=UTF-8`. It obeys `credentials`, so by default it sends no cookie. Only `credentials: "include"` uses `sendBeacon`. The CORS answer of the ingest server must permit the origin of the page.
|
|
333
|
+
- **Breaking:** The exit batch to an endpoint on the origin of the page is a keepalive `fetch` with the content type of the serializer. Before, it was a `text/plain` beacon.
|
|
334
|
+
- **Breaking:** A `fetch` request that already has a `traceparent` header keeps it. The library records no client span for it and reports `capture.trace_header_kept`. Before, the library replaced the header.
|
|
335
|
+
- **Breaking:** On a metric point from a frame or a worker, the `redact` of the sender can change `metric.name`, `metric.unit` and `metric.attribute_keys`.
|
|
336
|
+
- A forwarded record gets its metric and span fields back only when its `log.type` and namespace are those of the library, and each field has the shape that the library writes.
|
|
337
|
+
- The library reads at most 16 KiB of the body of a `413` or of an OTLP `2xx` answer. `delivery.requestTimeoutMs` also limits that read.
|
|
338
|
+
- The main thread waits 1000 ms more for an answer from a transport worker that is ready.
|
|
339
|
+
- A full hold buffer keeps its first 100 records of each kind. It drops the oldest record after them.
|
|
340
|
+
- `StorageAdapter.save()` returns `Promise<boolean>`. The value is true only when the batch is in storage when the save ends.
|
|
341
|
+
- The `transport.http_error` and `transport.throttled` texts tell whether storage kept the batch.
|
|
342
|
+
- The exit flush counts the keepalive bytes that are still in flight from the flush of the hidden page.
|
|
343
|
+
|
|
344
|
+
#### Bus
|
|
345
|
+
|
|
346
|
+
- **Breaking:** A same-origin child frame compares the bus protocol tag of its parent with its own tag before a direct call. With a different tag, it reports `bus.protocol_mismatch` and tries a message link.
|
|
347
|
+
- The bus starts a flush for other contexts at most one time each second. It keeps at most 4 waiting flush requests for each source and 100 in total.
|
|
348
|
+
- The bus does not take a flush request on the broadcast link.
|
|
349
|
+
- A flush that a frame or a worker asks for does not send the open interval of the metrics and the profiler of its sender.
|
|
350
|
+
- The bus sends each answer for a worker to that worker only.
|
|
351
|
+
|
|
352
|
+
#### Session replay
|
|
353
|
+
|
|
354
|
+
- **Breaking:** Session replay always blocks each element in `[data-observability-ignore]`.
|
|
355
|
+
- The `capture.rate_limited` text for a full replay buffer says that the replay of an error in that time starts at the error, with no events from before it.
|
|
356
|
+
|
|
357
|
+
#### Build, browsers and docs
|
|
358
|
+
|
|
359
|
+
- The build targets ES2021. The library supports Chrome 85, Edge 85, Firefox 79 and Safari 14.1 and later.
|
|
360
|
+
- The README and `docs/browser-support.md` state that OpenFin support is not validated on a real OpenFin runtime.
|
|
361
|
+
- The gzip budget of the main graph is 55,524 B. The measured main graph is 50,478 B.
|
|
362
|
+
- The README is short. It has the installation, the quick start, three recipes and a table of the reference documents.
|
|
363
|
+
- The ingest contract is in `docs/ingest-server.md`. Its rules do not change.
|
|
364
|
+
- Lint enforces braces on each conditional again. `eslint-config-prettier` had turned the `curly` rule off.
|
|
365
|
+
|
|
366
|
+
### Removed - v1.0.0
|
|
367
|
+
|
|
368
|
+
- **Breaking:** `logMetric()` and the logger method `logMetric()`. Use `counter()`, `gauge()` or `histogram()`.
|
|
369
|
+
- **Breaking:** `timeSync()`, `timeAsync()` and the logger methods of the same names. Use `measure()`. `measure()` logs no ERROR record on a failure.
|
|
370
|
+
- **Breaking:** `getStats()` and `getQueueDepth()`. Use `getHealth().delivery`.
|
|
371
|
+
- **Breaking:** `clearPersistedLogs()`. Use `shutdown({ pending: "discard", clearStorage: scope })`.
|
|
372
|
+
- **Breaking:** `setContextMap()`. Use `setContext(values)`.
|
|
373
|
+
- **Breaking:** The type `DeliveryStats` and the value export `OneLogger`.
|
|
374
|
+
- **Breaking:** `retention.mode`. Set `retention.maxAgeMs` and `retention.maxAttempts` to `null` in place of `"until-delivered"`.
|
|
375
|
+
- **Breaking:** `delivery.retryIdleDelayMs`, `delivery.batchesPerDrain`, `correlation.sessionTouchMs`, `bus.maxTrackedSources` and `capturePolicy.maxErrorSignatures`. A config with one of these keys reports `config.invalid`.
|
|
376
|
+
- **Breaking:** `bus.validation`. The bus always checks each message. `getHealth().bus` no longer has `validation` and `maxTrackedSources`.
|
|
377
|
+
|
|
378
|
+
### Fixed - v1.0.0
|
|
379
|
+
|
|
380
|
+
- A log call no longer throws in Chrome 92, Firefox 91 and Safari 15.3 or older. Before, with console output or with `processors`, each log call threw. A second `configure()` also threw.
|
|
381
|
+
- Session replay sets `replay.id` when the browser has no `crypto.randomUUID`. This also applies to a page on plain `http`.
|
|
382
|
+
- `TransportError` keeps its `cause` in browsers without the ES2022 `cause` option.
|
|
383
|
+
- The type declarations work for a strict consumer with `moduleResolution` `"NodeNext"` (ES module or CommonJS) or `"Bundler"`, also with `skipLibCheck: false`. `exports` gives `import` and `require` each its own declarations, `index.d.ts` and `index.d.cts`.
|
|
384
|
+
- `configure({ redact: undefined })` no longer removes `redact`. The other hooks and the transports have the same fix.
|
|
385
|
+
- `redact`, `onDiagnostic`, `otelLoader` and the `loader` of `capture.webVitals` report `config.invalid` for a value that is not a function.
|
|
386
|
+
- `configure()` no longer throws when a getter in its input throws.
|
|
387
|
+
- `configure()` no longer writes into the app's object.
|
|
388
|
+
- A key that is fixed at startup no longer reports "cannot change after startup" for the value `undefined`.
|
|
389
|
+
- A histogram without custom boundaries no longer reports `config.invalid` when the boundary limit is low.
|
|
390
|
+
- `sampling: { defaultRate: undefined }` no longer sets the rate to `1`.
|
|
391
|
+
- `serviceName`, `serviceVersion`, `environment` and `securityContext.id` report `config.invalid` for a value that is not a string.
|
|
392
|
+
- An `undefined` style no longer reports `config.invalid`. `consoleOutput.styles: null` now reports `config.invalid`.
|
|
393
|
+
- A failed first `configure()` call after an early log call no longer lets records go out without `redact`.
|
|
394
|
+
- A failed first `configure()` call writes no id to `localStorage` or `sessionStorage`. It reports `config.invalid` to diagnostics, and it writes the console warning.
|
|
395
|
+
- A frame that logs before `configure()` uses the `bus.mode` of its first `configure()` call.
|
|
396
|
+
- A journey that starts before `configure()` stays active after the call. The journey token leaves the URL.
|
|
397
|
+
- A `newSession()` call before `configure()` keeps its session after the start.
|
|
398
|
+
- `onDrop` reports each lost record one time, also when a `pagehide` comes before a later rotation or `shutdown()`.
|
|
399
|
+
- A `shutdown()` before the end of startup reports the held records to `onDrop` with `load_failed`.
|
|
400
|
+
- A rotation that waits for the delivery stack load at `shutdown()` stops and rejects. Before, it could remove the stored batches of the old context.
|
|
401
|
+
- A rotation that a shutdown stops after it took the old records reports those records to `onDrop` with `security_context`.
|
|
402
|
+
- A rotation that a shutdown meets in its storage step rejects, and does not apply the new context.
|
|
403
|
+
- A delivery stack load that ends after a rejected rotation no longer sends the stored batches of the old context.
|
|
404
|
+
- After `shutdown()`, `startJourney()` and `adoptJourney()` write nothing to `sessionStorage`.
|
|
405
|
+
- `flush()` no longer waits without end for a request or a storage call that does not settle.
|
|
406
|
+
- A response body that stalls no longer holds a send past the request deadline or after a stop.
|
|
407
|
+
- `fetch(request, init)` with trace propagation builds the request one time with the whole init of the caller. With an empty init, it keeps the referrer of the request.
|
|
408
|
+
- A refused beacon marks the keepalive budget as used, so a later exit batch goes to the emergency queue.
|
|
409
|
+
- A diagnostic no longer says that the library stored a batch that storage did not keep.
|
|
410
|
+
- A `srcdoc` or `about:blank` frame forwards its records through its same-origin parent. Before, the parent refused its `"null"` origin, and the frame sent its own records past the `redact` of the parent.
|
|
411
|
+
- In Firefox, a `srcdoc` frame without a direct link finds its same-origin parent through the `origin` global of the parent. A `srcdoc` frame inside a `srcdoc` frame also finds it.
|
|
412
|
+
- A `srcdoc` or `about:blank` parent sends a new security context to its direct children. Before, the next batch of such a child was dropped with only a `security.context_mismatch` count.
|
|
413
|
+
- A `srcdoc` parent under `bus.sourcePolicy: "trusted-origin"` accepts its same-origin children. It also does not report them as untrusted.
|
|
414
|
+
- A `srcdoc` forwarder accepts the sampling rules of its parent on the message link.
|
|
415
|
+
- A replay snapshot that fails at an error no longer keeps the upload open. Before, each later event went to the replay endpoint with no end. Now the library sends no replay for that error and reports `capture.record_failed`.
|
|
416
|
+
- A replay snapshot that fails halfway sends no part of itself. The buffer then waits for the next full snapshot, so an upload always starts with one.
|
|
417
|
+
- A failed replay snapshot does not use an upload of `replay.uploadsPerWindow`.
|
|
418
|
+
- The library reports a full replay buffer one time for each recording, also when the first snapshot is too large.
|
|
419
|
+
- A new replay recording does not report the dropped events of an earlier recording.
|
|
420
|
+
- The replay uploader sends no segment after a later call removes both `replay.endpoint` and `replay.onSegment`.
|
|
421
|
+
- The mock ingest server no longer stops on a log record, a span or a metric point with no time. It prints `observedTimeUnixNano` for a log record, or `-` when the record has no time.
|
|
422
|
+
- The mock ingest server answers `400` to a JSON body that does not have the expected shape. Before, that body stopped the server.
|
|
423
|
+
- `docs/ingest-server.md` names `application/x-ndjson` for `serializer: "ecs"`. It says that `408` and each `5xx` make the library send the batch again.
|
|
424
|
+
|
|
5
425
|
## [0.12.0] - 2026-11-16
|
|
6
426
|
|
|
7
427
|
### Added - v0.12.0
|