@utk09/ui-observability 0.10.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 +77 -1
- package/README.md +323 -113
- package/bin/uiobs.mjs +1 -1
- package/dist/{batch-BMdT9mKm.js → batch-BjQUwjA6.js} +5 -6
- package/dist/batch-BjQUwjA6.js.map +1 -0
- package/dist/{batch-BHXypM1j.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-DKfBaica.js → bus-ecxUNTja.js} +105 -109
- 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-CLz_PvFn.cjs +2 -0
- package/dist/console-CLz_PvFn.cjs.map +1 -0
- package/dist/{console-BX_0UCV7.js → console-cwgHKXvM.js} +14 -15
- 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-DxZf4Gfh.js → context-storage-BzkoHzkQ.js} +2 -3
- package/dist/context-storage-BzkoHzkQ.js.map +1 -0
- 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-5_PecIl5.js → deadline-C4ccAuk5.js} +4 -9
- 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-CZZ6SQQh.js → debug-bundle-BOdYmCeV.js} +12 -6
- 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 +148 -54
- package/dist/doctor.js.map +1 -1
- package/dist/{emergency-queue-Cs8-i2xw.js → emergency-queue-B9WZxanZ.js} +15 -17
- package/dist/emergency-queue-B9WZxanZ.js.map +1 -0
- package/dist/{emergency-queue-CQ-9acZf.cjs → emergency-queue-HBpL5r3V.cjs} +2 -2
- package/dist/emergency-queue-HBpL5r3V.cjs.map +1 -0
- package/dist/{error-like-Ywo5uRHo.js → error-like-B11pB4aL.js} +2 -3
- package/dist/error-like-B11pB4aL.js.map +1 -0
- package/dist/error-like-gGRx2s36.cjs.map +1 -1
- package/dist/{errors-oyxrpHjY.js → errors-D6bwgJtO.js} +5 -6
- package/dist/errors-D6bwgJtO.js.map +1 -0
- package/dist/{errors-CigX45pL.cjs → errors-DCOCRdSi.cjs} +2 -2
- package/dist/errors-DCOCRdSi.cjs.map +1 -0
- package/dist/{factory-BkjNzPYL.cjs → factory-DLFDjdLv.cjs} +2 -2
- package/dist/factory-DLFDjdLv.cjs.map +1 -0
- package/dist/{factory-Bgsky_e0.js → factory-e9Qo3K0z.js} +18 -22
- package/dist/factory-e9Qo3K0z.js.map +1 -0
- package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
- package/dist/{fixed-window-CtaFHanJ.js → fixed-window-Dq3MLUUv.js} +2 -3
- package/dist/fixed-window-Dq3MLUUv.js.map +1 -0
- package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
- package/dist/{global-scope-dp2jADRl.js → global-scope-D9I8s-oN.js} +2 -3
- package/dist/global-scope-D9I8s-oN.js.map +1 -0
- package/dist/{guards-CpvOpJL6.js → guards-Cidk71ME.js} +2 -3
- package/dist/guards-Cidk71ME.js.map +1 -0
- package/dist/guards-nJ70syPt.cjs.map +1 -1
- package/dist/{identity-BMlKGHUM.cjs → identity-BlvlgjrU.cjs} +2 -2
- package/dist/identity-BlvlgjrU.cjs.map +1 -0
- package/dist/{identity-DOaHdfhT.js → identity-BrQp_5J5.js} +20 -21
- 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 +797 -659
- package/dist/index.js.map +1 -1
- package/dist/{indexeddb-storage-CaXGJqDD.cjs → indexeddb-storage-CtLvZH1r.cjs} +2 -2
- package/dist/indexeddb-storage-CtLvZH1r.cjs.map +1 -0
- package/dist/{indexeddb-storage-D-lUW_5P.js → indexeddb-storage-DLXQzAGh.js} +5 -6
- package/dist/indexeddb-storage-DLXQzAGh.js.map +1 -0
- package/dist/{interactions-CqDNrtIR.js → interactions-B6z2I4tU.js} +10 -11
- package/dist/interactions-B6z2I4tU.js.map +1 -0
- package/dist/{interactions-8DgxtmgO.cjs → interactions-P6pz08Jn.cjs} +2 -2
- package/dist/interactions-P6pz08Jn.cjs.map +1 -0
- package/dist/{journey-DgIjhrIc.js → journey-35yCMNFo.js} +21 -21
- 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-D5r_GH9q.js → keys-BU9j5YqW.js} +2 -3
- package/dist/keys-BU9j5YqW.js.map +1 -0
- package/dist/{library-console-g_VU-wzP.cjs → library-console-BFWEuQsl.cjs} +2 -2
- package/dist/library-console-BFWEuQsl.cjs.map +1 -0
- package/dist/library-console-Dl_Ly6DQ.js +13 -0
- package/dist/library-console-Dl_Ly6DQ.js.map +1 -0
- package/dist/{library-request-FQaiWjCP.cjs → library-request-Da-CHKzT.cjs} +2 -2
- package/dist/library-request-Da-CHKzT.cjs.map +1 -0
- package/dist/{library-request-CyC-9IOk.js → library-request-nI6pvI6I.js} +4 -5
- package/dist/library-request-nI6pvI6I.js.map +1 -0
- package/dist/{lifecycle-C2z_d8OX.cjs → lifecycle-BGGOcN4N.cjs} +2 -2
- package/dist/lifecycle-BGGOcN4N.cjs.map +1 -0
- package/dist/{lifecycle-BLC4VU7c.js → lifecycle-CZ6RRXc6.js} +3 -4
- package/dist/lifecycle-CZ6RRXc6.js.map +1 -0
- package/dist/{log-record-DKvo-B-d.cjs → log-record-D7bA1RPb.cjs} +2 -2
- package/dist/log-record-D7bA1RPb.cjs.map +1 -0
- package/dist/{log-record-CndanC-p.js → log-record-DIA6McNr.js} +3 -4
- package/dist/log-record-DIA6McNr.js.map +1 -0
- package/dist/{long-frames-BQef9rXR.js → long-frames-430_85Da.js} +9 -8
- 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-CvkvYzRU.js → network-C7SkLf4v.js} +30 -32
- package/dist/network-C7SkLf4v.js.map +1 -0
- package/dist/{network-CqnQOqon.cjs → network-pEX3PAJv.cjs} +2 -2
- package/dist/network-pEX3PAJv.cjs.map +1 -0
- package/dist/openfin-Bxelt0yg.js +7 -0
- package/dist/openfin-Bxelt0yg.js.map +1 -0
- 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-CYIL7MOE.js → otlp-COq033e3.js} +26 -35
- package/dist/otlp-COq033e3.js.map +1 -0
- package/dist/patch-BX8KrPCT.cjs.map +1 -1
- package/dist/{patch-CCWfuEY7.js → patch-UdPz1ea8.js} +2 -3
- package/dist/patch-UdPz1ea8.js.map +1 -0
- package/dist/{platform-KMWkoI-v.cjs → platform-12uR7kBQ.cjs} +2 -2
- package/dist/platform-12uR7kBQ.cjs.map +1 -0
- package/dist/{platform-wcAkkv9F.js → platform-CVewe4wQ.js} +9 -10
- 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-CH_7PphT.js → remote-rules-BJGDJGwA.js} +29 -30
- package/dist/remote-rules-BJGDJGwA.js.map +1 -0
- package/dist/{remote-rules-BL8km4xk.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-Bh_-KpZ2.cjs → reports-BsbqmP8h.cjs} +2 -2
- package/dist/reports-BsbqmP8h.cjs.map +1 -0
- package/dist/{reports-BOKyY3_A.js → reports-BuXekPOS.js} +4 -5
- package/dist/reports-BuXekPOS.js.map +1 -0
- package/dist/{resource-timing-BROnEJ0E.js → resource-timing-CXGHwFRD.js} +6 -7
- package/dist/resource-timing-CXGHwFRD.js.map +1 -0
- package/dist/{resource-timing-CbgwNpog.cjs → resource-timing-DkycFGDa.cjs} +2 -2
- package/dist/resource-timing-DkycFGDa.cjs.map +1 -0
- package/dist/{sampling-ECGVYiDD.cjs → sampling-Dd0wllyq.cjs} +2 -2
- package/dist/sampling-Dd0wllyq.cjs.map +1 -0
- package/dist/{sampling-BLO_pcV4.js → sampling-UUDbi3K0.js} +11 -12
- package/dist/sampling-UUDbi3K0.js.map +1 -0
- package/dist/{sanitize-DS0G4_ea.js → sanitize-CNmsD9r3.js} +4 -5
- package/dist/sanitize-CNmsD9r3.js.map +1 -0
- package/dist/{sanitize-Bsn8HQWC.cjs → sanitize-ChLn97Ch.cjs} +2 -2
- package/dist/sanitize-ChLn97Ch.cjs.map +1 -0
- package/dist/{select-DWO0-w8_.cjs → select-CTk-K5mG.cjs} +3 -3
- package/dist/select-CTk-K5mG.cjs.map +1 -0
- package/dist/{select-wqt9Wxio.js → select-DPv_j6wq.js} +64 -67
- package/dist/select-DPv_j6wq.js.map +1 -0
- package/dist/{sender-BkAVt-Rq.js → sender-15zEsZpr.js} +98 -101
- 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-w7Tslvlq.js → storage-DZwed89z.js} +2 -3
- package/dist/storage-DZwed89z.js.map +1 -0
- package/dist/{storm-DD4cUkoL.js → storm-BTSNTIWI.js} +4 -5
- package/dist/storm-BTSNTIWI.js.map +1 -0
- package/dist/{storm-DCEsqViG.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-BR9t_w28.js → types-BAerHgCq.js} +2 -3
- package/dist/types-BAerHgCq.js.map +1 -0
- package/dist/types-C7WNpnG1.cjs.map +1 -1
- package/dist/{unclean-exit-CwdpbUDg.cjs → unclean-exit-ClGzrc2A.cjs} +2 -2
- package/dist/unclean-exit-ClGzrc2A.cjs.map +1 -0
- package/dist/{unclean-exit-BYZ5yaSI.js → unclean-exit-Cob_jyTv.js} +3 -4
- 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-Di2ra5DB.js → user-timing-DgHubxCI.js} +7 -6
- 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-DwBNhgre.cjs → web-socket-BTuvYoJI.cjs} +2 -2
- package/dist/web-socket-BTuvYoJI.cjs.map +1 -0
- package/dist/{web-socket-B-5qqPy7.js → web-socket-DthJuSAg.js} +14 -15
- 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-0HMf4-kY.js → worker-protocol-B0_8rWy5.js} +6 -7
- package/dist/worker-protocol-B0_8rWy5.js.map +1 -0
- package/dist/{worker-protocol-DXekoADQ.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-CKcmX5m5.js → worker-server-Cne9MX9I.js} +25 -26
- package/dist/{worker-server-CKcmX5m5.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-2220ghFZ.js → worker-transport-C3SjJAEC.js} +64 -65
- package/dist/worker-transport-C3SjJAEC.js.map +1 -0
- package/package.json +33 -41
- package/dist/batch-BHXypM1j.cjs.map +0 -1
- package/dist/batch-BMdT9mKm.js.map +0 -1
- package/dist/bus-DKfBaica.js.map +0 -1
- package/dist/bus-Dea9rVhy.cjs +0 -2
- package/dist/bus-Dea9rVhy.cjs.map +0 -1
- package/dist/console-BX_0UCV7.js.map +0 -1
- package/dist/console-DZEcs7FL.cjs +0 -2
- package/dist/console-DZEcs7FL.cjs.map +0 -1
- package/dist/constants-CL0ZdI2f.cjs +0 -2
- package/dist/constants-CL0ZdI2f.cjs.map +0 -1
- package/dist/constants-CU60FG4w.js +0 -305
- package/dist/constants-CU60FG4w.js.map +0 -1
- package/dist/context-storage-DxZf4Gfh.js.map +0 -1
- package/dist/deadline-5_PecIl5.js.map +0 -1
- package/dist/deadline-XSnm95pg.cjs +0 -2
- package/dist/deadline-XSnm95pg.cjs.map +0 -1
- package/dist/debug-bundle-CZZ6SQQh.js.map +0 -1
- package/dist/debug-bundle-yRkrU1ny.cjs +0 -2
- package/dist/debug-bundle-yRkrU1ny.cjs.map +0 -1
- package/dist/emergency-queue-CQ-9acZf.cjs.map +0 -1
- package/dist/emergency-queue-Cs8-i2xw.js.map +0 -1
- package/dist/error-like-Ywo5uRHo.js.map +0 -1
- package/dist/errors-CigX45pL.cjs.map +0 -1
- package/dist/errors-oyxrpHjY.js.map +0 -1
- package/dist/factory-Bgsky_e0.js.map +0 -1
- package/dist/factory-BkjNzPYL.cjs.map +0 -1
- package/dist/fixed-window-CtaFHanJ.js.map +0 -1
- package/dist/global-scope-dp2jADRl.js.map +0 -1
- package/dist/guards-CpvOpJL6.js.map +0 -1
- package/dist/identity-BMlKGHUM.cjs.map +0 -1
- package/dist/identity-DOaHdfhT.js.map +0 -1
- package/dist/indexeddb-storage-CaXGJqDD.cjs.map +0 -1
- package/dist/indexeddb-storage-D-lUW_5P.js.map +0 -1
- package/dist/interactions-8DgxtmgO.cjs.map +0 -1
- package/dist/interactions-CqDNrtIR.js.map +0 -1
- package/dist/journey-5tcxEbnG.cjs +0 -2
- package/dist/journey-5tcxEbnG.cjs.map +0 -1
- package/dist/journey-DgIjhrIc.js.map +0 -1
- package/dist/keys-D5r_GH9q.js.map +0 -1
- package/dist/library-console-CabK2j2-.js +0 -14
- package/dist/library-console-CabK2j2-.js.map +0 -1
- package/dist/library-console-g_VU-wzP.cjs.map +0 -1
- package/dist/library-request-CyC-9IOk.js.map +0 -1
- package/dist/library-request-FQaiWjCP.cjs.map +0 -1
- package/dist/lifecycle-BLC4VU7c.js.map +0 -1
- package/dist/lifecycle-C2z_d8OX.cjs.map +0 -1
- package/dist/log-record-CndanC-p.js.map +0 -1
- package/dist/log-record-DKvo-B-d.cjs.map +0 -1
- package/dist/long-frames-BQef9rXR.js.map +0 -1
- package/dist/long-frames-CV5ZG2cx.cjs +0 -2
- package/dist/long-frames-CV5ZG2cx.cjs.map +0 -1
- package/dist/network-CqnQOqon.cjs.map +0 -1
- package/dist/network-CvkvYzRU.js.map +0 -1
- package/dist/openfin-BwEN0uj4.js +0 -8
- package/dist/openfin-BwEN0uj4.js.map +0 -1
- package/dist/otlp-CYIL7MOE.js.map +0 -1
- package/dist/otlp-RVbkNQRh.cjs +0 -2
- package/dist/otlp-RVbkNQRh.cjs.map +0 -1
- package/dist/patch-CCWfuEY7.js.map +0 -1
- package/dist/platform-KMWkoI-v.cjs.map +0 -1
- package/dist/platform-wcAkkv9F.js.map +0 -1
- package/dist/remote-rules-BL8km4xk.cjs.map +0 -1
- package/dist/remote-rules-CH_7PphT.js.map +0 -1
- package/dist/reports-BOKyY3_A.js.map +0 -1
- package/dist/reports-Bh_-KpZ2.cjs.map +0 -1
- package/dist/resource-timing-BROnEJ0E.js.map +0 -1
- package/dist/resource-timing-CbgwNpog.cjs.map +0 -1
- package/dist/sampling-BLO_pcV4.js.map +0 -1
- package/dist/sampling-ECGVYiDD.cjs.map +0 -1
- package/dist/sanitize-Bsn8HQWC.cjs.map +0 -1
- package/dist/sanitize-DS0G4_ea.js.map +0 -1
- package/dist/select-DWO0-w8_.cjs.map +0 -1
- package/dist/select-wqt9Wxio.js.map +0 -1
- package/dist/sender-BkAVt-Rq.js.map +0 -1
- package/dist/sender-D82PxlCY.cjs +0 -2
- package/dist/sender-D82PxlCY.cjs.map +0 -1
- package/dist/storage-w7Tslvlq.js.map +0 -1
- package/dist/storm-DCEsqViG.cjs.map +0 -1
- package/dist/storm-DD4cUkoL.js.map +0 -1
- package/dist/types-BR9t_w28.js.map +0 -1
- package/dist/unclean-exit-BYZ5yaSI.js.map +0 -1
- package/dist/unclean-exit-CwdpbUDg.cjs.map +0 -1
- package/dist/user-timing-C1kB3JEg.cjs +0 -2
- package/dist/user-timing-C1kB3JEg.cjs.map +0 -1
- package/dist/user-timing-Di2ra5DB.js.map +0 -1
- package/dist/web-socket-B-5qqPy7.js.map +0 -1
- package/dist/web-socket-DwBNhgre.cjs.map +0 -1
- package/dist/web-vitals-Bflr5jSA.js +0 -53
- package/dist/web-vitals-Bflr5jSA.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-0HMf4-kY.js.map +0 -1
- package/dist/worker-protocol-DXekoADQ.cjs.map +0 -1
- package/dist/worker-server-BQK5z2yl.cjs +0 -2
- package/dist/worker-server-BQK5z2yl.cjs.map +0 -1
- package/dist/worker-transport-2220ghFZ.js.map +0 -1
- package/dist/worker-transport-Dj2yCQN5.cjs +0 -2
- package/dist/worker-transport-Dj2yCQN5.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,113 +2,118 @@ import type { WorkerLike } from "./bus/links";
|
|
|
2
2
|
import type { Journey } from "./core/journey";
|
|
3
3
|
import { OneLogger, type OneLoggerOptions } from "./core/logger";
|
|
4
4
|
import type { ObservabilityConfig } from "./models/config";
|
|
5
|
+
export type { ReplayLoader, ReplayPluginLoader, ReplayPluginTools, ReplaySegment, } from "./models/replay";
|
|
5
6
|
import type { SecurityContextUpdate, SecurityContextRotationOptions } from "./models/config";
|
|
6
7
|
import type { DebugBundle, ObservabilityHealth } from "./models/health";
|
|
7
8
|
import type { FrameOptions, SourceOptions } from "./models/bus";
|
|
8
9
|
export type { FrameOptions, SourceOptions, BusPermission } from "./models/bus";
|
|
9
10
|
import type { MetricType } from "./models/log-record";
|
|
10
11
|
import type { DeliveryStats } from "./models/stats";
|
|
11
|
-
import type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes } from "./models/metric";
|
|
12
|
+
import type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes, Profiler } from "./models/metric";
|
|
12
13
|
export { OneLogger };
|
|
13
14
|
export { serveTransportWorker } from "./transport/worker-entry";
|
|
14
15
|
export { createMemoryTransport, type MemoryTransport } from "./transport/memory-transport";
|
|
15
16
|
export type { Journey, ObservabilityConfig, OneLoggerOptions };
|
|
16
|
-
export type { DeliveryPolicy, BufferingPolicy, MetricsPolicy, CorrelationPolicy, DiagnosticsPolicy, PersistencePolicy, MetadataPolicy, CapturePolicy, BusOptions, CaptureOptions, InteractionOptions, ResourceTimingOptions, RemoteCaptureFlag, LoggerCacheOptions, SecurityContextOptions, SecurityContextUpdate, SecurityContextRotationOptions, DeliveryOptions, ConsoleOptions, ConsoleStyles, ExitTransport, Transport, TransportRequest, TransportResponse, } from "./models/config";
|
|
17
|
+
export type { DeliveryPolicy, BufferingPolicy, MetricsPolicy, CorrelationPolicy, DiagnosticsPolicy, PersistencePolicy, MetadataPolicy, CapturePolicy, DebugBufferPolicy, ProfilerPolicy, ReplayPolicy, BusOptions, CaptureOptions, InteractionOptions, ResourceTimingOptions, RemoteCaptureFlag, LoggerCacheOptions, SecurityContextOptions, SecurityContextUpdate, SecurityContextRotationOptions, DeliveryOptions, ConsoleOptions, ConsoleStyles, ExitTransport, Transport, TransportRequest, TransportResponse, } from "./models/config";
|
|
17
18
|
export type { DebugBundle, ObservabilityHealth } from "./models/health";
|
|
18
19
|
export type { WorkerLike } from "./bus/links";
|
|
19
20
|
export type { DiagnosticCode, DiagnosticEvent } from "./core/diagnostics";
|
|
20
21
|
export type { DropSummary, LossReason } from "./models/drop";
|
|
21
22
|
export type { LogLevel, LogRecord, LogType, MetricType } from "./models/log-record";
|
|
22
|
-
export type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes, } from "./models/metric";
|
|
23
|
+
export type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes, Probe, ProbeOptions, Profiler, } from "./models/metric";
|
|
23
24
|
export type { CapturePlugin, PluginContext } from "./models/plugin";
|
|
24
25
|
export type { LogSerializer, SerializedBatch } from "./models/serializer";
|
|
25
26
|
export type { DeliveryStats } from "./models/stats";
|
|
26
27
|
export type { StorageAdapter } from "./models/storage";
|
|
27
28
|
/**
|
|
28
|
-
* Removes stored logs.
|
|
29
|
-
*
|
|
30
|
-
* @
|
|
29
|
+
* Removes stored logs. Records and requests that are still pending can write to storage again
|
|
30
|
+
* afterwards.
|
|
31
|
+
* @param scope Whose stored records to remove: the context's or the namespace's.
|
|
32
|
+
* @returns Promise that resolves once the logs are removed.
|
|
31
33
|
*/
|
|
32
34
|
export declare function clearPersistedLogs(scope?: "context" | "namespace"): Promise<void>;
|
|
33
35
|
/**
|
|
34
|
-
* Initializes or reconfigures the observability runtime
|
|
35
|
-
* `payloadMode: "defer"
|
|
36
|
+
* Initializes or reconfigures the observability runtime.
|
|
37
|
+
* With `payloadMode: "defer"`, logger records are built in idle time. With the debug buffer on,
|
|
38
|
+
* they are still built at the call.
|
|
36
39
|
* @param config Consumer configuration options.
|
|
37
40
|
*/
|
|
38
41
|
export declare function configure(config: Partial<ObservabilityConfig>): void;
|
|
39
42
|
/**
|
|
40
|
-
* Locks or unlocks configuration. The lock
|
|
43
|
+
* Locks or unlocks the configuration. The lock isn't access control against other code on
|
|
44
|
+
* this origin.
|
|
41
45
|
* @param locked True to refuse changes through configure().
|
|
42
46
|
*/
|
|
43
47
|
export declare function setConfigurationLocked(locked: boolean): void;
|
|
44
48
|
/**
|
|
45
|
-
* Stops delivery for the old context and starts
|
|
49
|
+
* Stops delivery for the old context and starts it for the new one.
|
|
46
50
|
* @param update New identity, delivery settings and context attributes.
|
|
47
|
-
* @param options
|
|
48
|
-
* @returns Promise that resolves
|
|
51
|
+
* @param options What to do with old records, and the flush deadline.
|
|
52
|
+
* @returns Promise that resolves once the change is complete.
|
|
49
53
|
*/
|
|
50
54
|
export declare function rotateSecurityContext(update: SecurityContextUpdate, options?: SecurityContextRotationOptions): Promise<void>;
|
|
51
55
|
/**
|
|
52
|
-
* Reads
|
|
56
|
+
* Reads this SDK copy's runtime state, delivery counts and policies.
|
|
53
57
|
* @returns Promise that resolves to the current state.
|
|
54
58
|
*/
|
|
55
59
|
export declare function getHealth(): Promise<ObservabilityHealth>;
|
|
56
60
|
/**
|
|
57
|
-
* Collects the state
|
|
61
|
+
* Collects the library's state for a support ticket. The bundle holds the health, the
|
|
58
62
|
* diagnostic counters, the resource, the breadcrumbs, the debug buffer and a config summary.
|
|
59
|
-
* The summary has no headers and no URL query
|
|
60
|
-
* name. The
|
|
61
|
-
* attributes.
|
|
63
|
+
* The summary has no headers and no URL query, and a plugin or custom serializer shows up by
|
|
64
|
+
* name only. The breadcrumbs go through the privacy hooks. A debug buffer record keeps its
|
|
65
|
+
* context attributes. Where the bundle gets sent is up to the app.
|
|
62
66
|
* @returns Promise that resolves to a JSON-safe bundle.
|
|
63
67
|
*/
|
|
64
68
|
export declare function collectDebugBundle(): Promise<DebugBundle>;
|
|
65
69
|
/**
|
|
66
|
-
*
|
|
70
|
+
* Returns the cached logger for a namespace, or a new scoped logger.
|
|
67
71
|
* @param namespace Application subsystem or module namespace.
|
|
68
72
|
* @param options Context attributes for this logger only.
|
|
69
|
-
* @returns Logger for the namespace.
|
|
73
|
+
* @returns Logger for the namespace. You get a new logger if you pass options or the cache
|
|
74
|
+
* is disabled.
|
|
70
75
|
*/
|
|
71
76
|
export declare function getLogger(namespace: string, options?: OneLoggerOptions): OneLogger;
|
|
72
77
|
/**
|
|
73
78
|
* Logs a trace-level debug record.
|
|
74
79
|
* @param message Detail message.
|
|
75
|
-
* @param payload Optional
|
|
80
|
+
* @param payload Optional context attributes.
|
|
76
81
|
*/
|
|
77
82
|
export declare function trace(message: string, payload?: Record<string, unknown>): void;
|
|
78
83
|
/**
|
|
79
84
|
* Logs a debug-level record.
|
|
80
85
|
* @param message Detail message.
|
|
81
|
-
* @param payload Optional
|
|
86
|
+
* @param payload Optional context attributes.
|
|
82
87
|
*/
|
|
83
88
|
export declare function debug(message: string, payload?: Record<string, unknown>): void;
|
|
84
89
|
/**
|
|
85
90
|
* Logs an informational record.
|
|
86
91
|
* @param message Informational message.
|
|
87
|
-
* @param payload Optional
|
|
92
|
+
* @param payload Optional context attributes.
|
|
88
93
|
*/
|
|
89
94
|
export declare function info(message: string, payload?: Record<string, unknown>): void;
|
|
90
95
|
/**
|
|
91
96
|
* Logs a warning record.
|
|
92
97
|
* @param message Warning message.
|
|
93
|
-
* @param payload Optional
|
|
98
|
+
* @param payload Optional context attributes.
|
|
94
99
|
*/
|
|
95
100
|
export declare function warn(message: string, payload?: Record<string, unknown>): void;
|
|
96
101
|
/**
|
|
97
|
-
* Logs an error record with
|
|
102
|
+
* Logs an error record, with the error that caused it and the breadcrumbs.
|
|
98
103
|
* @param message Error summary.
|
|
99
|
-
* @param err
|
|
100
|
-
* @param payload Optional
|
|
104
|
+
* @param err The caught error or reason.
|
|
105
|
+
* @param payload Optional context attributes.
|
|
101
106
|
*/
|
|
102
107
|
export declare function error(message: string, err?: unknown, payload?: Record<string, unknown>): void;
|
|
103
108
|
/**
|
|
104
|
-
* Logs a fatal record with
|
|
109
|
+
* Logs a fatal record, with the error that caused it and the breadcrumbs.
|
|
105
110
|
* @param message Fatal error summary.
|
|
106
|
-
* @param err
|
|
107
|
-
* @param payload Optional
|
|
111
|
+
* @param err The caught error or reason.
|
|
112
|
+
* @param payload Optional context attributes.
|
|
108
113
|
*/
|
|
109
114
|
export declare function fatal(message: string, err?: unknown, payload?: Record<string, unknown>): void;
|
|
110
115
|
/**
|
|
111
|
-
* Logs a
|
|
116
|
+
* Logs a single user action.
|
|
112
117
|
* @param name Action identifier.
|
|
113
118
|
* @param payload Optional action attributes.
|
|
114
119
|
*/
|
|
@@ -120,68 +125,96 @@ export declare function logAction(name: string, payload?: Record<string, unknown
|
|
|
120
125
|
*/
|
|
121
126
|
export declare function logEvent(name: string, payload?: Record<string, unknown>): void;
|
|
122
127
|
/**
|
|
123
|
-
* Logs a
|
|
128
|
+
* Logs a numeric metric measurement.
|
|
124
129
|
* @param name Metric identifier.
|
|
125
130
|
* @param value Measured value.
|
|
126
131
|
* @param unit Unit of measurement.
|
|
127
|
-
* @param type Metric type
|
|
132
|
+
* @param type Metric type.
|
|
128
133
|
* @param attributes Optional metric attributes.
|
|
129
134
|
*/
|
|
130
135
|
export declare function logMetric(name: string, value: number, unit?: string, type?: MetricType, attributes?: Record<string, unknown>): void;
|
|
131
136
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
137
|
+
* Returns a counter. Values are summed in memory, and every interval the library sends one
|
|
138
|
+
* point per attribute set. A handle stays valid across configure() and shutdown().
|
|
134
139
|
* @param name Metric name.
|
|
135
140
|
* @param options Unit of the values.
|
|
136
141
|
* @returns The counter.
|
|
137
142
|
*/
|
|
138
143
|
export declare function counter(name: string, options?: InstrumentOptions): Counter;
|
|
139
144
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
145
|
+
* Returns a histogram. Values are counted into buckets in memory, and every interval the
|
|
146
|
+
* library sends one point per attribute set. A handle stays valid across configure() and
|
|
147
|
+
* shutdown().
|
|
142
148
|
* @param name Metric name.
|
|
143
149
|
* @param options Unit of the values and the bucket boundaries.
|
|
144
150
|
* @returns The histogram.
|
|
145
151
|
*/
|
|
146
152
|
export declare function histogram(name: string, options?: HistogramOptions): Histogram;
|
|
147
153
|
/**
|
|
148
|
-
* Times an operation with named phases.
|
|
149
|
-
* With `tracesEndpoint
|
|
150
|
-
* @param name Operation name.
|
|
151
|
-
* @param attributes Attribute set
|
|
152
|
-
* @returns The handle
|
|
154
|
+
* Times an operation with named phases. Every phase and the total go into duration histograms.
|
|
155
|
+
* With `tracesEndpoint` set, the operation is also a span with one child span per phase.
|
|
156
|
+
* @param name Operation name. Every name creates one series.
|
|
157
|
+
* @param attributes Attribute set for every histogram point. Keep it small.
|
|
158
|
+
* @returns The operation's handle.
|
|
153
159
|
*/
|
|
154
160
|
export declare function startMeasure(name: string, attributes?: MetricAttributes): Measure;
|
|
155
161
|
/**
|
|
156
|
-
*
|
|
162
|
+
* Starts the session replay recorder. With `replay.requireConsent` set, nothing is recorded
|
|
163
|
+
* until you call this, so call it once the user agrees. Does nothing while `replay.enabled`
|
|
164
|
+
* is false.
|
|
165
|
+
*/
|
|
166
|
+
export declare function startReplay(): void;
|
|
167
|
+
/**
|
|
168
|
+
* Stops the session replay recorder and drops any replay events that haven't been sent. With
|
|
169
|
+
* `replay.requireConsent` set, the recorder stays off until the next `startReplay()`.
|
|
170
|
+
*/
|
|
171
|
+
export declare function stopReplay(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Times spans of app code with probes. A probe is a named handle with `begin()`, `end()`,
|
|
174
|
+
* `endAfterPaint()` and `record()`, and `time()` times a single function call. Once per
|
|
175
|
+
* interval the library sends one `ui.profile.duration` histogram for every probe that has data.
|
|
176
|
+
*
|
|
177
|
+
* The profiler is off by default. Set `profiler.enabled` to true to turn it on. While it is
|
|
178
|
+
* off, probes don't read the clock. After `shutdown()` a probe does nothing until a later
|
|
179
|
+
* `configure()` turns the profiler back on. Probes stay valid across `configure()` and
|
|
180
|
+
* `shutdown()`, and you can create them before `configure()`. No call ever throws.
|
|
181
|
+
* @example
|
|
182
|
+
* const render = profiler.probe("grid.render");
|
|
183
|
+
* const token = render.begin();
|
|
184
|
+
* drawGrid();
|
|
185
|
+
* render.end(token);
|
|
186
|
+
*/
|
|
187
|
+
export declare const profiler: Profiler;
|
|
188
|
+
/**
|
|
189
|
+
* Times a synchronous function and logs a duration metric.
|
|
157
190
|
* @param label Metric name prefix.
|
|
158
191
|
* @param fn Synchronous function to time.
|
|
159
|
-
* @param attributes Optional
|
|
160
|
-
* @returns
|
|
192
|
+
* @param attributes Optional context attributes.
|
|
193
|
+
* @returns Whatever the timed function returns.
|
|
161
194
|
*/
|
|
162
195
|
export declare function timeSync<T>(label: string, fn: () => T, attributes?: Record<string, unknown>): T;
|
|
163
196
|
/**
|
|
164
|
-
*
|
|
197
|
+
* Times an asynchronous function and logs a duration metric.
|
|
165
198
|
* @param label Metric name prefix.
|
|
166
199
|
* @param fn Asynchronous function to time.
|
|
167
|
-
* @param attributes Optional
|
|
168
|
-
* @returns Promise that resolves to the
|
|
200
|
+
* @param attributes Optional context attributes.
|
|
201
|
+
* @returns Promise that resolves to the timed function's result.
|
|
169
202
|
*/
|
|
170
203
|
export declare function timeAsync<T>(label: string, fn: () => Promise<T>, attributes?: Record<string, unknown>): Promise<T>;
|
|
171
204
|
/**
|
|
172
205
|
* Adds a breadcrumb to the trail. The next error record carries the trail.
|
|
173
206
|
* @param message Description of the event.
|
|
174
|
-
* @param data Optional metadata.
|
|
207
|
+
* @param data Optional metadata. It is copied right away.
|
|
175
208
|
*/
|
|
176
209
|
export declare function addBreadcrumb(message: string, data?: Record<string, unknown>): void;
|
|
177
210
|
/**
|
|
178
|
-
* Sets a key-value pair on the ambient context.
|
|
211
|
+
* Sets a key-value pair on the ambient context. Every later record includes it.
|
|
179
212
|
* @param key Attribute key.
|
|
180
213
|
* @param value Attribute value.
|
|
181
214
|
*/
|
|
182
215
|
export declare function setContext(key: string, value: unknown): void;
|
|
183
216
|
/**
|
|
184
|
-
* Merges
|
|
217
|
+
* Merges several key-value pairs into the ambient context.
|
|
185
218
|
* @param values Key-value map of attributes to add.
|
|
186
219
|
*/
|
|
187
220
|
export declare function setContextMap(values: Record<string, unknown>): void;
|
|
@@ -194,35 +227,35 @@ export declare function removeContext(key: string): void;
|
|
|
194
227
|
* Starts a new journey correlation context.
|
|
195
228
|
* @param name Journey workflow identifier.
|
|
196
229
|
* @param options `parent` links the active journey as the parent. `id` sets the journey id, a
|
|
197
|
-
* string of 1 to 64 letters, digits, "_", ".", ":" or "-". Without it, the library
|
|
198
|
-
* @returns
|
|
230
|
+
* string of 1 to 64 letters, digits, "_", ".", ":" or "-". Without it, the library generates one.
|
|
231
|
+
* @returns The started Journey.
|
|
199
232
|
*/
|
|
200
233
|
export declare function startJourney(name: string, options?: {
|
|
201
234
|
parent?: boolean;
|
|
202
235
|
id?: string;
|
|
203
236
|
}): Journey;
|
|
204
|
-
/**
|
|
237
|
+
/** Ends the active journey correlation context. */
|
|
205
238
|
export declare function endJourney(): void;
|
|
206
239
|
/**
|
|
207
|
-
* Returns the
|
|
208
|
-
* @returns
|
|
240
|
+
* Returns the active journey, or null if none is in progress.
|
|
241
|
+
* @returns The active Journey, or null.
|
|
209
242
|
*/
|
|
210
243
|
export declare function currentJourney(): Journey | null;
|
|
211
244
|
/**
|
|
212
|
-
* Serializes active journey metadata into a
|
|
213
|
-
* @returns
|
|
245
|
+
* Serializes the active journey's metadata into a URL token that another context can adopt.
|
|
246
|
+
* @returns The token, or undefined if no journey is active.
|
|
214
247
|
*/
|
|
215
248
|
export declare function getJourneyToken(): string | undefined;
|
|
216
249
|
/**
|
|
217
|
-
* Adopts a serialized journey token
|
|
250
|
+
* Adopts a serialized journey token in this application realm.
|
|
218
251
|
* @param token Serialized journey token.
|
|
219
|
-
* @returns True if the token is valid and the runtime
|
|
252
|
+
* @returns True if the token is valid and the runtime adopted it.
|
|
220
253
|
*/
|
|
221
254
|
export declare function adoptJourney(token: string): boolean;
|
|
222
255
|
/**
|
|
223
|
-
* Connects a Web Worker or MessagePort to the document bus
|
|
224
|
-
* @param worker
|
|
225
|
-
* @param options
|
|
256
|
+
* Connects a Web Worker or MessagePort to the document bus, so its records get routed.
|
|
257
|
+
* @param worker The Worker or MessagePort to connect.
|
|
258
|
+
* @param options The worker's permissions. Defaults to "records".
|
|
226
259
|
* @returns Function that removes this registration.
|
|
227
260
|
*/
|
|
228
261
|
export declare function registerWorker(worker: WorkerLike, options?: SourceOptions): () => void;
|
|
@@ -233,44 +266,44 @@ export declare function registerWorker(worker: WorkerLike, options?: SourceOptio
|
|
|
233
266
|
* @returns Function that removes this registration.
|
|
234
267
|
*/
|
|
235
268
|
export declare function registerFrame(frame: HTMLIFrameElement | Window, options: FrameOptions): () => void;
|
|
236
|
-
/** Rotates trace context to begin a new distributed trace. */
|
|
269
|
+
/** Rotates the trace context to begin a new distributed trace. */
|
|
237
270
|
export declare function startTrace(): void;
|
|
238
271
|
/**
|
|
239
|
-
* Returns W3C traceparent headers
|
|
240
|
-
* @returns Map of trace header
|
|
272
|
+
* Returns the W3C traceparent headers to put on an outgoing HTTP request.
|
|
273
|
+
* @returns Map of trace header names to values.
|
|
241
274
|
*/
|
|
242
275
|
export declare function getTraceHeaders(): Record<string, string>;
|
|
243
276
|
/**
|
|
244
|
-
* Builds deferred calls and flushes pending batches
|
|
245
|
-
* @returns Promise that resolves
|
|
277
|
+
* Builds any deferred calls and flushes the pending batches of every pipeline stream.
|
|
278
|
+
* @returns Promise that resolves once the pipeline has processed the queued batches.
|
|
246
279
|
*/
|
|
247
280
|
export declare function flush(): Promise<void>;
|
|
248
281
|
/**
|
|
249
282
|
* Counts the batches waiting in storage for delivery.
|
|
250
|
-
* @returns Promise that resolves to the number of stored batches. A forwarder
|
|
251
|
-
*
|
|
283
|
+
* @returns Promise that resolves to the number of stored batches. A forwarder doesn't store
|
|
284
|
+
* batches, so it reports 0.
|
|
252
285
|
*/
|
|
253
286
|
export declare function getQueueDepth(): Promise<number>;
|
|
254
287
|
/**
|
|
255
|
-
* Reads
|
|
256
|
-
* @returns Promise that resolves to the records
|
|
288
|
+
* Reads this context's delivery state.
|
|
289
|
+
* @returns Promise that resolves to the records waiting, the records in requests, the batches
|
|
257
290
|
* in storage and the time of the last accepted send. A forwarder reports only its own buffers.
|
|
258
291
|
*/
|
|
259
292
|
export declare function getStats(): Promise<DeliveryStats>;
|
|
260
293
|
/**
|
|
261
|
-
* Starts new correlation in this tab.
|
|
262
|
-
* tabs
|
|
263
|
-
*
|
|
294
|
+
* Starts a new correlation in this tab. Ends the active journey and starts a new trace. Other
|
|
295
|
+
* tabs pick up the new id at their next startup. For a logout or a tenant change, use
|
|
296
|
+
* rotateSecurityContext().
|
|
264
297
|
*/
|
|
265
298
|
export declare function newSession(): void;
|
|
266
299
|
/**
|
|
267
|
-
* Returns a snapshot of cumulative diagnostic event counts.
|
|
268
|
-
* @returns Map of diagnostic
|
|
300
|
+
* Returns a snapshot of the cumulative diagnostic event counts.
|
|
301
|
+
* @returns Map of diagnostic codes to how often each one occurred.
|
|
269
302
|
*/
|
|
270
303
|
export declare function getDiagnosticCounters(): Record<string, number>;
|
|
271
304
|
/**
|
|
272
|
-
* Flushes pending records and stops
|
|
273
|
-
*
|
|
274
|
-
* @returns Promise that resolves
|
|
305
|
+
* Flushes pending records and stops every runtime subsystem. A request still open after the
|
|
306
|
+
* final flush is cancelled, and its stored batch stays in storage.
|
|
307
|
+
* @returns Promise that resolves once shutdown is complete.
|
|
275
308
|
*/
|
|
276
309
|
export declare function shutdown(): Promise<void>;
|