@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/dist/models/config.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { REMOTE_CAPTURE_FLAGS } from "../constants";
|
|
2
|
-
import type { DiagnosticCode, DiagnosticHandler } from "../core/diagnostics";
|
|
3
|
-
import type { DropSummary } from "./drop";
|
|
4
|
-
import type { LogLevel, LogRecord } from "./log-record";
|
|
5
|
-
import type { CapturePlugin } from "./plugin";
|
|
6
|
-
import type { ReplayLoader, ReplayMode, ReplayPluginLoader, ReplaySegment } from "./replay";
|
|
7
|
-
import type { LogSerializer } from "./serializer";
|
|
1
|
+
import type { REMOTE_CAPTURE_FLAGS } from "../constants.js";
|
|
2
|
+
import type { DiagnosticCode, DiagnosticHandler } from "../core/diagnostics.js";
|
|
3
|
+
import type { DropSummary } from "./drop.js";
|
|
4
|
+
import type { LogLevel, LogRecord, LogType } from "./log-record.js";
|
|
5
|
+
import type { CapturePlugin } from "./plugin.js";
|
|
6
|
+
import type { ReplayLoader, ReplayMode, ReplayPluginLoader, ReplaySegment } from "./replay.js";
|
|
7
|
+
import type { LogSerializer } from "./serializer.js";
|
|
8
8
|
/** Backing store for undelivered records. "auto" picks the best one the host supports. */
|
|
9
9
|
export type StorageStrategy = "auto" | "indexeddb" | "localstorage" | "memory" | "none";
|
|
10
10
|
/**
|
|
@@ -124,7 +124,9 @@ export interface SamplingOptions {
|
|
|
124
124
|
*/
|
|
125
125
|
defaultRate: number;
|
|
126
126
|
/**
|
|
127
|
-
* Per-namespace rate overrides, keyed by `app.namespace`. The most specific prefix wins.
|
|
127
|
+
* Per-namespace rate overrides, keyed by `app.namespace`. The most specific prefix wins. A
|
|
128
|
+
* new map replaces the current one. A rate outside 0 to 1 is left out with a report, so a
|
|
129
|
+
* shorter prefix or `defaultRate` applies.
|
|
128
130
|
* @default {}
|
|
129
131
|
*/
|
|
130
132
|
rates: Record<string, number>;
|
|
@@ -132,13 +134,24 @@ export interface SamplingOptions {
|
|
|
132
134
|
* Log types always kept, regardless of the sampling rate.
|
|
133
135
|
* @default ["action"]
|
|
134
136
|
*/
|
|
135
|
-
alwaysSampleTypes:
|
|
137
|
+
alwaysSampleTypes: LogType[];
|
|
136
138
|
/**
|
|
137
|
-
* Lowest level that the sampling rate never drops. `
|
|
138
|
-
*
|
|
139
|
+
* Lowest level that the sampling rate never drops. `errorCeiling` limits the log records at
|
|
140
|
+
* this level and higher.
|
|
139
141
|
* @default "ERROR"
|
|
140
142
|
*/
|
|
141
143
|
alwaysSampleFrom: LogLevel;
|
|
144
|
+
/**
|
|
145
|
+
* Maximum log records at or above `alwaysSampleFrom` in one `errorCeilingWindowMs` window.
|
|
146
|
+
* Metric points and spans do not count. Set 0 to drop every one, or null for no limit.
|
|
147
|
+
* @default 500
|
|
148
|
+
*/
|
|
149
|
+
errorCeiling: number | null;
|
|
150
|
+
/**
|
|
151
|
+
* Length of the `errorCeiling` window, in milliseconds, 1 or more.
|
|
152
|
+
* @default 10000
|
|
153
|
+
*/
|
|
154
|
+
errorCeilingWindowMs: number;
|
|
142
155
|
/**
|
|
143
156
|
* Read sampling rules from the `X-UiObs-Sampling` header of every accepted batch. The rules
|
|
144
157
|
* stay in effect for their `ttlMs`. Set this in every context on the page.
|
|
@@ -161,47 +174,37 @@ export interface BusOptions {
|
|
|
161
174
|
*/
|
|
162
175
|
sourcePolicy: "registered" | "trusted-origin";
|
|
163
176
|
/**
|
|
164
|
-
*
|
|
165
|
-
* only the protocol tag.
|
|
166
|
-
* @default "strict"
|
|
167
|
-
*/
|
|
168
|
-
validation: "strict" | "envelope";
|
|
169
|
-
/**
|
|
170
|
-
* Maximum encoded bytes in one message. Set 0 for no size limit.
|
|
177
|
+
* Maximum encoded bytes in one message, 1 or more. Set null for no size limit.
|
|
171
178
|
* @default 262144
|
|
172
179
|
*/
|
|
173
|
-
maxMessageBytes: number;
|
|
180
|
+
maxMessageBytes: number | null;
|
|
174
181
|
/**
|
|
175
|
-
* Maximum records in one message. Set
|
|
182
|
+
* Maximum records in one message, 1 or more. Set null for no record limit.
|
|
176
183
|
* @default 100
|
|
177
184
|
*/
|
|
178
|
-
maxRecordsPerMessage: number;
|
|
185
|
+
maxRecordsPerMessage: number | null;
|
|
179
186
|
/**
|
|
180
|
-
* Maximum messages from one source in one second. Set
|
|
187
|
+
* Maximum messages from one source in one second, 1 or more. Set null for no rate limit.
|
|
181
188
|
* @default 100
|
|
182
189
|
*/
|
|
183
|
-
maxMessagesPerSecond: number;
|
|
190
|
+
maxMessagesPerSecond: number | null;
|
|
184
191
|
/**
|
|
185
|
-
*
|
|
186
|
-
* @default 256
|
|
187
|
-
*/
|
|
188
|
-
maxTrackedSources: number;
|
|
189
|
-
/**
|
|
190
|
-
* This context's role.
|
|
192
|
+
* This context's role. Can't be changed after startup.
|
|
191
193
|
* @default "auto"
|
|
192
194
|
*/
|
|
193
195
|
mode: BusMode;
|
|
194
196
|
/**
|
|
195
197
|
* Additional trusted parent origins. With sourcePolicy "trusted-origin", the list also
|
|
196
198
|
* permits child origins. A registered child uses the exact origin from its registration.
|
|
197
|
-
* "null" is never accepted, so a sandboxed frame must set `mode: "sender"`.
|
|
199
|
+
* "null" is never accepted, so a sandboxed frame must set `mode: "sender"`. A new entry
|
|
200
|
+
* doesn't reconnect a parent link that already exists.
|
|
198
201
|
* @default []
|
|
199
202
|
*/
|
|
200
203
|
trustedOrigins: string[];
|
|
201
204
|
/**
|
|
202
205
|
* Which OpenFin context this is. Only the platform provider answers a handshake, so with
|
|
203
206
|
* the wrong value every view sends its own records. "auto" treats the window whose name
|
|
204
|
-
* equals its application uuid as the provider.
|
|
207
|
+
* equals its application uuid as the provider. Can't be changed after startup.
|
|
205
208
|
* @default "auto"
|
|
206
209
|
*/
|
|
207
210
|
openFinRole: "auto" | "provider" | "client";
|
|
@@ -230,23 +233,21 @@ export interface JourneyOptions {
|
|
|
230
233
|
*/
|
|
231
234
|
maxAgeMs: number;
|
|
232
235
|
}
|
|
233
|
-
/**
|
|
236
|
+
/**
|
|
237
|
+
* Batch sizes, and the flush interval of log and span batches. The log keys also apply to spans.
|
|
238
|
+
* A metric batch waits `metrics.intervalMs`. Can't be changed after startup.
|
|
239
|
+
*/
|
|
234
240
|
export interface BatchingOptions {
|
|
235
241
|
/**
|
|
236
|
-
* How long a partial log batch waits before it is sent, in milliseconds. 100 to 60000.
|
|
242
|
+
* How long a partial log or span batch waits before it is sent, in milliseconds. 100 to 60000.
|
|
237
243
|
* @default 2000
|
|
238
244
|
*/
|
|
239
245
|
logFlushIntervalMs: number;
|
|
240
246
|
/**
|
|
241
|
-
* Maximum records in one log batch. 1 to 1000.
|
|
247
|
+
* Maximum records in one log or span batch. 1 to 1000.
|
|
242
248
|
* @default 100
|
|
243
249
|
*/
|
|
244
250
|
logBatchSize: number;
|
|
245
|
-
/**
|
|
246
|
-
* How long a partial metric batch waits before it is sent, in milliseconds. 100 to 60000.
|
|
247
|
-
* @default 10000
|
|
248
|
-
*/
|
|
249
|
-
metricFlushIntervalMs: number;
|
|
250
251
|
/**
|
|
251
252
|
* Maximum records in one metric batch. 1 to 1000.
|
|
252
253
|
* @default 500
|
|
@@ -254,19 +255,11 @@ export interface BatchingOptions {
|
|
|
254
255
|
metricBatchSize: number;
|
|
255
256
|
}
|
|
256
257
|
/**
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* permanent error still drops the batch.
|
|
258
|
+
* Retention of undelivered batches. Can't be changed after startup. To keep a batch until it is
|
|
259
|
+
* delivered, set `maxAgeMs` and `maxAttempts` to null. `maxBatches` still applies, and a
|
|
260
|
+
* permanent error still drops the batch.
|
|
261
261
|
*/
|
|
262
|
-
export type RetentionMode = "limited" | "until-delivered";
|
|
263
|
-
/** Retention of undelivered batches. Can't be changed after startup. */
|
|
264
262
|
export interface RetentionOptions {
|
|
265
|
-
/**
|
|
266
|
-
* Retention rule.
|
|
267
|
-
* @default "limited"
|
|
268
|
-
*/
|
|
269
|
-
mode: RetentionMode;
|
|
270
263
|
/**
|
|
271
264
|
* Maximum stored batches. A new batch evicts the oldest batch that holds no action first.
|
|
272
265
|
* 1 to 5000.
|
|
@@ -274,18 +267,19 @@ export interface RetentionOptions {
|
|
|
274
267
|
*/
|
|
275
268
|
maxBatches: number;
|
|
276
269
|
/**
|
|
277
|
-
* Maximum age of a stored batch, in milliseconds. 1 minute to 7 days.
|
|
270
|
+
* Maximum age of a stored batch, in milliseconds. 1 minute to 7 days. Set null for no age
|
|
271
|
+
* limit.
|
|
278
272
|
* @default 86400000
|
|
279
273
|
*/
|
|
280
|
-
maxAgeMs: number;
|
|
274
|
+
maxAgeMs: number | null;
|
|
281
275
|
/**
|
|
282
|
-
* Maximum send attempts for a stored batch. 1 to 20.
|
|
276
|
+
* Maximum send attempts for a stored batch. 1 to 20. Set null for no attempt limit.
|
|
283
277
|
* @default 5
|
|
284
278
|
*/
|
|
285
|
-
maxAttempts: number;
|
|
279
|
+
maxAttempts: number | null;
|
|
286
280
|
}
|
|
287
281
|
/** Size limits for each record. Can't be changed after startup. */
|
|
288
|
-
export interface
|
|
282
|
+
export interface LimitsOptions {
|
|
289
283
|
/**
|
|
290
284
|
* Maximum body length, in characters. 256 to 65536.
|
|
291
285
|
* @default 4096
|
|
@@ -330,6 +324,42 @@ export interface LimitOptions {
|
|
|
330
324
|
}
|
|
331
325
|
/** Console method that the console capture can wrap. */
|
|
332
326
|
export type CapturedConsoleMethod = "error" | "warn" | "info" | "log";
|
|
327
|
+
/** Console capture settings. An object turns the capture on, and true uses the defaults below. */
|
|
328
|
+
export interface ConsoleCaptureOptions {
|
|
329
|
+
/**
|
|
330
|
+
* Console methods to wrap. `error` produces an ERROR record and `warn` a WARN record, while
|
|
331
|
+
* `info` and `log` only add a breadcrumb. An empty list wraps nothing.
|
|
332
|
+
* @default ["error", "warn"]
|
|
333
|
+
*/
|
|
334
|
+
levels?: CapturedConsoleMethod[];
|
|
335
|
+
}
|
|
336
|
+
/** Long frame settings. An object turns the capture on, and true uses the defaults below. */
|
|
337
|
+
export interface LongFramesOptions {
|
|
338
|
+
/**
|
|
339
|
+
* Minimum frame duration to report, in milliseconds, 0 or more.
|
|
340
|
+
* @default 100
|
|
341
|
+
*/
|
|
342
|
+
thresholdMs?: number;
|
|
343
|
+
}
|
|
344
|
+
/** User timing settings. An object turns the capture on, and true uses the defaults below. */
|
|
345
|
+
export interface UserTimingOptions {
|
|
346
|
+
/**
|
|
347
|
+
* Names of the marks and measures to record, as strings and RegExp patterns. A string matches
|
|
348
|
+
* any part of the name. An empty list records every name.
|
|
349
|
+
* @default []
|
|
350
|
+
*/
|
|
351
|
+
include?: (string | RegExp)[];
|
|
352
|
+
}
|
|
353
|
+
/** Web vitals settings. An object turns the capture on, and true uses the defaults below. */
|
|
354
|
+
export interface WebVitalsOptions {
|
|
355
|
+
/**
|
|
356
|
+
* Supplies the `web-vitals` module without a hard dependency on the package, for example
|
|
357
|
+
* `() => import("web-vitals")`. Without it, the library reports `config.invalid` and records
|
|
358
|
+
* only the navigation timing. Set null to remove it.
|
|
359
|
+
* @returns A promise that resolves to the `web-vitals` module.
|
|
360
|
+
*/
|
|
361
|
+
loader?: (() => Promise<WebVitalsModule>) | null;
|
|
362
|
+
}
|
|
333
363
|
/** Resource timing settings. Passing an object turns the capture on. */
|
|
334
364
|
export interface ResourceTimingOptions {
|
|
335
365
|
/**
|
|
@@ -353,7 +383,8 @@ export interface InteractionOptions {
|
|
|
353
383
|
*/
|
|
354
384
|
selector?: boolean;
|
|
355
385
|
/**
|
|
356
|
-
* CSS selector for regions to exclude. Set null to include all regions.
|
|
386
|
+
* CSS selector for regions to exclude. Set null to include all regions. Session replay always
|
|
387
|
+
* blocks `[data-observability-ignore]`, whatever this value is.
|
|
357
388
|
* @default "[data-observability-ignore]"
|
|
358
389
|
*/
|
|
359
390
|
ignoreSelector?: string | null;
|
|
@@ -411,21 +442,32 @@ export interface SecurityContextOptions {
|
|
|
411
442
|
/** Stable id for delivery after a page reload. With an empty id, the runtime creates one. */
|
|
412
443
|
id: string;
|
|
413
444
|
/**
|
|
414
|
-
* Keep stored batches in separate contexts. When true, change
|
|
445
|
+
* Keep stored batches in separate contexts. When true, change the routing settings through
|
|
415
446
|
* rotateSecurityContext() instead of configure().
|
|
416
447
|
* @default true
|
|
417
448
|
*/
|
|
418
449
|
isolation: boolean;
|
|
419
450
|
}
|
|
420
|
-
/**
|
|
421
|
-
|
|
422
|
-
|
|
451
|
+
/**
|
|
452
|
+
* Routing settings: where records go and how a request authenticates. The runtime replaces
|
|
453
|
+
* them together when the security context changes.
|
|
454
|
+
*/
|
|
455
|
+
export type RoutingOptions = Pick<ObservabilityConfig, "endpoint" | "metricsEndpoint" | "tracesEndpoint" | "headers" | "credentials" | "transport" | "transportOnExit" | "transportWorker">;
|
|
456
|
+
/** New security context. Any routing field that is left out or undefined resets to its default. */
|
|
423
457
|
export interface SecurityContextUpdate {
|
|
424
458
|
/** New delivery context id. If omitted, the runtime creates one. */
|
|
425
459
|
id?: string;
|
|
426
|
-
/**
|
|
427
|
-
|
|
428
|
-
|
|
460
|
+
/**
|
|
461
|
+
* New routing settings. Any field that is left out or undefined resets to its default, unlike
|
|
462
|
+
* configure(), because a rotation must not carry an old token into the new context. A key that
|
|
463
|
+
* isn't a routing setting reports `config.invalid` and the rotation ignores it, so the other
|
|
464
|
+
* settings stay.
|
|
465
|
+
*/
|
|
466
|
+
routing: RoutingOptions;
|
|
467
|
+
/**
|
|
468
|
+
* New ambient attributes. If omitted, the runtime removes the old ones. A null or undefined
|
|
469
|
+
* value sets no key, as in setContext().
|
|
470
|
+
*/
|
|
429
471
|
context?: Record<string, unknown>;
|
|
430
472
|
}
|
|
431
473
|
/** Policy for old records. */
|
|
@@ -438,23 +480,65 @@ export interface SecurityContextRotationOptions {
|
|
|
438
480
|
*/
|
|
439
481
|
pending?: "discard" | "flush" | "retain" | "carry";
|
|
440
482
|
/**
|
|
441
|
-
* How long to wait for the old records to flush, in milliseconds.
|
|
483
|
+
* How long to wait for the old records to flush, in milliseconds. 0 to 600000. A value
|
|
484
|
+
* outside the range rejects the rotation.
|
|
485
|
+
* @default 5000
|
|
486
|
+
*/
|
|
487
|
+
timeoutMs?: number;
|
|
488
|
+
}
|
|
489
|
+
/** Whose stored records `shutdown()` removes. */
|
|
490
|
+
export type StorageScope = "context" | "namespace";
|
|
491
|
+
/**
|
|
492
|
+
* What `shutdown()` does with the records that wait, and which storage it removes. A value that
|
|
493
|
+
* isn't an object reports `config.invalid` and discards.
|
|
494
|
+
*/
|
|
495
|
+
export interface ShutdownOptions {
|
|
496
|
+
/**
|
|
497
|
+
* What to do with the records in memory. "flush" sends them, then runs the exit flush.
|
|
498
|
+
* "discard" sends nothing and reports each one to `onDrop` with the reason "discarded". A
|
|
499
|
+
* request in flight can still reach the server. Any other value reports `config.invalid` and
|
|
500
|
+
* discards.
|
|
501
|
+
* @default "flush"
|
|
502
|
+
*/
|
|
503
|
+
pending?: "flush" | "discard";
|
|
504
|
+
/**
|
|
505
|
+
* Also removes the stored batches, the emergency queue entries, and the stored session id,
|
|
506
|
+
* tab id and journey. "context" removes the batches of the active security context and the
|
|
507
|
+
* ones a carry left, and "namespace" removes every batch in `storage.namespace`. It always
|
|
508
|
+
* discards, and with `pending: "flush"` it reports `config.invalid`. null removes nothing, as
|
|
509
|
+
* when unset. Any other value reports `config.invalid`, discards and removes the "context"
|
|
510
|
+
* scope. Before the first `configure()` call that works, no store is known, and it removes
|
|
511
|
+
* nothing. After an earlier `shutdown()`, it still removes the stopped runtime's stored data.
|
|
512
|
+
* Unset by default, which removes nothing.
|
|
513
|
+
*/
|
|
514
|
+
clearStorage?: StorageScope | null;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* How long `flush()` waits. Options that aren't an object report `config.invalid` and use the
|
|
518
|
+
* default. null or undefined options use the default with no report.
|
|
519
|
+
*/
|
|
520
|
+
export interface FlushOptions {
|
|
521
|
+
/**
|
|
522
|
+
* How long to wait, in milliseconds. 0 to 600000. The wait also covers startup and the load
|
|
523
|
+
* of the delivery stack. A value that isn't a number in the range reports `config.invalid`
|
|
524
|
+
* and uses the default. null uses the default with no report.
|
|
442
525
|
* @default 5000
|
|
443
526
|
*/
|
|
444
527
|
timeoutMs?: number;
|
|
445
528
|
}
|
|
446
529
|
/**
|
|
447
530
|
* What the library instruments automatically. By default, only `errors` and `rejections`
|
|
448
|
-
* are on.
|
|
531
|
+
* are on. A capture that takes an options object also takes true for its defaults.
|
|
449
532
|
*/
|
|
450
533
|
export interface CaptureOptions {
|
|
451
534
|
/**
|
|
452
535
|
* Rewrites a URL before the capture records it. Applies to page, HTTP, resource and
|
|
453
536
|
* WebSocket URLs.
|
|
537
|
+
* Set null to remove it.
|
|
454
538
|
* @param url Original URL, before the default URL changes.
|
|
455
539
|
* @returns URL to record. Null, an invalid result or an exception produces an empty URL.
|
|
456
540
|
*/
|
|
457
|
-
urlTransform?: (url: string) => string | null;
|
|
541
|
+
urlTransform?: ((url: string) => string | null) | null;
|
|
458
542
|
/**
|
|
459
543
|
* Log uncaught errors from `window.onerror`.
|
|
460
544
|
* @default true
|
|
@@ -497,28 +581,22 @@ export interface CaptureOptions {
|
|
|
497
581
|
*/
|
|
498
582
|
navigation: boolean;
|
|
499
583
|
/**
|
|
500
|
-
* Report web vitals as metrics.
|
|
584
|
+
* Report web vitals as metrics, and the navigation timing. LCP, CLS and INP need a loader.
|
|
501
585
|
* @default false
|
|
502
586
|
*/
|
|
503
|
-
webVitals: boolean;
|
|
587
|
+
webVitals: boolean | WebVitalsOptions;
|
|
504
588
|
/**
|
|
505
589
|
* Report long animation frames as the `ui.long_frame.duration` histogram. A long frame
|
|
506
590
|
* freezes the page. Browsers without `long-animation-frame` report `longtask` entries.
|
|
507
591
|
* @default false
|
|
508
592
|
*/
|
|
509
|
-
longFrames: boolean;
|
|
510
|
-
/**
|
|
511
|
-
* Minimum frame duration that `longFrames` reports, in milliseconds.
|
|
512
|
-
* @default 100
|
|
513
|
-
*/
|
|
514
|
-
longFrameMs: number;
|
|
593
|
+
longFrames: boolean | LongFramesOptions;
|
|
515
594
|
/**
|
|
516
|
-
* Record the app's console calls. `true` wraps `error` and `warn`, and
|
|
517
|
-
* methods.
|
|
518
|
-
* only add a breadcrumb.
|
|
595
|
+
* Record the app's console calls. `true` wraps `error` and `warn`, and `levels` picks the
|
|
596
|
+
* methods.
|
|
519
597
|
* @default false
|
|
520
598
|
*/
|
|
521
|
-
console: boolean |
|
|
599
|
+
console: boolean | ConsoleCaptureOptions;
|
|
522
600
|
/**
|
|
523
601
|
* Keep the query string and fragment on every URL the library records. When off, they are
|
|
524
602
|
* removed from page URLs, request targets and failed resource URLs.
|
|
@@ -533,7 +611,7 @@ export interface CaptureOptions {
|
|
|
533
611
|
/**
|
|
534
612
|
* Targets that receive a `traceparent` header. A string is an origin and matches only
|
|
535
613
|
* requests to that origin. A RegExp tests the full URL. Start every RegExp with `^`, because
|
|
536
|
-
* a pattern that matches all URLs breaks CORS on third-party endpoints.
|
|
614
|
+
* a pattern that matches all URLs breaks CORS on third-party endpoints. Needs `fetch` or `xhr`.
|
|
537
615
|
* @default []
|
|
538
616
|
*/
|
|
539
617
|
propagateTraceHeaderTo: (string | RegExp)[];
|
|
@@ -556,15 +634,10 @@ export interface CaptureOptions {
|
|
|
556
634
|
* breadcrumb. Names follow `fullUrls`.
|
|
557
635
|
* @default false
|
|
558
636
|
*/
|
|
559
|
-
userTiming: boolean;
|
|
560
|
-
/**
|
|
561
|
-
* Names of the marks and measures that userTiming records, as strings and RegExp patterns.
|
|
562
|
-
* A string matches any part of the name. An empty list records every name.
|
|
563
|
-
* @default []
|
|
564
|
-
*/
|
|
565
|
-
userTimingInclude: (string | RegExp)[];
|
|
637
|
+
userTiming: boolean | UserTimingOptions;
|
|
566
638
|
/**
|
|
567
639
|
* Capture switches that remote sampling rules can change for their TTL. Privacy controls stay local.
|
|
640
|
+
* Needs `sampling.remote`.
|
|
568
641
|
* @default []
|
|
569
642
|
*/
|
|
570
643
|
remoteToggles: RemoteCaptureFlag[];
|
|
@@ -594,11 +667,6 @@ export interface CaptureOptions {
|
|
|
594
667
|
* @default []
|
|
595
668
|
*/
|
|
596
669
|
plugins: CapturePlugin[];
|
|
597
|
-
/**
|
|
598
|
-
* Supplies the `web-vitals` module without a hard dependency on the package.
|
|
599
|
-
* @returns A promise that resolves to the `web-vitals` module.
|
|
600
|
-
*/
|
|
601
|
-
webVitalsLoader?: () => Promise<WebVitalsModule>;
|
|
602
670
|
}
|
|
603
671
|
/**
|
|
604
672
|
* Serializer option after resolution. A name stays a name, and the transport picks the
|
|
@@ -612,21 +680,16 @@ export type ConsoleStyleKey = "namespace" | LogLevel;
|
|
|
612
680
|
* A browser applies it with `%c`. Node prints the text without the style.
|
|
613
681
|
*/
|
|
614
682
|
export type ConsoleStyles = Partial<Record<ConsoleStyleKey, string>>;
|
|
615
|
-
/** Object form of the
|
|
616
|
-
export interface
|
|
683
|
+
/** Object form of the consoleOutput option. */
|
|
684
|
+
export interface ConsoleOutputOptions {
|
|
617
685
|
/**
|
|
618
|
-
* Lowest level the console prints. If you leave it unset, the current level stays
|
|
619
|
-
*
|
|
686
|
+
* Lowest level the console prints. If you leave it unset, the current level stays, and a
|
|
687
|
+
* console that is off stays off.
|
|
620
688
|
*/
|
|
621
689
|
level?: LogLevel;
|
|
622
690
|
/** CSS for the namespace and for each level. Any key you leave unset keeps its style. */
|
|
623
691
|
styles?: ConsoleStyles;
|
|
624
692
|
}
|
|
625
|
-
/**
|
|
626
|
-
* Console mirroring. `false` turns it off. `true` prints records at DEBUG and above.
|
|
627
|
-
* A level prints records at that level and above. An object sets the level and the styles.
|
|
628
|
-
*/
|
|
629
|
-
export type ConsoleOption = boolean | LogLevel | ConsoleOptions;
|
|
630
693
|
/** Console settings after resolution. */
|
|
631
694
|
export interface ResolvedConsole {
|
|
632
695
|
/** Lowest level that the console prints, or null when the console is off. */
|
|
@@ -698,14 +761,15 @@ export type Transport = (request: TransportRequest) => Promise<TransportResponse
|
|
|
698
761
|
*/
|
|
699
762
|
export type ExitTransport = (request: TransportRequest) => boolean;
|
|
700
763
|
/** Request timing, retry timing and delivery capacity. Durations are in milliseconds. */
|
|
701
|
-
export interface
|
|
764
|
+
export interface DeliveryOptions {
|
|
702
765
|
/**
|
|
703
766
|
* Maximum wait for one request. Must be at least 1.
|
|
704
767
|
* @default 15000
|
|
705
768
|
*/
|
|
706
769
|
requestTimeoutMs: number;
|
|
707
770
|
/**
|
|
708
|
-
* Maximum requests in flight at once. Must be at least 1.
|
|
771
|
+
* Maximum live requests in flight at once. Must be at least 1. The retry drain sends one
|
|
772
|
+
* stored batch at a time on top of this limit.
|
|
709
773
|
* @default 2
|
|
710
774
|
*/
|
|
711
775
|
maxConcurrentRequests: number;
|
|
@@ -719,16 +783,6 @@ export interface DeliveryPolicy {
|
|
|
719
783
|
* @default 60000
|
|
720
784
|
*/
|
|
721
785
|
retryMaxDelayMs: number;
|
|
722
|
-
/**
|
|
723
|
-
* Wait before the next check for stored work.
|
|
724
|
-
* @default 30000
|
|
725
|
-
*/
|
|
726
|
-
retryIdleDelayMs: number;
|
|
727
|
-
/**
|
|
728
|
-
* Maximum batches in one delivery pass. Must be at least 1.
|
|
729
|
-
* @default 20
|
|
730
|
-
*/
|
|
731
|
-
batchesPerDrain: number;
|
|
732
786
|
/**
|
|
733
787
|
* Fetch priority of every batch request. With "low", the app's own requests go first. The
|
|
734
788
|
* exit flush and a keepalive send from a hidden page use the browser default.
|
|
@@ -736,18 +790,27 @@ export interface DeliveryPolicy {
|
|
|
736
790
|
*/
|
|
737
791
|
priority: "low" | "auto" | "high";
|
|
738
792
|
}
|
|
739
|
-
/** Record and byte limits for the live delivery buffers. */
|
|
740
|
-
export interface
|
|
793
|
+
/** Record and byte limits for the live delivery buffers, and the cap of a hold buffer. */
|
|
794
|
+
export interface BufferingOptions {
|
|
741
795
|
/**
|
|
742
|
-
* Maximum records in the buffers and requests. Set
|
|
796
|
+
* Maximum records in the buffers and requests, 1 or more. Set null for no record limit.
|
|
743
797
|
* @default 10000
|
|
744
798
|
*/
|
|
745
|
-
maxPendingRecords: number;
|
|
799
|
+
maxPendingRecords: number | null;
|
|
746
800
|
/**
|
|
747
|
-
* Maximum encoded JSON bytes in the buffers and requests. Set
|
|
801
|
+
* Maximum encoded JSON bytes in the buffers and requests, 1 or more. Set null for no byte
|
|
802
|
+
* limit.
|
|
748
803
|
* @default 16777216
|
|
749
804
|
*/
|
|
750
|
-
maxPendingBytes: number;
|
|
805
|
+
maxPendingBytes: number | null;
|
|
806
|
+
/**
|
|
807
|
+
* Maximum records other than actions in one hold buffer. A hold buffer keeps the records
|
|
808
|
+
* that arrive before startup ends, or while the sender loads. A full one keeps its first
|
|
809
|
+
* 100 records and drops the oldest record after them. A lower value removes no held record.
|
|
810
|
+
* 200 to 10000.
|
|
811
|
+
* @default 500
|
|
812
|
+
*/
|
|
813
|
+
maxHeldRecords: number;
|
|
751
814
|
/**
|
|
752
815
|
* What to do when a new record does not fit: remove old records, drop the new record, or
|
|
753
816
|
* try storage.
|
|
@@ -755,45 +818,50 @@ export interface BufferingPolicy {
|
|
|
755
818
|
*/
|
|
756
819
|
overflow: "drop-oldest" | "drop-newest" | "persist";
|
|
757
820
|
}
|
|
758
|
-
/**
|
|
759
|
-
export interface
|
|
821
|
+
/** The metric interval, and the metric capacity in one interval. */
|
|
822
|
+
export interface MetricsOptions {
|
|
823
|
+
/**
|
|
824
|
+
* How often counters, histograms and profiler probes send their points, in milliseconds. A
|
|
825
|
+
* partial metric batch also waits this long before it is sent. 1000 to 600000.
|
|
826
|
+
* @default 10000
|
|
827
|
+
*/
|
|
828
|
+
intervalMs: number;
|
|
760
829
|
/**
|
|
761
|
-
* Maximum histogram boundaries.
|
|
830
|
+
* Maximum histogram boundaries. With 0, only a histogram without boundaries is valid. Set
|
|
831
|
+
* null for no limit.
|
|
762
832
|
* @default 50
|
|
763
833
|
*/
|
|
764
|
-
maxHistogramBoundaries: number;
|
|
834
|
+
maxHistogramBoundaries: number | null;
|
|
765
835
|
/**
|
|
766
|
-
* Maximum attribute sets per instrument. Extra sets go into the overflow set
|
|
767
|
-
* limit.
|
|
836
|
+
* Maximum attribute sets per instrument. Extra sets go into the overflow set, so 0 puts every
|
|
837
|
+
* value there. Set null for no limit.
|
|
768
838
|
* @default 100
|
|
769
839
|
*/
|
|
770
|
-
maxSeries: number;
|
|
840
|
+
maxSeries: number | null;
|
|
771
841
|
/**
|
|
772
|
-
* Maximum instrument names. Extra names are dropped
|
|
842
|
+
* Maximum instrument names. Extra names are dropped, so 0 drops every metric value. Set null
|
|
843
|
+
* for no limit.
|
|
773
844
|
* @default 1000
|
|
774
845
|
*/
|
|
775
|
-
maxInstruments: number;
|
|
846
|
+
maxInstruments: number | null;
|
|
776
847
|
}
|
|
777
848
|
/** Session and trace timing. The runtime sets these values at startup. */
|
|
778
|
-
export interface
|
|
849
|
+
export interface CorrelationOptions {
|
|
779
850
|
/**
|
|
780
|
-
* How long a stored session can stay idle, in milliseconds. Set
|
|
851
|
+
* How long a stored session can stay idle, in milliseconds, 1 or more. Set null for no idle
|
|
852
|
+
* expiration.
|
|
781
853
|
* @default 1800000
|
|
782
854
|
*/
|
|
783
|
-
sessionIdleMs: number;
|
|
784
|
-
/**
|
|
785
|
-
* Minimum wait between session activity writes, in milliseconds. Set 0 to write every time.
|
|
786
|
-
* @default 60000
|
|
787
|
-
*/
|
|
788
|
-
sessionTouchMs: number;
|
|
855
|
+
sessionIdleMs: number | null;
|
|
789
856
|
/**
|
|
790
|
-
*
|
|
857
|
+
* Maximum age of an ambient trace, in milliseconds, 1 or more. The age counts from the trace's
|
|
858
|
+
* start, and the next record after it gets a new trace. Set null for no age limit.
|
|
791
859
|
* @default 300000
|
|
792
860
|
*/
|
|
793
|
-
traceMaxAgeMs: number;
|
|
861
|
+
traceMaxAgeMs: number | null;
|
|
794
862
|
}
|
|
795
863
|
/** Rules for diagnostic reports and the console fallback. */
|
|
796
|
-
export interface
|
|
864
|
+
export interface DiagnosticsOptions {
|
|
797
865
|
/**
|
|
798
866
|
* Minimum wait between reports of one code, in milliseconds. Set 0 to report every event.
|
|
799
867
|
* @default 1000
|
|
@@ -813,8 +881,13 @@ export interface DiagnosticsPolicy {
|
|
|
813
881
|
*/
|
|
814
882
|
records: boolean | DiagnosticCode[];
|
|
815
883
|
}
|
|
816
|
-
/**
|
|
817
|
-
export interface
|
|
884
|
+
/** Storage of undelivered batches. Can't be changed after startup. */
|
|
885
|
+
export interface StorageOptions {
|
|
886
|
+
/**
|
|
887
|
+
* Backing store for undelivered batches. "auto" picks the best one the host supports.
|
|
888
|
+
* @default "auto"
|
|
889
|
+
*/
|
|
890
|
+
backend: StorageStrategy;
|
|
818
891
|
/**
|
|
819
892
|
* Namespace for batch storage and emergency queues. An empty value uses the previous storage keys.
|
|
820
893
|
* @default ""
|
|
@@ -828,7 +901,7 @@ export interface PersistencePolicy {
|
|
|
828
901
|
requestPersistent: boolean;
|
|
829
902
|
}
|
|
830
903
|
/** Resource and page fields that the SDK records. */
|
|
831
|
-
export interface
|
|
904
|
+
export interface MetadataOptions {
|
|
832
905
|
/**
|
|
833
906
|
* Record the page URL. When false, page.url is empty.
|
|
834
907
|
* @default true
|
|
@@ -852,7 +925,7 @@ export interface MetadataPolicy {
|
|
|
852
925
|
clockOffset: boolean;
|
|
853
926
|
}
|
|
854
927
|
/** Capture capacity, duplicate checks and rate limits. */
|
|
855
|
-
export interface
|
|
928
|
+
export interface CaptureLimitsOptions {
|
|
856
929
|
/**
|
|
857
930
|
* Maximum breadcrumbs to keep. Set 0 to keep none.
|
|
858
931
|
* @default 50
|
|
@@ -864,50 +937,47 @@ export interface CapturePolicy {
|
|
|
864
937
|
*/
|
|
865
938
|
errorDedupeMs: number;
|
|
866
939
|
/**
|
|
867
|
-
* Maximum
|
|
868
|
-
* @default
|
|
940
|
+
* Maximum captured errors in one window. Set 0 to capture none, or null for no limit.
|
|
941
|
+
* @default 20
|
|
869
942
|
*/
|
|
870
|
-
|
|
943
|
+
errorsPerWindow: number | null;
|
|
871
944
|
/**
|
|
872
|
-
* Maximum captured
|
|
945
|
+
* Maximum captured console records in one window. Set 0 to capture none, or null for no
|
|
946
|
+
* limit.
|
|
873
947
|
* @default 20
|
|
874
948
|
*/
|
|
875
|
-
|
|
949
|
+
consolePerWindow: number | null;
|
|
876
950
|
/**
|
|
877
|
-
* Maximum
|
|
951
|
+
* Maximum long frames in one window. Set 0 to capture none, or null for no limit.
|
|
878
952
|
* @default 20
|
|
879
953
|
*/
|
|
880
|
-
|
|
954
|
+
longFramesPerWindow: number | null;
|
|
881
955
|
/**
|
|
882
|
-
* Maximum
|
|
956
|
+
* Maximum WebSocket events in one window. Set 0 to capture none, or null for no limit.
|
|
883
957
|
* @default 20
|
|
884
958
|
*/
|
|
885
|
-
|
|
959
|
+
webSocketPerWindow: number | null;
|
|
960
|
+
/** Maximum reports in one window. Set 0 to capture none, or null for no limit. @default 20 */
|
|
961
|
+
reportsPerWindow: number | null;
|
|
962
|
+
/**
|
|
963
|
+
* Maximum resource entries in one window. Set 0 to capture none, or null for no limit.
|
|
964
|
+
* @default 100
|
|
965
|
+
*/
|
|
966
|
+
resourcesPerWindow: number | null;
|
|
886
967
|
/**
|
|
887
|
-
* Maximum
|
|
968
|
+
* Maximum lifecycle events in one window. Set 0 to capture none, or null for no limit.
|
|
888
969
|
* @default 20
|
|
889
970
|
*/
|
|
890
|
-
|
|
891
|
-
/** Maximum reports in one window. Set 0 for no limit. @default 20 */
|
|
892
|
-
reportsPerWindow: number;
|
|
893
|
-
/** Maximum resource entries in one window. Set 0 for no limit. @default 100 */
|
|
894
|
-
resourcesPerWindow: number;
|
|
895
|
-
/** Maximum lifecycle events in one window. Set 0 for no limit. @default 20 */
|
|
896
|
-
lifecyclePerWindow: number;
|
|
971
|
+
lifecyclePerWindow: number | null;
|
|
897
972
|
/**
|
|
898
|
-
*
|
|
973
|
+
* Window of the capture rate limits above, in milliseconds, 1 or more. To turn the rate
|
|
974
|
+
* limits off, set the limits of each window to null.
|
|
899
975
|
* @default 10000
|
|
900
976
|
*/
|
|
901
977
|
windowMs: number;
|
|
902
|
-
/**
|
|
903
|
-
* Maximum log records at or above `sampling.alwaysSampleFrom` in one window. Metric points
|
|
904
|
-
* and spans do not count. Set 0 for no limit.
|
|
905
|
-
* @default 500
|
|
906
|
-
*/
|
|
907
|
-
errorCeiling: number;
|
|
908
978
|
}
|
|
909
979
|
/** Records that minLevel or sampling drops, kept for the next error. */
|
|
910
|
-
export interface
|
|
980
|
+
export interface DebugBufferOptions {
|
|
911
981
|
/**
|
|
912
982
|
* Keep the records that minLevel or sampling drops. An ERROR or FATAL record from this
|
|
913
983
|
* context sends them first, with `uiobs.debug_buffer: true`. A later change to `redact` or
|
|
@@ -921,23 +991,19 @@ export interface DebugBufferPolicy {
|
|
|
921
991
|
*/
|
|
922
992
|
maxRecords: number;
|
|
923
993
|
/**
|
|
924
|
-
* Maximum age of a kept record when the library reads it, in milliseconds
|
|
994
|
+
* Maximum age of a kept record when the library reads it, in milliseconds, 1 or more. Set
|
|
995
|
+
* null for no age limit.
|
|
925
996
|
* @default 60000
|
|
926
997
|
*/
|
|
927
|
-
maxAgeMs: number;
|
|
998
|
+
maxAgeMs: number | null;
|
|
928
999
|
}
|
|
929
1000
|
/** Duration probes. Each probe is reported as a histogram summary record. */
|
|
930
|
-
export interface
|
|
1001
|
+
export interface ProfilerOptions {
|
|
931
1002
|
/**
|
|
932
1003
|
* Record probe durations. When false, probes do nothing and don't even read the clock.
|
|
933
1004
|
* @default false
|
|
934
1005
|
*/
|
|
935
1006
|
enabled: boolean;
|
|
936
|
-
/**
|
|
937
|
-
* How often the profiler sends its summary records, in milliseconds. 1000 to 600000.
|
|
938
|
-
* @default 10000
|
|
939
|
-
*/
|
|
940
|
-
flushIntervalMs: number;
|
|
941
1007
|
/**
|
|
942
1008
|
* Maximum number of probes, 1 to 1024. Can't be changed after startup.
|
|
943
1009
|
* @default 64
|
|
@@ -961,7 +1027,7 @@ export interface ProfilerPolicy {
|
|
|
961
1027
|
* Session replay. The app's recorder records the DOM, and the library keeps the recent events
|
|
962
1028
|
* in memory and sends them in segments after an error.
|
|
963
1029
|
*/
|
|
964
|
-
export interface
|
|
1030
|
+
export interface ReplayOptions {
|
|
965
1031
|
/**
|
|
966
1032
|
* Record the DOM. Needs `loader`, plus either `endpoint` or `onSegment`.
|
|
967
1033
|
* @default false
|
|
@@ -973,10 +1039,11 @@ export interface ReplayPolicy {
|
|
|
973
1039
|
*/
|
|
974
1040
|
mode: ReplayMode;
|
|
975
1041
|
/**
|
|
976
|
-
* URL that each segment is POSTed to. This is separate from the log endpoint.
|
|
977
|
-
*
|
|
1042
|
+
* URL that each segment is POSTed to. This is separate from the log endpoint. Set null to
|
|
1043
|
+
* turn it off. An empty or blank string also turns it off, and reports `config.invalid`.
|
|
1044
|
+
* @default null
|
|
978
1045
|
*/
|
|
979
|
-
endpoint: string;
|
|
1046
|
+
endpoint: string | null;
|
|
980
1047
|
/**
|
|
981
1048
|
* When true, nothing is recorded until `startReplay()` is called.
|
|
982
1049
|
* @default false
|
|
@@ -1001,21 +1068,27 @@ export interface ReplayPolicy {
|
|
|
1001
1068
|
*/
|
|
1002
1069
|
afterErrorMs: number;
|
|
1003
1070
|
/**
|
|
1004
|
-
* Maximum uploads
|
|
1071
|
+
* Maximum uploads in one `uploadWindowMs` window. Set 0 to upload nothing, or null for no
|
|
1072
|
+
* limit.
|
|
1005
1073
|
* @default 3
|
|
1006
1074
|
*/
|
|
1007
|
-
uploadsPerWindow: number;
|
|
1075
|
+
uploadsPerWindow: number | null;
|
|
1076
|
+
/**
|
|
1077
|
+
* Length of the `uploadsPerWindow` window, in milliseconds, 1 or more.
|
|
1078
|
+
* @default 10000
|
|
1079
|
+
*/
|
|
1080
|
+
uploadWindowMs: number;
|
|
1008
1081
|
/**
|
|
1009
|
-
* Maximum events
|
|
1082
|
+
* Maximum events in one segment. 1 to 10000.
|
|
1010
1083
|
* @default 200
|
|
1011
1084
|
*/
|
|
1012
|
-
|
|
1085
|
+
maxSegmentEvents: number;
|
|
1013
1086
|
/**
|
|
1014
1087
|
* Maximum segment size, measured as the JSON length of its events. A single event larger
|
|
1015
1088
|
* than this gets a segment to itself. 10000 to 10000000.
|
|
1016
1089
|
* @default 512000
|
|
1017
1090
|
*/
|
|
1018
|
-
|
|
1091
|
+
maxSegmentBytes: number;
|
|
1019
1092
|
/**
|
|
1020
1093
|
* How long a partial segment waits before it is sent, in milliseconds. 100 to 60000.
|
|
1021
1094
|
* @default 2000
|
|
@@ -1056,7 +1129,8 @@ export interface ReplayPolicy {
|
|
|
1056
1129
|
*/
|
|
1057
1130
|
maskSelectors: string[];
|
|
1058
1131
|
/**
|
|
1059
|
-
* CSS selectors for elements the recorder should skip entirely.
|
|
1132
|
+
* CSS selectors for elements the recorder should skip entirely. The recorder also always
|
|
1133
|
+
* skips `[data-observability-ignore]`, the regions click capture ignores.
|
|
1060
1134
|
* @default []
|
|
1061
1135
|
*/
|
|
1062
1136
|
blockSelectors: string[];
|
|
@@ -1091,27 +1165,25 @@ export interface ReplayPolicy {
|
|
|
1091
1165
|
/** Options passed to `configure()`. */
|
|
1092
1166
|
export interface ObservabilityConfig {
|
|
1093
1167
|
/** Capture capacity and rate limits. */
|
|
1094
|
-
|
|
1168
|
+
captureLimits?: Partial<CaptureLimitsOptions>;
|
|
1095
1169
|
/** Resource and page fields to record. */
|
|
1096
|
-
metadata?: Partial<
|
|
1097
|
-
/** Application storage namespace. */
|
|
1098
|
-
persistence?: Partial<PersistencePolicy>;
|
|
1170
|
+
metadata?: Partial<MetadataOptions>;
|
|
1099
1171
|
/** Diagnostic report and console fallback settings. */
|
|
1100
|
-
diagnostics?: Partial<
|
|
1172
|
+
diagnostics?: Partial<DiagnosticsOptions>;
|
|
1101
1173
|
/** Session and trace timing. */
|
|
1102
|
-
correlation?: Partial<
|
|
1103
|
-
/**
|
|
1104
|
-
metrics?: Partial<
|
|
1174
|
+
correlation?: Partial<CorrelationOptions>;
|
|
1175
|
+
/** The metric interval and the metric capacity in one interval. */
|
|
1176
|
+
metrics?: Partial<MetricsOptions>;
|
|
1105
1177
|
/** Live buffer capacity and the overflow rule. */
|
|
1106
|
-
buffering?: Partial<
|
|
1178
|
+
buffering?: Partial<BufferingOptions>;
|
|
1107
1179
|
/** Request timing and delivery capacity. */
|
|
1108
|
-
delivery?: Partial<
|
|
1180
|
+
delivery?: Partial<DeliveryOptions>;
|
|
1109
1181
|
/** Records that minLevel or sampling drops, kept for the next error. */
|
|
1110
|
-
debugBuffer?: Partial<
|
|
1182
|
+
debugBuffer?: Partial<DebugBufferOptions>;
|
|
1111
1183
|
/** Duration probes. Each probe is reported as a histogram summary record. */
|
|
1112
|
-
profiler?: Partial<
|
|
1184
|
+
profiler?: Partial<ProfilerOptions>;
|
|
1113
1185
|
/** Session replay. Off by default. */
|
|
1114
|
-
replay?: Partial<
|
|
1186
|
+
replay?: Partial<ReplayOptions>;
|
|
1115
1187
|
/**
|
|
1116
1188
|
* Refuse changes through configure(). Call setConfigurationLocked(false) to permit changes again.
|
|
1117
1189
|
* @default false
|
|
@@ -1123,27 +1195,30 @@ export interface ObservabilityConfig {
|
|
|
1123
1195
|
securityContext?: Partial<SecurityContextOptions>;
|
|
1124
1196
|
/**
|
|
1125
1197
|
* Ingest endpoint URL. Set `null` for console-only mode, where the library sends nothing
|
|
1126
|
-
* and writes records to the console only if you set `
|
|
1127
|
-
* `""`, the library reports `config.invalid`.
|
|
1198
|
+
* and writes records to the console only if you set `consoleOutput`. If the key is missing or
|
|
1199
|
+
* `""`, the library reports `config.invalid`. A relative URL resolves against the page, and a
|
|
1200
|
+
* URL with a user name or a password is refused.
|
|
1128
1201
|
*/
|
|
1129
1202
|
endpoint?: string | null;
|
|
1130
1203
|
/**
|
|
1131
1204
|
* OTLP metrics endpoint URL, for example `"https://ingest.example/v1/metrics"`. When set,
|
|
1132
1205
|
* the library sends every batch of metric records there as an OTLP
|
|
1133
1206
|
* `ExportMetricsServiceRequest`. Without it, metric records are log records on `endpoint`.
|
|
1134
|
-
* Needs `serializer: "otlp"`. Set
|
|
1135
|
-
*
|
|
1207
|
+
* Needs `serializer: "otlp"`. Set null to turn it off. A blank string also turns it off, and
|
|
1208
|
+
* reports `config.invalid`.
|
|
1209
|
+
* @default null
|
|
1136
1210
|
*/
|
|
1137
|
-
metricsEndpoint?: string;
|
|
1211
|
+
metricsEndpoint?: string | null;
|
|
1138
1212
|
/**
|
|
1139
1213
|
* OTLP traces endpoint URL, for example `"https://ingest.example/v1/traces"`. When set, the
|
|
1140
1214
|
* library records one root span for every trace it creates and one CLIENT span for every
|
|
1141
1215
|
* request that gets `traceparent`, and sends them there as an OTLP
|
|
1142
1216
|
* `ExportTraceServiceRequest`. Without it, the library sends no spans. Needs
|
|
1143
|
-
* `serializer: "otlp"`. Set
|
|
1144
|
-
*
|
|
1217
|
+
* `serializer: "otlp"`. Set null to turn it off. A blank string also turns it off, and reports
|
|
1218
|
+
* `config.invalid`.
|
|
1219
|
+
* @default null
|
|
1145
1220
|
*/
|
|
1146
|
-
tracesEndpoint?: string;
|
|
1221
|
+
tracesEndpoint?: string | null;
|
|
1147
1222
|
/**
|
|
1148
1223
|
* Reported as `service.name`.
|
|
1149
1224
|
* @default ""
|
|
@@ -1160,7 +1235,18 @@ export interface ObservabilityConfig {
|
|
|
1160
1235
|
*/
|
|
1161
1236
|
environment?: string;
|
|
1162
1237
|
/**
|
|
1163
|
-
* Master switch.
|
|
1238
|
+
* Master switch. False pauses the library, also in the first `configure()` call. Log calls
|
|
1239
|
+
* then do nothing. The pause first sends the open interval of the counters, histograms and
|
|
1240
|
+
* probes, and they then record nothing. The library removes its captures, the replay recorder
|
|
1241
|
+
* and its network patches, so it adds no trace header. The sender sends nothing, and the pause
|
|
1242
|
+
* stores no new record. Storage still changes in four cases: a request in flight at the pause
|
|
1243
|
+
* fails and stores its batch, a sender load that ends during the pause moves the emergency
|
|
1244
|
+
* queue into storage, a `retain` rotation stores the waiting records, and a `discard` or
|
|
1245
|
+
* `flush` rotation removes the old context's stored batches.
|
|
1246
|
+
* Records collected before the pause stay in memory or in storage, and they go out after
|
|
1247
|
+
* `enabled: true`. The bus of a running runtime stays connected. A record from a child
|
|
1248
|
+
* context is lost with the `onDrop` reason "disabled", also in a paused forwarder. A first
|
|
1249
|
+
* `configure()` call with `enabled: false` writes nothing to storage and starts no bus.
|
|
1164
1250
|
* @default true
|
|
1165
1251
|
*/
|
|
1166
1252
|
enabled?: boolean;
|
|
@@ -1198,13 +1284,19 @@ export interface ObservabilityConfig {
|
|
|
1198
1284
|
* @default "omit"
|
|
1199
1285
|
*/
|
|
1200
1286
|
credentials?: RequestCredentials;
|
|
1201
|
-
/** Extra request headers, or a function returning them. `undefined` removes the headers. */
|
|
1202
|
-
headers?: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
|
|
1203
1287
|
/**
|
|
1204
|
-
*
|
|
1205
|
-
*
|
|
1288
|
+
* Extra request headers, or a function returning them. undefined keeps the current headers.
|
|
1289
|
+
* With isolation off, null removes them. With isolation on, the default, use
|
|
1290
|
+
* rotateSecurityContext() at logout, because configure() refuses a routing change. The
|
|
1291
|
+
* library has no default headers.
|
|
1292
|
+
*/
|
|
1293
|
+
headers?: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>) | null;
|
|
1294
|
+
/**
|
|
1295
|
+
* Backing store, namespace and persistence request for undelivered batches. Can't be changed
|
|
1296
|
+
* after startup.
|
|
1297
|
+
* @see {@link StorageOptions}
|
|
1206
1298
|
*/
|
|
1207
|
-
storage?:
|
|
1299
|
+
storage?: Partial<StorageOptions>;
|
|
1208
1300
|
/**
|
|
1209
1301
|
* Where the library keeps session, tab and journey ids. "memory" writes no key to
|
|
1210
1302
|
* localStorage or sessionStorage, so every page load starts a new session. Can't be changed
|
|
@@ -1239,103 +1331,112 @@ export interface ObservabilityConfig {
|
|
|
1239
1331
|
retention?: Partial<RetentionOptions>;
|
|
1240
1332
|
/**
|
|
1241
1333
|
* Size limits for each record.
|
|
1242
|
-
* @see {@link
|
|
1334
|
+
* @see {@link LimitsOptions}
|
|
1243
1335
|
*/
|
|
1244
|
-
limits?: Partial<
|
|
1336
|
+
limits?: Partial<LimitsOptions>;
|
|
1245
1337
|
/**
|
|
1246
1338
|
* Automatic instrumentation.
|
|
1247
1339
|
* @see {@link CaptureOptions}
|
|
1248
1340
|
*/
|
|
1249
1341
|
capture?: Partial<CaptureOptions>;
|
|
1250
1342
|
/**
|
|
1251
|
-
*
|
|
1343
|
+
* Prints records to the browser console. The line format is `[namespace][LEVEL] message`.
|
|
1344
|
+
* `false` turns it off, and `true` prints records at DEBUG and above. A level prints records
|
|
1345
|
+
* at that level and above. An object sets the level and the styles.
|
|
1252
1346
|
* @default false
|
|
1253
1347
|
*/
|
|
1254
|
-
|
|
1348
|
+
consoleOutput?: boolean | LogLevel | ConsoleOutputOptions;
|
|
1255
1349
|
/**
|
|
1256
1350
|
* Sends batches through one of the app's own channels instead of HTTP. With `transport`,
|
|
1257
1351
|
* `endpoint` is optional. The library does not compress the body for a custom transport.
|
|
1352
|
+
* Set null to remove it.
|
|
1258
1353
|
* @see {@link Transport}
|
|
1259
1354
|
*/
|
|
1260
|
-
transport?: Transport;
|
|
1355
|
+
transport?: Transport | null;
|
|
1261
1356
|
/**
|
|
1262
1357
|
* Sends the last batch while the page closes, for a custom transport. Without it, the
|
|
1263
|
-
* library puts that batch in the emergency queue and the next page load sends it.
|
|
1358
|
+
* library puts that batch in the emergency queue and the next page load sends it. Needs
|
|
1359
|
+
* `transport`. Set null to remove it.
|
|
1264
1360
|
* @see {@link ExitTransport}
|
|
1265
1361
|
*/
|
|
1266
|
-
transportOnExit?: ExitTransport;
|
|
1362
|
+
transportOnExit?: ExitTransport | null;
|
|
1267
1363
|
/**
|
|
1268
1364
|
* Creates a dedicated worker for encoding, compression and HTTP sends. The worker calls serveTransportWorker().
|
|
1269
|
-
* Headers functions, retries, storage and exit sends stay on the main thread.
|
|
1365
|
+
* Headers functions, retries, storage and exit sends stay on the main thread. With `transport`
|
|
1366
|
+
* set, the library doesn't start the worker. Set null to remove it.
|
|
1270
1367
|
*/
|
|
1271
|
-
transportWorker?: () => Worker;
|
|
1368
|
+
transportWorker?: (() => Worker) | null;
|
|
1272
1369
|
/**
|
|
1273
1370
|
* Loads the `@opentelemetry/api` module. Example: `() => import("@opentelemetry/api")`.
|
|
1274
|
-
* OTel stays off unless you set it.
|
|
1371
|
+
* OTel stays off unless you set it. Set null to remove it.
|
|
1275
1372
|
* @see {@link OtelLoader}
|
|
1276
1373
|
*/
|
|
1277
|
-
otelLoader?: OtelLoader;
|
|
1374
|
+
otelLoader?: OtelLoader | null;
|
|
1278
1375
|
/**
|
|
1279
1376
|
* Returns attributes for every record the library builds. Its values override `setContext()`
|
|
1280
1377
|
* values, and the logger scope and the call payload override its values. It is called for
|
|
1281
1378
|
* every built record, including records used only for the console or breadcrumbs. Keep it
|
|
1282
1379
|
* fast and synchronous. If it throws or returns a non-object, it adds nothing to the record.
|
|
1380
|
+
* Set null to remove it.
|
|
1283
1381
|
* @returns The attributes, or undefined for none.
|
|
1284
1382
|
*/
|
|
1285
|
-
contextProvider?: () => Record<string, unknown> | undefined;
|
|
1383
|
+
contextProvider?: (() => Record<string, unknown> | undefined) | null;
|
|
1286
1384
|
/**
|
|
1287
1385
|
* Change or drop a record. Processors run in list order, before `redact`, and follow the
|
|
1288
1386
|
* same contract as `redact`. If one throws or returns something that isn't a record, the
|
|
1289
|
-
* library drops the record.
|
|
1387
|
+
* library drops the record. A list with an entry that isn't a function keeps the current list,
|
|
1388
|
+
* and with no current list the library drops every record until a later call sets a list of
|
|
1389
|
+
* functions or [].
|
|
1290
1390
|
*/
|
|
1291
1391
|
processors?: ((record: LogRecord) => LogRecord | null)[];
|
|
1292
1392
|
/**
|
|
1293
1393
|
* Changes or drops a record before the SDK prints or sends it. If the hook throws or returns
|
|
1294
|
-
* something that isn't a record, the library drops the record.
|
|
1394
|
+
* something that isn't a record, the library drops the record. An omitted key or undefined
|
|
1395
|
+
* keeps the current hook. Set null to remove it. A value that isn't a function keeps the
|
|
1396
|
+
* current hook, and with no current hook the library drops every record until a later call
|
|
1397
|
+
* sets a function or null.
|
|
1295
1398
|
* @param record Record to process. It may be destined only for the console or breadcrumbs.
|
|
1296
1399
|
* @returns The record to send, or `null` to drop it.
|
|
1297
1400
|
*/
|
|
1298
|
-
redact?: (record: LogRecord) => LogRecord | null;
|
|
1401
|
+
redact?: ((record: LogRecord) => LogRecord | null) | null;
|
|
1299
1402
|
/**
|
|
1300
|
-
* Reports this library's own faults.
|
|
1403
|
+
* Reports this library's own faults. Set null to remove it.
|
|
1301
1404
|
* @see {@link DiagnosticHandler}
|
|
1302
1405
|
*/
|
|
1303
|
-
onDiagnostic?: DiagnosticHandler;
|
|
1406
|
+
onDiagnostic?: DiagnosticHandler | null;
|
|
1304
1407
|
/**
|
|
1305
1408
|
* Receives a summary when the library loses records it has already built. Sampling,
|
|
1306
1409
|
* `minLevel`, `processors` and `redact` do not cause a loss. Losses with the same reason in
|
|
1307
1410
|
* the same task are merged. Do not log through the library in the hook, because a record
|
|
1308
1411
|
* from the hook can evict a stored batch. A batch that storage evicts during its send can
|
|
1309
|
-
* still reach the server.
|
|
1412
|
+
* still reach the server. Set null to remove it.
|
|
1310
1413
|
* @param summary The loss's reason, record count, batch ids, journey ids and action names.
|
|
1311
1414
|
* @see {@link DropSummary}
|
|
1312
1415
|
*/
|
|
1313
|
-
onDrop?: (summary: DropSummary) => void;
|
|
1416
|
+
onDrop?: ((summary: DropSummary) => void) | null;
|
|
1314
1417
|
}
|
|
1315
1418
|
/** Fully resolved configuration that the runtime holds. */
|
|
1316
1419
|
export interface ResolvedConfig {
|
|
1317
1420
|
/** Capture capacity and rate limits. */
|
|
1318
|
-
|
|
1421
|
+
captureLimits: CaptureLimitsOptions;
|
|
1319
1422
|
/** Resource and page fields to record. */
|
|
1320
|
-
metadata:
|
|
1321
|
-
/** Application storage namespace. */
|
|
1322
|
-
persistence: PersistencePolicy;
|
|
1423
|
+
metadata: MetadataOptions;
|
|
1323
1424
|
/** Diagnostic report and console fallback settings. */
|
|
1324
|
-
diagnostics:
|
|
1425
|
+
diagnostics: DiagnosticsOptions;
|
|
1325
1426
|
/** Session and trace timing. */
|
|
1326
|
-
correlation:
|
|
1327
|
-
/**
|
|
1328
|
-
metrics:
|
|
1427
|
+
correlation: CorrelationOptions;
|
|
1428
|
+
/** The metric interval and the metric capacity in one interval. */
|
|
1429
|
+
metrics: MetricsOptions;
|
|
1329
1430
|
/** Live buffer capacity and the overflow rule. */
|
|
1330
|
-
buffering:
|
|
1431
|
+
buffering: BufferingOptions;
|
|
1331
1432
|
/** Request timing and delivery capacity. */
|
|
1332
|
-
delivery:
|
|
1433
|
+
delivery: DeliveryOptions;
|
|
1333
1434
|
/** Records that minLevel or sampling drops, kept for the next error. */
|
|
1334
|
-
debugBuffer:
|
|
1435
|
+
debugBuffer: DebugBufferOptions;
|
|
1335
1436
|
/** Duration probes. Each probe is reported as a histogram summary record. */
|
|
1336
|
-
profiler:
|
|
1437
|
+
profiler: ProfilerOptions;
|
|
1337
1438
|
/** Session replay settings. */
|
|
1338
|
-
replay:
|
|
1439
|
+
replay: ReplayOptions;
|
|
1339
1440
|
/** True if configure() must refuse changes to the active settings. */
|
|
1340
1441
|
lockConfiguration: boolean;
|
|
1341
1442
|
/** Logger cache capacity. */
|
|
@@ -1344,10 +1445,10 @@ export interface ResolvedConfig {
|
|
|
1344
1445
|
securityContext: SecurityContextOptions;
|
|
1345
1446
|
/** Ingest endpoint URL, or null in console-only mode. */
|
|
1346
1447
|
endpoint: string | null;
|
|
1347
|
-
/** OTLP metrics endpoint URL
|
|
1348
|
-
metricsEndpoint: string;
|
|
1349
|
-
/** OTLP traces endpoint URL, or
|
|
1350
|
-
tracesEndpoint: string;
|
|
1448
|
+
/** OTLP metrics endpoint URL, or null to send metric records as log records. */
|
|
1449
|
+
metricsEndpoint: string | null;
|
|
1450
|
+
/** OTLP traces endpoint URL, or null when the library sends no span. */
|
|
1451
|
+
tracesEndpoint: string | null;
|
|
1351
1452
|
/** Reported as `service.name`. */
|
|
1352
1453
|
serviceName: string;
|
|
1353
1454
|
/** Reported as `service.version`. */
|
|
@@ -1368,8 +1469,8 @@ export interface ResolvedConfig {
|
|
|
1368
1469
|
compression: "gzip" | "none";
|
|
1369
1470
|
/** Passed to `fetch`. */
|
|
1370
1471
|
credentials: RequestCredentials;
|
|
1371
|
-
/** Backing store for undelivered
|
|
1372
|
-
storage:
|
|
1472
|
+
/** Backing store, namespace and persistence request for undelivered batches. */
|
|
1473
|
+
storage: StorageOptions;
|
|
1373
1474
|
/** Where session, tab and journey ids are kept. */
|
|
1374
1475
|
identity: IdentityStrategy;
|
|
1375
1476
|
/**
|
|
@@ -1399,41 +1500,41 @@ export interface ResolvedConfig {
|
|
|
1399
1500
|
retention: RetentionOptions;
|
|
1400
1501
|
/**
|
|
1401
1502
|
* Size limits for each record.
|
|
1402
|
-
* @see {@link
|
|
1503
|
+
* @see {@link LimitsOptions}
|
|
1403
1504
|
*/
|
|
1404
|
-
limits:
|
|
1505
|
+
limits: LimitsOptions;
|
|
1405
1506
|
/**
|
|
1406
1507
|
* Automatic instrumentation.
|
|
1407
1508
|
* @see {@link CaptureOptions}
|
|
1408
1509
|
*/
|
|
1409
1510
|
capture: CaptureOptions;
|
|
1410
|
-
/** Console level and styles. */
|
|
1411
|
-
|
|
1511
|
+
/** Console output level and styles. */
|
|
1512
|
+
consoleOutput: ResolvedConsole;
|
|
1412
1513
|
/** Payload format name, or a custom implementation. */
|
|
1413
1514
|
serializer: SerializerChoice;
|
|
1414
1515
|
/** Extra request headers, or a function returning them. */
|
|
1415
|
-
headers?: ObservabilityConfig["headers"]
|
|
1516
|
+
headers?: NonNullable<ObservabilityConfig["headers"]>;
|
|
1416
1517
|
/** Sends batches through one of the app's own channels instead of HTTP. */
|
|
1417
1518
|
transport?: Transport;
|
|
1418
1519
|
/** Sends the last batch while the page closes, for a custom transport. */
|
|
1419
1520
|
transportOnExit?: ExitTransport;
|
|
1420
1521
|
/** Creates the dedicated HTTP transport worker. */
|
|
1421
|
-
transportWorker?: ObservabilityConfig["transportWorker"]
|
|
1522
|
+
transportWorker?: NonNullable<ObservabilityConfig["transportWorker"]>;
|
|
1422
1523
|
/** Supplies the `@opentelemetry/api` module in place of importing it. */
|
|
1423
1524
|
otelLoader?: OtelLoader;
|
|
1424
1525
|
/** Returns attributes for every record the library builds. */
|
|
1425
|
-
contextProvider?: ObservabilityConfig["contextProvider"]
|
|
1526
|
+
contextProvider?: NonNullable<ObservabilityConfig["contextProvider"]>;
|
|
1426
1527
|
/**
|
|
1427
1528
|
* Changes or drops a record before the SDK prints or sends it.
|
|
1428
1529
|
* @param record Record to process. It may be destined only for the console or breadcrumbs.
|
|
1429
1530
|
* @returns The record to send, or `null` to drop it.
|
|
1430
1531
|
*/
|
|
1431
|
-
redact?: ObservabilityConfig["redact"]
|
|
1532
|
+
redact?: NonNullable<ObservabilityConfig["redact"]>;
|
|
1432
1533
|
/**
|
|
1433
1534
|
* Reports this library's own faults.
|
|
1434
1535
|
* @see {@link DiagnosticHandler}
|
|
1435
1536
|
*/
|
|
1436
1537
|
onDiagnostic?: DiagnosticHandler;
|
|
1437
1538
|
/** Receives a summary when the library loses records it has already built. */
|
|
1438
|
-
onDrop?: ObservabilityConfig["onDrop"]
|
|
1539
|
+
onDrop?: NonNullable<ObservabilityConfig["onDrop"]>;
|
|
1439
1540
|
}
|