@utk09/ui-observability 0.12.0 → 1.1.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 +280 -10
- package/README.md +70 -839
- package/dist/{batch-BjQUwjA6.js → batch-D3NHhF9L.js} +4 -4
- package/dist/{batch-BjQUwjA6.js.map → batch-D3NHhF9L.js.map} +1 -1
- package/dist/{batch-D5LlU4Q9.cjs → batch-DnYRJqhU.cjs} +2 -2
- package/dist/{batch-D5LlU4Q9.cjs.map → batch-DnYRJqhU.cjs.map} +1 -1
- package/dist/bus/bus.d.cts +355 -0
- package/dist/bus/bus.d.ts +86 -12
- 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-B__467mL.cjs +2 -0
- package/dist/bus-B__467mL.cjs.map +1 -0
- package/dist/bus-dw7T92sO.js +788 -0
- package/dist/bus-dw7T92sO.js.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 +80 -0
- package/dist/capture/interactions.d.ts +36 -4
- 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/observed-windows.d.cts +51 -0
- package/dist/capture/observed-windows.d.ts +51 -0
- 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-C0hUHKR-.cjs} +2 -2
- package/dist/{compression-lD9abCcO.cjs.map → compression-C0hUHKR-.cjs.map} +1 -1
- package/dist/{compression-AJJCMBOa.js → compression-SHPAvS4U.js} +2 -2
- package/dist/{compression-AJJCMBOa.js.map → compression-SHPAvS4U.js.map} +1 -1
- package/dist/config-CSNcS7OZ.js +558 -0
- package/dist/config-CSNcS7OZ.js.map +1 -0
- package/dist/config-CybPP5VM.cjs +2 -0
- package/dist/config-CybPP5VM.cjs.map +1 -0
- package/dist/console-BsM-fSCQ.js +81 -0
- package/dist/console-BsM-fSCQ.js.map +1 -0
- package/dist/console-Dkxs6IVQ.cjs +2 -0
- package/dist/console-Dkxs6IVQ.cjs.map +1 -0
- package/dist/constants-BwJDXzj6.js +357 -0
- package/dist/constants-BwJDXzj6.js.map +1 -0
- package/dist/constants-CtF52hIV.cjs +2 -0
- package/dist/constants-CtF52hIV.cjs.map +1 -0
- package/dist/constants.d.cts +763 -0
- package/dist/constants.d.ts +100 -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 +99 -0
- package/dist/core/rotation.d.ts +99 -0
- package/dist/core/runtime.d.cts +774 -0
- package/dist/core/runtime.d.ts +254 -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-B2v6Cym-.cjs +2 -0
- package/dist/debug-bundle-B2v6Cym-.cjs.map +1 -0
- package/dist/debug-bundle-Cs_YWzTa.js +35 -0
- package/dist/debug-bundle-Cs_YWzTa.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 +119 -87
- package/dist/doctor.js.map +1 -1
- package/dist/errors-DP2RUm4V.cjs +3 -0
- package/dist/errors-DP2RUm4V.cjs.map +1 -0
- package/dist/errors-Q3Ng1ciC.js +86 -0
- package/dist/errors-Q3Ng1ciC.js.map +1 -0
- package/dist/factory-DV17sm2p.js +404 -0
- package/dist/factory-DV17sm2p.js.map +1 -0
- package/dist/factory-K8O6gpux.cjs +2 -0
- package/dist/factory-K8O6gpux.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-BgtHyY4u.js} +33 -26
- package/dist/identity-BgtHyY4u.js.map +1 -0
- package/dist/identity-CvuyqZk7.cjs +2 -0
- package/dist/identity-CvuyqZk7.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +301 -0
- package/dist/index.d.ts +90 -98
- package/dist/index.js +1253 -1555
- package/dist/index.js.map +1 -1
- package/dist/indexeddb-storage-D4KVcqdD.cjs +2 -0
- package/dist/indexeddb-storage-D4KVcqdD.cjs.map +1 -0
- package/dist/{indexeddb-storage-DLXQzAGh.js → indexeddb-storage-e-13ZLWm.js} +61 -57
- package/dist/indexeddb-storage-e-13ZLWm.js.map +1 -0
- package/dist/interactions-Byxf1C82.js +207 -0
- package/dist/interactions-Byxf1C82.js.map +1 -0
- package/dist/interactions-OK85T-Dk.cjs +2 -0
- package/dist/interactions-OK85T-Dk.cjs.map +1 -0
- package/dist/{journey-35yCMNFo.js → journey-C93FTYcs.js} +46 -49
- package/dist/journey-C93FTYcs.js.map +1 -0
- package/dist/journey-nMbob3OB.cjs +2 -0
- package/dist/journey-nMbob3OB.cjs.map +1 -0
- package/dist/{library-console-BFWEuQsl.cjs → library-console-DJUQzcgM.cjs} +2 -2
- package/dist/{library-console-BFWEuQsl.cjs.map → library-console-DJUQzcgM.cjs.map} +1 -1
- package/dist/{library-console-Dl_Ly6DQ.js → library-console-DklSmucS.js} +2 -2
- package/dist/{library-console-Dl_Ly6DQ.js.map → library-console-DklSmucS.js.map} +1 -1
- package/dist/{library-request-nI6pvI6I.js → library-request-UGEwOHpf.js} +2 -2
- package/dist/{library-request-nI6pvI6I.js.map → library-request-UGEwOHpf.js.map} +1 -1
- package/dist/{library-request-Da-CHKzT.cjs → library-request-kY9iTpIF.cjs} +2 -2
- package/dist/{library-request-Da-CHKzT.cjs.map → library-request-kY9iTpIF.cjs.map} +1 -1
- package/dist/{lifecycle-CZ6RRXc6.js → lifecycle-B2PlIuQu.js} +21 -29
- package/dist/lifecycle-B2PlIuQu.js.map +1 -0
- package/dist/lifecycle-DaMdH_X7.cjs +2 -0
- package/dist/lifecycle-DaMdH_X7.cjs.map +1 -0
- package/dist/log-record-Bmx6etMh.cjs +2 -0
- package/dist/log-record-Bmx6etMh.cjs.map +1 -0
- package/dist/{log-record-DIA6McNr.js → log-record-DSt2P-Sr.js} +8 -7
- package/dist/log-record-DSt2P-Sr.js.map +1 -0
- package/dist/{long-frames-430_85Da.js → long-frames-Bamjs1WV.js} +18 -22
- package/dist/long-frames-Bamjs1WV.js.map +1 -0
- package/dist/long-frames-lhtONgGt.cjs +2 -0
- package/dist/long-frames-lhtONgGt.cjs.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 +163 -0
- package/dist/models/bus.d.ts +28 -3
- package/dist/models/config.d.cts +1555 -0
- package/dist/models/config.d.ts +377 -261
- 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 +25 -0
- package/dist/models/serializer.d.ts +4 -2
- package/dist/models/storage.d.cts +95 -0
- package/dist/models/storage.d.ts +7 -5
- package/dist/network-BCn8Gn47.cjs +2 -0
- package/dist/network-BCn8Gn47.cjs.map +1 -0
- package/dist/{network-C7SkLf4v.js → network-Cg1L2w2r.js} +57 -57
- package/dist/network-Cg1L2w2r.js.map +1 -0
- package/dist/observed-windows-B3gJkdql.cjs +2 -0
- package/dist/observed-windows-B3gJkdql.cjs.map +1 -0
- package/dist/observed-windows-BrwaJNlj.js +64 -0
- package/dist/observed-windows-BrwaJNlj.js.map +1 -0
- package/dist/{otlp-2MCrC3kd.cjs → otlp-CrAWkQdO.cjs} +2 -2
- package/dist/{otlp-2MCrC3kd.cjs.map → otlp-CrAWkQdO.cjs.map} +1 -1
- package/dist/{otlp-COq033e3.js → otlp-D6dRZyB8.js} +9 -9
- package/dist/{otlp-COq033e3.js.map → otlp-D6dRZyB8.js.map} +1 -1
- package/dist/{platform-CVewe4wQ.js → platform-8DLhjddo.js} +9 -9
- package/dist/{platform-CVewe4wQ.js.map → platform-8DLhjddo.js.map} +1 -1
- package/dist/{platform-12uR7kBQ.cjs → platform-BqRc-7RO.cjs} +2 -2
- package/dist/{platform-12uR7kBQ.cjs.map → platform-BqRc-7RO.cjs.map} +1 -1
- package/dist/{profiler-BVWIOgnq.js → profiler-BaXSqCfz.js} +78 -96
- package/dist/profiler-BaXSqCfz.js.map +1 -0
- package/dist/profiler-BvWW2kNM.cjs +2 -0
- package/dist/profiler-BvWW2kNM.cjs.map +1 -0
- package/dist/{profiler-frames-CLXlT_xL.js → profiler-frames-C4ySHN0X.js} +21 -29
- package/dist/profiler-frames-C4ySHN0X.js.map +1 -0
- package/dist/profiler-frames-DeaBiB-5.cjs +2 -0
- package/dist/profiler-frames-DeaBiB-5.cjs.map +1 -0
- package/dist/remote-rules-D7L6D_D2.cjs +2 -0
- package/dist/remote-rules-D7L6D_D2.cjs.map +1 -0
- package/dist/remote-rules-Dq9xe7Qn.js +95 -0
- package/dist/remote-rules-Dq9xe7Qn.js.map +1 -0
- package/dist/replay-B0M8kWz_.js +310 -0
- package/dist/replay-B0M8kWz_.js.map +1 -0
- package/dist/replay-QOFBpAXh.cjs +2 -0
- package/dist/replay-QOFBpAXh.cjs.map +1 -0
- package/dist/{reports-BuXekPOS.js → reports--8APRLa-.js} +25 -30
- package/dist/reports--8APRLa-.js.map +1 -0
- package/dist/reports-ojuMKGO7.cjs +2 -0
- package/dist/reports-ojuMKGO7.cjs.map +1 -0
- package/dist/{resource-timing-CXGHwFRD.js → resource-timing-BzR05rE-.js} +20 -23
- package/dist/resource-timing-BzR05rE-.js.map +1 -0
- package/dist/resource-timing-pAG3ZhB5.cjs +2 -0
- package/dist/resource-timing-pAG3ZhB5.cjs.map +1 -0
- package/dist/response-body-BWvwKQ2p.js +331 -0
- package/dist/response-body-BWvwKQ2p.js.map +1 -0
- package/dist/response-body-CKEJ5itk.cjs +3 -0
- package/dist/response-body-CKEJ5itk.cjs.map +1 -0
- package/dist/rotation-BylN1B9e.js +93 -0
- package/dist/rotation-BylN1B9e.js.map +1 -0
- package/dist/rotation-E2eKClIs.cjs +2 -0
- package/dist/rotation-E2eKClIs.cjs.map +1 -0
- package/dist/sampling-B46LW0cy.cjs +2 -0
- package/dist/sampling-B46LW0cy.cjs.map +1 -0
- package/dist/sampling-zXA6r-Nw.js +63 -0
- package/dist/sampling-zXA6r-Nw.js.map +1 -0
- package/dist/{sanitize-CNmsD9r3.js → sanitize-DjnR6RXR.js} +2 -2
- package/dist/sanitize-DjnR6RXR.js.map +1 -0
- package/dist/{sanitize-ChLn97Ch.cjs → sanitize-Qj6LuZqp.cjs} +2 -2
- package/dist/sanitize-Qj6LuZqp.cjs.map +1 -0
- package/dist/sender-Bdp-TAS4.js +979 -0
- package/dist/sender-Bdp-TAS4.js.map +1 -0
- package/dist/sender-DR7ZycZY.cjs +2 -0
- package/dist/sender-DR7ZycZY.cjs.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-BOu54M8Y.cjs +2 -0
- package/dist/stored-context-BOu54M8Y.cjs.map +1 -0
- package/dist/stored-context-CSttrAsw.js +51 -0
- package/dist/stored-context-CSttrAsw.js.map +1 -0
- package/dist/storm-BHgI12iS.cjs +2 -0
- package/dist/storm-BHgI12iS.cjs.map +1 -0
- package/dist/storm-DKlpv0FL.js +9 -0
- package/dist/storm-DKlpv0FL.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-BYPYYkQ5.cjs +2 -0
- package/dist/unclean-exit-BYPYYkQ5.cjs.map +1 -0
- package/dist/{unclean-exit-Cob_jyTv.js → unclean-exit-BcOB8A2e.js} +23 -30
- package/dist/unclean-exit-BcOB8A2e.js.map +1 -0
- package/dist/{user-timing-DgHubxCI.js → user-timing-4KIJ74Vi.js} +15 -17
- package/dist/user-timing-4KIJ74Vi.js.map +1 -0
- package/dist/user-timing-BsU2wQKE.cjs +2 -0
- package/dist/user-timing-BsU2wQKE.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 +114 -0
- package/dist/utils/identity.d.ts +8 -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-Cs1ZbmmN.cjs +2 -0
- package/dist/{web-socket-DthJuSAg.js.map → web-socket-Cs1ZbmmN.cjs.map} +1 -1
- package/dist/{web-socket-DthJuSAg.js → web-socket-Zg0hj1LB.js} +23 -28
- package/dist/web-socket-Zg0hj1LB.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-B0_8rWy5.js → worker-protocol-CYpAbrVl.js} +14 -11
- package/dist/worker-protocol-CYpAbrVl.js.map +1 -0
- package/dist/worker-protocol-DFYXIFus.cjs +2 -0
- package/dist/worker-protocol-DFYXIFus.cjs.map +1 -0
- package/dist/worker-server--yGTadTA.cjs +2 -0
- package/dist/worker-server--yGTadTA.cjs.map +1 -0
- package/dist/worker-server-BokySIII.js +94 -0
- package/dist/worker-server-BokySIII.js.map +1 -0
- package/dist/worker-transport-BdEvh_-a.cjs +2 -0
- package/dist/worker-transport-BdEvh_-a.cjs.map +1 -0
- package/dist/worker-transport-JK-Fby9J.js +194 -0
- package/dist/worker-transport-JK-Fby9J.js.map +1 -0
- package/llms.txt +400 -0
- package/package.json +65 -49
- package/dist/bus-D_7pd7RN.cjs +0 -2
- package/dist/bus-D_7pd7RN.cjs.map +0 -1
- package/dist/bus-ecxUNTja.js +0 -660
- 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 +0 -119
- 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
|
@@ -0,0 +1,763 @@
|
|
|
1
|
+
import type { ConsoleStyles, ResolvedConfig } from "./models/config.cjs";
|
|
2
|
+
import type { LogLevel, LogType } from "./models/log-record.cjs";
|
|
3
|
+
import type { StorageLimits } from "./models/storage.cjs";
|
|
4
|
+
/** Prefix on console messages this library writes. */
|
|
5
|
+
export declare const LIBRARY_LOG_PREFIX = "[ui-observability]";
|
|
6
|
+
/**
|
|
7
|
+
* Throttle window per diagnostic code, in milliseconds. Limits how often an error
|
|
8
|
+
* loop can call the handler.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DIAGNOSTIC_THROTTLE_MS = 1000;
|
|
11
|
+
/** `localStorage` key for the session id and its last-seen time. */
|
|
12
|
+
export declare const SESSION_ID_KEY = "ui-observability.session";
|
|
13
|
+
/** `sessionStorage` key for the tab id. */
|
|
14
|
+
export declare const TAB_ID_KEY = "ui-observability.tab";
|
|
15
|
+
/** sessionStorage key for a live page's marker. A clean close removes it. */
|
|
16
|
+
export declare const ALIVE_KEY = "ui-observability.alive";
|
|
17
|
+
/** How often the alive marker is updated, in milliseconds. */
|
|
18
|
+
export declare const ALIVE_UPDATE_MS = 30000;
|
|
19
|
+
/** Session idle timeout, in milliseconds. */
|
|
20
|
+
export declare const SESSION_IDLE_MS: number;
|
|
21
|
+
/** Min gap between session last-seen writes, in milliseconds. */
|
|
22
|
+
export declare const SESSION_TOUCH_MS = 60000;
|
|
23
|
+
/** Random id length, in bytes, used when `crypto.randomUUID` is unavailable. */
|
|
24
|
+
export declare const ID_BYTE_LENGTH = 16;
|
|
25
|
+
/** Distinct values in one byte (256). */
|
|
26
|
+
export declare const BYTE_VALUE_COUNT = 256;
|
|
27
|
+
/** Matches OpenFin's user agent. */
|
|
28
|
+
export declare const OPENFIN_UA_PATTERN: RegExp;
|
|
29
|
+
/** Matches Android's webview token (`wv`). */
|
|
30
|
+
export declare const ANDROID_WEBVIEW_UA_PATTERN: RegExp;
|
|
31
|
+
/** Matches iOS hardware: iPhone, iPad, iPod. */
|
|
32
|
+
export declare const IOS_DEVICE_UA_PATTERN: RegExp;
|
|
33
|
+
/** Matches desktop macOS in a user agent. */
|
|
34
|
+
export declare const MACINTOSH_UA_PATTERN: RegExp;
|
|
35
|
+
/** Matches the mobile token. */
|
|
36
|
+
export declare const MOBILE_UA_PATTERN: RegExp;
|
|
37
|
+
/** WebKit engine token, present in every WebKit browser including webviews. */
|
|
38
|
+
export declare const WEBKIT_UA_TOKEN = "AppleWebKit";
|
|
39
|
+
/** Safari token sent by real iOS browsers, not in-app webviews. */
|
|
40
|
+
export declare const SAFARI_UA_TOKEN = "Safari/";
|
|
41
|
+
/** First UTF-16 high surrogate code unit. */
|
|
42
|
+
export declare const HIGH_SURROGATE_MIN = 55296;
|
|
43
|
+
/** Last UTF-16 high surrogate code unit. */
|
|
44
|
+
export declare const HIGH_SURROGATE_MAX = 56319;
|
|
45
|
+
/** Code units below this encode as one UTF-8 byte. */
|
|
46
|
+
export declare const UTF8_ONE_BYTE_CEILING = 128;
|
|
47
|
+
/** Code units below this, and at or above the one-byte ceiling, encode as two UTF-8 bytes. */
|
|
48
|
+
export declare const UTF8_TWO_BYTE_CEILING = 2048;
|
|
49
|
+
/** Class names kept in a `describeNode` selector. */
|
|
50
|
+
export declare const MAX_NODE_CLASS_NAMES = 3;
|
|
51
|
+
/** Byte cost of a null or undefined value. */
|
|
52
|
+
export declare const BYTES_PER_NULL = 4;
|
|
53
|
+
/** Byte cost of a number (flat estimate). */
|
|
54
|
+
export declare const BYTES_PER_NUMBER = 8;
|
|
55
|
+
/** Byte cost of a boolean. */
|
|
56
|
+
export declare const BYTES_PER_BOOLEAN = 5;
|
|
57
|
+
/** Byte cost of an object or array's wrapping braces or brackets. */
|
|
58
|
+
export declare const BYTES_PER_CONTAINER = 2;
|
|
59
|
+
/** Byte cost of a string's wrapping quotes. */
|
|
60
|
+
export declare const BYTES_PER_QUOTED_STRING = 2;
|
|
61
|
+
/** Byte cost of one key's punctuation: quotes, colon, comma. */
|
|
62
|
+
export declare const BYTES_PER_KEY_OVERHEAD = 4;
|
|
63
|
+
/**
|
|
64
|
+
* Maps each log level to its OpenTelemetry severity number.
|
|
65
|
+
* @see {@link LEVEL_ORDER}
|
|
66
|
+
*/
|
|
67
|
+
export declare const SEVERITY_NUMBER: Record<LogLevel, number>;
|
|
68
|
+
/**
|
|
69
|
+
* Alias for `SEVERITY_NUMBER`, used by the level filter.
|
|
70
|
+
* @see {@link SEVERITY_NUMBER}
|
|
71
|
+
*/
|
|
72
|
+
export declare const LEVEL_ORDER: Record<LogLevel, number>;
|
|
73
|
+
/** Record kind attribute key. */
|
|
74
|
+
export declare const ATTR_LOG_TYPE = "log.type";
|
|
75
|
+
/** A record's sequence number within its context. Starts at 1. */
|
|
76
|
+
export declare const ATTR_LOG_SEQ = "log.seq";
|
|
77
|
+
/** Logger namespace attribute key. */
|
|
78
|
+
export declare const ATTR_APP_NAMESPACE = "app.namespace";
|
|
79
|
+
/** The document URL at the time the record was built. */
|
|
80
|
+
export declare const ATTR_PAGE_URL = "page.url";
|
|
81
|
+
/**
|
|
82
|
+
* HTTP request URL attribute key, set by network capture. Don't reuse `ATTR_PAGE_URL` for it,
|
|
83
|
+
* because the page URL overwrites the request target under that key.
|
|
84
|
+
* @see {@link ATTR_PAGE_URL}
|
|
85
|
+
*/
|
|
86
|
+
export declare const ATTR_URL_FULL = "url.full";
|
|
87
|
+
/** Journey id attribute key. */
|
|
88
|
+
export declare const ATTR_JOURNEY_ID = "journey.id";
|
|
89
|
+
/** Journey name attribute key. */
|
|
90
|
+
export declare const ATTR_JOURNEY_NAME = "journey.name";
|
|
91
|
+
/** Parent journey id, present only on a child journey. */
|
|
92
|
+
export declare const ATTR_JOURNEY_PARENT_ID = "journey.parent_id";
|
|
93
|
+
/** Marks a record whose attributes failed to sanitize. */
|
|
94
|
+
export declare const ATTR_SANITIZE_FAILED = "uiobs.sanitize_failed";
|
|
95
|
+
/** An Error reason's own fields, or the whole reason when it isn't an Error. */
|
|
96
|
+
export declare const ATTR_ERROR_DATA = "error.data";
|
|
97
|
+
/** An error record's breadcrumb history. */
|
|
98
|
+
export declare const ATTR_BREADCRUMBS = "breadcrumbs";
|
|
99
|
+
/**
|
|
100
|
+
* Marks a record whose attributes were dropped for exceeding the byte budget.
|
|
101
|
+
* @see {@link ATTR_ATTRIBUTES_BYTES}
|
|
102
|
+
*/
|
|
103
|
+
export declare const ATTR_ATTRIBUTES_DROPPED = "uiobs.attributes_dropped";
|
|
104
|
+
/**
|
|
105
|
+
* Byte size of the dropped attributes.
|
|
106
|
+
* @see {@link ATTR_ATTRIBUTES_DROPPED}
|
|
107
|
+
*/
|
|
108
|
+
export declare const ATTR_ATTRIBUTES_BYTES = "uiobs.attributes_bytes";
|
|
109
|
+
/** Server time minus client time, in milliseconds, from an accepted answer's Date header. */
|
|
110
|
+
export declare const ATTR_CLOCK_OFFSET_MS = "uiobs.clock_offset_ms";
|
|
111
|
+
/** Marks a record the debug buffer held until an error. */
|
|
112
|
+
export declare const ATTR_DEBUG_BUFFER = "uiobs.debug_buffer";
|
|
113
|
+
/** Half the HTTP Date header's resolution. Centers the clock offset's error. */
|
|
114
|
+
export declare const DATE_HEADER_HALF_STEP_MS = 500;
|
|
115
|
+
/** Application name resource key. */
|
|
116
|
+
export declare const RESOURCE_SERVICE_NAME = "service.name";
|
|
117
|
+
/** Application build version resource key. */
|
|
118
|
+
export declare const RESOURCE_SERVICE_VERSION = "service.version";
|
|
119
|
+
/** Deployment environment resource key. */
|
|
120
|
+
export declare const RESOURCE_DEPLOYMENT_ENVIRONMENT = "deployment.environment";
|
|
121
|
+
/**
|
|
122
|
+
* Producer library name resource key.
|
|
123
|
+
* @see {@link TELEMETRY_SDK_NAME}
|
|
124
|
+
*/
|
|
125
|
+
export declare const RESOURCE_TELEMETRY_SDK_NAME = "telemetry.sdk.name";
|
|
126
|
+
/**
|
|
127
|
+
* Producer library version resource key.
|
|
128
|
+
* @see {@link TELEMETRY_SDK_VERSION}
|
|
129
|
+
*/
|
|
130
|
+
export declare const RESOURCE_TELEMETRY_SDK_VERSION = "telemetry.sdk.version";
|
|
131
|
+
/**
|
|
132
|
+
* Producer SDK language resource key.
|
|
133
|
+
* @see {@link TELEMETRY_SDK_LANGUAGE}
|
|
134
|
+
*/
|
|
135
|
+
export declare const RESOURCE_TELEMETRY_SDK_LANGUAGE = "telemetry.sdk.language";
|
|
136
|
+
/** Host platform resource key: browser, webview, or OpenFin. */
|
|
137
|
+
export declare const RESOURCE_HOST_PLATFORM = "host.platform";
|
|
138
|
+
/** Session id resource key. */
|
|
139
|
+
export declare const RESOURCE_SESSION_ID = "session.id";
|
|
140
|
+
/** Tab id resource key. */
|
|
141
|
+
export declare const RESOURCE_TAB_ID = "tab.id";
|
|
142
|
+
/** Context (realm) id resource key. */
|
|
143
|
+
export declare const RESOURCE_CONTEXT_ID = "context.id";
|
|
144
|
+
/** Raw user agent resource key. */
|
|
145
|
+
export declare const RESOURCE_BROWSER_USER_AGENT = "browser.user_agent";
|
|
146
|
+
/** OpenFin application uuid resource key. */
|
|
147
|
+
export declare const RESOURCE_OPENFIN_UUID = "openfin.uuid";
|
|
148
|
+
/** OpenFin window or view name resource key. */
|
|
149
|
+
export declare const RESOURCE_OPENFIN_NAME = "openfin.name";
|
|
150
|
+
/**
|
|
151
|
+
* Value of `telemetry.sdk.name`.
|
|
152
|
+
* @see {@link RESOURCE_TELEMETRY_SDK_NAME}
|
|
153
|
+
*/
|
|
154
|
+
export declare const TELEMETRY_SDK_NAME = "@utk09/ui-observability";
|
|
155
|
+
/**
|
|
156
|
+
* Value of `telemetry.sdk.version`. The build writes the package.json version here.
|
|
157
|
+
* @see {@link RESOURCE_TELEMETRY_SDK_VERSION}
|
|
158
|
+
*/
|
|
159
|
+
export declare const TELEMETRY_SDK_VERSION: string;
|
|
160
|
+
/**
|
|
161
|
+
* Value of `telemetry.sdk.language`.
|
|
162
|
+
* @see {@link RESOURCE_TELEMETRY_SDK_LANGUAGE}
|
|
163
|
+
*/
|
|
164
|
+
export declare const TELEMETRY_SDK_LANGUAGE = "webjs";
|
|
165
|
+
/** OTLP/JSON serializer name. */
|
|
166
|
+
export declare const SERIALIZER_NAME_OTLP = "otlp";
|
|
167
|
+
/** ECS serializer name. */
|
|
168
|
+
export declare const SERIALIZER_NAME_ECS = "ecs";
|
|
169
|
+
/**
|
|
170
|
+
* ECS `log.level` names that differ from the lowercase severity text. ECS spells
|
|
171
|
+
* the warning level out in full, and every other level matches in lowercase.
|
|
172
|
+
* @see {@link SERIALIZER_NAME_ECS}
|
|
173
|
+
*/
|
|
174
|
+
export declare const ECS_LEVEL_NAMES: Partial<Record<LogLevel, string>>;
|
|
175
|
+
/** The ECS version of the documents, the same one the Elastic ECS logging libraries write. */
|
|
176
|
+
export declare const ECS_VERSION = "8.10.0";
|
|
177
|
+
/** Content type for an OTLP/JSON body. */
|
|
178
|
+
export declare const CONTENT_TYPE_JSON = "application/json";
|
|
179
|
+
/** Content type for newline-delimited JSON. */
|
|
180
|
+
export declare const CONTENT_TYPE_NDJSON = "application/x-ndjson";
|
|
181
|
+
/** Nanoseconds per millisecond. */
|
|
182
|
+
export declare const NANOS_PER_MILLI = 1000000n;
|
|
183
|
+
/**
|
|
184
|
+
* Matches a nanosecond epoch in decimal digits, for example "1755543600123000000".
|
|
185
|
+
* @see {@link NANOS_PER_MILLI}
|
|
186
|
+
*/
|
|
187
|
+
export declare const NANOS_PATTERN: RegExp;
|
|
188
|
+
/** Content-Type header name. */
|
|
189
|
+
export declare const HEADER_CONTENT_TYPE = "Content-Type";
|
|
190
|
+
/** Content-Encoding header name. */
|
|
191
|
+
export declare const HEADER_CONTENT_ENCODING = "Content-Encoding";
|
|
192
|
+
/** Retry-After header name. */
|
|
193
|
+
export declare const HEADER_RETRY_AFTER = "Retry-After";
|
|
194
|
+
/**
|
|
195
|
+
* Batch deduplication key header name.
|
|
196
|
+
* @see {@link QUERY_PARAM_BATCH_ID}
|
|
197
|
+
*/
|
|
198
|
+
export declare const HEADER_BATCH_ID = "X-UiObs-Batch-Id";
|
|
199
|
+
/** Delivery attempt number header name. */
|
|
200
|
+
export declare const HEADER_ATTEMPT = "X-UiObs-Attempt";
|
|
201
|
+
/** Response header that carries sampling rules from the ingest server. */
|
|
202
|
+
export declare const HEADER_SAMPLING = "X-UiObs-Sampling";
|
|
203
|
+
/** Response header that gives the server time. The server must expose it to CORS. */
|
|
204
|
+
export declare const HEADER_DATE = "Date";
|
|
205
|
+
/** Gzip encoding name. */
|
|
206
|
+
export declare const ENCODING_GZIP = "gzip";
|
|
207
|
+
/** Lowest valid HTTP status code. */
|
|
208
|
+
export declare const HTTP_STATUS_MIN = 100;
|
|
209
|
+
/** Highest valid HTTP status code. */
|
|
210
|
+
export declare const HTTP_STATUS_MAX = 599;
|
|
211
|
+
/** Lowest HTTP status code that accepts a batch. */
|
|
212
|
+
export declare const HTTP_SUCCESS_MIN = 200;
|
|
213
|
+
/** Lowest HTTP status code above the success range. */
|
|
214
|
+
export declare const HTTP_SUCCESS_END = 300;
|
|
215
|
+
/** 401, credentials missing or rejected. */
|
|
216
|
+
export declare const HTTP_UNAUTHORIZED = 401;
|
|
217
|
+
/** 403, valid credentials but access denied. */
|
|
218
|
+
export declare const HTTP_FORBIDDEN = 403;
|
|
219
|
+
/** 408, the server closed the connection after a timeout. The transport can retry. */
|
|
220
|
+
export declare const HTTP_REQUEST_TIMEOUT = 408;
|
|
221
|
+
/** 413, payload too large. The transport must split the batch. */
|
|
222
|
+
export declare const HTTP_PAYLOAD_TOO_LARGE = 413;
|
|
223
|
+
/** 415, unsupported media type. A stock OpenTelemetry Collector gives it to a text/plain batch. */
|
|
224
|
+
export declare const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
|
|
225
|
+
/** 429, backpressure. */
|
|
226
|
+
export declare const HTTP_TOO_MANY_REQUESTS = 429;
|
|
227
|
+
/** 500, floor for server-side errors. */
|
|
228
|
+
export declare const HTTP_SERVER_ERROR_MIN = 500;
|
|
229
|
+
/** 503, temporary unavailability. */
|
|
230
|
+
export declare const HTTP_SERVICE_UNAVAILABLE = 503;
|
|
231
|
+
/** Milliseconds per second. */
|
|
232
|
+
export declare const MILLIS_PER_SECOND = 1000;
|
|
233
|
+
/** Max exit payload size, in bytes (`sendBeacon`/`fetch(keepalive)` shared budget). */
|
|
234
|
+
export declare const BEACON_LIMIT_BYTES = 60000;
|
|
235
|
+
/** Largest ingest response body the library reads, in bytes. It skips a larger body. */
|
|
236
|
+
export declare const RESPONSE_BODY_LIMIT_BYTES = 16384;
|
|
237
|
+
/** Longest server message that a diagnostic repeats. The server controls this text. */
|
|
238
|
+
export declare const SERVER_MESSAGE_MAX_CHARS = 256;
|
|
239
|
+
/** Content type for an exit payload. CORS-safelisted, so it doesn't trigger a preflight. */
|
|
240
|
+
export declare const CONTENT_TYPE_TEXT_PLAIN = "text/plain;charset=UTF-8";
|
|
241
|
+
/**
|
|
242
|
+
* Batch id query param name, for the exit path.
|
|
243
|
+
* @see {@link HEADER_BATCH_ID}
|
|
244
|
+
*/
|
|
245
|
+
export declare const QUERY_PARAM_BATCH_ID = "uiobs_batch_id";
|
|
246
|
+
/** Exit reason query param name, for logs only. */
|
|
247
|
+
export declare const QUERY_PARAM_EXIT_REASON = "uiobs_exit";
|
|
248
|
+
/** localStorage key prefix for a stored batch. */
|
|
249
|
+
export declare const BATCH_STORAGE_KEY_PREFIX = "ui-observability.batch.";
|
|
250
|
+
/** Zero-padded digit width for the creation time in a batch key. */
|
|
251
|
+
export declare const BATCH_KEY_TIME_WIDTH = 14;
|
|
252
|
+
/** localStorage key prefix for a batch stored by the exit flush. */
|
|
253
|
+
export declare const EMERGENCY_STORAGE_KEY_PREFIX = "ui-observability.emergency.";
|
|
254
|
+
/** Maximum number of exit batches in the emergency queue. */
|
|
255
|
+
export declare const EMERGENCY_MAX_ENTRIES = 20;
|
|
256
|
+
/** Key we write to check whether localStorage accepts writes. */
|
|
257
|
+
export declare const STORAGE_PROBE_KEY = "ui-observability.probe";
|
|
258
|
+
/** Fraction of the store to evict on a quota error (1 in N). */
|
|
259
|
+
export declare const QUOTA_EVICTION_DIVISOR = 4;
|
|
260
|
+
/** DOMException name for a full store. */
|
|
261
|
+
export declare const QUOTA_EXCEEDED_ERROR = "QuotaExceededError";
|
|
262
|
+
/**
|
|
263
|
+
* Native IndexedDB version. Version 11 replaced Dexie, and version 12 adds the context index.
|
|
264
|
+
* Dexie opened this database at ten times its declared version, so a version below 11 makes
|
|
265
|
+
* open() fail with VersionError on an existing installation, and then nothing can read its
|
|
266
|
+
* batches.
|
|
267
|
+
*/
|
|
268
|
+
export declare const INDEXEDDB_SCHEMA_VERSION = 12;
|
|
269
|
+
/** IndexedDB object store that holds the batches. The name dates from Dexie, since removed. */
|
|
270
|
+
export declare const INDEXEDDB_STORE_NAME = "batches";
|
|
271
|
+
/** Index on the batch store that orders reads by creation time. */
|
|
272
|
+
export declare const INDEXEDDB_CREATED_AT_INDEX = "createdAt";
|
|
273
|
+
/** IndexedDB adapter/strategy name. */
|
|
274
|
+
export declare const STORAGE_NAME_INDEXEDDB = "indexeddb";
|
|
275
|
+
/** localStorage adapter/strategy name. */
|
|
276
|
+
export declare const STORAGE_NAME_LOCAL = "localstorage";
|
|
277
|
+
/** In-memory adapter/strategy name. */
|
|
278
|
+
export declare const STORAGE_NAME_MEMORY = "memory";
|
|
279
|
+
/** Name of the storage adapter that keeps nothing. */
|
|
280
|
+
export declare const STORAGE_NAME_NONE = "none";
|
|
281
|
+
/**
|
|
282
|
+
* Origin-wide lock name a drain runs under.
|
|
283
|
+
* @see {@link EMERGENCY_LOCK_NAME}
|
|
284
|
+
*/
|
|
285
|
+
export declare const DRAIN_LOCK_NAME = "ui-observability.drain";
|
|
286
|
+
/**
|
|
287
|
+
* Lock name startup recovery runs under.
|
|
288
|
+
* @see {@link DRAIN_LOCK_NAME}
|
|
289
|
+
*/
|
|
290
|
+
export declare const EMERGENCY_LOCK_NAME = "ui-observability.emergency";
|
|
291
|
+
/** Batches sent per drain tick. */
|
|
292
|
+
export declare const BATCHES_PER_DRAIN = 20;
|
|
293
|
+
/** `sessionStorage` key for the current journey. */
|
|
294
|
+
export declare const JOURNEY_STORAGE_KEY = "ui-observability.journey";
|
|
295
|
+
/**
|
|
296
|
+
* Max journey name length in a token, in characters.
|
|
297
|
+
* @see {@link JOURNEY_TOKEN_MAX_CHARS}
|
|
298
|
+
*/
|
|
299
|
+
export declare const JOURNEY_TOKEN_NAME_MAX_CHARS = 64;
|
|
300
|
+
/**
|
|
301
|
+
* Max length of a journey id from startJourney(), in characters. A journey with an id this long
|
|
302
|
+
* and a full-length name still gets a token below the token limit.
|
|
303
|
+
* @see {@link JOURNEY_TOKEN_MAX_CHARS}
|
|
304
|
+
*/
|
|
305
|
+
export declare const JOURNEY_ID_MAX_CHARS = 64;
|
|
306
|
+
/**
|
|
307
|
+
* Accepted journey id from startJourney(): letters, digits, "_", ".", ":" and "-". Every
|
|
308
|
+
* character is one byte in UTF-8. A multibyte id would push the token over its limit.
|
|
309
|
+
*/
|
|
310
|
+
export declare const JOURNEY_ID_PATTERN: RegExp;
|
|
311
|
+
/**
|
|
312
|
+
* How far ahead of this clock a journey token's start time can be, in milliseconds. Two machines
|
|
313
|
+
* can disagree on the time, but a token further ahead than this would never expire.
|
|
314
|
+
*/
|
|
315
|
+
export declare const JOURNEY_CLOCK_SKEW_MS: number;
|
|
316
|
+
/**
|
|
317
|
+
* Max whole-token length, in characters. This only rejects an oversized token. It doesn't
|
|
318
|
+
* validate the token's content.
|
|
319
|
+
* @see {@link JOURNEY_TOKEN_NAME_MAX_CHARS}
|
|
320
|
+
*/
|
|
321
|
+
export declare const JOURNEY_TOKEN_MAX_CHARS = 256;
|
|
322
|
+
/**
|
|
323
|
+
* How long to wait for `fin.me.getOptions()`, in milliseconds. After that, the
|
|
324
|
+
* runtime carries on without a seeded journey.
|
|
325
|
+
* @see {@link OPENFIN_JOURNEY_CUSTOM_DATA_KEY}
|
|
326
|
+
*/
|
|
327
|
+
export declare const OPENFIN_OPTIONS_TIMEOUT_MS = 2000;
|
|
328
|
+
/** Key under an OpenFin window's `customData` carrying a seeded journey token. */
|
|
329
|
+
export declare const OPENFIN_JOURNEY_CUSTOM_DATA_KEY = "uiObsJourney";
|
|
330
|
+
/** Matches `+` in standard base64 (`-` in URL-safe). */
|
|
331
|
+
export declare const BASE64_PLUS_PATTERN: RegExp;
|
|
332
|
+
/** Matches `/` in standard base64 (`_` in URL-safe). */
|
|
333
|
+
export declare const BASE64_SLASH_PATTERN: RegExp;
|
|
334
|
+
/** Matches trailing `=` padding. */
|
|
335
|
+
export declare const BASE64_PADDING_PATTERN: RegExp;
|
|
336
|
+
/** Matches `-` in URL-safe base64 (`+` in standard). */
|
|
337
|
+
export declare const BASE64URL_DASH_PATTERN: RegExp;
|
|
338
|
+
/** Matches `_` in URL-safe base64 (`/` in standard). */
|
|
339
|
+
export declare const BASE64URL_UNDERSCORE_PATTERN: RegExp;
|
|
340
|
+
/** Base64 characters per 3-byte group. */
|
|
341
|
+
export declare const BASE64_GROUP_CHARS = 4;
|
|
342
|
+
/** W3C trace id width, in bytes. */
|
|
343
|
+
export declare const TRACE_ID_BYTES = 16;
|
|
344
|
+
/** W3C span id width, in bytes. */
|
|
345
|
+
export declare const SPAN_ID_BYTES = 8;
|
|
346
|
+
/** Max ambient trace lifetime with no activity, in milliseconds. */
|
|
347
|
+
export declare const TRACE_MAX_AGE_MS: number;
|
|
348
|
+
/** trace-flags value with the sampled bit set. */
|
|
349
|
+
export declare const TRACE_FLAGS_SAMPLED = 1;
|
|
350
|
+
/** Mask for the one-byte trace-flags field. */
|
|
351
|
+
export declare const TRACE_FLAGS_MASK = 255;
|
|
352
|
+
/**
|
|
353
|
+
* W3C trace context header name
|
|
354
|
+
* @see {@link TRACEPARENT_VERSION}
|
|
355
|
+
*/
|
|
356
|
+
export declare const TRACEPARENT_HEADER = "traceparent";
|
|
357
|
+
/** traceparent header version prefix. */
|
|
358
|
+
export declare const TRACEPARENT_VERSION = "00";
|
|
359
|
+
/** Smallest valid breadcrumb buffer capacity. */
|
|
360
|
+
export declare const BREADCRUMB_MIN_CAPACITY = 1;
|
|
361
|
+
/** FNV-1a 32-bit offset basis. */
|
|
362
|
+
export declare const FNV_OFFSET_BASIS = 2166136261;
|
|
363
|
+
/** FNV-1a 32-bit prime. */
|
|
364
|
+
export declare const FNV_PRIME = 16777619;
|
|
365
|
+
/** Largest 32-bit unsigned value. */
|
|
366
|
+
export declare const UINT32_MAX = 4294967295;
|
|
367
|
+
/**
|
|
368
|
+
* Types that minLevel never drops. An action is an audit fact, and a metric or a span is a
|
|
369
|
+
* measurement. The remote rate cap for records below minLevel doesn't apply to them either.
|
|
370
|
+
*/
|
|
371
|
+
export declare const LEVEL_BYPASS_TYPES: readonly LogType[];
|
|
372
|
+
/** Record kind routed to the metric stream. */
|
|
373
|
+
export declare const LOG_TYPE_METRIC: LogType;
|
|
374
|
+
/** Record kind of an audit fact. Storage and the hold buffers drop it last. */
|
|
375
|
+
export declare const LOG_TYPE_ACTION: LogType;
|
|
376
|
+
/** Record kind routed to the trace stream. */
|
|
377
|
+
export declare const LOG_TYPE_SPAN: LogType;
|
|
378
|
+
/** Protocol identifier for bus envelopes. The bus drops an envelope with a different version. */
|
|
379
|
+
export declare const BUS_PROTOCOL = "ui-observability/2";
|
|
380
|
+
/**
|
|
381
|
+
* Type tag for every bus message. Every frame must use the same values. The prefix makes a
|
|
382
|
+
* message easy to spot in a postMessage log, but it is still the BUS_PROTOCOL envelope tag that
|
|
383
|
+
* separates the bus from other traffic.
|
|
384
|
+
*/
|
|
385
|
+
export declare const BUS_TYPE: {
|
|
386
|
+
readonly hello: "ui-observability.message.hello";
|
|
387
|
+
readonly welcome: "ui-observability.message.welcome";
|
|
388
|
+
readonly records: "ui-observability.message.records";
|
|
389
|
+
readonly securityContext: "ui-observability.message.security-context";
|
|
390
|
+
readonly journey: "ui-observability.message.journey";
|
|
391
|
+
readonly journeyRequest: "ui-observability.message.journey-request";
|
|
392
|
+
readonly sampling: "ui-observability.message.sampling";
|
|
393
|
+
readonly samplingRequest: "ui-observability.message.sampling-request";
|
|
394
|
+
readonly tab: "ui-observability.message.tab";
|
|
395
|
+
readonly flushRequest: "ui-observability.message.flush-request";
|
|
396
|
+
readonly flushResult: "ui-observability.message.flush-result";
|
|
397
|
+
};
|
|
398
|
+
/** Global window property key used to locate a same-origin runtime instance. */
|
|
399
|
+
export declare const RUNTIME_GLOBAL_KEY = "ui-observability.runtime";
|
|
400
|
+
/** Global key for the runtime shutdown() stopped. Calls go to it until the next configure(). */
|
|
401
|
+
export declare const RUNTIME_STOPPED_KEY = "ui-observability.stopped";
|
|
402
|
+
/**
|
|
403
|
+
* Global key prefix for the observed window list. The key adds the version, so two copies of one
|
|
404
|
+
* version share the list, as they share the runtime, and another version keeps its own.
|
|
405
|
+
*/
|
|
406
|
+
export declare const OBSERVED_WINDOWS_KEY = "ui-observability.observed-windows";
|
|
407
|
+
/** Global symbol key for the library request scope count, shared by every copy on the page. */
|
|
408
|
+
export declare const LIBRARY_REQUEST_KEY = "ui-observability.request-scope";
|
|
409
|
+
/** Global symbol key for the library console scope count, shared by every copy on the page. */
|
|
410
|
+
export declare const LIBRARY_CONSOLE_KEY = "ui-observability.console-scope";
|
|
411
|
+
/** Global symbol key for the number of custom transport calls still waiting for an answer. */
|
|
412
|
+
export declare const TRANSPORT_CALL_KEY = "ui-observability.transport-calls";
|
|
413
|
+
/** Maximum error records captured per throttling window before suppression. */
|
|
414
|
+
export declare const ERROR_STORM_MAX_PER_WINDOW = 20;
|
|
415
|
+
/**
|
|
416
|
+
* Default length of the capture rate limit window, and of the replay upload and error ceiling
|
|
417
|
+
* windows, in milliseconds.
|
|
418
|
+
*/
|
|
419
|
+
export declare const ERROR_STORM_WINDOW_MS = 10000;
|
|
420
|
+
/**
|
|
421
|
+
* Max ERROR and FATAL records the pipeline admits per storm window. This is a safety limit for
|
|
422
|
+
* a render loop, not a way to shape normal traffic. ERROR and FATAL records skip sampling, so a
|
|
423
|
+
* direct logger.error call has no other limit.
|
|
424
|
+
*/
|
|
425
|
+
export declare const ERROR_CEILING_MAX_PER_WINDOW = 500;
|
|
426
|
+
/** Default minimum duration for a long frame to be recorded, in milliseconds. */
|
|
427
|
+
export declare const LONG_FRAME_THRESHOLD_MS = 100;
|
|
428
|
+
/** Maximum long frames recorded per storm window, so a frozen tab can't flood the pipeline. */
|
|
429
|
+
export declare const LONG_FRAME_MAX_PER_WINDOW = 20;
|
|
430
|
+
/** Max WebSocket events recorded per storm window, so a reconnect loop can't flood the pipeline. */
|
|
431
|
+
export declare const WEBSOCKET_MAX_PER_WINDOW = 20;
|
|
432
|
+
/** Maximum character length of a console breadcrumb message. */
|
|
433
|
+
export declare const CONSOLE_BREADCRUMB_MAX_CHARS = 200;
|
|
434
|
+
/** Maximum distinct error signatures tracked for deduplication before LRU eviction. */
|
|
435
|
+
export declare const MAX_TRACKED_ERROR_SIGNATURES = 200;
|
|
436
|
+
/** Maximum characters of a clicked element's text kept in a breadcrumb. */
|
|
437
|
+
export declare const CLICK_TEXT_MAX_CHARS = 50;
|
|
438
|
+
/** Attribute that names a click action, unless the app configures a different one. */
|
|
439
|
+
export declare const ACTION_ATTRIBUTE_DEFAULT = "data-observability-action";
|
|
440
|
+
/**
|
|
441
|
+
* Selector for the regions the app keeps out of the records. Click capture skips them by
|
|
442
|
+
* default, and session replay always blocks them, so a hidden region can't leak through either.
|
|
443
|
+
*/
|
|
444
|
+
export declare const IGNORE_SELECTOR = "[data-observability-ignore]";
|
|
445
|
+
/**
|
|
446
|
+
* Selector for the regions that change on their own, such as a live price grid. A change or a
|
|
447
|
+
* scroll inside one isn't the page answering a click, so it doesn't stop a dead click.
|
|
448
|
+
*/
|
|
449
|
+
export declare const DEAD_CLICK_IGNORE_SELECTOR = "[data-observability-live]";
|
|
450
|
+
/** Attributes that React rewrites in one batch with no net change, so only that change counts. */
|
|
451
|
+
export declare const NET_CHANGE_ATTRIBUTES: readonly string[];
|
|
452
|
+
/** How many clicks on one element make a rage click, by default. */
|
|
453
|
+
export declare const RAGE_CLICK_COUNT = 3;
|
|
454
|
+
/** The time window a rage click's clicks must fall within, in milliseconds, by default. */
|
|
455
|
+
export declare const RAGE_CLICK_WINDOW_MS = 1000;
|
|
456
|
+
/** How long to wait for a visible response before a click counts as dead, in milliseconds. */
|
|
457
|
+
export declare const DEAD_CLICK_MS = 1000;
|
|
458
|
+
/** Controls that should respond visibly to a click. Only these get a dead click check. */
|
|
459
|
+
export declare const DEAD_CLICK_CONTROLS = "a, button, summary, input[type=\"button\"], input[type=\"submit\"], input[type=\"reset\"], [role=\"button\"], [role=\"link\"], [role=\"menuitem\"], [role=\"tab\"]";
|
|
460
|
+
/** Maximum characters of an aria-label kept in a generated selector. */
|
|
461
|
+
export declare const ARIA_LABEL_MAX_CHARS = 40;
|
|
462
|
+
/** Maximum class names per element in a generated CSS selector. */
|
|
463
|
+
export declare const SELECTOR_MAX_CLASSES = 2;
|
|
464
|
+
/** Default CSS for the console prefix. The colors are readable in light and dark devtools. */
|
|
465
|
+
export declare const CONSOLE_DEFAULT_STYLES: Readonly<Required<ConsoleStyles>>;
|
|
466
|
+
/** Minimum time between storage gap warning reports, in milliseconds. */
|
|
467
|
+
export declare const GAP_REPORT_THROTTLE_MS = 60000;
|
|
468
|
+
/** Default namespace for records the auto-capture modules emit. */
|
|
469
|
+
export declare const CAPTURE_NAMESPACE = "uiobs.capture";
|
|
470
|
+
/** Default namespace for records the storage subsystems emit. */
|
|
471
|
+
export declare const STORAGE_NAMESPACE = "uiobs.storage";
|
|
472
|
+
/** Namespace for the records `diagnostics.records` produces. */
|
|
473
|
+
export declare const DIAGNOSTICS_NAMESPACE = "uiobs.diagnostics";
|
|
474
|
+
/** The measurement unit used when a call doesn't give one. */
|
|
475
|
+
export declare const DEFAULT_METRIC_UNIT = "count";
|
|
476
|
+
/** Namespace for the points the counter and histogram instruments produce. */
|
|
477
|
+
export declare const METRIC_NAMESPACE = "uiobs.metrics";
|
|
478
|
+
/** Maximum attribute sets per instrument per interval. Any more go into one overflow set. */
|
|
479
|
+
export declare const METRIC_MAX_SERIES = 100;
|
|
480
|
+
/** Maximum bucket boundaries per histogram. More than that makes for a large point. */
|
|
481
|
+
export declare const METRIC_MAX_BOUNDARIES = 50;
|
|
482
|
+
/** Attribute on the overflow set. OpenTelemetry uses the same key. */
|
|
483
|
+
export declare const ATTR_METRIC_OVERFLOW = "otel.metric.overflow";
|
|
484
|
+
/** Default histogram boundaries, the same as OpenTelemetry's defaults. */
|
|
485
|
+
export declare const METRIC_DEFAULT_BOUNDARIES: readonly number[];
|
|
486
|
+
/**
|
|
487
|
+
* Attribute keys on an aggregated metric point, read by the OTLP metrics serializer.
|
|
488
|
+
* Sampling keeps every record that has a start time, because sampling a sum gives a false sum.
|
|
489
|
+
*/
|
|
490
|
+
export declare const METRIC_KEYS: {
|
|
491
|
+
readonly start: "metric.start_time_unix_nano";
|
|
492
|
+
readonly attributeKeys: "metric.attribute_keys";
|
|
493
|
+
readonly count: "metric.count";
|
|
494
|
+
readonly sum: "metric.sum";
|
|
495
|
+
readonly min: "metric.min";
|
|
496
|
+
readonly max: "metric.max";
|
|
497
|
+
readonly bounds: "metric.bounds";
|
|
498
|
+
readonly buckets: "metric.bucket_counts";
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Every metric field the library writes on a metric record. The OTLP metrics serializer keeps
|
|
502
|
+
* them off a point's attributes, because the record holds the library's value under that name.
|
|
503
|
+
*/
|
|
504
|
+
export declare const METRIC_FIELD_KEYS: readonly string[];
|
|
505
|
+
/** Precision of the profiler histogram: 2^4 = 16 sub-buckets per power of two. */
|
|
506
|
+
export declare const PROFILE_SUB_BITS = 4;
|
|
507
|
+
/** Buckets per probe: 16 for 0 to 15 us, then 16 for each exponent from 4 to 25. */
|
|
508
|
+
export declare const PROFILE_BUCKETS = 368;
|
|
509
|
+
/** Largest tracked duration in microseconds (2^26 - 1). Larger values go in the last bucket. */
|
|
510
|
+
export declare const PROFILE_MAX_US = 67108863;
|
|
511
|
+
/** Cap on the buckets in one profiler summary record, to keep the payload small. */
|
|
512
|
+
export declare const PROFILE_POINT_BUCKETS = 100;
|
|
513
|
+
/** Default probe limit. The runtime fixes the limit at startup. */
|
|
514
|
+
export declare const PROFILER_MAX_PROBES = 64;
|
|
515
|
+
/** Metric name for profiler summary records. */
|
|
516
|
+
export declare const PROFILE_METRIC_NAME = "ui.profile.duration";
|
|
517
|
+
/** Attribute keys on profiler summary records. */
|
|
518
|
+
export declare const PROFILE_KEYS: {
|
|
519
|
+
readonly probe: "profile.probe";
|
|
520
|
+
readonly sampleEvery: "profile.sample_every";
|
|
521
|
+
readonly p50: "profile.p50";
|
|
522
|
+
readonly p90: "profile.p90";
|
|
523
|
+
readonly p99: "profile.p99";
|
|
524
|
+
readonly overhead: "profile.overhead_ns";
|
|
525
|
+
readonly selfP99: "profile.self_p99";
|
|
526
|
+
readonly framePhase: "profile.frame_phase";
|
|
527
|
+
};
|
|
528
|
+
/** How deep spans can nest and still get a self time. Going deeper drops the frames below. */
|
|
529
|
+
export declare const PROFILER_STACK_DEPTH = 32;
|
|
530
|
+
/** How many recent spans the profiler keeps for linking to long animation frames. */
|
|
531
|
+
export declare const PROFILER_RING_SPANS = 256;
|
|
532
|
+
/** Shortest span, in ms, that gets linked to a long animation frame. */
|
|
533
|
+
export declare const PROFILER_LINK_MIN_MS = 1;
|
|
534
|
+
/** Metric name for long animation frame phases, reported per probe in the frame. */
|
|
535
|
+
export declare const PROFILE_FRAME_METRIC_NAME = "ui.profile.frame.duration";
|
|
536
|
+
/** Probe name for frame pacing. Each value is the time between two frames. */
|
|
537
|
+
export declare const PROFILE_FRAME_PROBE = "frame.interval";
|
|
538
|
+
/** Reported when the library can't read an instrument's options. */
|
|
539
|
+
export declare const INSTRUMENT_OPTIONS_FAULT = "The library could not read the options of an instrument. The library uses the defaults.";
|
|
540
|
+
/** Ambient attribute that ties every record to the session replay recording. */
|
|
541
|
+
export declare const REPLAY_ID_KEY = "replay.id";
|
|
542
|
+
/** Put this attribute on an element to leave its text unmasked in session replay. */
|
|
543
|
+
export declare const REPLAY_UNMASK_ATTRIBUTE = "data-observability-unmask";
|
|
544
|
+
/** Hard cap on registered probe names, and so the upper bound for profiler.maxProbes. */
|
|
545
|
+
export declare const PROFILER_PROBE_LIMIT = 1024;
|
|
546
|
+
/** Global symbol key for the profiler core. Copies of the same library version share the core. */
|
|
547
|
+
export declare const PROFILER_GLOBAL_KEY = "ui-observability.profiler";
|
|
548
|
+
/** Minimum window for the profiler's overhead measurement, in ms. */
|
|
549
|
+
export declare const PROFILER_CALIBRATION_MS = 2;
|
|
550
|
+
/** Cap on begin()/end() pairs in the profiler's overhead measurement. */
|
|
551
|
+
export declare const PROFILER_CALIBRATION_PAIRS = 100000;
|
|
552
|
+
/** Namespace of the span records. */
|
|
553
|
+
export declare const TRACE_NAMESPACE = "uiobs.traces";
|
|
554
|
+
/** Attribute keys for the span fields on a span record, read by the traces serializer. */
|
|
555
|
+
export declare const SPAN_KEYS: {
|
|
556
|
+
readonly kind: "span.kind";
|
|
557
|
+
readonly parentId: "span.parent_id";
|
|
558
|
+
readonly start: "span.start_time_unix_nano";
|
|
559
|
+
readonly end: "span.end_time_unix_nano";
|
|
560
|
+
readonly status: "span.status";
|
|
561
|
+
readonly linkTraceId: "span.link.trace_id";
|
|
562
|
+
readonly linkSpanId: "span.link.span_id";
|
|
563
|
+
};
|
|
564
|
+
/** Protocol for the private transport worker channel. */
|
|
565
|
+
export declare const TRANSPORT_WORKER_PROTOCOL = "ui-observability.transport/1";
|
|
566
|
+
/** Type tags for the private transport worker messages. */
|
|
567
|
+
export declare const TRANSPORT_WORKER_TYPE: {
|
|
568
|
+
readonly connect: "connect";
|
|
569
|
+
readonly ready: "ready";
|
|
570
|
+
readonly send: "send";
|
|
571
|
+
readonly result: "result";
|
|
572
|
+
readonly cancel: "cancel";
|
|
573
|
+
};
|
|
574
|
+
/** The worker entry's refusal message. A constant keeps the protocol code out of the main chunk. */
|
|
575
|
+
export declare const TRANSPORT_WORKER_REFUSAL: {
|
|
576
|
+
readonly p: "ui-observability.transport/1";
|
|
577
|
+
readonly v: string;
|
|
578
|
+
readonly t: "ready";
|
|
579
|
+
readonly ok: false;
|
|
580
|
+
};
|
|
581
|
+
/** Maximum requests in one transport worker. */
|
|
582
|
+
export declare const TRANSPORT_WORKER_MAX_JOBS = 64;
|
|
583
|
+
/**
|
|
584
|
+
* Extra wait for the transport worker's answer after the request deadline. The worker replies
|
|
585
|
+
* with a status it got in time when the deadline ends its body read, and that reply needs a
|
|
586
|
+
* message hop.
|
|
587
|
+
*/
|
|
588
|
+
export declare const WORKER_REPLY_GRACE_MS = 1000;
|
|
589
|
+
/** Longest the deferred logger waits for idle time before it builds its records. */
|
|
590
|
+
export declare const DEFER_IDLE_TIMEOUT_MS = 1000;
|
|
591
|
+
/** Maximum pending payload references per runtime. A full queue builds its records first. */
|
|
592
|
+
export declare const DEFER_QUEUE_LIMIT = 1000;
|
|
593
|
+
/** Default minimum duration for a slow resource event, in milliseconds. */
|
|
594
|
+
export declare const RESOURCE_SLOW_MS = 1000;
|
|
595
|
+
/** Response header with server duration entries. */
|
|
596
|
+
export declare const SERVER_TIMING_HEADER = "Server-Timing";
|
|
597
|
+
/** Maximum Server-Timing header length and entry count. */
|
|
598
|
+
export declare const SERVER_TIMING_MAX_CHARS = 4096;
|
|
599
|
+
export declare const SERVER_TIMING_MAX_ENTRIES = 32;
|
|
600
|
+
/** Capture switches a remote rule can change. Privacy controls stay local. */
|
|
601
|
+
export declare const REMOTE_CAPTURE_FLAGS: readonly ["errors", "rejections", "resourceErrors", "fetch", "xhr", "httpMetrics", "navigation", "webVitals", "longFrames", "interactions", "console", "webSocket", "uncleanExit", "userTiming", "serverTiming", "reports", "resourceTiming", "lifecycle"];
|
|
602
|
+
/** Default `service.name` when a consumer sets none. */
|
|
603
|
+
export declare const UNKNOWN_SERVICE_NAME = "unknown-service";
|
|
604
|
+
/** Lowest sampling rate (drop everything). */
|
|
605
|
+
export declare const SAMPLING_RATE_MIN = 0;
|
|
606
|
+
/** Highest sampling rate (keep everything). */
|
|
607
|
+
export declare const SAMPLING_RATE_MAX = 1;
|
|
608
|
+
/** The remote sampling rules version this library accepts. */
|
|
609
|
+
export declare const REMOTE_SAMPLING_VERSION = 1;
|
|
610
|
+
/** Maximum length of the sampling header, in characters. */
|
|
611
|
+
export declare const REMOTE_SAMPLING_MAX_CHARS = 4096;
|
|
612
|
+
/** Longest that remote sampling rules stay in effect, in milliseconds. */
|
|
613
|
+
export declare const REMOTE_SAMPLING_MAX_TTL_MS: number;
|
|
614
|
+
/** Maximum namespace rates in one set of remote sampling rules. */
|
|
615
|
+
export declare const REMOTE_SAMPLING_MAX_RATES = 100;
|
|
616
|
+
/** How often a forwarder asks for the remote sampling rules, in milliseconds. */
|
|
617
|
+
export declare const REMOTE_SAMPLING_POLL_MS = 30000;
|
|
618
|
+
/**
|
|
619
|
+
* Config keys with no default, excluded from `DEFAULT_CONFIG`.
|
|
620
|
+
* @see {@link DEFAULT_CONFIG}
|
|
621
|
+
*/
|
|
622
|
+
export declare const UNDEFAULTED_CONFIG_KEYS: readonly ["contextProvider", "redact", "onDiagnostic", "onDrop", "headers", "serializer", "otelLoader", "transport", "transportOnExit", "transportWorker"];
|
|
623
|
+
/**
|
|
624
|
+
* Nested config section keys.
|
|
625
|
+
* @see {@link ResolvedConfig}
|
|
626
|
+
*/
|
|
627
|
+
export declare const CONFIG_SECTIONS: readonly ["captureLimits", "metadata", "storage", "diagnostics", "correlation", "metrics", "buffering", "delivery", "loggerCache", "securityContext", "sampling", "bus", "journey", "batching", "retention", "limits", "capture", "debugBuffer", "profiler", "replay"];
|
|
628
|
+
/**
|
|
629
|
+
* Section keys with no default, excluded from their section of `DEFAULT_CONFIG`.
|
|
630
|
+
* @see {@link UNDEFAULTED_CONFIG_KEYS}
|
|
631
|
+
*/
|
|
632
|
+
export declare const UNDEFAULTED_SECTION_KEYS: Record<(typeof CONFIG_SECTIONS)[number], string[]>;
|
|
633
|
+
/** Console output level used when a consumer passes `consoleOutput: true`. */
|
|
634
|
+
export declare const CONSOLE_DEFAULT_LEVEL: LogLevel;
|
|
635
|
+
/** Max time a partial log batch waits before the pipeline sends it, in milliseconds. */
|
|
636
|
+
export declare const LOG_FLUSH_INTERVAL_MS = 2000;
|
|
637
|
+
/** Max records per log batch. At this count, the pipeline sends the batch early. */
|
|
638
|
+
export declare const LOG_BATCH_SIZE = 100;
|
|
639
|
+
/**
|
|
640
|
+
* Default interval of the counter, histogram and profiler points, in milliseconds. A partial
|
|
641
|
+
* metric batch waits this long too, longer than a log batch, because metrics have a higher
|
|
642
|
+
* volume and no caller is waiting for them.
|
|
643
|
+
*/
|
|
644
|
+
export declare const METRIC_INTERVAL_MS = 10000;
|
|
645
|
+
/** Max records per metric batch. At this count, the pipeline sends the batch early. */
|
|
646
|
+
export declare const METRIC_BATCH_SIZE = 500;
|
|
647
|
+
/** Max concurrent ingest requests, across both streams. */
|
|
648
|
+
export declare const MAX_CONCURRENT_REQUESTS = 2;
|
|
649
|
+
/** Max time for one ingest request, in milliseconds. The transport then aborts and retries it. */
|
|
650
|
+
export declare const REQUEST_TIMEOUT_MS = 15000;
|
|
651
|
+
/** Min payload size to compress, in bytes. */
|
|
652
|
+
export declare const COMPRESSION_THRESHOLD_BYTES = 1024;
|
|
653
|
+
/** IndexedDB database name. */
|
|
654
|
+
export declare const STORAGE_DB_NAME = "UiObservability";
|
|
655
|
+
/** Capacity and retention thresholds every storage adapter enforces. */
|
|
656
|
+
export declare const STORAGE_LIMITS: StorageLimits;
|
|
657
|
+
/**
|
|
658
|
+
* Max time for one storage call, in milliseconds. After that the call counts as failed, because
|
|
659
|
+
* a call that never settles would hold on to a dispatch slot or the drain flag.
|
|
660
|
+
*/
|
|
661
|
+
export declare const STORAGE_DEADLINE_MS = 10000;
|
|
662
|
+
/** Default wait of flush() and of a rotation's flush, in milliseconds. */
|
|
663
|
+
export declare const FLUSH_TIMEOUT_MS = 5000;
|
|
664
|
+
/**
|
|
665
|
+
* Longest wait of flush() and of a rotation's flush, in milliseconds. A browser timer fires at
|
|
666
|
+
* once for a delay above 2^31 - 1 ms, so the wait has a ceiling.
|
|
667
|
+
*/
|
|
668
|
+
export declare const FLUSH_TIMEOUT_MAX_MS = 600000;
|
|
669
|
+
/** First backoff step, in milliseconds. Doubles with every attempt. */
|
|
670
|
+
export declare const RETRY_BASE_DELAY_MS = 2000;
|
|
671
|
+
/** Backoff ceiling, in milliseconds. */
|
|
672
|
+
export declare const RETRY_MAX_DELAY_MS = 60000;
|
|
673
|
+
/** How often to check for stored work when nothing has failed recently, in milliseconds. */
|
|
674
|
+
export declare const RETRY_IDLE_DELAY_MS = 30000;
|
|
675
|
+
/** Max time a journey stays open, in milliseconds. After that it counts as abandoned. */
|
|
676
|
+
export declare const JOURNEY_MAX_AGE_MS: number;
|
|
677
|
+
/** True if the journey ends for all contexts when the owning context closes. */
|
|
678
|
+
export declare const JOURNEY_END_ON_OWNER_CLOSE = false;
|
|
679
|
+
/** Query parameter checked at boot for a seeded journey token. */
|
|
680
|
+
export declare const JOURNEY_URL_PARAM = "__uiobs_journey";
|
|
681
|
+
/** BroadcastChannel name for the control plane. */
|
|
682
|
+
export declare const BUS_CHANNEL_NAME = "ui_observability_control";
|
|
683
|
+
/** Max time a forwarder waits for an owner to answer before it promotes itself, in milliseconds. */
|
|
684
|
+
export declare const BUS_HANDSHAKE_TIMEOUT_MS = 1500;
|
|
685
|
+
/** Handshake attempts allowed before a cross-origin forwarder promotes itself to sender. */
|
|
686
|
+
export declare const BUS_MAX_HANDSHAKE_ATTEMPTS = 3;
|
|
687
|
+
/**
|
|
688
|
+
* Max named sources, for example OpenFin identities, whose message rate the bus tracks at once.
|
|
689
|
+
* A new source past it is refused, so a flood of fake names can't grow the map without end.
|
|
690
|
+
*/
|
|
691
|
+
export declare const BUS_MAX_TRACKED_SOURCES = 256;
|
|
692
|
+
/**
|
|
693
|
+
* Max flush requests from other contexts that wait for the next flush. A request past it gets
|
|
694
|
+
* no answer, so a flood of requests can't grow the list without end.
|
|
695
|
+
*/
|
|
696
|
+
export declare const BUS_MAX_FLUSH_REQUESTS = 100;
|
|
697
|
+
/** Max flush requests of one source that wait, so one frame can't fill the whole list. */
|
|
698
|
+
export declare const BUS_MAX_FLUSH_REQUESTS_PER_SOURCE = 4;
|
|
699
|
+
/**
|
|
700
|
+
* Min time between the starts of two flushes that the bus runs for other contexts, in
|
|
701
|
+
* milliseconds. A request in the gap joins the next one, so a flood can't flush without a pause.
|
|
702
|
+
*/
|
|
703
|
+
export declare const BUS_FLUSH_GAP_MS = 1000;
|
|
704
|
+
/**
|
|
705
|
+
* Share of a forwarder's time left that it gives its sender in a flush request. The rest is for
|
|
706
|
+
* the answer, so the caller's wait outlasts the callee's deadline at each hop of a chain.
|
|
707
|
+
*/
|
|
708
|
+
export declare const FLUSH_REQUEST_SHARE = 0.9;
|
|
709
|
+
/** Default of buffering.maxHeldRecords, the cap on non-action records in one hold buffer. */
|
|
710
|
+
export declare const BUS_MAX_BOOT_BUFFER_RECORDS = 500;
|
|
711
|
+
/** Max action records in one hold buffer. Their own cap means a log storm can't push one out. */
|
|
712
|
+
export declare const BUS_MAX_BOOT_BUFFER_ACTIONS = 2000;
|
|
713
|
+
/**
|
|
714
|
+
* Records of each kind that a full hold buffer never drops, counted from the first one. The
|
|
715
|
+
* first error of a failed startup is usually the cause, so it has to outlive the storm.
|
|
716
|
+
*/
|
|
717
|
+
export declare const HOLD_BUFFER_HEAD_RECORDS = 100;
|
|
718
|
+
/** Max distinct values in each list of an onDrop summary. */
|
|
719
|
+
export declare const DROP_SUMMARY_MAX_ITEMS = 20;
|
|
720
|
+
/**
|
|
721
|
+
* Max characters of an untrusted message type in a diagnostic detail, since the sender controls
|
|
722
|
+
* that text. The longest BUS_TYPE value is 41 characters, so every valid type fits.
|
|
723
|
+
*/
|
|
724
|
+
export declare const BUS_TYPE_DETAIL_MAX_CHARS = 48;
|
|
725
|
+
/** Breadcrumbs kept as context for the next error. */
|
|
726
|
+
export declare const MAX_BREADCRUMBS = 50;
|
|
727
|
+
/** How long identical errors are counted without being sent again, in milliseconds. */
|
|
728
|
+
export declare const ERROR_DEDUPE_MS = 5000;
|
|
729
|
+
/** Size caps for every record, applied after sanitize and after redact. */
|
|
730
|
+
export declare const RECORD_LIMITS: {
|
|
731
|
+
maxBodyChars: number;
|
|
732
|
+
maxAttributeChars: number;
|
|
733
|
+
maxAttributeCount: number;
|
|
734
|
+
maxStackChars: number;
|
|
735
|
+
maxDepth: number;
|
|
736
|
+
maxArrayLength: number;
|
|
737
|
+
maxNodes: number;
|
|
738
|
+
maxRecordBytes: number;
|
|
739
|
+
};
|
|
740
|
+
/**
|
|
741
|
+
* Routing settings a rotation resets when the update leaves them out. The rotation also spreads
|
|
742
|
+
* this into its base, where undefined means no hook, so an undefined key in the update resets too.
|
|
743
|
+
*/
|
|
744
|
+
export declare const ROUTING_RESET: {
|
|
745
|
+
readonly endpoint: null;
|
|
746
|
+
readonly metricsEndpoint: null;
|
|
747
|
+
readonly tracesEndpoint: null;
|
|
748
|
+
readonly headers: undefined;
|
|
749
|
+
readonly credentials: "omit";
|
|
750
|
+
readonly transport: undefined;
|
|
751
|
+
readonly transportOnExit: undefined;
|
|
752
|
+
readonly transportWorker: undefined;
|
|
753
|
+
};
|
|
754
|
+
/** Routing settings that configure() can't change while isolation is on. */
|
|
755
|
+
export declare const ROUTING_KEYS: (keyof typeof ROUTING_RESET)[];
|
|
756
|
+
/**
|
|
757
|
+
* The default runtime config, before the consumer calls `configure()`. `serializer` is left
|
|
758
|
+
* out, because `resolveConfig` supplies that default to avoid a circular import.
|
|
759
|
+
* This sits below the constants it reads, since a const can't be read before its own line.
|
|
760
|
+
* @see {@link ResolvedConfig}
|
|
761
|
+
* @see {@link UNDEFAULTED_CONFIG_KEYS}
|
|
762
|
+
*/
|
|
763
|
+
export declare const DEFAULT_CONFIG: Omit<ResolvedConfig, "serializer">;
|