@utk09/ui-observability 0.11.0 → 0.12.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 +61 -0
- package/README.md +273 -102
- package/bin/uiobs.mjs +1 -1
- package/dist/{batch-CL9uWYY3.js → batch-BjQUwjA6.js} +4 -4
- package/dist/batch-BjQUwjA6.js.map +1 -0
- package/dist/{batch-C8OcWR2L.cjs → batch-D5LlU4Q9.cjs} +2 -2
- package/dist/batch-D5LlU4Q9.cjs.map +1 -0
- package/dist/bus/bus.d.ts +48 -47
- package/dist/bus/links.d.ts +4 -4
- package/dist/bus/validation.d.ts +1 -1
- package/dist/bus-D_7pd7RN.cjs +2 -0
- package/dist/bus-D_7pd7RN.cjs.map +1 -0
- package/dist/{bus-BZ0GldpT.js → bus-ecxUNTja.js} +91 -91
- package/dist/bus-ecxUNTja.js.map +1 -0
- package/dist/capture/console.d.ts +10 -10
- package/dist/capture/errors.d.ts +6 -6
- package/dist/capture/interactions.d.ts +14 -14
- package/dist/capture/lifecycle.d.ts +3 -3
- package/dist/capture/long-frames.d.ts +6 -6
- package/dist/capture/network.d.ts +17 -17
- package/dist/capture/profiler-frames.d.ts +44 -0
- package/dist/capture/replay-buffer.d.ts +46 -0
- package/dist/capture/replay-upload.d.ts +74 -0
- package/dist/capture/replay.d.ts +114 -0
- package/dist/capture/reports.d.ts +2 -2
- package/dist/capture/resource-timing.d.ts +1 -1
- package/dist/capture/server-timing.d.ts +3 -3
- package/dist/capture/storm.d.ts +3 -3
- package/dist/capture/types.d.ts +45 -33
- package/dist/capture/unclean-exit.d.ts +8 -8
- package/dist/capture/user-timing.d.ts +3 -3
- package/dist/capture/web-socket.d.ts +11 -11
- package/dist/capture/web-vitals.d.ts +20 -7
- package/dist/compression-AJJCMBOa.js +11 -0
- package/dist/compression-AJJCMBOa.js.map +1 -0
- package/dist/compression-lD9abCcO.cjs +2 -0
- package/dist/compression-lD9abCcO.cjs.map +1 -0
- package/dist/{console-BPZCuSLc.cjs → console-CLz_PvFn.cjs} +2 -2
- package/dist/console-CLz_PvFn.cjs.map +1 -0
- package/dist/{console-BeCF7n59.js → console-cwgHKXvM.js} +4 -4
- package/dist/console-cwgHKXvM.js.map +1 -0
- package/dist/constants-Bwl_YtQi.js +349 -0
- package/dist/constants-Bwl_YtQi.js.map +1 -0
- package/dist/constants-DakMxVB2.cjs +2 -0
- package/dist/constants-DakMxVB2.cjs.map +1 -0
- package/dist/constants.d.ts +150 -103
- package/dist/context-storage-BjzeBSxH.cjs.map +1 -1
- package/dist/context-storage-BzkoHzkQ.js.map +1 -1
- package/dist/core/breadcrumbs.d.ts +16 -15
- package/dist/core/config.d.ts +3 -3
- package/dist/core/context.d.ts +7 -7
- package/dist/core/debug-buffer.d.ts +10 -10
- package/dist/core/debug-bundle.d.ts +3 -3
- package/dist/core/deferred.d.ts +2 -2
- package/dist/core/diagnostics.d.ts +24 -21
- package/dist/core/drops.d.ts +7 -7
- package/dist/core/hold-buffer.d.ts +1 -1
- package/dist/core/journey.d.ts +22 -23
- package/dist/core/logger.d.ts +22 -21
- package/dist/core/measure.d.ts +7 -7
- package/dist/core/meter.d.ts +25 -21
- package/dist/core/pipeline.d.ts +42 -41
- package/dist/core/profile-buckets.d.ts +31 -0
- package/dist/core/profiler.d.ts +218 -0
- package/dist/core/record.d.ts +23 -23
- package/dist/core/remote-rules.d.ts +4 -4
- package/dist/core/remote-sampling.d.ts +21 -20
- package/dist/core/runtime.d.ts +206 -137
- package/dist/core/sampling.d.ts +18 -18
- package/dist/core/sender.d.ts +22 -20
- package/dist/core/spans.d.ts +5 -5
- 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-C7UkHZ-q.js → debug-bundle-BOdYmCeV.js} +10 -3
- package/dist/debug-bundle-BOdYmCeV.js.map +1 -0
- package/dist/debug-bundle-Ex4L_LSP.cjs +2 -0
- package/dist/debug-bundle-Ex4L_LSP.cjs.map +1 -0
- package/dist/doctor.cjs +1 -1
- package/dist/doctor.cjs.map +1 -1
- package/dist/doctor.d.ts +16 -6
- package/dist/doctor.js +147 -52
- package/dist/doctor.js.map +1 -1
- package/dist/{emergency-queue-Zy6lNafo.js → emergency-queue-B9WZxanZ.js} +4 -4
- package/dist/emergency-queue-B9WZxanZ.js.map +1 -0
- package/dist/{emergency-queue-CNTRui5t.cjs → emergency-queue-HBpL5r3V.cjs} +2 -2
- package/dist/emergency-queue-HBpL5r3V.cjs.map +1 -0
- package/dist/error-like-B11pB4aL.js.map +1 -1
- package/dist/error-like-gGRx2s36.cjs.map +1 -1
- package/dist/{errors-Dh7kef0i.js → errors-D6bwgJtO.js} +3 -3
- package/dist/errors-D6bwgJtO.js.map +1 -0
- package/dist/{errors-tfEr48bS.cjs → errors-DCOCRdSi.cjs} +2 -2
- package/dist/errors-DCOCRdSi.cjs.map +1 -0
- package/dist/{factory-CJXVYp0R.cjs → factory-DLFDjdLv.cjs} +2 -2
- package/dist/factory-DLFDjdLv.cjs.map +1 -0
- package/dist/{factory-BonqI3NL.js → factory-e9Qo3K0z.js} +13 -13
- package/dist/factory-e9Qo3K0z.js.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-Cidk71ME.js.map +1 -1
- package/dist/guards-nJ70syPt.cjs.map +1 -1
- package/dist/{identity-Cxgj6pZX.cjs → identity-BlvlgjrU.cjs} +2 -2
- package/dist/identity-BlvlgjrU.cjs.map +1 -0
- package/dist/{identity-DT5VmvXy.js → identity-BrQp_5J5.js} +19 -19
- package/dist/identity-BrQp_5J5.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +112 -79
- package/dist/index.js +783 -635
- package/dist/index.js.map +1 -1
- package/dist/{indexeddb-storage-CIoW21Xd.cjs → indexeddb-storage-CtLvZH1r.cjs} +2 -2
- package/dist/indexeddb-storage-CtLvZH1r.cjs.map +1 -0
- package/dist/{indexeddb-storage-BJVtiQKm.js → indexeddb-storage-DLXQzAGh.js} +4 -4
- package/dist/indexeddb-storage-DLXQzAGh.js.map +1 -0
- package/dist/{interactions-DTgKy_6K.js → interactions-B6z2I4tU.js} +3 -3
- package/dist/interactions-B6z2I4tU.js.map +1 -0
- package/dist/{interactions-fEN6FbVo.cjs → interactions-P6pz08Jn.cjs} +2 -2
- package/dist/interactions-P6pz08Jn.cjs.map +1 -0
- package/dist/{journey-CuJrHzEg.js → journey-35yCMNFo.js} +20 -19
- package/dist/journey-35yCMNFo.js.map +1 -0
- package/dist/journey-DAGh5h9k.cjs +2 -0
- package/dist/journey-DAGh5h9k.cjs.map +1 -0
- package/dist/keys-BHhw_0Wh.cjs.map +1 -1
- package/dist/keys-BU9j5YqW.js.map +1 -1
- package/dist/{library-console-D2GY9Or6.cjs → library-console-BFWEuQsl.cjs} +2 -2
- package/dist/library-console-BFWEuQsl.cjs.map +1 -0
- package/dist/{library-console-C1m6g1BR.js → library-console-Dl_Ly6DQ.js} +2 -2
- package/dist/library-console-Dl_Ly6DQ.js.map +1 -0
- package/dist/{library-request-1BX_UlaX.cjs → library-request-Da-CHKzT.cjs} +2 -2
- package/dist/library-request-Da-CHKzT.cjs.map +1 -0
- package/dist/{library-request-BQBT9N9Q.js → library-request-nI6pvI6I.js} +2 -2
- package/dist/library-request-nI6pvI6I.js.map +1 -0
- package/dist/{lifecycle-2EtUaRpo.cjs → lifecycle-BGGOcN4N.cjs} +2 -2
- package/dist/lifecycle-BGGOcN4N.cjs.map +1 -0
- package/dist/{lifecycle-BaKx_-32.js → lifecycle-CZ6RRXc6.js} +2 -2
- package/dist/lifecycle-CZ6RRXc6.js.map +1 -0
- package/dist/{log-record-i9zOTkpQ.cjs → log-record-D7bA1RPb.cjs} +2 -2
- package/dist/log-record-D7bA1RPb.cjs.map +1 -0
- package/dist/{log-record-CAoGBBf3.js → log-record-DIA6McNr.js} +2 -2
- package/dist/log-record-DIA6McNr.js.map +1 -0
- package/dist/{long-frames-Czk7IupC.js → long-frames-430_85Da.js} +8 -6
- package/dist/long-frames-430_85Da.js.map +1 -0
- package/dist/long-frames-Dd8tsi2U.cjs +2 -0
- package/dist/long-frames-Dd8tsi2U.cjs.map +1 -0
- package/dist/models/batch.d.ts +14 -15
- package/dist/models/bus.d.ts +24 -24
- package/dist/models/config.d.ts +402 -216
- package/dist/models/drop.d.ts +13 -11
- package/dist/models/health.d.ts +13 -13
- package/dist/models/log-record.d.ts +13 -14
- package/dist/models/metric.d.ts +82 -17
- package/dist/models/plugin.d.ts +13 -13
- package/dist/models/replay.d.ts +60 -0
- package/dist/models/serializer.d.ts +2 -3
- package/dist/models/stats.d.ts +2 -2
- package/dist/models/storage.d.ts +12 -11
- package/dist/{network-DBNwApoF.js → network-C7SkLf4v.js} +12 -12
- package/dist/network-C7SkLf4v.js.map +1 -0
- package/dist/{network-xbbuvG_6.cjs → network-pEX3PAJv.cjs} +2 -2
- package/dist/network-pEX3PAJv.cjs.map +1 -0
- package/dist/openfin-Bxelt0yg.js.map +1 -1
- package/dist/openfin-DtH2f7zX.cjs.map +1 -1
- package/dist/otlp-2MCrC3kd.cjs +2 -0
- package/dist/otlp-2MCrC3kd.cjs.map +1 -0
- package/dist/{otlp-BTJdIa6F.js → otlp-COq033e3.js} +25 -32
- package/dist/otlp-COq033e3.js.map +1 -0
- package/dist/patch-BX8KrPCT.cjs.map +1 -1
- package/dist/patch-UdPz1ea8.js.map +1 -1
- package/dist/{platform-C2Ez5kDc.cjs → platform-12uR7kBQ.cjs} +2 -2
- package/dist/platform-12uR7kBQ.cjs.map +1 -0
- package/dist/{platform-DkcuXwe-.js → platform-CVewe4wQ.js} +7 -7
- package/dist/platform-CVewe4wQ.js.map +1 -0
- package/dist/profiler-BVWIOgnq.js +310 -0
- package/dist/profiler-BVWIOgnq.js.map +1 -0
- package/dist/profiler-eVCknCzS.cjs +2 -0
- package/dist/profiler-eVCknCzS.cjs.map +1 -0
- package/dist/profiler-frames-CLXlT_xL.js +86 -0
- package/dist/profiler-frames-CLXlT_xL.js.map +1 -0
- package/dist/profiler-frames-Dg2OebB2.cjs +2 -0
- package/dist/profiler-frames-Dg2OebB2.cjs.map +1 -0
- package/dist/{remote-rules-Cfb4K-Nl.js → remote-rules-BJGDJGwA.js} +27 -27
- package/dist/remote-rules-BJGDJGwA.js.map +1 -0
- package/dist/{remote-rules-vzvk7aKf.cjs → remote-rules-CJD3ToVk.cjs} +2 -2
- package/dist/remote-rules-CJD3ToVk.cjs.map +1 -0
- package/dist/replay-0zAJv9T3.js +338 -0
- package/dist/replay-0zAJv9T3.js.map +1 -0
- package/dist/replay-DomJpXqW.cjs +2 -0
- package/dist/replay-DomJpXqW.cjs.map +1 -0
- package/dist/{reports-Dk2YhKIh.cjs → reports-BsbqmP8h.cjs} +2 -2
- package/dist/reports-BsbqmP8h.cjs.map +1 -0
- package/dist/{reports-TA-zInnq.js → reports-BuXekPOS.js} +3 -3
- package/dist/reports-BuXekPOS.js.map +1 -0
- package/dist/{resource-timing-BLv3EA2A.js → resource-timing-CXGHwFRD.js} +4 -4
- package/dist/resource-timing-CXGHwFRD.js.map +1 -0
- package/dist/{resource-timing-Cysw1S1f.cjs → resource-timing-DkycFGDa.cjs} +2 -2
- package/dist/resource-timing-DkycFGDa.cjs.map +1 -0
- package/dist/{sampling-Ckh2yW9k.cjs → sampling-Dd0wllyq.cjs} +2 -2
- package/dist/sampling-Dd0wllyq.cjs.map +1 -0
- package/dist/{sampling-C4VV-1MS.js → sampling-UUDbi3K0.js} +9 -9
- package/dist/sampling-UUDbi3K0.js.map +1 -0
- package/dist/{sanitize-6ymPlVvP.js → sanitize-CNmsD9r3.js} +2 -2
- package/dist/sanitize-CNmsD9r3.js.map +1 -0
- package/dist/{sanitize-BAWzkZt0.cjs → sanitize-ChLn97Ch.cjs} +2 -2
- package/dist/sanitize-ChLn97Ch.cjs.map +1 -0
- package/dist/{select-ZF4by-lF.cjs → select-CTk-K5mG.cjs} +3 -3
- package/dist/select-CTk-K5mG.cjs.map +1 -0
- package/dist/{select-xtQaenIi.js → select-DPv_j6wq.js} +61 -61
- package/dist/select-DPv_j6wq.js.map +1 -0
- package/dist/{sender-CiMHC9YG.js → sender-15zEsZpr.js} +61 -60
- package/dist/sender-15zEsZpr.js.map +1 -0
- package/dist/sender-Bfpv9tad.cjs +2 -0
- package/dist/sender-Bfpv9tad.cjs.map +1 -0
- package/dist/storage/context-storage.d.ts +34 -33
- package/dist/storage/emergency-queue.d.ts +9 -9
- package/dist/storage/eviction.d.ts +12 -12
- package/dist/storage/factory.d.ts +8 -7
- package/dist/storage/gap.d.ts +6 -6
- package/dist/storage/idb-driver.d.ts +31 -32
- package/dist/storage/indexeddb-storage.d.ts +26 -27
- package/dist/storage/keys.d.ts +7 -7
- package/dist/storage/local-storage.d.ts +38 -38
- package/dist/storage/memory-storage.d.ts +21 -22
- package/dist/storage/persistence.d.ts +1 -1
- package/dist/storage-BA9RqRO-.cjs.map +1 -1
- package/dist/storage-DZwed89z.js.map +1 -1
- package/dist/{storm-VR024_QN.js → storm-BTSNTIWI.js} +2 -2
- package/dist/storm-BTSNTIWI.js.map +1 -0
- package/dist/{storm-CYi9Swpx.cjs → storm-D0_qZOEg.cjs} +2 -2
- package/dist/storm-D0_qZOEg.cjs.map +1 -0
- package/dist/transport/compression.d.ts +2 -2
- package/dist/transport/errors.d.ts +7 -7
- package/dist/transport/exit-flush.d.ts +39 -39
- package/dist/transport/headers.d.ts +2 -2
- package/dist/transport/http-transport.d.ts +28 -27
- package/dist/transport/memory-transport.d.ts +6 -6
- package/dist/transport/retry-engine.d.ts +35 -34
- package/dist/transport/serializers/ecs.d.ts +1 -1
- package/dist/transport/serializers/otlp-metrics.d.ts +1 -1
- package/dist/transport/serializers/otlp-traces.d.ts +1 -1
- package/dist/transport/serializers/otlp.d.ts +16 -16
- package/dist/transport/serializers/select.d.ts +7 -7
- package/dist/transport/status-transport.d.ts +20 -20
- package/dist/transport/worker-protocol.d.ts +3 -3
- package/dist/types-BAerHgCq.js.map +1 -1
- package/dist/types-C7WNpnG1.cjs.map +1 -1
- package/dist/{unclean-exit-DFUN57wY.cjs → unclean-exit-ClGzrc2A.cjs} +2 -2
- package/dist/unclean-exit-ClGzrc2A.cjs.map +1 -0
- package/dist/{unclean-exit-CwcUhFOn.js → unclean-exit-Cob_jyTv.js} +2 -2
- package/dist/unclean-exit-Cob_jyTv.js.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-CdYqx3PF.cjs +2 -0
- package/dist/user-timing-CdYqx3PF.cjs.map +1 -0
- package/dist/{user-timing-_jZIhDKI.js → user-timing-DgHubxCI.js} +5 -3
- package/dist/user-timing-DgHubxCI.js.map +1 -0
- package/dist/utils/console.d.ts +2 -2
- package/dist/utils/deadline.d.ts +4 -4
- package/dist/utils/error-like.d.ts +7 -7
- package/dist/utils/fixed-window.d.ts +9 -8
- package/dist/utils/global-scope.d.ts +8 -8
- package/dist/utils/guards.d.ts +2 -2
- package/dist/utils/identity.d.ts +17 -17
- package/dist/utils/library-console.d.ts +4 -4
- package/dist/utils/library-request.d.ts +10 -10
- package/dist/utils/lock.d.ts +10 -9
- package/dist/utils/openfin.d.ts +5 -5
- package/dist/utils/patch.d.ts +6 -6
- package/dist/utils/platform.d.ts +13 -11
- package/dist/utils/sanitize.d.ts +4 -4
- package/dist/utils/timer.d.ts +1 -1
- package/dist/utils/tracing.d.ts +38 -38
- package/dist/utils/unref.d.ts +3 -3
- package/dist/{web-socket-BWUoqBh8.cjs → web-socket-BTuvYoJI.cjs} +2 -2
- package/dist/web-socket-BTuvYoJI.cjs.map +1 -0
- package/dist/{web-socket-CV7yIMnm.js → web-socket-DthJuSAg.js} +4 -4
- package/dist/web-socket-DthJuSAg.js.map +1 -0
- package/dist/web-vitals-Ch5BpDmo.cjs +2 -0
- package/dist/web-vitals-Ch5BpDmo.cjs.map +1 -0
- package/dist/web-vitals-CsGCWnUr.js +77 -0
- package/dist/web-vitals-CsGCWnUr.js.map +1 -0
- package/dist/{worker-protocol-CrsdSDLn.js → worker-protocol-B0_8rWy5.js} +4 -4
- package/dist/worker-protocol-B0_8rWy5.js.map +1 -0
- package/dist/{worker-protocol-Bai7GAIA.cjs → worker-protocol-BjzFORfq.cjs} +2 -2
- package/dist/worker-protocol-BjzFORfq.cjs.map +1 -0
- package/dist/worker-server-4en-Lt-3.cjs +2 -0
- package/dist/worker-server-4en-Lt-3.cjs.map +1 -0
- package/dist/{worker-server-Dp5HYm4b.js → worker-server-Cne9MX9I.js} +8 -8
- package/dist/{worker-server-Dp5HYm4b.js.map → worker-server-Cne9MX9I.js.map} +1 -1
- package/dist/worker-transport-B-GF4Aqn.cjs +2 -0
- package/dist/worker-transport-B-GF4Aqn.cjs.map +1 -0
- package/dist/{worker-transport-D6jtgpqN.js → worker-transport-C3SjJAEC.js} +62 -61
- package/dist/worker-transport-C3SjJAEC.js.map +1 -0
- package/package.json +8 -2
- package/dist/batch-C8OcWR2L.cjs.map +0 -1
- package/dist/batch-CL9uWYY3.js.map +0 -1
- 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.map +0 -1
- 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/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.map +0 -1
- package/dist/emergency-queue-CNTRui5t.cjs.map +0 -1
- package/dist/emergency-queue-Zy6lNafo.js.map +0 -1
- package/dist/errors-Dh7kef0i.js.map +0 -1
- package/dist/errors-tfEr48bS.cjs.map +0 -1
- package/dist/factory-BonqI3NL.js.map +0 -1
- package/dist/factory-CJXVYp0R.cjs.map +0 -1
- 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.map +0 -1
- package/dist/interactions-DTgKy_6K.js.map +0 -1
- 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/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.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.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.map +0 -1
- package/dist/network-DBNwApoF.js.map +0 -1
- 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.map +0 -1
- package/dist/remote-rules-vzvk7aKf.cjs.map +0 -1
- 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.map +0 -1
- package/dist/sampling-C4VV-1MS.js.map +0 -1
- 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.map +0 -1
- package/dist/select-xtQaenIi.js.map +0 -1
- 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/storm-CYi9Swpx.cjs.map +0 -1
- package/dist/storm-VR024_QN.js.map +0 -1
- package/dist/unclean-exit-CwcUhFOn.js.map +0 -1
- 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/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.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-transport-Bwej4N2e.cjs +0 -2
- package/dist/worker-transport-Bwej4N2e.cjs.map +0 -1
- package/dist/worker-transport-D6jtgpqN.js.map +0 -1
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
/** Category of a breadcrumb event. */
|
|
2
|
-
export type BreadcrumbCategory = "log" | "action" | "event" | "click" | "navigation" | "http" | "console" | "frame" | "custom";
|
|
3
|
-
/** Short summary of one event
|
|
2
|
+
export type BreadcrumbCategory = "log" | "action" | "event" | "click" | "navigation" | "http" | "console" | "frame" | "profile" | "custom";
|
|
3
|
+
/** Short summary of one event, kept so an error record can carry it. */
|
|
4
4
|
export interface Breadcrumb {
|
|
5
5
|
/** Timestamp in epoch milliseconds. */
|
|
6
6
|
t: number;
|
|
7
7
|
/** Category of the event. */
|
|
8
8
|
category: BreadcrumbCategory;
|
|
9
|
-
/**
|
|
9
|
+
/** Human-readable description of the event. */
|
|
10
10
|
message: string;
|
|
11
11
|
/** Optional contextual metadata. */
|
|
12
12
|
data?: Record<string, unknown>;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
14
|
+
/** Fixed-size ring buffer that keeps recent breadcrumbs in time order. */
|
|
15
15
|
export declare class BreadcrumbBuffer {
|
|
16
|
-
/**
|
|
16
|
+
/** The ring's backing array. */
|
|
17
17
|
private buffer;
|
|
18
18
|
/** Next write index in the circular buffer. */
|
|
19
19
|
private pointer;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* True once the pointer has wrapped past the capacity. The pointer alone can't tell an
|
|
22
|
+
* empty ring from one that wrapped back to index 0.
|
|
23
23
|
*/
|
|
24
24
|
private filled;
|
|
25
|
-
/** Maximum number of breadcrumbs
|
|
25
|
+
/** Maximum number of breadcrumbs the buffer keeps. */
|
|
26
26
|
private capacity;
|
|
27
27
|
/**
|
|
28
|
-
* @param capacity Maximum number of breadcrumbs.
|
|
28
|
+
* @param capacity Maximum number of breadcrumbs. 0 turns the buffer off. Any other value
|
|
29
|
+
* below the minimum size is raised to it.
|
|
29
30
|
*/
|
|
30
31
|
constructor(capacity: number);
|
|
31
32
|
/**
|
|
32
|
-
* Changes the capacity
|
|
33
|
-
* @param capacity New capacity.
|
|
33
|
+
* Changes the capacity, keeping the most recent breadcrumbs that fit.
|
|
34
|
+
* @param capacity New capacity. Pass 0 to drop the stored breadcrumbs and turn the buffer off.
|
|
34
35
|
*/
|
|
35
36
|
resize(capacity: number): void;
|
|
36
37
|
/**
|
|
37
|
-
* Adds a breadcrumb. When the buffer is full,
|
|
38
|
+
* Adds a breadcrumb. When the buffer is full, it overwrites the oldest one.
|
|
38
39
|
* @param crumb Breadcrumb to add.
|
|
39
40
|
*/
|
|
40
41
|
push(crumb: Breadcrumb): void;
|
|
41
|
-
/** Removes all breadcrumbs
|
|
42
|
+
/** Removes all breadcrumbs, so a new session never carries the previous user's trail. */
|
|
42
43
|
clear(): void;
|
|
43
44
|
/**
|
|
44
|
-
* Returns all stored breadcrumbs
|
|
45
|
-
* @returns
|
|
45
|
+
* Returns all stored breadcrumbs, oldest to newest.
|
|
46
|
+
* @returns The breadcrumbs in time order.
|
|
46
47
|
*/
|
|
47
48
|
snapshot(): Breadcrumb[];
|
|
48
49
|
}
|
package/dist/core/config.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ObservabilityConfig, ResolvedConfig } from "../models/config";
|
|
2
2
|
import type { Diagnostics } from "./diagnostics";
|
|
3
3
|
/**
|
|
4
|
-
* Resolves partial configuration
|
|
4
|
+
* Resolves partial configuration input into a validated ResolvedConfig.
|
|
5
5
|
* @param input Partial consumer configuration options.
|
|
6
6
|
* @param diagnostics Diagnostics reporter.
|
|
7
|
-
* @param previous
|
|
7
|
+
* @param previous The active configuration, for an incremental reconfigure.
|
|
8
8
|
* @returns Complete, validated configuration object.
|
|
9
9
|
*/
|
|
10
10
|
export declare function resolveConfig(input: Partial<ObservabilityConfig>, diagnostics: Diagnostics, previous?: ResolvedConfig): ResolvedConfig;
|
|
11
11
|
/**
|
|
12
|
-
* Changes the active configuration object in place
|
|
12
|
+
* Changes the active configuration object in place, so subsystems holding a section
|
|
13
13
|
* reference see the update.
|
|
14
14
|
* @param target Active configuration object to change.
|
|
15
15
|
* @param next Configuration object with the new values.
|
package/dist/core/context.d.ts
CHANGED
|
@@ -3,27 +3,27 @@ export declare class ContextStore {
|
|
|
3
3
|
/** Backing store mapping attribute keys to raw values. */
|
|
4
4
|
private readonly map;
|
|
5
5
|
/**
|
|
6
|
-
* Sets
|
|
6
|
+
* Sets one ambient context attribute.
|
|
7
7
|
* @param key Attribute key.
|
|
8
8
|
* @param value Raw attribute value.
|
|
9
9
|
*/
|
|
10
10
|
set(key: string, value: unknown): void;
|
|
11
11
|
/**
|
|
12
|
-
* Merges
|
|
13
|
-
* @param values
|
|
12
|
+
* Merges several key-value pairs into the ambient context.
|
|
13
|
+
* @param values Attributes to merge.
|
|
14
14
|
*/
|
|
15
15
|
setMany(values: Record<string, unknown>): void;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Removes an attribute from the ambient context.
|
|
18
18
|
* @param key Attribute key to remove.
|
|
19
19
|
*/
|
|
20
20
|
remove(key: string): void;
|
|
21
21
|
/** Removes all ambient context attributes. */
|
|
22
22
|
clear(): void;
|
|
23
23
|
/**
|
|
24
|
-
* Returns a copy of all ambient context attributes
|
|
25
|
-
*
|
|
26
|
-
* @returns Plain object
|
|
24
|
+
* Returns a copy of all ambient context attributes, so a merge target or a sanitizer
|
|
25
|
+
* can't change the store.
|
|
26
|
+
* @returns Plain object with the stored key-value pairs.
|
|
27
27
|
*/
|
|
28
28
|
getAll(): Record<string, unknown>;
|
|
29
29
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import type { DebugBufferPolicy } from "../models/config";
|
|
2
2
|
import type { LogRecord } from "../models/log-record";
|
|
3
|
-
/** Bounded list of the records that
|
|
3
|
+
/** Bounded list of the records that were dropped by level or by sampling. */
|
|
4
4
|
export declare class DebugBuffer {
|
|
5
5
|
private readonly policy;
|
|
6
|
-
/** Kept records, oldest first.
|
|
6
|
+
/** Kept records, oldest first. Can grow to twice maxRecords between trims. */
|
|
7
7
|
private kept;
|
|
8
8
|
/**
|
|
9
|
-
* @param policy
|
|
9
|
+
* @param policy Returns the current settings. A later configure() can change them.
|
|
10
10
|
*/
|
|
11
11
|
constructor(policy: () => DebugBufferPolicy);
|
|
12
12
|
/**
|
|
13
|
-
* Keeps a record. When the buffer is full, the oldest record
|
|
14
|
-
* @param record Built record. The privacy hooks already
|
|
13
|
+
* Keeps a record. When the buffer is full, the oldest record goes first.
|
|
14
|
+
* @param record Built record. The privacy hooks have already run on it.
|
|
15
15
|
*/
|
|
16
16
|
push(record: LogRecord): void;
|
|
17
17
|
/**
|
|
18
|
-
* Takes the kept records that
|
|
19
|
-
* @returns The records, oldest first
|
|
18
|
+
* Takes the kept records that aren't too old and empties the buffer.
|
|
19
|
+
* @returns The records, oldest first, each with `uiobs.debug_buffer: true`.
|
|
20
20
|
*/
|
|
21
21
|
drain(): LogRecord[];
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Returns the kept records without taking them.
|
|
24
24
|
* @returns The records, oldest first.
|
|
25
25
|
*/
|
|
26
26
|
snapshot(): LogRecord[];
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Returns the kept records that the current settings allow. A disabled buffer empties itself.
|
|
29
29
|
* @returns The records, oldest first.
|
|
30
30
|
*/
|
|
31
31
|
private live;
|
|
32
|
-
/** Removes
|
|
32
|
+
/** Removes every kept record, so nothing from an old session or identity goes out. */
|
|
33
33
|
clear(): void;
|
|
34
34
|
}
|
|
@@ -2,10 +2,10 @@ import type { ResolvedConfig } from "../models/config";
|
|
|
2
2
|
import { type SanitizeLimits } from "../utils/sanitize";
|
|
3
3
|
import type { Diagnostics } from "./diagnostics";
|
|
4
4
|
/**
|
|
5
|
-
* Copies the config for a support ticket
|
|
6
|
-
* becomes its name
|
|
5
|
+
* Copies the config for a support ticket, without the headers and with every URL trimmed. A
|
|
6
|
+
* function becomes its name and a RegExp its text.
|
|
7
7
|
* @param config Active configuration.
|
|
8
|
-
* @param limits Limits
|
|
8
|
+
* @param limits Limits for the copy, the same as for record attributes.
|
|
9
9
|
* @param diagnostics Diagnostics reporter.
|
|
10
10
|
* @returns JSON-safe copy of the config.
|
|
11
11
|
*/
|
package/dist/core/deferred.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Diagnostics } from "./diagnostics";
|
|
2
|
-
/** Queues a call without reading its payload. A full queue
|
|
2
|
+
/** Queues a call without reading its payload. A full queue builds its pending calls first. */
|
|
3
3
|
export declare function deferWrite(owner: object, work: () => void, diagnostics: Diagnostics, limit: number): void;
|
|
4
4
|
/** Builds pending calls before a flush, a session change or a delivery identity change. */
|
|
5
5
|
export declare function drainDeferred(owner: object): void;
|
|
6
|
-
/** Releases calls that a hook queues during shutdown.
|
|
6
|
+
/** Releases calls that a hook queues during shutdown. No records were built for them. */
|
|
7
7
|
export declare function cancelDeferred(owner: object): void;
|
|
@@ -4,7 +4,7 @@ export type DiagnosticCode = "config.locked" | "security.rotated" | "security.co
|
|
|
4
4
|
export interface DiagnosticEvent {
|
|
5
5
|
/** Diagnostic fault code. */
|
|
6
6
|
code: DiagnosticCode;
|
|
7
|
-
/**
|
|
7
|
+
/** Human-readable description. */
|
|
8
8
|
message: string;
|
|
9
9
|
/** Structured context metadata. */
|
|
10
10
|
detail?: Record<string, unknown>;
|
|
@@ -12,23 +12,23 @@ export interface DiagnosticEvent {
|
|
|
12
12
|
cause?: unknown;
|
|
13
13
|
/** Event timestamp in epoch milliseconds. */
|
|
14
14
|
at: number;
|
|
15
|
-
/** Total count of this code since startup
|
|
15
|
+
/** Total count of this code since startup, including rate-limited occurrences. */
|
|
16
16
|
count: number;
|
|
17
17
|
}
|
|
18
18
|
/** Consumer callback for receiving rate-limited diagnostic events. */
|
|
19
19
|
export type DiagnosticHandler = (event: DiagnosticEvent) => void;
|
|
20
|
-
/** Reports internal errors.
|
|
20
|
+
/** Reports internal errors. Dispatch is rate limited, but every event is counted. */
|
|
21
21
|
export declare class Diagnostics {
|
|
22
22
|
private handler?;
|
|
23
23
|
private throttleMs;
|
|
24
24
|
private consoleFallback;
|
|
25
25
|
/** Running occurrence counts per diagnostic code. */
|
|
26
26
|
private readonly counters;
|
|
27
|
-
/** Timestamp of last emitted event per code in epoch milliseconds. */
|
|
27
|
+
/** Timestamp of the last emitted event per code, in epoch milliseconds. */
|
|
28
28
|
private readonly lastEmitted;
|
|
29
29
|
/**
|
|
30
|
-
* @param handler Optional
|
|
31
|
-
* @param throttleMs Minimum
|
|
30
|
+
* @param handler Optional listener for diagnostic events.
|
|
31
|
+
* @param throttleMs Minimum time in milliseconds between emitted events for one code.
|
|
32
32
|
* @param consoleFallback True to print a fixed warning if the diagnostic handler throws.
|
|
33
33
|
*/
|
|
34
34
|
constructor(handler?: DiagnosticHandler | undefined, throttleMs?: number, consoleFallback?: boolean);
|
|
@@ -39,44 +39,47 @@ export declare class Diagnostics {
|
|
|
39
39
|
*/
|
|
40
40
|
setPolicy(throttleMs: number, consoleFallback: boolean): void;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Replaces or removes the active diagnostic event handler.
|
|
43
43
|
* @param handler New diagnostic event handler.
|
|
44
44
|
*/
|
|
45
45
|
setHandler(handler?: DiagnosticHandler): void;
|
|
46
46
|
/**
|
|
47
|
-
* Increments the count for a code
|
|
47
|
+
* Increments the count for a code without calling the handler.
|
|
48
48
|
* @param code Diagnostic code to increment.
|
|
49
|
-
* @param by
|
|
49
|
+
* @param by Amount to add.
|
|
50
50
|
* @returns New total for the code.
|
|
51
51
|
*/
|
|
52
52
|
count(code: DiagnosticCode, by?: number): number;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* Bumps the counter for the code and, once the throttle window has passed, sends the event
|
|
55
|
+
* to the handler. Never throws.
|
|
56
56
|
* @param code Diagnostic code.
|
|
57
57
|
* @param message Event description.
|
|
58
58
|
* @param detail Optional structured metadata.
|
|
59
59
|
* @param cause Caught error instance or reason.
|
|
60
|
+
* @returns False if the throttle dropped the event.
|
|
60
61
|
*/
|
|
61
|
-
report(code: DiagnosticCode, message: string, detail?: Record<string, unknown>, cause?: unknown):
|
|
62
|
+
report(code: DiagnosticCode, message: string, detail?: Record<string, unknown>, cause?: unknown): boolean;
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* Runs a synchronous function and reports anything it throws to diagnostics.
|
|
64
65
|
* @param code Diagnostic code to report on throw.
|
|
65
|
-
* @param message ASD-STE100 sentence that states the failure. The handler
|
|
66
|
-
*
|
|
67
|
-
* @
|
|
66
|
+
* @param message ASD-STE100 sentence that states the failure. The handler receives it as the
|
|
67
|
+
* event message.
|
|
68
|
+
* @param fn Function to run.
|
|
69
|
+
* @returns The function's return value, or undefined if it threw.
|
|
68
70
|
*/
|
|
69
71
|
guard<T>(code: DiagnosticCode, message: string, fn: () => T): T | undefined;
|
|
70
72
|
/**
|
|
71
|
-
*
|
|
73
|
+
* Runs an asynchronous function and reports a rejected promise to diagnostics.
|
|
72
74
|
* @param code Diagnostic code to report on rejection.
|
|
73
|
-
* @param message ASD-STE100 sentence that states the failure. The handler
|
|
74
|
-
*
|
|
75
|
-
* @
|
|
75
|
+
* @param message ASD-STE100 sentence that states the failure. The handler receives it as the
|
|
76
|
+
* event message.
|
|
77
|
+
* @param fn Async function to run.
|
|
78
|
+
* @returns Promise that resolves to the return value, or to undefined on rejection.
|
|
76
79
|
*/
|
|
77
80
|
guardAsync<T>(code: DiagnosticCode, message: string, fn: () => Promise<T>): Promise<T | undefined>;
|
|
78
81
|
/**
|
|
79
|
-
* Returns a copy of
|
|
82
|
+
* Returns a copy of the cumulative diagnostic counts since initialization.
|
|
80
83
|
* @returns Map of diagnostic codes to occurrence counts.
|
|
81
84
|
*/
|
|
82
85
|
snapshot(): Record<string, number>;
|
package/dist/core/drops.d.ts
CHANGED
|
@@ -2,28 +2,28 @@ import type { ResolvedConfig } from "../models/config";
|
|
|
2
2
|
import type { LossReason } from "../models/drop";
|
|
3
3
|
import type { LogRecord } from "../models/log-record";
|
|
4
4
|
import type { Diagnostics } from "./diagnostics";
|
|
5
|
-
/** Collects lost records and
|
|
5
|
+
/** Collects lost records and hands the onDrop hook one summary per reason. */
|
|
6
6
|
export declare class DropReporter {
|
|
7
7
|
private readonly config;
|
|
8
8
|
private readonly diagnostics;
|
|
9
|
-
/** Summaries
|
|
9
|
+
/** Summaries waiting for the end of the task, one per reason. */
|
|
10
10
|
private readonly pending;
|
|
11
|
-
/** True while a microtask
|
|
11
|
+
/** True while a microtask is waiting to send the summaries. */
|
|
12
12
|
private scheduled;
|
|
13
|
-
/** True while the hook runs. A loss
|
|
13
|
+
/** True while the hook runs. A loss the hook itself causes isn't reported again. */
|
|
14
14
|
private reporting;
|
|
15
15
|
/**
|
|
16
|
-
* @param config Active configuration.
|
|
16
|
+
* @param config Active configuration. `onDrop` is read from it on every call.
|
|
17
17
|
* @param diagnostics Diagnostics reporter.
|
|
18
18
|
*/
|
|
19
19
|
constructor(config: ResolvedConfig, diagnostics: Diagnostics);
|
|
20
20
|
/**
|
|
21
|
-
* Adds lost records to the summary
|
|
21
|
+
* Adds lost records to the summary for their reason. Does nothing without an onDrop hook.
|
|
22
22
|
* @param reason Cause of the loss.
|
|
23
23
|
* @param records Lost records.
|
|
24
24
|
* @param batchIds Ids of the lost batches.
|
|
25
25
|
*/
|
|
26
26
|
add(reason: LossReason, records: readonly LogRecord[], batchIds?: readonly string[]): void;
|
|
27
|
-
/**
|
|
27
|
+
/** Hands every waiting summary to the hook. A hook that throws doesn't stop the others. */
|
|
28
28
|
private flush;
|
|
29
29
|
}
|
|
@@ -4,7 +4,7 @@ export declare class HoldBuffer {
|
|
|
4
4
|
private readonly onDrop;
|
|
5
5
|
/** Held records in arrival order. */
|
|
6
6
|
private held;
|
|
7
|
-
/** Number of held actions.
|
|
7
|
+
/** Number of held actions. Counting them spots a full buffer without a scan on every push. */
|
|
8
8
|
private actions;
|
|
9
9
|
/**
|
|
10
10
|
* @param onDrop Receives the record that a full buffer drops.
|
package/dist/core/journey.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { type IdentityStores } from "../utils/identity";
|
|
2
2
|
import type { Diagnostics } from "./diagnostics";
|
|
3
|
-
/** Lifetime rules for a journey
|
|
3
|
+
/** Lifetime rules for a journey, which is one user task spanning several contexts. */
|
|
4
4
|
export interface JourneyOptions {
|
|
5
|
-
/** Maximum
|
|
5
|
+
/** Maximum time a journey stays open, in milliseconds. After that the engine ends it. */
|
|
6
6
|
maxAgeMs: number;
|
|
7
7
|
/** True if the journey ends for all contexts when the owning context closes. */
|
|
8
8
|
endOnOwnerClose: boolean;
|
|
9
9
|
/** Query parameter checked at boot for a seeded journey token. */
|
|
10
10
|
urlParam: string;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
12
|
+
/** The journey lifetime policy in effect. Tests build an engine with shorter values. */
|
|
13
13
|
export declare const JOURNEY_OPTIONS: JourneyOptions;
|
|
14
14
|
/** User journey workflow context shared across windows and applications. */
|
|
15
15
|
export interface Journey {
|
|
16
16
|
/** Unique journey correlation identifier. */
|
|
17
17
|
id: string;
|
|
18
|
-
/**
|
|
18
|
+
/** Human-readable name of the journey's workflow. */
|
|
19
19
|
name: string;
|
|
20
20
|
/** Journey start timestamp in epoch milliseconds. */
|
|
21
21
|
startedAt: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Parent journey ID, set when the journey branches from an earlier one. */
|
|
23
23
|
parentId?: string;
|
|
24
24
|
/** Context identifier of the document that started the journey. */
|
|
25
25
|
ownerContextId: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Parses and validates an unknown value into a Journey object. The value comes from
|
|
29
|
-
* sessionStorage or from
|
|
29
|
+
* sessionStorage or from another realm's bus message.
|
|
30
30
|
* @param value Unverified parsed JSON value.
|
|
31
31
|
* @returns Validated Journey instance or null.
|
|
32
32
|
*/
|
|
@@ -53,13 +53,13 @@ export declare class JourneyEngine {
|
|
|
53
53
|
/** Returns the active journey instance or null. */
|
|
54
54
|
current(): Journey | null;
|
|
55
55
|
/**
|
|
56
|
-
* Finds and adopts the initial journey.
|
|
56
|
+
* Finds and adopts the initial journey. Checks the URL query first, then sessionStorage,
|
|
57
57
|
* then OpenFin customData.
|
|
58
58
|
* @returns Promise that resolves when journey initialization completes.
|
|
59
59
|
*/
|
|
60
60
|
bootstrap(): Promise<void>;
|
|
61
61
|
/**
|
|
62
|
-
* Starts a new journey
|
|
62
|
+
* Starts a new journey, replacing the active one and telling connected peers.
|
|
63
63
|
* @param name Human-readable workflow name.
|
|
64
64
|
* @param opts Optional parent linkage and pre-assigned identifier.
|
|
65
65
|
* @returns Started Journey instance.
|
|
@@ -69,19 +69,18 @@ export declare class JourneyEngine {
|
|
|
69
69
|
id?: string;
|
|
70
70
|
}): Journey;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
73
|
-
* journey token too long for adoptJourney().
|
|
72
|
+
* Picks the id for a new journey. A longer id, or one with multibyte characters, would make
|
|
73
|
+
* the journey token too long for adoptJourney().
|
|
74
74
|
* @param requested Id from the app, or undefined.
|
|
75
|
-
* @returns The requested id when it matches JOURNEY_ID_PATTERN,
|
|
75
|
+
* @returns The requested id when it matches JOURNEY_ID_PATTERN, otherwise a new id.
|
|
76
76
|
*/
|
|
77
77
|
private journeyId;
|
|
78
78
|
/** Ends the active journey and broadcasts the change. */
|
|
79
79
|
end(): void;
|
|
80
80
|
/**
|
|
81
|
-
* Applies a journey update from a bus peer
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* restart the timer.
|
|
81
|
+
* Applies a journey update from a bus peer without broadcasting it again. An echo would
|
|
82
|
+
* make two windows send the change back and forth forever. A journey with the same ID as
|
|
83
|
+
* the active one is ignored, so an echo can't restart the timer.
|
|
85
84
|
* @param journey Updated Journey instance or null.
|
|
86
85
|
*/
|
|
87
86
|
applyRemote(journey: Journey | null): void;
|
|
@@ -114,8 +113,8 @@ export declare class JourneyEngine {
|
|
|
114
113
|
private restore;
|
|
115
114
|
/**
|
|
116
115
|
* Decodes a base64url token into a validated Journey object. Anyone can edit the URL
|
|
117
|
-
* that holds a token
|
|
118
|
-
*
|
|
116
|
+
* that holds a token, and every step throws on bad input. The guard reports the failure
|
|
117
|
+
* instead of letting it throw.
|
|
119
118
|
* @param token Encoded token string.
|
|
120
119
|
* @returns Decoded Journey instance or null on decode error.
|
|
121
120
|
*/
|
|
@@ -135,15 +134,15 @@ export declare class JourneyEngine {
|
|
|
135
134
|
*/
|
|
136
135
|
private readUrlToken;
|
|
137
136
|
/**
|
|
138
|
-
* Removes the journey token from the address bar
|
|
139
|
-
*
|
|
137
|
+
* Removes the journey token from the address bar once the engine has adopted it.
|
|
138
|
+
* Otherwise a copied or bookmarked link would start the same journey in another session.
|
|
140
139
|
*/
|
|
141
140
|
private removeUrlToken;
|
|
142
141
|
/**
|
|
143
|
-
* Reads the journey token from
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* @returns Promise that resolves to token string or null.
|
|
142
|
+
* Reads the journey token from customData in the OpenFin window options. The wait is
|
|
143
|
+
* capped by OPENFIN_OPTIONS_TIMEOUT_MS. At the deadline we report openfin.unavailable and
|
|
144
|
+
* return no token. A window with no token gives the same result.
|
|
145
|
+
* @returns Promise that resolves to the token string or null.
|
|
147
146
|
*/
|
|
148
147
|
private readOpenFinToken;
|
|
149
148
|
}
|
package/dist/core/logger.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export declare class OneLogger {
|
|
|
10
10
|
private readonly bind;
|
|
11
11
|
readonly namespace: string;
|
|
12
12
|
private readonly options;
|
|
13
|
-
/** log.type
|
|
13
|
+
/** log.type the level methods use. "system" only for the library's own namespaces. */
|
|
14
14
|
private readonly levelType;
|
|
15
15
|
/**
|
|
16
|
-
* @param bind Returns the runtime for each write
|
|
17
|
-
*
|
|
16
|
+
* @param bind Returns the runtime for each write, so a logger created before configure()
|
|
17
|
+
* still writes to the configured runtime.
|
|
18
18
|
* @param namespace Application subsystem or module namespace.
|
|
19
19
|
* @param options Scoped context options.
|
|
20
20
|
*/
|
|
@@ -51,23 +51,23 @@ export declare class OneLogger {
|
|
|
51
51
|
*/
|
|
52
52
|
warn: (message: string, payload?: Record<string, unknown>) => void;
|
|
53
53
|
/**
|
|
54
|
-
* Logs an error record with the breadcrumb history.
|
|
55
|
-
* object in the error slot
|
|
54
|
+
* Logs an error record with the breadcrumb history. When payload is omitted, a plain
|
|
55
|
+
* object in the error slot is used as the payload.
|
|
56
56
|
* @param message Error description.
|
|
57
57
|
* @param error Caught error instance, reason, or payload.
|
|
58
58
|
* @param payload Optional contextual attributes.
|
|
59
59
|
*/
|
|
60
60
|
error: (message: string, error?: unknown, payload?: Record<string, unknown>) => void;
|
|
61
61
|
/**
|
|
62
|
-
* Logs a fatal error record.
|
|
63
|
-
*
|
|
62
|
+
* Logs a fatal error record. When payload is omitted, a plain object in the error slot
|
|
63
|
+
* is used as the payload.
|
|
64
64
|
* @param message Error description.
|
|
65
65
|
* @param error Caught error instance, reason, or payload.
|
|
66
66
|
* @param payload Optional contextual attributes.
|
|
67
67
|
*/
|
|
68
68
|
fatal: (message: string, error?: unknown, payload?: Record<string, unknown>) => void;
|
|
69
69
|
/**
|
|
70
|
-
* Logs
|
|
70
|
+
* Logs a user action.
|
|
71
71
|
* @param name Action identifier.
|
|
72
72
|
* @param payload Optional action attributes.
|
|
73
73
|
*/
|
|
@@ -104,42 +104,43 @@ export declare class OneLogger {
|
|
|
104
104
|
*/
|
|
105
105
|
timeAsync: <T>(label: string, fn: () => Promise<T>, attributes?: Record<string, unknown>) => Promise<T>;
|
|
106
106
|
/**
|
|
107
|
-
* Builds and emits a standard log record
|
|
107
|
+
* Builds and emits a standard log record, and prints it to the console.
|
|
108
108
|
* @param level Severity level.
|
|
109
109
|
* @param type Record classification.
|
|
110
110
|
* @param body Primary message.
|
|
111
111
|
* @param payload Optional contextual attributes.
|
|
112
112
|
*/
|
|
113
113
|
private write;
|
|
114
|
-
/** Runs a call
|
|
114
|
+
/** Runs a call right away, or queues it without reading its payload. */
|
|
115
115
|
private submit;
|
|
116
|
-
/** Builds a standard record
|
|
116
|
+
/** Builds a standard record once the call's payload is ready to read. */
|
|
117
117
|
private writeNow;
|
|
118
118
|
/**
|
|
119
|
-
* Builds and emits an error record with breadcrumbs
|
|
119
|
+
* Builds and emits an error record with breadcrumbs, and prints it to the console.
|
|
120
120
|
* @param level Severity level ("ERROR" or "FATAL").
|
|
121
121
|
* @param message Error description.
|
|
122
122
|
* @param error Caught error instance, reason, or payload.
|
|
123
123
|
* @param payload Optional contextual attributes.
|
|
124
124
|
*/
|
|
125
125
|
private writeError;
|
|
126
|
-
/** Builds an error record
|
|
126
|
+
/** Builds an error record once the deferred queue releases its payload. */
|
|
127
127
|
private writeErrorNow;
|
|
128
128
|
/**
|
|
129
|
-
* Prints one log line. With a redact hook, the line shows only what
|
|
130
|
-
* A host can record console arguments
|
|
131
|
-
*
|
|
129
|
+
* Prints one log line. With a redact hook or processors, the line shows only what they
|
|
130
|
+
* returned. A host can record console arguments, so the console must not show what the hooks
|
|
131
|
+
* remove.
|
|
132
|
+
* @param runtime The runtime for this write.
|
|
132
133
|
* @param level Severity level.
|
|
133
134
|
* @param message Primary message.
|
|
134
135
|
* @param payload Caller payload.
|
|
135
|
-
* @param error
|
|
136
|
-
* @param record Built record, or null if
|
|
137
|
-
* @param dropped
|
|
136
|
+
* @param error The error from an error call.
|
|
137
|
+
* @param record Built record, or null if it was never built or redact dropped it.
|
|
138
|
+
* @param dropped Why the builder dropped the record, if it did.
|
|
138
139
|
*/
|
|
139
140
|
private print;
|
|
140
141
|
/**
|
|
141
|
-
*
|
|
142
|
-
* @param runtime
|
|
142
|
+
* Checks whether the console prints a level that we don't send.
|
|
143
|
+
* @param runtime The runtime for this write.
|
|
143
144
|
* @param level Severity level.
|
|
144
145
|
* @returns True if logging is on and the console accepts the level.
|
|
145
146
|
*/
|
package/dist/core/measure.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InstrumentDef, Measure, MetricAttributes } from "../models/metric";
|
|
2
2
|
import { type ClientSpan } from "../utils/tracing";
|
|
3
3
|
import type { SpanData } from "./spans";
|
|
4
|
-
/**
|
|
4
|
+
/** Where the values of one measure go. */
|
|
5
5
|
export interface MeasureSinks {
|
|
6
6
|
/** Adds a value to a histogram. */
|
|
7
7
|
metric(def: InstrumentDef, value: number, attributes: MetricAttributes): void;
|
|
@@ -9,11 +9,11 @@ export interface MeasureSinks {
|
|
|
9
9
|
span(span: SpanData): void;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Starts the clock
|
|
13
|
-
* @param name Operation name. A JavaScript caller can pass
|
|
14
|
-
* @param attributes Copy of the attribute set
|
|
15
|
-
* @param span
|
|
16
|
-
* @param sinks
|
|
17
|
-
* @returns The handle
|
|
12
|
+
* Starts the clock for one operation.
|
|
13
|
+
* @param name Operation name. A JavaScript caller can pass any type.
|
|
14
|
+
* @param attributes Copy of the app's attribute set.
|
|
15
|
+
* @param span The operation's span, or undefined when spans are off or the trace was dropped.
|
|
16
|
+
* @param sinks Where the values go.
|
|
17
|
+
* @returns The operation's handle.
|
|
18
18
|
*/
|
|
19
19
|
export declare function createMeasure(name: unknown, attributes: MetricAttributes, span: ClientSpan | undefined, sinks: MeasureSinks): Measure;
|