@utk09/ui-observability 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/CHANGELOG.md +77 -1
  2. package/README.md +323 -113
  3. package/bin/uiobs.mjs +1 -1
  4. package/dist/{batch-BMdT9mKm.js → batch-BjQUwjA6.js} +5 -6
  5. package/dist/batch-BjQUwjA6.js.map +1 -0
  6. package/dist/{batch-BHXypM1j.cjs → batch-D5LlU4Q9.cjs} +2 -2
  7. package/dist/batch-D5LlU4Q9.cjs.map +1 -0
  8. package/dist/bus/bus.d.ts +48 -47
  9. package/dist/bus/links.d.ts +4 -4
  10. package/dist/bus/validation.d.ts +1 -1
  11. package/dist/bus-D_7pd7RN.cjs +2 -0
  12. package/dist/bus-D_7pd7RN.cjs.map +1 -0
  13. package/dist/{bus-DKfBaica.js → bus-ecxUNTja.js} +105 -109
  14. package/dist/bus-ecxUNTja.js.map +1 -0
  15. package/dist/capture/console.d.ts +10 -10
  16. package/dist/capture/errors.d.ts +6 -6
  17. package/dist/capture/interactions.d.ts +14 -14
  18. package/dist/capture/lifecycle.d.ts +3 -3
  19. package/dist/capture/long-frames.d.ts +6 -6
  20. package/dist/capture/network.d.ts +17 -17
  21. package/dist/capture/profiler-frames.d.ts +44 -0
  22. package/dist/capture/replay-buffer.d.ts +46 -0
  23. package/dist/capture/replay-upload.d.ts +74 -0
  24. package/dist/capture/replay.d.ts +114 -0
  25. package/dist/capture/reports.d.ts +2 -2
  26. package/dist/capture/resource-timing.d.ts +1 -1
  27. package/dist/capture/server-timing.d.ts +3 -3
  28. package/dist/capture/storm.d.ts +3 -3
  29. package/dist/capture/types.d.ts +45 -33
  30. package/dist/capture/unclean-exit.d.ts +8 -8
  31. package/dist/capture/user-timing.d.ts +3 -3
  32. package/dist/capture/web-socket.d.ts +11 -11
  33. package/dist/capture/web-vitals.d.ts +20 -7
  34. package/dist/compression-AJJCMBOa.js +11 -0
  35. package/dist/compression-AJJCMBOa.js.map +1 -0
  36. package/dist/compression-lD9abCcO.cjs +2 -0
  37. package/dist/compression-lD9abCcO.cjs.map +1 -0
  38. package/dist/console-CLz_PvFn.cjs +2 -0
  39. package/dist/console-CLz_PvFn.cjs.map +1 -0
  40. package/dist/{console-BX_0UCV7.js → console-cwgHKXvM.js} +14 -15
  41. package/dist/console-cwgHKXvM.js.map +1 -0
  42. package/dist/constants-Bwl_YtQi.js +349 -0
  43. package/dist/constants-Bwl_YtQi.js.map +1 -0
  44. package/dist/constants-DakMxVB2.cjs +2 -0
  45. package/dist/constants-DakMxVB2.cjs.map +1 -0
  46. package/dist/constants.d.ts +150 -103
  47. package/dist/context-storage-BjzeBSxH.cjs.map +1 -1
  48. package/dist/{context-storage-DxZf4Gfh.js → context-storage-BzkoHzkQ.js} +2 -3
  49. package/dist/context-storage-BzkoHzkQ.js.map +1 -0
  50. package/dist/core/breadcrumbs.d.ts +16 -15
  51. package/dist/core/config.d.ts +3 -3
  52. package/dist/core/context.d.ts +7 -7
  53. package/dist/core/debug-buffer.d.ts +10 -10
  54. package/dist/core/debug-bundle.d.ts +3 -3
  55. package/dist/core/deferred.d.ts +2 -2
  56. package/dist/core/diagnostics.d.ts +24 -21
  57. package/dist/core/drops.d.ts +7 -7
  58. package/dist/core/hold-buffer.d.ts +1 -1
  59. package/dist/core/journey.d.ts +22 -23
  60. package/dist/core/logger.d.ts +22 -21
  61. package/dist/core/measure.d.ts +7 -7
  62. package/dist/core/meter.d.ts +25 -21
  63. package/dist/core/pipeline.d.ts +42 -41
  64. package/dist/core/profile-buckets.d.ts +31 -0
  65. package/dist/core/profiler.d.ts +218 -0
  66. package/dist/core/record.d.ts +23 -23
  67. package/dist/core/remote-rules.d.ts +4 -4
  68. package/dist/core/remote-sampling.d.ts +21 -20
  69. package/dist/core/runtime.d.ts +206 -137
  70. package/dist/core/sampling.d.ts +18 -18
  71. package/dist/core/sender.d.ts +22 -20
  72. package/dist/core/spans.d.ts +5 -5
  73. package/dist/{deadline-5_PecIl5.js → deadline-C4ccAuk5.js} +4 -9
  74. package/dist/deadline-C4ccAuk5.js.map +1 -0
  75. package/dist/deadline-CUGbto-y.cjs +2 -0
  76. package/dist/deadline-CUGbto-y.cjs.map +1 -0
  77. package/dist/{debug-bundle-CZZ6SQQh.js → debug-bundle-BOdYmCeV.js} +12 -6
  78. package/dist/debug-bundle-BOdYmCeV.js.map +1 -0
  79. package/dist/debug-bundle-Ex4L_LSP.cjs +2 -0
  80. package/dist/debug-bundle-Ex4L_LSP.cjs.map +1 -0
  81. package/dist/doctor.cjs +1 -1
  82. package/dist/doctor.cjs.map +1 -1
  83. package/dist/doctor.d.ts +16 -6
  84. package/dist/doctor.js +148 -54
  85. package/dist/doctor.js.map +1 -1
  86. package/dist/{emergency-queue-Cs8-i2xw.js → emergency-queue-B9WZxanZ.js} +15 -17
  87. package/dist/emergency-queue-B9WZxanZ.js.map +1 -0
  88. package/dist/{emergency-queue-CQ-9acZf.cjs → emergency-queue-HBpL5r3V.cjs} +2 -2
  89. package/dist/emergency-queue-HBpL5r3V.cjs.map +1 -0
  90. package/dist/{error-like-Ywo5uRHo.js → error-like-B11pB4aL.js} +2 -3
  91. package/dist/error-like-B11pB4aL.js.map +1 -0
  92. package/dist/error-like-gGRx2s36.cjs.map +1 -1
  93. package/dist/{errors-oyxrpHjY.js → errors-D6bwgJtO.js} +5 -6
  94. package/dist/errors-D6bwgJtO.js.map +1 -0
  95. package/dist/{errors-CigX45pL.cjs → errors-DCOCRdSi.cjs} +2 -2
  96. package/dist/errors-DCOCRdSi.cjs.map +1 -0
  97. package/dist/{factory-BkjNzPYL.cjs → factory-DLFDjdLv.cjs} +2 -2
  98. package/dist/factory-DLFDjdLv.cjs.map +1 -0
  99. package/dist/{factory-Bgsky_e0.js → factory-e9Qo3K0z.js} +18 -22
  100. package/dist/factory-e9Qo3K0z.js.map +1 -0
  101. package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
  102. package/dist/{fixed-window-CtaFHanJ.js → fixed-window-Dq3MLUUv.js} +2 -3
  103. package/dist/fixed-window-Dq3MLUUv.js.map +1 -0
  104. package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
  105. package/dist/{global-scope-dp2jADRl.js → global-scope-D9I8s-oN.js} +2 -3
  106. package/dist/global-scope-D9I8s-oN.js.map +1 -0
  107. package/dist/{guards-CpvOpJL6.js → guards-Cidk71ME.js} +2 -3
  108. package/dist/guards-Cidk71ME.js.map +1 -0
  109. package/dist/guards-nJ70syPt.cjs.map +1 -1
  110. package/dist/{identity-BMlKGHUM.cjs → identity-BlvlgjrU.cjs} +2 -2
  111. package/dist/identity-BlvlgjrU.cjs.map +1 -0
  112. package/dist/{identity-DOaHdfhT.js → identity-BrQp_5J5.js} +20 -21
  113. package/dist/identity-BrQp_5J5.js.map +1 -0
  114. package/dist/index.cjs +1 -1
  115. package/dist/index.cjs.map +1 -1
  116. package/dist/index.d.ts +112 -79
  117. package/dist/index.js +797 -659
  118. package/dist/index.js.map +1 -1
  119. package/dist/{indexeddb-storage-CaXGJqDD.cjs → indexeddb-storage-CtLvZH1r.cjs} +2 -2
  120. package/dist/indexeddb-storage-CtLvZH1r.cjs.map +1 -0
  121. package/dist/{indexeddb-storage-D-lUW_5P.js → indexeddb-storage-DLXQzAGh.js} +5 -6
  122. package/dist/indexeddb-storage-DLXQzAGh.js.map +1 -0
  123. package/dist/{interactions-CqDNrtIR.js → interactions-B6z2I4tU.js} +10 -11
  124. package/dist/interactions-B6z2I4tU.js.map +1 -0
  125. package/dist/{interactions-8DgxtmgO.cjs → interactions-P6pz08Jn.cjs} +2 -2
  126. package/dist/interactions-P6pz08Jn.cjs.map +1 -0
  127. package/dist/{journey-DgIjhrIc.js → journey-35yCMNFo.js} +21 -21
  128. package/dist/journey-35yCMNFo.js.map +1 -0
  129. package/dist/journey-DAGh5h9k.cjs +2 -0
  130. package/dist/journey-DAGh5h9k.cjs.map +1 -0
  131. package/dist/keys-BHhw_0Wh.cjs.map +1 -1
  132. package/dist/{keys-D5r_GH9q.js → keys-BU9j5YqW.js} +2 -3
  133. package/dist/keys-BU9j5YqW.js.map +1 -0
  134. package/dist/{library-console-g_VU-wzP.cjs → library-console-BFWEuQsl.cjs} +2 -2
  135. package/dist/library-console-BFWEuQsl.cjs.map +1 -0
  136. package/dist/library-console-Dl_Ly6DQ.js +13 -0
  137. package/dist/library-console-Dl_Ly6DQ.js.map +1 -0
  138. package/dist/{library-request-FQaiWjCP.cjs → library-request-Da-CHKzT.cjs} +2 -2
  139. package/dist/library-request-Da-CHKzT.cjs.map +1 -0
  140. package/dist/{library-request-CyC-9IOk.js → library-request-nI6pvI6I.js} +4 -5
  141. package/dist/library-request-nI6pvI6I.js.map +1 -0
  142. package/dist/{lifecycle-C2z_d8OX.cjs → lifecycle-BGGOcN4N.cjs} +2 -2
  143. package/dist/lifecycle-BGGOcN4N.cjs.map +1 -0
  144. package/dist/{lifecycle-BLC4VU7c.js → lifecycle-CZ6RRXc6.js} +3 -4
  145. package/dist/lifecycle-CZ6RRXc6.js.map +1 -0
  146. package/dist/{log-record-DKvo-B-d.cjs → log-record-D7bA1RPb.cjs} +2 -2
  147. package/dist/log-record-D7bA1RPb.cjs.map +1 -0
  148. package/dist/{log-record-CndanC-p.js → log-record-DIA6McNr.js} +3 -4
  149. package/dist/log-record-DIA6McNr.js.map +1 -0
  150. package/dist/{long-frames-BQef9rXR.js → long-frames-430_85Da.js} +9 -8
  151. package/dist/long-frames-430_85Da.js.map +1 -0
  152. package/dist/long-frames-Dd8tsi2U.cjs +2 -0
  153. package/dist/long-frames-Dd8tsi2U.cjs.map +1 -0
  154. package/dist/models/batch.d.ts +14 -15
  155. package/dist/models/bus.d.ts +24 -24
  156. package/dist/models/config.d.ts +402 -216
  157. package/dist/models/drop.d.ts +13 -11
  158. package/dist/models/health.d.ts +13 -13
  159. package/dist/models/log-record.d.ts +13 -14
  160. package/dist/models/metric.d.ts +82 -17
  161. package/dist/models/plugin.d.ts +13 -13
  162. package/dist/models/replay.d.ts +60 -0
  163. package/dist/models/serializer.d.ts +2 -3
  164. package/dist/models/stats.d.ts +2 -2
  165. package/dist/models/storage.d.ts +12 -11
  166. package/dist/{network-CvkvYzRU.js → network-C7SkLf4v.js} +30 -32
  167. package/dist/network-C7SkLf4v.js.map +1 -0
  168. package/dist/{network-CqnQOqon.cjs → network-pEX3PAJv.cjs} +2 -2
  169. package/dist/network-pEX3PAJv.cjs.map +1 -0
  170. package/dist/openfin-Bxelt0yg.js +7 -0
  171. package/dist/openfin-Bxelt0yg.js.map +1 -0
  172. package/dist/openfin-DtH2f7zX.cjs.map +1 -1
  173. package/dist/otlp-2MCrC3kd.cjs +2 -0
  174. package/dist/otlp-2MCrC3kd.cjs.map +1 -0
  175. package/dist/{otlp-CYIL7MOE.js → otlp-COq033e3.js} +26 -35
  176. package/dist/otlp-COq033e3.js.map +1 -0
  177. package/dist/patch-BX8KrPCT.cjs.map +1 -1
  178. package/dist/{patch-CCWfuEY7.js → patch-UdPz1ea8.js} +2 -3
  179. package/dist/patch-UdPz1ea8.js.map +1 -0
  180. package/dist/{platform-KMWkoI-v.cjs → platform-12uR7kBQ.cjs} +2 -2
  181. package/dist/platform-12uR7kBQ.cjs.map +1 -0
  182. package/dist/{platform-wcAkkv9F.js → platform-CVewe4wQ.js} +9 -10
  183. package/dist/platform-CVewe4wQ.js.map +1 -0
  184. package/dist/profiler-BVWIOgnq.js +310 -0
  185. package/dist/profiler-BVWIOgnq.js.map +1 -0
  186. package/dist/profiler-eVCknCzS.cjs +2 -0
  187. package/dist/profiler-eVCknCzS.cjs.map +1 -0
  188. package/dist/profiler-frames-CLXlT_xL.js +86 -0
  189. package/dist/profiler-frames-CLXlT_xL.js.map +1 -0
  190. package/dist/profiler-frames-Dg2OebB2.cjs +2 -0
  191. package/dist/profiler-frames-Dg2OebB2.cjs.map +1 -0
  192. package/dist/{remote-rules-CH_7PphT.js → remote-rules-BJGDJGwA.js} +29 -30
  193. package/dist/remote-rules-BJGDJGwA.js.map +1 -0
  194. package/dist/{remote-rules-BL8km4xk.cjs → remote-rules-CJD3ToVk.cjs} +2 -2
  195. package/dist/remote-rules-CJD3ToVk.cjs.map +1 -0
  196. package/dist/replay-0zAJv9T3.js +338 -0
  197. package/dist/replay-0zAJv9T3.js.map +1 -0
  198. package/dist/replay-DomJpXqW.cjs +2 -0
  199. package/dist/replay-DomJpXqW.cjs.map +1 -0
  200. package/dist/{reports-Bh_-KpZ2.cjs → reports-BsbqmP8h.cjs} +2 -2
  201. package/dist/reports-BsbqmP8h.cjs.map +1 -0
  202. package/dist/{reports-BOKyY3_A.js → reports-BuXekPOS.js} +4 -5
  203. package/dist/reports-BuXekPOS.js.map +1 -0
  204. package/dist/{resource-timing-BROnEJ0E.js → resource-timing-CXGHwFRD.js} +6 -7
  205. package/dist/resource-timing-CXGHwFRD.js.map +1 -0
  206. package/dist/{resource-timing-CbgwNpog.cjs → resource-timing-DkycFGDa.cjs} +2 -2
  207. package/dist/resource-timing-DkycFGDa.cjs.map +1 -0
  208. package/dist/{sampling-ECGVYiDD.cjs → sampling-Dd0wllyq.cjs} +2 -2
  209. package/dist/sampling-Dd0wllyq.cjs.map +1 -0
  210. package/dist/{sampling-BLO_pcV4.js → sampling-UUDbi3K0.js} +11 -12
  211. package/dist/sampling-UUDbi3K0.js.map +1 -0
  212. package/dist/{sanitize-DS0G4_ea.js → sanitize-CNmsD9r3.js} +4 -5
  213. package/dist/sanitize-CNmsD9r3.js.map +1 -0
  214. package/dist/{sanitize-Bsn8HQWC.cjs → sanitize-ChLn97Ch.cjs} +2 -2
  215. package/dist/sanitize-ChLn97Ch.cjs.map +1 -0
  216. package/dist/{select-DWO0-w8_.cjs → select-CTk-K5mG.cjs} +3 -3
  217. package/dist/select-CTk-K5mG.cjs.map +1 -0
  218. package/dist/{select-wqt9Wxio.js → select-DPv_j6wq.js} +64 -67
  219. package/dist/select-DPv_j6wq.js.map +1 -0
  220. package/dist/{sender-BkAVt-Rq.js → sender-15zEsZpr.js} +98 -101
  221. package/dist/sender-15zEsZpr.js.map +1 -0
  222. package/dist/sender-Bfpv9tad.cjs +2 -0
  223. package/dist/sender-Bfpv9tad.cjs.map +1 -0
  224. package/dist/storage/context-storage.d.ts +34 -33
  225. package/dist/storage/emergency-queue.d.ts +9 -9
  226. package/dist/storage/eviction.d.ts +12 -12
  227. package/dist/storage/factory.d.ts +8 -7
  228. package/dist/storage/gap.d.ts +6 -6
  229. package/dist/storage/idb-driver.d.ts +31 -32
  230. package/dist/storage/indexeddb-storage.d.ts +26 -27
  231. package/dist/storage/keys.d.ts +7 -7
  232. package/dist/storage/local-storage.d.ts +38 -38
  233. package/dist/storage/memory-storage.d.ts +21 -22
  234. package/dist/storage/persistence.d.ts +1 -1
  235. package/dist/storage-BA9RqRO-.cjs.map +1 -1
  236. package/dist/{storage-w7Tslvlq.js → storage-DZwed89z.js} +2 -3
  237. package/dist/storage-DZwed89z.js.map +1 -0
  238. package/dist/{storm-DD4cUkoL.js → storm-BTSNTIWI.js} +4 -5
  239. package/dist/storm-BTSNTIWI.js.map +1 -0
  240. package/dist/{storm-DCEsqViG.cjs → storm-D0_qZOEg.cjs} +2 -2
  241. package/dist/storm-D0_qZOEg.cjs.map +1 -0
  242. package/dist/transport/compression.d.ts +2 -2
  243. package/dist/transport/errors.d.ts +7 -7
  244. package/dist/transport/exit-flush.d.ts +39 -39
  245. package/dist/transport/headers.d.ts +2 -2
  246. package/dist/transport/http-transport.d.ts +28 -27
  247. package/dist/transport/memory-transport.d.ts +6 -6
  248. package/dist/transport/retry-engine.d.ts +35 -34
  249. package/dist/transport/serializers/ecs.d.ts +1 -1
  250. package/dist/transport/serializers/otlp-metrics.d.ts +1 -1
  251. package/dist/transport/serializers/otlp-traces.d.ts +1 -1
  252. package/dist/transport/serializers/otlp.d.ts +16 -16
  253. package/dist/transport/serializers/select.d.ts +7 -7
  254. package/dist/transport/status-transport.d.ts +20 -20
  255. package/dist/transport/worker-protocol.d.ts +3 -3
  256. package/dist/{types-BR9t_w28.js → types-BAerHgCq.js} +2 -3
  257. package/dist/types-BAerHgCq.js.map +1 -0
  258. package/dist/types-C7WNpnG1.cjs.map +1 -1
  259. package/dist/{unclean-exit-CwdpbUDg.cjs → unclean-exit-ClGzrc2A.cjs} +2 -2
  260. package/dist/unclean-exit-ClGzrc2A.cjs.map +1 -0
  261. package/dist/{unclean-exit-BYZ5yaSI.js → unclean-exit-Cob_jyTv.js} +3 -4
  262. package/dist/unclean-exit-Cob_jyTv.js.map +1 -0
  263. package/dist/unref-CU9Nyz_9.cjs +2 -0
  264. package/dist/unref-CU9Nyz_9.cjs.map +1 -0
  265. package/dist/unref-DgHPQeWv.js +7 -0
  266. package/dist/unref-DgHPQeWv.js.map +1 -0
  267. package/dist/user-timing-CdYqx3PF.cjs +2 -0
  268. package/dist/user-timing-CdYqx3PF.cjs.map +1 -0
  269. package/dist/{user-timing-Di2ra5DB.js → user-timing-DgHubxCI.js} +7 -6
  270. package/dist/user-timing-DgHubxCI.js.map +1 -0
  271. package/dist/utils/console.d.ts +2 -2
  272. package/dist/utils/deadline.d.ts +4 -4
  273. package/dist/utils/error-like.d.ts +7 -7
  274. package/dist/utils/fixed-window.d.ts +9 -8
  275. package/dist/utils/global-scope.d.ts +8 -8
  276. package/dist/utils/guards.d.ts +2 -2
  277. package/dist/utils/identity.d.ts +17 -17
  278. package/dist/utils/library-console.d.ts +4 -4
  279. package/dist/utils/library-request.d.ts +10 -10
  280. package/dist/utils/lock.d.ts +10 -9
  281. package/dist/utils/openfin.d.ts +5 -5
  282. package/dist/utils/patch.d.ts +6 -6
  283. package/dist/utils/platform.d.ts +13 -11
  284. package/dist/utils/sanitize.d.ts +4 -4
  285. package/dist/utils/timer.d.ts +1 -1
  286. package/dist/utils/tracing.d.ts +38 -38
  287. package/dist/utils/unref.d.ts +3 -3
  288. package/dist/{web-socket-DwBNhgre.cjs → web-socket-BTuvYoJI.cjs} +2 -2
  289. package/dist/web-socket-BTuvYoJI.cjs.map +1 -0
  290. package/dist/{web-socket-B-5qqPy7.js → web-socket-DthJuSAg.js} +14 -15
  291. package/dist/web-socket-DthJuSAg.js.map +1 -0
  292. package/dist/web-vitals-Ch5BpDmo.cjs +2 -0
  293. package/dist/web-vitals-Ch5BpDmo.cjs.map +1 -0
  294. package/dist/web-vitals-CsGCWnUr.js +77 -0
  295. package/dist/web-vitals-CsGCWnUr.js.map +1 -0
  296. package/dist/{worker-protocol-0HMf4-kY.js → worker-protocol-B0_8rWy5.js} +6 -7
  297. package/dist/worker-protocol-B0_8rWy5.js.map +1 -0
  298. package/dist/{worker-protocol-DXekoADQ.cjs → worker-protocol-BjzFORfq.cjs} +2 -2
  299. package/dist/worker-protocol-BjzFORfq.cjs.map +1 -0
  300. package/dist/worker-server-4en-Lt-3.cjs +2 -0
  301. package/dist/worker-server-4en-Lt-3.cjs.map +1 -0
  302. package/dist/{worker-server-CKcmX5m5.js → worker-server-Cne9MX9I.js} +25 -26
  303. package/dist/{worker-server-CKcmX5m5.js.map → worker-server-Cne9MX9I.js.map} +1 -1
  304. package/dist/worker-transport-B-GF4Aqn.cjs +2 -0
  305. package/dist/worker-transport-B-GF4Aqn.cjs.map +1 -0
  306. package/dist/{worker-transport-2220ghFZ.js → worker-transport-C3SjJAEC.js} +64 -65
  307. package/dist/worker-transport-C3SjJAEC.js.map +1 -0
  308. package/package.json +33 -41
  309. package/dist/batch-BHXypM1j.cjs.map +0 -1
  310. package/dist/batch-BMdT9mKm.js.map +0 -1
  311. package/dist/bus-DKfBaica.js.map +0 -1
  312. package/dist/bus-Dea9rVhy.cjs +0 -2
  313. package/dist/bus-Dea9rVhy.cjs.map +0 -1
  314. package/dist/console-BX_0UCV7.js.map +0 -1
  315. package/dist/console-DZEcs7FL.cjs +0 -2
  316. package/dist/console-DZEcs7FL.cjs.map +0 -1
  317. package/dist/constants-CL0ZdI2f.cjs +0 -2
  318. package/dist/constants-CL0ZdI2f.cjs.map +0 -1
  319. package/dist/constants-CU60FG4w.js +0 -305
  320. package/dist/constants-CU60FG4w.js.map +0 -1
  321. package/dist/context-storage-DxZf4Gfh.js.map +0 -1
  322. package/dist/deadline-5_PecIl5.js.map +0 -1
  323. package/dist/deadline-XSnm95pg.cjs +0 -2
  324. package/dist/deadline-XSnm95pg.cjs.map +0 -1
  325. package/dist/debug-bundle-CZZ6SQQh.js.map +0 -1
  326. package/dist/debug-bundle-yRkrU1ny.cjs +0 -2
  327. package/dist/debug-bundle-yRkrU1ny.cjs.map +0 -1
  328. package/dist/emergency-queue-CQ-9acZf.cjs.map +0 -1
  329. package/dist/emergency-queue-Cs8-i2xw.js.map +0 -1
  330. package/dist/error-like-Ywo5uRHo.js.map +0 -1
  331. package/dist/errors-CigX45pL.cjs.map +0 -1
  332. package/dist/errors-oyxrpHjY.js.map +0 -1
  333. package/dist/factory-Bgsky_e0.js.map +0 -1
  334. package/dist/factory-BkjNzPYL.cjs.map +0 -1
  335. package/dist/fixed-window-CtaFHanJ.js.map +0 -1
  336. package/dist/global-scope-dp2jADRl.js.map +0 -1
  337. package/dist/guards-CpvOpJL6.js.map +0 -1
  338. package/dist/identity-BMlKGHUM.cjs.map +0 -1
  339. package/dist/identity-DOaHdfhT.js.map +0 -1
  340. package/dist/indexeddb-storage-CaXGJqDD.cjs.map +0 -1
  341. package/dist/indexeddb-storage-D-lUW_5P.js.map +0 -1
  342. package/dist/interactions-8DgxtmgO.cjs.map +0 -1
  343. package/dist/interactions-CqDNrtIR.js.map +0 -1
  344. package/dist/journey-5tcxEbnG.cjs +0 -2
  345. package/dist/journey-5tcxEbnG.cjs.map +0 -1
  346. package/dist/journey-DgIjhrIc.js.map +0 -1
  347. package/dist/keys-D5r_GH9q.js.map +0 -1
  348. package/dist/library-console-CabK2j2-.js +0 -14
  349. package/dist/library-console-CabK2j2-.js.map +0 -1
  350. package/dist/library-console-g_VU-wzP.cjs.map +0 -1
  351. package/dist/library-request-CyC-9IOk.js.map +0 -1
  352. package/dist/library-request-FQaiWjCP.cjs.map +0 -1
  353. package/dist/lifecycle-BLC4VU7c.js.map +0 -1
  354. package/dist/lifecycle-C2z_d8OX.cjs.map +0 -1
  355. package/dist/log-record-CndanC-p.js.map +0 -1
  356. package/dist/log-record-DKvo-B-d.cjs.map +0 -1
  357. package/dist/long-frames-BQef9rXR.js.map +0 -1
  358. package/dist/long-frames-CV5ZG2cx.cjs +0 -2
  359. package/dist/long-frames-CV5ZG2cx.cjs.map +0 -1
  360. package/dist/network-CqnQOqon.cjs.map +0 -1
  361. package/dist/network-CvkvYzRU.js.map +0 -1
  362. package/dist/openfin-BwEN0uj4.js +0 -8
  363. package/dist/openfin-BwEN0uj4.js.map +0 -1
  364. package/dist/otlp-CYIL7MOE.js.map +0 -1
  365. package/dist/otlp-RVbkNQRh.cjs +0 -2
  366. package/dist/otlp-RVbkNQRh.cjs.map +0 -1
  367. package/dist/patch-CCWfuEY7.js.map +0 -1
  368. package/dist/platform-KMWkoI-v.cjs.map +0 -1
  369. package/dist/platform-wcAkkv9F.js.map +0 -1
  370. package/dist/remote-rules-BL8km4xk.cjs.map +0 -1
  371. package/dist/remote-rules-CH_7PphT.js.map +0 -1
  372. package/dist/reports-BOKyY3_A.js.map +0 -1
  373. package/dist/reports-Bh_-KpZ2.cjs.map +0 -1
  374. package/dist/resource-timing-BROnEJ0E.js.map +0 -1
  375. package/dist/resource-timing-CbgwNpog.cjs.map +0 -1
  376. package/dist/sampling-BLO_pcV4.js.map +0 -1
  377. package/dist/sampling-ECGVYiDD.cjs.map +0 -1
  378. package/dist/sanitize-Bsn8HQWC.cjs.map +0 -1
  379. package/dist/sanitize-DS0G4_ea.js.map +0 -1
  380. package/dist/select-DWO0-w8_.cjs.map +0 -1
  381. package/dist/select-wqt9Wxio.js.map +0 -1
  382. package/dist/sender-BkAVt-Rq.js.map +0 -1
  383. package/dist/sender-D82PxlCY.cjs +0 -2
  384. package/dist/sender-D82PxlCY.cjs.map +0 -1
  385. package/dist/storage-w7Tslvlq.js.map +0 -1
  386. package/dist/storm-DCEsqViG.cjs.map +0 -1
  387. package/dist/storm-DD4cUkoL.js.map +0 -1
  388. package/dist/types-BR9t_w28.js.map +0 -1
  389. package/dist/unclean-exit-BYZ5yaSI.js.map +0 -1
  390. package/dist/unclean-exit-CwdpbUDg.cjs.map +0 -1
  391. package/dist/user-timing-C1kB3JEg.cjs +0 -2
  392. package/dist/user-timing-C1kB3JEg.cjs.map +0 -1
  393. package/dist/user-timing-Di2ra5DB.js.map +0 -1
  394. package/dist/web-socket-B-5qqPy7.js.map +0 -1
  395. package/dist/web-socket-DwBNhgre.cjs.map +0 -1
  396. package/dist/web-vitals-Bflr5jSA.js +0 -53
  397. package/dist/web-vitals-Bflr5jSA.js.map +0 -1
  398. package/dist/web-vitals-DFuoTQbZ.cjs +0 -2
  399. package/dist/web-vitals-DFuoTQbZ.cjs.map +0 -1
  400. package/dist/worker-protocol-0HMf4-kY.js.map +0 -1
  401. package/dist/worker-protocol-DXekoADQ.cjs.map +0 -1
  402. package/dist/worker-server-BQK5z2yl.cjs +0 -2
  403. package/dist/worker-server-BQK5z2yl.cjs.map +0 -1
  404. package/dist/worker-transport-2220ghFZ.js.map +0 -1
  405. package/dist/worker-transport-Dj2yCQN5.cjs +0 -2
  406. package/dist/worker-transport-Dj2yCQN5.cjs.map +0 -1
@@ -18,49 +18,55 @@ import { JourneyEngine } from "./journey";
18
18
  import { RecordBuilder } from "./record";
19
19
  /** Manages subsystem lifecycles, bus coordination and record delivery. */
20
20
  export declare class ObservabilityRuntime {
21
- /** True while the runtime changes the security context. */
21
+ /** True while the security context is changing. */
22
22
  private rotating;
23
- /** True while the runtime collects the last records of the old context. */
23
+ /**
24
+ * True while this runtime has the profiler core attached. Tracking it keeps configure() from
25
+ * restarting the sampling every time, and keeps a runtime with the profiler off from ever
26
+ * creating the core and its global symbol.
27
+ */
28
+ private profilerOn;
29
+ /** True while the old context's last records are being collected. */
24
30
  private closingContext;
25
31
  /** Version of another SDK copy that owns the page runtime, or null. */
26
32
  private mismatchVersion;
27
- /** True if the configured context id differs from the owner context id. */
33
+ /** True if the configured context id differs from the owner's context id. */
28
34
  private contextMismatch;
29
- /** Current context change. Shutdown waits for this promise. */
35
+ /** The context change in progress. Shutdown waits for this promise. */
30
36
  private rotation?;
31
37
  /** Memory store kept for later context changes. */
32
38
  private memoryStorage?;
33
- /** State of the request for persistent storage. getHealth() reports it. */
39
+ /** State of the persistent storage request. getHealth() reports it. */
34
40
  private storagePersistence;
35
- /** True while a diagnostic record goes out. A diagnostic during that time gives no record. */
41
+ /** True while a diagnostic record goes out. Diagnostics raised meanwhile produce no record. */
36
42
  private recordingDiagnostic;
37
- /** Logger of the records that diagnostics.records gives. */
43
+ /** Logger for the records that diagnostics.records produces. */
38
44
  private readonly diagnosticLogger;
39
- /** Records that minLevel or sampling dropped. An error of this context sends them first. */
45
+ /** Records that minLevel or sampling dropped. An error in this context sends them first. */
40
46
  private readonly debugBuffer;
41
47
  /** True if the app supplied a context id at startup. */
42
48
  private explicitSecurityContext;
43
- /** True after this forwarder takes a context id from its owner. */
49
+ /** True once this forwarder has taken a context id from its owner. */
44
50
  private ownerAdopted;
45
51
  /**
46
- * Checks if a security context change is in progress.
52
+ * Checks whether a security context change is in progress.
47
53
  * @returns True until the current change completes.
48
54
  */
49
55
  isRotating(): boolean;
50
56
  /**
51
- * Locks or unlocks configuration at the request of the app. Other code of this origin can
52
- * call this method. The lock does not control access.
57
+ * Locks or unlocks configuration when the app asks. Any other code on this origin can call
58
+ * this too, so the lock is not access control.
53
59
  * @param locked True to refuse changes through configure().
54
60
  */
55
61
  setConfigurationLocked(locked: boolean): void;
56
62
  /**
57
- * Runtime of this copy of the library when another version owns the page runtime.
63
+ * This copy's runtime when another version of the library owns the page runtime.
58
64
  * It stays off the global key.
59
65
  */
60
66
  private static local;
61
67
  /**
62
- * Library version of this runtime. Another copy reads it from the global key.
63
- * Two versions with one runtime call methods that the other version does not have.
68
+ * This runtime's library version. Another copy reads it from the global key, because two
69
+ * versions sharing one runtime would call methods the other version doesn't have.
64
70
  */
65
71
  readonly sdkVersion: string;
66
72
  /** Diagnostics reporter for internal faults. */
@@ -71,9 +77,9 @@ export declare class ObservabilityRuntime {
71
77
  readonly platform: PlatformMetadata;
72
78
  /** Identity context containing session, tab, and context identifiers. */
73
79
  readonly identity: Identity;
74
- /** Stores for identity and journey keys. The runtime sets them at startup. */
80
+ /** Stores for identity and journey keys, set at startup. */
75
81
  private readonly stores;
76
- /** Identity strategy that the runtime used to make the stores. */
82
+ /** The identity strategy the stores were built with. */
77
83
  private readonly identityBuiltAs;
78
84
  /** Throttled writer of the session's last-seen timestamp. */
79
85
  private readonly sessionTouch;
@@ -89,14 +95,25 @@ export declare class ObservabilityRuntime {
89
95
  readonly journey: JourneyEngine;
90
96
  /** Record builder assembling structured log records. */
91
97
  readonly builder: RecordBuilder;
92
- /** Slot of the remote sampling rules. The sender or the bus fills it. */
98
+ /** Slot for the remote sampling rules. The sender or the bus fills it. */
93
99
  private readonly remote;
94
- /** Count of delivery identity changes. The first id of a context is not a change. */
100
+ /** Number of delivery identity changes. A context's first id doesn't count as a change. */
95
101
  private identityEpoch;
96
- /** Timer that restores the local capture switches after the remote TTL. */
102
+ /** Session replay's hook. It gets every ERROR and FATAL record. */
103
+ private errorHook;
104
+ /**
105
+ * True after startReplay(), false after stopReplay(), undefined until either is called. The
106
+ * app's last choice survives a reinstall of the capture modules.
107
+ */
108
+ private replayConsent;
109
+ /** The installed session replay capture. */
110
+ private replay;
111
+ /** Timer that restores the local capture switches once the remote TTL ends. */
97
112
  private remoteCaptureTimer;
98
113
  /** Settings of the current capture load or install. */
99
114
  private installedCaptureKey;
115
+ /** The replay settings the running replay capture was built with. */
116
+ private replayBuiltKey;
100
117
  /** Console sink for local developer output. */
101
118
  readonly console: ConsoleSink;
102
119
  /** Collects lost records into onDrop summaries. */
@@ -104,60 +121,63 @@ export declare class ObservabilityRuntime {
104
121
  /** Sums the values of the counter and histogram instruments. */
105
122
  private readonly meter;
106
123
  /**
107
- * Cross-realm communication bus. It is null until its chunk loads.
108
- * In bus.mode "off", it loads only when a child frame or a worker needs it.
124
+ * Cross-realm communication bus. Null until its chunk loads. In bus.mode "off", it loads
125
+ * only when a child frame or a worker needs it.
109
126
  */
110
127
  private bus;
111
- /** Load and construction of the bus. It is undefined until the first need. */
128
+ /** Promise for the bus load and construction. Undefined until first needed. */
112
129
  private busBuilt?;
113
- /** Load and start of the bus. It is undefined until the first need. */
130
+ /** Promise for the bus load and start. Undefined until first needed. */
114
131
  private busLoad?;
115
- /** Storage strategy of the adapter. The runtime sets it when the build starts. */
132
+ /** The adapter's storage strategy, set when the build starts. */
116
133
  private storageBuiltAs?;
117
- /** Delivery stack. The runtime sets it in the sender role with an endpoint, after the chunk loads. */
134
+ /**
135
+ * Delivery stack. Set in the sender role with an endpoint or a custom transport, once the
136
+ * chunk has loaded.
137
+ */
118
138
  private sender?;
119
- /** Load of the delivery stack. It is undefined when nothing loads. A record then has no destination. */
139
+ /** The delivery stack load. Undefined when nothing loads, so records have no destination. */
120
140
  private senderLoad?;
121
141
  /** Records that arrive while the delivery stack loads. */
122
142
  private readonly pendingRecords;
123
143
  /** Active auto-capture instrumentation modules. */
124
144
  private readonly captures;
125
- /** Count of capture installs. An install that a later install replaced stops after its load. */
145
+ /** Number of capture installs. An install replaced by a later one stops after its load. */
126
146
  private captureGeneration;
127
- /** Capture work that a rebuild of the capture modules must not repeat. */
147
+ /** Capture work that rebuilding the capture modules must not repeat. */
128
148
  private readonly captureOnce;
129
- /** Queue buffering records created before bus role resolution. */
149
+ /** Holds records created before the bus role is resolved. */
130
150
  private readonly bootBuffer;
131
- /** Batch buffer staging records for microtask forwarding. */
151
+ /** Records staged for forwarding on the next microtask. */
132
152
  private forwardBuffer;
133
153
  /** True if a microtask drain of the forward buffer is pending. */
134
154
  private forwardScheduled;
135
- /** True if startup has decided the bus role. A sender load waits for it. */
155
+ /** True once startup has decided the bus role. A sender load waits for it. */
136
156
  private roleResolved;
137
- /** Resolves when startup releases the boot records. flush() waits for it. init() sets it. */
157
+ /** Resolves when startup releases the boot records. Set by init(), awaited by flush(). */
138
158
  private started;
139
159
  /** True if asynchronous initialization is complete. */
140
160
  private ready;
141
161
  /** True if shutdown stopped the runtime. */
142
162
  private destroyed;
143
- /** Timestamp of the last reported storage gap warning in epoch milliseconds. */
163
+ /** When the last storage gap warning was reported, in epoch milliseconds. */
144
164
  private lastGapAt;
145
- /** Record limits of the builder and the console. The first configure() of the app sets them. */
165
+ /** Record limits for the builder and the console. The app's first configure() sets them. */
146
166
  private readonly limits;
147
- /** Lifetime rules of the journey engine. The first configure() of the app sets the age. */
167
+ /** Lifetime rules for the journey engine. The app's first configure() sets the age. */
148
168
  private readonly journeyOptions;
149
- /** False in a runtime that an early log call started. The first configure() then sets limits. */
169
+ /** False in a runtime started by an early log call. The first configure() then sets limits. */
150
170
  private tunablesLocked;
151
171
  /**
152
- * True for a console-only runtime. It sends nothing, joins no bus and installs no capture.
153
- * Another version of the library on the page, or a server, makes it console-only.
172
+ * True for a console-only runtime, which sends nothing, joins no bus and installs no capture.
173
+ * That happens next to another version of the library on the page, or on a server.
154
174
  */
155
175
  private readonly degraded;
156
- /** True after the report of a destination on a server. The runtime reports it one time. */
176
+ /** True once a destination on a server has been reported. It is reported only once. */
157
177
  private serverReported;
158
178
  /**
159
- * Ends the root span of a forwarder when its document unloads. The exit flush ends it only in
160
- * the sender. Without this, the client spans of a frame or a view have no parent.
179
+ * Ends a forwarder's root span when its document unloads. The exit flush only ends it in the
180
+ * sender, so without this the client spans of a frame or a view have no parent.
161
181
  */
162
182
  private readonly onPageHide;
163
183
  /**
@@ -166,86 +186,109 @@ export declare class ObservabilityRuntime {
166
186
  */
167
187
  private constructor();
168
188
  /**
169
- * Gives the handler of the diagnostics. With diagnostics.records, it also sends each event
170
- * as a record.
171
- * @returns The handler, or undefined without onDiagnostic and without diagnostic records.
189
+ * Returns the diagnostics handler. With diagnostics.records, it also sends every event as
190
+ * a record.
191
+ * @returns The handler, or undefined with no onDiagnostic and no diagnostic records.
172
192
  */
173
193
  private diagnosticHandler;
174
194
  /**
175
195
  * Sends a diagnostic event as a record when diagnostics.records selects its code.
176
- * A diagnostic during that send gives no record. That stops a loop.
196
+ * A diagnostic raised during that send produces no record, which stops a loop.
177
197
  * @param event Diagnostic event.
178
198
  */
179
199
  private recordDiagnostic;
180
200
  /**
181
- * Adds a breadcrumb from app code. It copies the data now. A later change of the object of the
182
- * app then does not change the trail.
183
- * @param message Description of the event. A JavaScript caller can pass a value that is not a
184
- * string. The library converts it.
201
+ * Adds a breadcrumb from app code. The data is copied now, so a later change to the app's
202
+ * object doesn't change the trail.
203
+ * @param message Description of the event. A JavaScript caller can pass a non-string, which
204
+ * is converted.
185
205
  * @param data Optional metadata.
186
206
  */
187
207
  addBreadcrumb(message: unknown, data?: Record<string, unknown>): void;
188
208
  /**
189
- * Adds a value to a counter or a histogram. The meter sends one point at each interval.
190
- * @param def Definition of the instrument.
209
+ * Adds a value to a counter or a histogram. The meter sends one point per interval.
210
+ * @param def The instrument's definition.
191
211
  * @param value Value to add.
192
- * @param attributes Attribute set of the value.
212
+ * @param attributes The value's attribute set.
193
213
  */
194
214
  recordMetric(def: InstrumentDef, value: number, attributes?: MetricAttributes): void;
195
215
  /**
196
- * Starts a timed operation. A shutdown or a new delivery identity before its end drops its values.
216
+ * Starts a timed operation. Its values are dropped if the runtime has shut down or a rotation
217
+ * is running when it ends. With `securityContext.isolation`, a new delivery identity before
218
+ * the end drops them too.
197
219
  * @param name Operation name.
198
- * @param attributes Attribute set of each histogram point.
199
- * @returns The handle of the operation.
220
+ * @param attributes Attribute set for every histogram point.
221
+ * @returns The operation's handle.
200
222
  */
201
223
  startMeasure(name: string, attributes?: MetricAttributes): Measure;
202
224
  /**
203
- * Builds and emits the record of one span. The console does not print it. minLevel does not
204
- * drop it. The trace engine sampled the trace before the span existed.
225
+ * Builds and emits the record for one span. The console doesn't print it and minLevel
226
+ * doesn't drop it. The trace engine already sampled the trace before the span existed.
205
227
  * @param span The span data.
206
228
  */
207
229
  private recordSpan;
208
230
  /**
209
- * Builds and emits the record of one aggregated point. The console does not print it.
231
+ * Builds and emits the record for one aggregated point. The console doesn't print it.
210
232
  * @param name Metric name.
211
- * @param attributes Attributes of the call. The record limits apply to them.
212
- * @param fields Metric fields of the point. The record limits do not cut them.
233
+ * @param attributes The call's attributes. The record limits apply to them.
234
+ * @param fields The point's metric fields. The record limits don't truncate them.
213
235
  */
214
236
  private emitPoint;
237
+ /**
238
+ * Turns the profiler on or off to match profiler.enabled. Before switching off it sends the
239
+ * points that are waiting, because the switch would otherwise drop them.
240
+ */
241
+ private syncProfiler;
242
+ /**
243
+ * Gives or withdraws consent for session replay, and starts or stops the recorder if the
244
+ * capture is installed.
245
+ * @param consent True starts the recorder, false stops it.
246
+ */
247
+ setReplay(consent: boolean): void;
248
+ /**
249
+ * Sends the open interval of the meter and the profiler. The profiler doesn't calibrate here,
250
+ * which keeps flush and the exit path short and synchronous.
251
+ */
252
+ private collectPoints;
253
+ /**
254
+ * Starts a new identity epoch. With isolation on, the profiler also drops its data and open
255
+ * spans, so a span from the old identity can't add to the new one.
256
+ */
257
+ private advanceIdentity;
215
258
  /**
216
259
  * Checks the source policy before a direct child link opens.
217
260
  * @param source Child window.
218
- * @param origin Origin of the child window.
219
- * @returns True if the bus permits this source.
261
+ * @param origin The child window's origin.
262
+ * @returns True if the bus allows this source.
220
263
  */
221
264
  readonly busCanAccept: (source: Window, origin: string) => boolean;
222
265
  /**
223
266
  * Receives direct messages from same-origin child frames.
224
267
  * @param message Inbound bus message.
225
268
  * @param reply Direct response callback.
226
- * @param source Window of the child frame.
269
+ * @param source The child frame's window.
227
270
  */
228
271
  readonly busAccept: (message: BusMessage, reply: Receive, source?: Window) => void;
229
272
  /**
230
- * Returns the runtime on the global key of this realm. Another copy of the library can own it.
273
+ * Returns the runtime on this realm's global key. Another copy of the library can own it.
231
274
  * @returns Pinned runtime instance or null.
232
275
  */
233
276
  private static pinned;
234
277
  /**
235
- * Returns the local runtime of this copy. Without one, it returns the pinned runtime.
236
- * A pinned runtime of another version gives null. A log call then starts the local runtime.
278
+ * Returns this copy's local runtime, or the pinned runtime if there is none. A pinned
279
+ * runtime from another version returns null, and a log call then starts the local runtime.
237
280
  * @returns Active runtime instance or null.
238
281
  */
239
282
  static current(): ObservabilityRuntime | null;
240
283
  /**
241
284
  * Returns the runtime that shutdown() stopped, until the next configure().
242
- * A stopped runtime of another version gives null.
285
+ * A stopped runtime from another version returns null.
243
286
  * @returns Stopped runtime instance or null.
244
287
  */
245
288
  static stopped(): ObservabilityRuntime | null;
246
289
  /**
247
- * Tests if shutdown() stopped this runtime.
248
- * @returns True after destroy() starts.
290
+ * Checks whether shutdown() stopped this runtime.
291
+ * @returns True once destroy() starts.
249
292
  */
250
293
  isDestroyed(): boolean;
251
294
  /**
@@ -256,10 +299,10 @@ export declare class ObservabilityRuntime {
256
299
  */
257
300
  static configure(input: Partial<ObservabilityConfig>, implicit?: boolean): ObservabilityRuntime;
258
301
  /**
259
- * Starts a console-only runtime next to the runtime of another version. It sends nothing,
260
- * joins no bus and installs no capture. The other version keeps the page runtime.
302
+ * Starts a console-only runtime next to another version's runtime. It sends nothing, joins
303
+ * no bus and installs no capture. The other version keeps the page runtime.
261
304
  * @param input Consumer configuration options.
262
- * @param found sdkVersion of the pinned runtime. A runtime before 0.9.0 has none.
305
+ * @param found The pinned runtime's sdkVersion. A runtime older than 0.9.0 has none.
263
306
  * @returns The local runtime.
264
307
  */
265
308
  private static startDegraded;
@@ -269,15 +312,15 @@ export declare class ObservabilityRuntime {
269
312
  */
270
313
  private reconfigure;
271
314
  /**
272
- * Tests if the runtime runs on a server, for example Node during server-side rendering.
315
+ * Checks whether the runtime is on a server, for example Node during server-side rendering.
273
316
  * @returns True on Node.
274
317
  */
275
318
  private onServer;
276
319
  /**
277
- * Removes the delivery settings from the input of a console-only runtime. On a server, it
278
- * reports a destination one time.
320
+ * Removes the delivery settings from a console-only runtime's input. On a server, it
321
+ * reports a destination once.
279
322
  * @param input Consumer configuration options.
280
- * @returns The options that the runtime accepts.
323
+ * @returns The options the runtime accepts.
281
324
  */
282
325
  private allowed;
283
326
  /**
@@ -287,55 +330,58 @@ export declare class ObservabilityRuntime {
287
330
  */
288
331
  private keepRouting;
289
332
  /**
290
- * Restores the startup tunables in the next config. A part of the runtime reads each tunable
291
- * one time. A later change has no effect. The runtime then refuses it.
292
- * @param next Resolved config of a later configure() call.
333
+ * Restores the startup tunables in the next config. Each tunable is read once by some part
334
+ * of the runtime, so a later change would have no effect and is refused.
335
+ * @param next The resolved config from a later configure() call.
293
336
  */
294
337
  private keepStartupTunables;
295
338
  /**
296
- * Refuses a change of config sections. It restores the values in force in the next config.
297
- * @param next Resolved config of a later configure() call.
298
- * @param sections Sections that cannot change.
339
+ * Refuses a change to config sections by restoring the current values in the next config.
340
+ * @param next The resolved config from a later configure() call.
341
+ * @param sections Sections that can't change.
299
342
  */
300
343
  private keepSections;
301
344
  /**
302
- * Restores the storage strategy of the built adapter. The runtime reads all other keys
303
- * live. It builds the adapter only one time. A new adapter strands the batches in the
304
- * old adapter. That loss is worse than a refused change.
345
+ * Restores the built adapter's storage strategy. Every other key is read live, but the
346
+ * adapter is built only once. A new adapter would strand the batches in the old one, and
347
+ * that loss is worse than a refused change.
305
348
  */
306
349
  private keepBuiltStorage;
307
350
  /**
308
351
  * Refuses a change that leaves the built delivery stack with no destination.
309
- * Without a destination, the retry engine removes each stored batch as delivered.
352
+ * Without one, the retry engine removes every stored batch as if it were delivered.
310
353
  * @param input Partial configuration to merge.
311
354
  * @returns Input without the refused changes.
312
355
  */
313
356
  private keepDestination;
314
357
  /**
315
- * Restores the identity strategy from startup. The ids exist from startup.
316
- * A later change cannot move them to another store.
358
+ * Restores the identity strategy from startup. The ids have existed since startup, and a
359
+ * later change can't move them to another store.
317
360
  */
318
361
  private keepBuiltIdentity;
319
362
  /** Initializes asynchronous subsystems and flushes the boot buffer. */
320
363
  private init;
321
- /** Resolves the bus role, loads the delivery stack and releases the boot records. It never rejects. */
364
+ /**
365
+ * Resolves the bus role, loads the delivery stack and releases the boot records.
366
+ * Never rejects.
367
+ */
322
368
  private boot;
323
369
  /**
324
- * Starts the load of the bus one time.
325
- * @returns Promise that resolves to the started bus, or null if it did not load.
370
+ * Starts the bus load once.
371
+ * @returns Promise that resolves to the started bus, or null if it didn't load.
326
372
  */
327
373
  private ensureBus;
328
374
  /**
329
- * Loads and constructs the bus one time. It does not call start().
330
- * @returns Promise that resolves to the constructed bus, or null if it did not load.
375
+ * Loads and constructs the bus once. Does not call start().
376
+ * @returns Promise that resolves to the constructed bus, or null if it didn't load.
331
377
  */
332
378
  private constructBus;
333
379
  /**
334
- * Starts the constructed bus. It never rejects.
335
- * @returns Promise that resolves to the started bus, or null if it did not load or start.
380
+ * Starts the constructed bus. Never rejects.
381
+ * @returns Promise that resolves to the started bus, or null if it didn't load or start.
336
382
  */
337
383
  private startBus;
338
- /** Imports and constructs the bus. It never rejects. */
384
+ /** Imports and constructs the bus. Never rejects. */
339
385
  private buildBus;
340
386
  /**
341
387
  * Reads the bus role. Without a bus, this context is the sender.
@@ -343,43 +389,65 @@ export declare class ObservabilityRuntime {
343
389
  */
344
390
  private role;
345
391
  /**
346
- * Loads the delivery stack if this context is the sender and has an endpoint.
392
+ * Loads the delivery stack if this context is the sender and has a destination, that is an
393
+ * endpoint or a custom transport.
347
394
  * @returns Promise that resolves when the load completes, or immediately when nothing loads.
348
395
  */
349
396
  private syncSender;
350
397
  /**
351
- * Tests if the config names a destination for the records.
352
- * @returns True with an endpoint or a custom transport.
398
+ * Checks whether the config names a destination for the records.
399
+ * @returns True if it has an endpoint or a custom transport.
353
400
  */
354
401
  private hasDestination;
355
402
  /**
356
- * Starts the load of the delivery stack one time.
403
+ * Starts the delivery stack load once.
357
404
  * @returns Promise that resolves when the load completes or fails.
358
405
  */
359
406
  private loadSender;
360
- /** Imports and builds the delivery stack. It then moves the held records into it. It never rejects. */
407
+ /**
408
+ * Imports and builds the delivery stack, then moves the held records into it.
409
+ * Never rejects.
410
+ */
361
411
  private buildSender;
362
412
  /** Refreshes temporary switches and restores local settings when their TTL ends. */
363
413
  private refreshCaptures;
414
+ /**
415
+ * Serializes the current capture settings and profiler observers into one string. When the
416
+ * string changes, the captures are reinstalled.
417
+ * @param settings Current capture settings.
418
+ * @returns The string.
419
+ */
420
+ private captureState;
421
+ /**
422
+ * Serializes what the replay recorder reads when it starts. The replay capture has its own
423
+ * key because a restart drops the buffer, so an unrelated capture change must not cause one.
424
+ * The other replay values are read on use and apply without a restart.
425
+ * @param settings Current capture settings.
426
+ * @returns The string. Empty while replay is off, so a replay change then installs nothing.
427
+ */
428
+ private replayState;
364
429
  /** Returns local capture settings with the permitted remote switches. */
365
430
  private effectiveCapture;
366
- /** Loads, builds and installs the enabled capture modules. It never rejects. */
431
+ /** Loads, builds and installs the enabled capture modules. Never rejects. */
367
432
  private installCaptures;
368
- /** Uninstalls the active capture modules. */
433
+ /**
434
+ * Uninstalls the active capture modules.
435
+ * @param kept A replay capture that stays installed, if there is one.
436
+ */
369
437
  private uninstallCaptures;
370
438
  /**
371
- * Imports the WebSocket capture plugin. A failed import reports and skips it.
439
+ * Imports the WebSocket capture plugin. A failed import is reported and skipped.
372
440
  * @returns Promise that resolves to the class, or undefined if the import failed.
373
441
  */
374
442
  private loadWebSocket;
375
443
  /**
376
- * Wraps a plugin as a capture module. The plugin gets public tools only.
377
- * @param plugin Plugin of the app, or a built-in plugin.
444
+ * Wraps a plugin as a capture module. The plugin only gets public tools.
445
+ * @param plugin The app's plugin, or a built-in one.
378
446
  * @returns The capture module.
379
447
  */
380
448
  private pluginCapture;
381
449
  /**
382
- * Imports one capture module. A failed import reports and skips that module only.
450
+ * Imports one capture module. A failed import is reported and skips only that module.
383
451
  * @param name Capture module name.
384
452
  * @returns Promise that resolves to the class, or undefined if the import failed.
385
453
  */
@@ -404,8 +472,7 @@ export declare class ObservabilityRuntime {
404
472
  */
405
473
  emit(record: LogRecord | null): void;
406
474
  /**
407
- * Sends a record to the forward buffer or to the local pipeline. The bus role selects
408
- * the path.
475
+ * Sends a record to the forward buffer or to the local pipeline, depending on the bus role.
409
476
  * @param record Log record to route.
410
477
  */
411
478
  private route;
@@ -416,7 +483,7 @@ export declare class ObservabilityRuntime {
416
483
  */
417
484
  private deliver;
418
485
  /**
419
- * Counts a record that a full hold buffer drops. It gives the record to the onDrop report.
486
+ * Counts a record dropped by a full hold buffer and passes it to the onDrop report.
420
487
  * @param record Dropped record.
421
488
  */
422
489
  private dropHeld;
@@ -425,85 +492,87 @@ export declare class ObservabilityRuntime {
425
492
  * @param record Log record to forward.
426
493
  */
427
494
  private forward;
428
- /** Gives the records of the forward buffer to the bus. */
495
+ /** Hands the forward buffer's records to the bus. */
429
496
  private sendForwarded;
430
497
  /**
431
- * Validates, samples and queues records from child frames or workers.
432
- * A forwarded record arrives built. This is the first point in this context where
433
- * sampling can run. RecordBuilder samples a local record.
498
+ * Validates, samples and queues records from child frames or workers. A forwarded record
499
+ * arrives already built, so this is the first point in this context where sampling can run.
500
+ * Local records are sampled by RecordBuilder.
434
501
  * @param records Inbound payload from bus.
435
502
  */
436
503
  private ingestForwarded;
437
- /** Flushes the startup records. It adds the active journey to records without a journey. */
504
+ /** Flushes the startup records, adding the active journey to records that have none. */
438
505
  private releaseBootBuffer;
439
506
  /**
440
- * Gives lost records to the onDrop report.
441
- * @param reason Cause of the loss.
507
+ * Passes lost records to the onDrop report.
508
+ * @param reason Why they were lost.
442
509
  * @param records Lost records.
443
510
  * @param batchIds Ids of the lost batches.
444
511
  */
445
512
  private readonly reportLoss;
446
513
  /**
447
- * Gives the evicted batches to the onDrop report. It also emits a warning record. A throttle
448
- * limits the warning records.
514
+ * Passes the evicted batches to the onDrop report and emits a warning record. The warning
515
+ * records are throttled.
449
516
  * @param result Storage prune summary metrics.
450
517
  * @param dropped The evicted batches.
451
518
  */
452
519
  private readonly reportGap;
453
- /** Makes and stores a new tab ID after a tab ID collision. */
520
+ /** Creates and stores a new tab ID after a tab ID collision. */
454
521
  private regenerateTabId;
455
522
  /**
456
- * Starts a new session in this context. It sends the open metric points, starts a new trace,
457
- * ends the active journey and clears the breadcrumbs. Other tabs read the new id at their next
458
- * startup.
523
+ * Starts a new session in this context. Sends the open metric points, starts a new trace,
524
+ * ends the active journey and clears the breadcrumbs. Other tabs pick up the new id at
525
+ * their next startup.
459
526
  */
460
527
  newSession(): void;
461
528
  /**
462
- * Closes the work of the old session and starts the given session.
529
+ * Closes the old session's work and starts the given session.
463
530
  * @param sessionId Id of the session to start.
464
531
  */
465
532
  private resetSession;
466
533
  /**
467
- * Changes the delivery context in one operation. A second change must wait for this change.
534
+ * Changes the delivery context in one operation. A second call while this one is running is
535
+ * rejected.
468
536
  * @param update New identity, delivery settings and context attributes.
469
- * @param options Rule for records of the old context and the flush deadline.
537
+ * @param options What to do with the old context's records, and the flush deadline.
470
538
  * @returns Promise that resolves when the change completes. Invalid settings reject it.
471
539
  */
472
540
  rotateSecurityContext(update: SecurityContextUpdate, options?: SecurityContextRotationOptions): Promise<void>;
473
541
  /**
474
- * Checks new settings, stops old delivery and starts the new context.
542
+ * Checks the new settings, stops the old delivery and starts the new context.
475
543
  * @param update New identity, delivery settings and attributes.
476
- * @param pending Rule for the old records.
544
+ * @param pending What to do with the old records.
477
545
  * @param timeoutMs Maximum wait for an old-context flush, in milliseconds.
478
546
  * @returns Promise that resolves when the context change completes.
479
547
  */
480
548
  private rotateContext;
481
549
  /**
482
- * Moves the records of the old context into the new context.
550
+ * Moves the old context's records into the new context.
483
551
  * @param live Records that were in memory. They go through the live buffer.
484
552
  * @param stored Batches that were stored. The new sender stores them again.
485
- * @returns Promise that resolves when the stored batches are stored again.
553
+ * @returns Promise that resolves once the stored batches are stored again.
486
554
  */
487
555
  private carry;
488
556
  /**
489
- * Collects the state of this runtime for a support ticket. The app decides where to send it.
557
+ * Collects this runtime's state for a support ticket. The app decides where to send it.
490
558
  * @param health Health snapshot from the facade, with the logger cache counts.
491
559
  * @returns Promise that resolves to the JSON-safe bundle.
492
560
  */
493
561
  debugBundle(health: ObservabilityHealth): Promise<DebugBundle>;
494
562
  /**
495
- * Reads the state of this runtime. It does not wait for startup or the sender to load.
563
+ * Reads this runtime's state. Doesn't wait for startup or for the sender to load.
496
564
  * @returns State, delivery counts and policies. The facade adds the logger cache counts.
497
565
  */
498
566
  health(): Promise<Omit<ObservabilityHealth, "loggerCache">>;
499
567
  /**
500
- * Reads the delivery state of this context.
568
+ * Reads this context's delivery state.
501
569
  * @returns Promise that resolves to the counts and the time of the last accepted send.
502
570
  */
503
571
  stats(): Promise<DeliveryStats>;
504
572
  /**
505
- * Removes stored records of one context or all contexts in the application namespace.
506
- * @param scope Part of storage to clear.
573
+ * Removes the stored records for one context, or for all contexts in the application
574
+ * namespace.
575
+ * @param scope Which part of storage to clear.
507
576
  * @returns Promise that resolves when removal completes.
508
577
  */
509
578
  clearPersisted(scope: "context" | "namespace"): Promise<void>;
@@ -515,7 +584,7 @@ export declare class ObservabilityRuntime {
515
584
  queueDepth(): Promise<number>;
516
585
  /**
517
586
  * Flushes all pending records in the pipeline or forward buffer.
518
- * @returns Promise that resolves when the library sends or hands off the queued records.
587
+ * @returns Promise that resolves once the queued records are sent or handed off.
519
588
  */
520
589
  flush(): Promise<void>;
521
590
  }