@utk09/ui-observability 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +273 -102
  3. package/bin/uiobs.mjs +1 -1
  4. package/dist/{batch-CL9uWYY3.js → batch-BjQUwjA6.js} +4 -4
  5. package/dist/batch-BjQUwjA6.js.map +1 -0
  6. package/dist/{batch-C8OcWR2L.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-BZ0GldpT.js → bus-ecxUNTja.js} +91 -91
  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-BPZCuSLc.cjs → console-CLz_PvFn.cjs} +2 -2
  39. package/dist/console-CLz_PvFn.cjs.map +1 -0
  40. package/dist/{console-BeCF7n59.js → console-cwgHKXvM.js} +4 -4
  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-BzkoHzkQ.js.map +1 -1
  49. package/dist/core/breadcrumbs.d.ts +16 -15
  50. package/dist/core/config.d.ts +3 -3
  51. package/dist/core/context.d.ts +7 -7
  52. package/dist/core/debug-buffer.d.ts +10 -10
  53. package/dist/core/debug-bundle.d.ts +3 -3
  54. package/dist/core/deferred.d.ts +2 -2
  55. package/dist/core/diagnostics.d.ts +24 -21
  56. package/dist/core/drops.d.ts +7 -7
  57. package/dist/core/hold-buffer.d.ts +1 -1
  58. package/dist/core/journey.d.ts +22 -23
  59. package/dist/core/logger.d.ts +22 -21
  60. package/dist/core/measure.d.ts +7 -7
  61. package/dist/core/meter.d.ts +25 -21
  62. package/dist/core/pipeline.d.ts +42 -41
  63. package/dist/core/profile-buckets.d.ts +31 -0
  64. package/dist/core/profiler.d.ts +218 -0
  65. package/dist/core/record.d.ts +23 -23
  66. package/dist/core/remote-rules.d.ts +4 -4
  67. package/dist/core/remote-sampling.d.ts +21 -20
  68. package/dist/core/runtime.d.ts +206 -137
  69. package/dist/core/sampling.d.ts +18 -18
  70. package/dist/core/sender.d.ts +22 -20
  71. package/dist/core/spans.d.ts +5 -5
  72. package/dist/{deadline-BOjOxNHj.js → deadline-C4ccAuk5.js} +3 -6
  73. package/dist/deadline-C4ccAuk5.js.map +1 -0
  74. package/dist/deadline-CUGbto-y.cjs +2 -0
  75. package/dist/deadline-CUGbto-y.cjs.map +1 -0
  76. package/dist/{debug-bundle-C7UkHZ-q.js → debug-bundle-BOdYmCeV.js} +10 -3
  77. package/dist/debug-bundle-BOdYmCeV.js.map +1 -0
  78. package/dist/debug-bundle-Ex4L_LSP.cjs +2 -0
  79. package/dist/debug-bundle-Ex4L_LSP.cjs.map +1 -0
  80. package/dist/doctor.cjs +1 -1
  81. package/dist/doctor.cjs.map +1 -1
  82. package/dist/doctor.d.ts +16 -6
  83. package/dist/doctor.js +147 -52
  84. package/dist/doctor.js.map +1 -1
  85. package/dist/{emergency-queue-Zy6lNafo.js → emergency-queue-B9WZxanZ.js} +4 -4
  86. package/dist/emergency-queue-B9WZxanZ.js.map +1 -0
  87. package/dist/{emergency-queue-CNTRui5t.cjs → emergency-queue-HBpL5r3V.cjs} +2 -2
  88. package/dist/emergency-queue-HBpL5r3V.cjs.map +1 -0
  89. package/dist/error-like-B11pB4aL.js.map +1 -1
  90. package/dist/error-like-gGRx2s36.cjs.map +1 -1
  91. package/dist/{errors-Dh7kef0i.js → errors-D6bwgJtO.js} +3 -3
  92. package/dist/errors-D6bwgJtO.js.map +1 -0
  93. package/dist/{errors-tfEr48bS.cjs → errors-DCOCRdSi.cjs} +2 -2
  94. package/dist/errors-DCOCRdSi.cjs.map +1 -0
  95. package/dist/{factory-CJXVYp0R.cjs → factory-DLFDjdLv.cjs} +2 -2
  96. package/dist/factory-DLFDjdLv.cjs.map +1 -0
  97. package/dist/{factory-BonqI3NL.js → factory-e9Qo3K0z.js} +13 -13
  98. package/dist/factory-e9Qo3K0z.js.map +1 -0
  99. package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
  100. package/dist/fixed-window-Dq3MLUUv.js.map +1 -1
  101. package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
  102. package/dist/global-scope-D9I8s-oN.js.map +1 -1
  103. package/dist/guards-Cidk71ME.js.map +1 -1
  104. package/dist/guards-nJ70syPt.cjs.map +1 -1
  105. package/dist/{identity-Cxgj6pZX.cjs → identity-BlvlgjrU.cjs} +2 -2
  106. package/dist/identity-BlvlgjrU.cjs.map +1 -0
  107. package/dist/{identity-DT5VmvXy.js → identity-BrQp_5J5.js} +19 -19
  108. package/dist/identity-BrQp_5J5.js.map +1 -0
  109. package/dist/index.cjs +1 -1
  110. package/dist/index.cjs.map +1 -1
  111. package/dist/index.d.ts +112 -79
  112. package/dist/index.js +783 -635
  113. package/dist/index.js.map +1 -1
  114. package/dist/{indexeddb-storage-CIoW21Xd.cjs → indexeddb-storage-CtLvZH1r.cjs} +2 -2
  115. package/dist/indexeddb-storage-CtLvZH1r.cjs.map +1 -0
  116. package/dist/{indexeddb-storage-BJVtiQKm.js → indexeddb-storage-DLXQzAGh.js} +4 -4
  117. package/dist/indexeddb-storage-DLXQzAGh.js.map +1 -0
  118. package/dist/{interactions-DTgKy_6K.js → interactions-B6z2I4tU.js} +3 -3
  119. package/dist/interactions-B6z2I4tU.js.map +1 -0
  120. package/dist/{interactions-fEN6FbVo.cjs → interactions-P6pz08Jn.cjs} +2 -2
  121. package/dist/interactions-P6pz08Jn.cjs.map +1 -0
  122. package/dist/{journey-CuJrHzEg.js → journey-35yCMNFo.js} +20 -19
  123. package/dist/journey-35yCMNFo.js.map +1 -0
  124. package/dist/journey-DAGh5h9k.cjs +2 -0
  125. package/dist/journey-DAGh5h9k.cjs.map +1 -0
  126. package/dist/keys-BHhw_0Wh.cjs.map +1 -1
  127. package/dist/keys-BU9j5YqW.js.map +1 -1
  128. package/dist/{library-console-D2GY9Or6.cjs → library-console-BFWEuQsl.cjs} +2 -2
  129. package/dist/library-console-BFWEuQsl.cjs.map +1 -0
  130. package/dist/{library-console-C1m6g1BR.js → library-console-Dl_Ly6DQ.js} +2 -2
  131. package/dist/library-console-Dl_Ly6DQ.js.map +1 -0
  132. package/dist/{library-request-1BX_UlaX.cjs → library-request-Da-CHKzT.cjs} +2 -2
  133. package/dist/library-request-Da-CHKzT.cjs.map +1 -0
  134. package/dist/{library-request-BQBT9N9Q.js → library-request-nI6pvI6I.js} +2 -2
  135. package/dist/library-request-nI6pvI6I.js.map +1 -0
  136. package/dist/{lifecycle-2EtUaRpo.cjs → lifecycle-BGGOcN4N.cjs} +2 -2
  137. package/dist/lifecycle-BGGOcN4N.cjs.map +1 -0
  138. package/dist/{lifecycle-BaKx_-32.js → lifecycle-CZ6RRXc6.js} +2 -2
  139. package/dist/lifecycle-CZ6RRXc6.js.map +1 -0
  140. package/dist/{log-record-i9zOTkpQ.cjs → log-record-D7bA1RPb.cjs} +2 -2
  141. package/dist/log-record-D7bA1RPb.cjs.map +1 -0
  142. package/dist/{log-record-CAoGBBf3.js → log-record-DIA6McNr.js} +2 -2
  143. package/dist/log-record-DIA6McNr.js.map +1 -0
  144. package/dist/{long-frames-Czk7IupC.js → long-frames-430_85Da.js} +8 -6
  145. package/dist/long-frames-430_85Da.js.map +1 -0
  146. package/dist/long-frames-Dd8tsi2U.cjs +2 -0
  147. package/dist/long-frames-Dd8tsi2U.cjs.map +1 -0
  148. package/dist/models/batch.d.ts +14 -15
  149. package/dist/models/bus.d.ts +24 -24
  150. package/dist/models/config.d.ts +402 -216
  151. package/dist/models/drop.d.ts +13 -11
  152. package/dist/models/health.d.ts +13 -13
  153. package/dist/models/log-record.d.ts +13 -14
  154. package/dist/models/metric.d.ts +82 -17
  155. package/dist/models/plugin.d.ts +13 -13
  156. package/dist/models/replay.d.ts +60 -0
  157. package/dist/models/serializer.d.ts +2 -3
  158. package/dist/models/stats.d.ts +2 -2
  159. package/dist/models/storage.d.ts +12 -11
  160. package/dist/{network-DBNwApoF.js → network-C7SkLf4v.js} +12 -12
  161. package/dist/network-C7SkLf4v.js.map +1 -0
  162. package/dist/{network-xbbuvG_6.cjs → network-pEX3PAJv.cjs} +2 -2
  163. package/dist/network-pEX3PAJv.cjs.map +1 -0
  164. package/dist/openfin-Bxelt0yg.js.map +1 -1
  165. package/dist/openfin-DtH2f7zX.cjs.map +1 -1
  166. package/dist/otlp-2MCrC3kd.cjs +2 -0
  167. package/dist/otlp-2MCrC3kd.cjs.map +1 -0
  168. package/dist/{otlp-BTJdIa6F.js → otlp-COq033e3.js} +25 -32
  169. package/dist/otlp-COq033e3.js.map +1 -0
  170. package/dist/patch-BX8KrPCT.cjs.map +1 -1
  171. package/dist/patch-UdPz1ea8.js.map +1 -1
  172. package/dist/{platform-C2Ez5kDc.cjs → platform-12uR7kBQ.cjs} +2 -2
  173. package/dist/platform-12uR7kBQ.cjs.map +1 -0
  174. package/dist/{platform-DkcuXwe-.js → platform-CVewe4wQ.js} +7 -7
  175. package/dist/platform-CVewe4wQ.js.map +1 -0
  176. package/dist/profiler-BVWIOgnq.js +310 -0
  177. package/dist/profiler-BVWIOgnq.js.map +1 -0
  178. package/dist/profiler-eVCknCzS.cjs +2 -0
  179. package/dist/profiler-eVCknCzS.cjs.map +1 -0
  180. package/dist/profiler-frames-CLXlT_xL.js +86 -0
  181. package/dist/profiler-frames-CLXlT_xL.js.map +1 -0
  182. package/dist/profiler-frames-Dg2OebB2.cjs +2 -0
  183. package/dist/profiler-frames-Dg2OebB2.cjs.map +1 -0
  184. package/dist/{remote-rules-Cfb4K-Nl.js → remote-rules-BJGDJGwA.js} +27 -27
  185. package/dist/remote-rules-BJGDJGwA.js.map +1 -0
  186. package/dist/{remote-rules-vzvk7aKf.cjs → remote-rules-CJD3ToVk.cjs} +2 -2
  187. package/dist/remote-rules-CJD3ToVk.cjs.map +1 -0
  188. package/dist/replay-0zAJv9T3.js +338 -0
  189. package/dist/replay-0zAJv9T3.js.map +1 -0
  190. package/dist/replay-DomJpXqW.cjs +2 -0
  191. package/dist/replay-DomJpXqW.cjs.map +1 -0
  192. package/dist/{reports-Dk2YhKIh.cjs → reports-BsbqmP8h.cjs} +2 -2
  193. package/dist/reports-BsbqmP8h.cjs.map +1 -0
  194. package/dist/{reports-TA-zInnq.js → reports-BuXekPOS.js} +3 -3
  195. package/dist/reports-BuXekPOS.js.map +1 -0
  196. package/dist/{resource-timing-BLv3EA2A.js → resource-timing-CXGHwFRD.js} +4 -4
  197. package/dist/resource-timing-CXGHwFRD.js.map +1 -0
  198. package/dist/{resource-timing-Cysw1S1f.cjs → resource-timing-DkycFGDa.cjs} +2 -2
  199. package/dist/resource-timing-DkycFGDa.cjs.map +1 -0
  200. package/dist/{sampling-Ckh2yW9k.cjs → sampling-Dd0wllyq.cjs} +2 -2
  201. package/dist/sampling-Dd0wllyq.cjs.map +1 -0
  202. package/dist/{sampling-C4VV-1MS.js → sampling-UUDbi3K0.js} +9 -9
  203. package/dist/sampling-UUDbi3K0.js.map +1 -0
  204. package/dist/{sanitize-6ymPlVvP.js → sanitize-CNmsD9r3.js} +2 -2
  205. package/dist/sanitize-CNmsD9r3.js.map +1 -0
  206. package/dist/{sanitize-BAWzkZt0.cjs → sanitize-ChLn97Ch.cjs} +2 -2
  207. package/dist/sanitize-ChLn97Ch.cjs.map +1 -0
  208. package/dist/{select-ZF4by-lF.cjs → select-CTk-K5mG.cjs} +3 -3
  209. package/dist/select-CTk-K5mG.cjs.map +1 -0
  210. package/dist/{select-xtQaenIi.js → select-DPv_j6wq.js} +61 -61
  211. package/dist/select-DPv_j6wq.js.map +1 -0
  212. package/dist/{sender-CiMHC9YG.js → sender-15zEsZpr.js} +61 -60
  213. package/dist/sender-15zEsZpr.js.map +1 -0
  214. package/dist/sender-Bfpv9tad.cjs +2 -0
  215. package/dist/sender-Bfpv9tad.cjs.map +1 -0
  216. package/dist/storage/context-storage.d.ts +34 -33
  217. package/dist/storage/emergency-queue.d.ts +9 -9
  218. package/dist/storage/eviction.d.ts +12 -12
  219. package/dist/storage/factory.d.ts +8 -7
  220. package/dist/storage/gap.d.ts +6 -6
  221. package/dist/storage/idb-driver.d.ts +31 -32
  222. package/dist/storage/indexeddb-storage.d.ts +26 -27
  223. package/dist/storage/keys.d.ts +7 -7
  224. package/dist/storage/local-storage.d.ts +38 -38
  225. package/dist/storage/memory-storage.d.ts +21 -22
  226. package/dist/storage/persistence.d.ts +1 -1
  227. package/dist/storage-BA9RqRO-.cjs.map +1 -1
  228. package/dist/storage-DZwed89z.js.map +1 -1
  229. package/dist/{storm-VR024_QN.js → storm-BTSNTIWI.js} +2 -2
  230. package/dist/storm-BTSNTIWI.js.map +1 -0
  231. package/dist/{storm-CYi9Swpx.cjs → storm-D0_qZOEg.cjs} +2 -2
  232. package/dist/storm-D0_qZOEg.cjs.map +1 -0
  233. package/dist/transport/compression.d.ts +2 -2
  234. package/dist/transport/errors.d.ts +7 -7
  235. package/dist/transport/exit-flush.d.ts +39 -39
  236. package/dist/transport/headers.d.ts +2 -2
  237. package/dist/transport/http-transport.d.ts +28 -27
  238. package/dist/transport/memory-transport.d.ts +6 -6
  239. package/dist/transport/retry-engine.d.ts +35 -34
  240. package/dist/transport/serializers/ecs.d.ts +1 -1
  241. package/dist/transport/serializers/otlp-metrics.d.ts +1 -1
  242. package/dist/transport/serializers/otlp-traces.d.ts +1 -1
  243. package/dist/transport/serializers/otlp.d.ts +16 -16
  244. package/dist/transport/serializers/select.d.ts +7 -7
  245. package/dist/transport/status-transport.d.ts +20 -20
  246. package/dist/transport/worker-protocol.d.ts +3 -3
  247. package/dist/types-BAerHgCq.js.map +1 -1
  248. package/dist/types-C7WNpnG1.cjs.map +1 -1
  249. package/dist/{unclean-exit-DFUN57wY.cjs → unclean-exit-ClGzrc2A.cjs} +2 -2
  250. package/dist/unclean-exit-ClGzrc2A.cjs.map +1 -0
  251. package/dist/{unclean-exit-CwcUhFOn.js → unclean-exit-Cob_jyTv.js} +2 -2
  252. package/dist/unclean-exit-Cob_jyTv.js.map +1 -0
  253. package/dist/unref-CU9Nyz_9.cjs +2 -0
  254. package/dist/unref-CU9Nyz_9.cjs.map +1 -0
  255. package/dist/unref-DgHPQeWv.js +7 -0
  256. package/dist/unref-DgHPQeWv.js.map +1 -0
  257. package/dist/user-timing-CdYqx3PF.cjs +2 -0
  258. package/dist/user-timing-CdYqx3PF.cjs.map +1 -0
  259. package/dist/{user-timing-_jZIhDKI.js → user-timing-DgHubxCI.js} +5 -3
  260. package/dist/user-timing-DgHubxCI.js.map +1 -0
  261. package/dist/utils/console.d.ts +2 -2
  262. package/dist/utils/deadline.d.ts +4 -4
  263. package/dist/utils/error-like.d.ts +7 -7
  264. package/dist/utils/fixed-window.d.ts +9 -8
  265. package/dist/utils/global-scope.d.ts +8 -8
  266. package/dist/utils/guards.d.ts +2 -2
  267. package/dist/utils/identity.d.ts +17 -17
  268. package/dist/utils/library-console.d.ts +4 -4
  269. package/dist/utils/library-request.d.ts +10 -10
  270. package/dist/utils/lock.d.ts +10 -9
  271. package/dist/utils/openfin.d.ts +5 -5
  272. package/dist/utils/patch.d.ts +6 -6
  273. package/dist/utils/platform.d.ts +13 -11
  274. package/dist/utils/sanitize.d.ts +4 -4
  275. package/dist/utils/timer.d.ts +1 -1
  276. package/dist/utils/tracing.d.ts +38 -38
  277. package/dist/utils/unref.d.ts +3 -3
  278. package/dist/{web-socket-BWUoqBh8.cjs → web-socket-BTuvYoJI.cjs} +2 -2
  279. package/dist/web-socket-BTuvYoJI.cjs.map +1 -0
  280. package/dist/{web-socket-CV7yIMnm.js → web-socket-DthJuSAg.js} +4 -4
  281. package/dist/web-socket-DthJuSAg.js.map +1 -0
  282. package/dist/web-vitals-Ch5BpDmo.cjs +2 -0
  283. package/dist/web-vitals-Ch5BpDmo.cjs.map +1 -0
  284. package/dist/web-vitals-CsGCWnUr.js +77 -0
  285. package/dist/web-vitals-CsGCWnUr.js.map +1 -0
  286. package/dist/{worker-protocol-CrsdSDLn.js → worker-protocol-B0_8rWy5.js} +4 -4
  287. package/dist/worker-protocol-B0_8rWy5.js.map +1 -0
  288. package/dist/{worker-protocol-Bai7GAIA.cjs → worker-protocol-BjzFORfq.cjs} +2 -2
  289. package/dist/worker-protocol-BjzFORfq.cjs.map +1 -0
  290. package/dist/worker-server-4en-Lt-3.cjs +2 -0
  291. package/dist/worker-server-4en-Lt-3.cjs.map +1 -0
  292. package/dist/{worker-server-Dp5HYm4b.js → worker-server-Cne9MX9I.js} +8 -8
  293. package/dist/{worker-server-Dp5HYm4b.js.map → worker-server-Cne9MX9I.js.map} +1 -1
  294. package/dist/worker-transport-B-GF4Aqn.cjs +2 -0
  295. package/dist/worker-transport-B-GF4Aqn.cjs.map +1 -0
  296. package/dist/{worker-transport-D6jtgpqN.js → worker-transport-C3SjJAEC.js} +62 -61
  297. package/dist/worker-transport-C3SjJAEC.js.map +1 -0
  298. package/package.json +8 -2
  299. package/dist/batch-C8OcWR2L.cjs.map +0 -1
  300. package/dist/batch-CL9uWYY3.js.map +0 -1
  301. package/dist/bus-BZ0GldpT.js.map +0 -1
  302. package/dist/bus-VWlmM5xs.cjs +0 -2
  303. package/dist/bus-VWlmM5xs.cjs.map +0 -1
  304. package/dist/console-BPZCuSLc.cjs.map +0 -1
  305. package/dist/console-BeCF7n59.js.map +0 -1
  306. package/dist/constants-DqKJH_MP.cjs +0 -2
  307. package/dist/constants-DqKJH_MP.cjs.map +0 -1
  308. package/dist/constants-zyrqveN4.js +0 -304
  309. package/dist/constants-zyrqveN4.js.map +0 -1
  310. package/dist/deadline-BOjOxNHj.js.map +0 -1
  311. package/dist/deadline-XSnm95pg.cjs +0 -2
  312. package/dist/deadline-XSnm95pg.cjs.map +0 -1
  313. package/dist/debug-bundle-BzJNpbF0.cjs +0 -2
  314. package/dist/debug-bundle-BzJNpbF0.cjs.map +0 -1
  315. package/dist/debug-bundle-C7UkHZ-q.js.map +0 -1
  316. package/dist/emergency-queue-CNTRui5t.cjs.map +0 -1
  317. package/dist/emergency-queue-Zy6lNafo.js.map +0 -1
  318. package/dist/errors-Dh7kef0i.js.map +0 -1
  319. package/dist/errors-tfEr48bS.cjs.map +0 -1
  320. package/dist/factory-BonqI3NL.js.map +0 -1
  321. package/dist/factory-CJXVYp0R.cjs.map +0 -1
  322. package/dist/identity-Cxgj6pZX.cjs.map +0 -1
  323. package/dist/identity-DT5VmvXy.js.map +0 -1
  324. package/dist/indexeddb-storage-BJVtiQKm.js.map +0 -1
  325. package/dist/indexeddb-storage-CIoW21Xd.cjs.map +0 -1
  326. package/dist/interactions-DTgKy_6K.js.map +0 -1
  327. package/dist/interactions-fEN6FbVo.cjs.map +0 -1
  328. package/dist/journey-CuJrHzEg.js.map +0 -1
  329. package/dist/journey-pffMVMfa.cjs +0 -2
  330. package/dist/journey-pffMVMfa.cjs.map +0 -1
  331. package/dist/library-console-C1m6g1BR.js.map +0 -1
  332. package/dist/library-console-D2GY9Or6.cjs.map +0 -1
  333. package/dist/library-request-1BX_UlaX.cjs.map +0 -1
  334. package/dist/library-request-BQBT9N9Q.js.map +0 -1
  335. package/dist/lifecycle-2EtUaRpo.cjs.map +0 -1
  336. package/dist/lifecycle-BaKx_-32.js.map +0 -1
  337. package/dist/log-record-CAoGBBf3.js.map +0 -1
  338. package/dist/log-record-i9zOTkpQ.cjs.map +0 -1
  339. package/dist/long-frames-BVg4i5SC.cjs +0 -2
  340. package/dist/long-frames-BVg4i5SC.cjs.map +0 -1
  341. package/dist/long-frames-Czk7IupC.js.map +0 -1
  342. package/dist/network-DBNwApoF.js.map +0 -1
  343. package/dist/network-xbbuvG_6.cjs.map +0 -1
  344. package/dist/otlp-BDvFrLnc.cjs +0 -2
  345. package/dist/otlp-BDvFrLnc.cjs.map +0 -1
  346. package/dist/otlp-BTJdIa6F.js.map +0 -1
  347. package/dist/platform-C2Ez5kDc.cjs.map +0 -1
  348. package/dist/platform-DkcuXwe-.js.map +0 -1
  349. package/dist/remote-rules-Cfb4K-Nl.js.map +0 -1
  350. package/dist/remote-rules-vzvk7aKf.cjs.map +0 -1
  351. package/dist/reports-Dk2YhKIh.cjs.map +0 -1
  352. package/dist/reports-TA-zInnq.js.map +0 -1
  353. package/dist/resource-timing-BLv3EA2A.js.map +0 -1
  354. package/dist/resource-timing-Cysw1S1f.cjs.map +0 -1
  355. package/dist/sampling-C4VV-1MS.js.map +0 -1
  356. package/dist/sampling-Ckh2yW9k.cjs.map +0 -1
  357. package/dist/sanitize-6ymPlVvP.js.map +0 -1
  358. package/dist/sanitize-BAWzkZt0.cjs.map +0 -1
  359. package/dist/select-ZF4by-lF.cjs.map +0 -1
  360. package/dist/select-xtQaenIi.js.map +0 -1
  361. package/dist/sender-CiMHC9YG.js.map +0 -1
  362. package/dist/sender-D5wBoXA8.cjs +0 -2
  363. package/dist/sender-D5wBoXA8.cjs.map +0 -1
  364. package/dist/storm-CYi9Swpx.cjs.map +0 -1
  365. package/dist/storm-VR024_QN.js.map +0 -1
  366. package/dist/unclean-exit-CwcUhFOn.js.map +0 -1
  367. package/dist/unclean-exit-DFUN57wY.cjs.map +0 -1
  368. package/dist/user-timing-C9kfRq3J.cjs +0 -2
  369. package/dist/user-timing-C9kfRq3J.cjs.map +0 -1
  370. package/dist/user-timing-_jZIhDKI.js.map +0 -1
  371. package/dist/web-socket-BWUoqBh8.cjs.map +0 -1
  372. package/dist/web-socket-CV7yIMnm.js.map +0 -1
  373. package/dist/web-vitals-Bq4WFHQo.js +0 -52
  374. package/dist/web-vitals-Bq4WFHQo.js.map +0 -1
  375. package/dist/web-vitals-DFuoTQbZ.cjs +0 -2
  376. package/dist/web-vitals-DFuoTQbZ.cjs.map +0 -1
  377. package/dist/worker-protocol-Bai7GAIA.cjs.map +0 -1
  378. package/dist/worker-protocol-CrsdSDLn.js.map +0 -1
  379. package/dist/worker-server-BrIYkfoa.cjs +0 -2
  380. package/dist/worker-server-BrIYkfoa.cjs.map +0 -1
  381. package/dist/worker-transport-Bwej4N2e.cjs +0 -2
  382. package/dist/worker-transport-Bwej4N2e.cjs.map +0 -1
  383. package/dist/worker-transport-D6jtgpqN.js.map +0 -1
@@ -1,48 +1,49 @@
1
1
  /** Category of a breadcrumb event. */
2
- export type BreadcrumbCategory = "log" | "action" | "event" | "click" | "navigation" | "http" | "console" | "frame" | "custom";
3
- /** Short summary of one event that the buffer keeps for an error record. */
2
+ export type BreadcrumbCategory = "log" | "action" | "event" | "click" | "navigation" | "http" | "console" | "frame" | "profile" | "custom";
3
+ /** Short summary of one event, kept so an error record can carry it. */
4
4
  export interface Breadcrumb {
5
5
  /** Timestamp in epoch milliseconds. */
6
6
  t: number;
7
7
  /** Category of the event. */
8
8
  category: BreadcrumbCategory;
9
- /** Description of the event for a person to read. */
9
+ /** Human-readable description of the event. */
10
10
  message: string;
11
11
  /** Optional contextual metadata. */
12
12
  data?: Record<string, unknown>;
13
13
  }
14
- /** Ring buffer of fixed size. It keeps recent breadcrumbs in time order. */
14
+ /** Fixed-size ring buffer that keeps recent breadcrumbs in time order. */
15
15
  export declare class BreadcrumbBuffer {
16
- /** Storage array of the ring buffer. */
16
+ /** The ring's backing array. */
17
17
  private buffer;
18
18
  /** Next write index in the circular buffer. */
19
19
  private pointer;
20
20
  /**
21
- * It is true after the pointer wraps past the capacity. The pointer alone cannot
22
- * tell an empty ring from a ring that wrapped back to index 0.
21
+ * True once the pointer has wrapped past the capacity. The pointer alone can't tell an
22
+ * empty ring from one that wrapped back to index 0.
23
23
  */
24
24
  private filled;
25
- /** Maximum number of breadcrumbs that the buffer keeps. */
25
+ /** Maximum number of breadcrumbs the buffer keeps. */
26
26
  private capacity;
27
27
  /**
28
- * @param capacity Maximum number of breadcrumbs. A smaller value changes to the minimum size.
28
+ * @param capacity Maximum number of breadcrumbs. 0 turns the buffer off. Any other value
29
+ * below the minimum size is raised to it.
29
30
  */
30
31
  constructor(capacity: number);
31
32
  /**
32
- * Changes the capacity and keeps the most recent breadcrumbs that fit.
33
- * @param capacity New capacity. Set 0 to remove and disable stored breadcrumbs.
33
+ * Changes the capacity, keeping the most recent breadcrumbs that fit.
34
+ * @param capacity New capacity. Pass 0 to drop the stored breadcrumbs and turn the buffer off.
34
35
  */
35
36
  resize(capacity: number): void;
36
37
  /**
37
- * Adds a breadcrumb. When the buffer is full, the new breadcrumb replaces the oldest one.
38
+ * Adds a breadcrumb. When the buffer is full, it overwrites the oldest one.
38
39
  * @param crumb Breadcrumb to add.
39
40
  */
40
41
  push(crumb: Breadcrumb): void;
41
- /** Removes all breadcrumbs. A new session must not carry the trail of the previous user. */
42
+ /** Removes all breadcrumbs, so a new session never carries the previous user's trail. */
42
43
  clear(): void;
43
44
  /**
44
- * Returns all stored breadcrumbs ordered from oldest to newest.
45
- * @returns List of breadcrumbs in time order.
45
+ * Returns all stored breadcrumbs, oldest to newest.
46
+ * @returns The breadcrumbs in time order.
46
47
  */
47
48
  snapshot(): Breadcrumb[];
48
49
  }
@@ -1,15 +1,15 @@
1
1
  import type { ObservabilityConfig, ResolvedConfig } from "../models/config";
2
2
  import type { Diagnostics } from "./diagnostics";
3
3
  /**
4
- * Resolves partial configuration inputs into a validated ResolvedConfig object.
4
+ * Resolves partial configuration input into a validated ResolvedConfig.
5
5
  * @param input Partial consumer configuration options.
6
6
  * @param diagnostics Diagnostics reporter.
7
- * @param previous Active configuration instance for incremental reconfigurations.
7
+ * @param previous The active configuration, for an incremental reconfigure.
8
8
  * @returns Complete, validated configuration object.
9
9
  */
10
10
  export declare function resolveConfig(input: Partial<ObservabilityConfig>, diagnostics: Diagnostics, previous?: ResolvedConfig): ResolvedConfig;
11
11
  /**
12
- * Changes the active configuration object in place. Subsystems that hold a section
12
+ * Changes the active configuration object in place, so subsystems holding a section
13
13
  * reference see the update.
14
14
  * @param target Active configuration object to change.
15
15
  * @param next Configuration object with the new values.
@@ -3,27 +3,27 @@ export declare class ContextStore {
3
3
  /** Backing store mapping attribute keys to raw values. */
4
4
  private readonly map;
5
5
  /**
6
- * Sets an ambient context attribute key and value.
6
+ * Sets one ambient context attribute.
7
7
  * @param key Attribute key.
8
8
  * @param value Raw attribute value.
9
9
  */
10
10
  set(key: string, value: unknown): void;
11
11
  /**
12
- * Merges multiple key-value pairs into the ambient context store.
13
- * @param values Record of attributes to merge.
12
+ * Merges several key-value pairs into the ambient context.
13
+ * @param values Attributes to merge.
14
14
  */
15
15
  setMany(values: Record<string, unknown>): void;
16
16
  /**
17
- * Deletes an attribute from the ambient context store.
17
+ * Removes an attribute from the ambient context.
18
18
  * @param key Attribute key to remove.
19
19
  */
20
20
  remove(key: string): void;
21
21
  /** Removes all ambient context attributes. */
22
22
  clear(): void;
23
23
  /**
24
- * Returns a copy of all ambient context attributes. The copy prevents a merge
25
- * target or a sanitizer from changing the store.
26
- * @returns Plain object containing stored key-value pairs.
24
+ * Returns a copy of all ambient context attributes, so a merge target or a sanitizer
25
+ * can't change the store.
26
+ * @returns Plain object with the stored key-value pairs.
27
27
  */
28
28
  getAll(): Record<string, unknown>;
29
29
  }
@@ -1,34 +1,34 @@
1
1
  import type { DebugBufferPolicy } from "../models/config";
2
2
  import type { LogRecord } from "../models/log-record";
3
- /** Bounded list of the records that the library dropped by level or by sampling. */
3
+ /** Bounded list of the records that were dropped by level or by sampling. */
4
4
  export declare class DebugBuffer {
5
5
  private readonly policy;
6
- /** Kept records, oldest first. It can hold up to two times maxRecords between trims. */
6
+ /** Kept records, oldest first. Can grow to twice maxRecords between trims. */
7
7
  private kept;
8
8
  /**
9
- * @param policy Gives the settings in force. A later configure() can change them.
9
+ * @param policy Returns the current settings. A later configure() can change them.
10
10
  */
11
11
  constructor(policy: () => DebugBufferPolicy);
12
12
  /**
13
- * Keeps a record. When the buffer is full, the oldest record leaves first.
14
- * @param record Built record. The privacy hooks already ran on it.
13
+ * Keeps a record. When the buffer is full, the oldest record goes first.
14
+ * @param record Built record. The privacy hooks have already run on it.
15
15
  */
16
16
  push(record: LogRecord): void;
17
17
  /**
18
- * Takes the kept records that are not too old, and empties the buffer.
19
- * @returns The records, oldest first. Each has `uiobs.debug_buffer: true`.
18
+ * Takes the kept records that aren't too old and empties the buffer.
19
+ * @returns The records, oldest first, each with `uiobs.debug_buffer: true`.
20
20
  */
21
21
  drain(): LogRecord[];
22
22
  /**
23
- * Gives the kept records without taking them.
23
+ * Returns the kept records without taking them.
24
24
  * @returns The records, oldest first.
25
25
  */
26
26
  snapshot(): LogRecord[];
27
27
  /**
28
- * Gives the kept records that the settings in force permit. A buffer that is off empties itself.
28
+ * Returns the kept records that the current settings allow. A disabled buffer empties itself.
29
29
  * @returns The records, oldest first.
30
30
  */
31
31
  private live;
32
- /** Removes each kept record. The records of an old session or identity must not go out. */
32
+ /** Removes every kept record, so nothing from an old session or identity goes out. */
33
33
  clear(): void;
34
34
  }
@@ -2,10 +2,10 @@ import type { ResolvedConfig } from "../models/config";
2
2
  import { type SanitizeLimits } from "../utils/sanitize";
3
3
  import type { Diagnostics } from "./diagnostics";
4
4
  /**
5
- * Copies the config for a support ticket. It leaves out the headers and cuts each URL. A function
6
- * becomes its name, and a RegExp its text.
5
+ * Copies the config for a support ticket, without the headers and with every URL trimmed. A
6
+ * function becomes its name and a RegExp its text.
7
7
  * @param config Active configuration.
8
- * @param limits Limits of the copy, as for record attributes.
8
+ * @param limits Limits for the copy, the same as for record attributes.
9
9
  * @param diagnostics Diagnostics reporter.
10
10
  * @returns JSON-safe copy of the config.
11
11
  */
@@ -1,7 +1,7 @@
1
1
  import type { Diagnostics } from "./diagnostics";
2
- /** Queues a call without reading its payload. A full queue first builds its pending calls. */
2
+ /** Queues a call without reading its payload. A full queue builds its pending calls first. */
3
3
  export declare function deferWrite(owner: object, work: () => void, diagnostics: Diagnostics, limit: number): void;
4
4
  /** Builds pending calls before a flush, a session change or a delivery identity change. */
5
5
  export declare function drainDeferred(owner: object): void;
6
- /** Releases calls that a hook queues during shutdown. Those calls have no built records. */
6
+ /** Releases calls that a hook queues during shutdown. No records were built for them. */
7
7
  export declare function cancelDeferred(owner: object): void;
@@ -4,7 +4,7 @@ export type DiagnosticCode = "config.locked" | "security.rotated" | "security.co
4
4
  export interface DiagnosticEvent {
5
5
  /** Diagnostic fault code. */
6
6
  code: DiagnosticCode;
7
- /** Description for a person to read. */
7
+ /** Human-readable description. */
8
8
  message: string;
9
9
  /** Structured context metadata. */
10
10
  detail?: Record<string, unknown>;
@@ -12,23 +12,23 @@ export interface DiagnosticEvent {
12
12
  cause?: unknown;
13
13
  /** Event timestamp in epoch milliseconds. */
14
14
  at: number;
15
- /** Total count of this code since startup. It includes rate-limited occurrences. */
15
+ /** Total count of this code since startup, including rate-limited occurrences. */
16
16
  count: number;
17
17
  }
18
18
  /** Consumer callback for receiving rate-limited diagnostic events. */
19
19
  export type DiagnosticHandler = (event: DiagnosticEvent) => void;
20
- /** Reports internal errors. It limits the dispatch rate but counts every event. */
20
+ /** Reports internal errors. Dispatch is rate limited, but every event is counted. */
21
21
  export declare class Diagnostics {
22
22
  private handler?;
23
23
  private throttleMs;
24
24
  private consoleFallback;
25
25
  /** Running occurrence counts per diagnostic code. */
26
26
  private readonly counters;
27
- /** Timestamp of last emitted event per code in epoch milliseconds. */
27
+ /** Timestamp of the last emitted event per code, in epoch milliseconds. */
28
28
  private readonly lastEmitted;
29
29
  /**
30
- * @param handler Optional diagnostic event listener callback.
31
- * @param throttleMs Minimum duration in milliseconds between emitted events for a single code.
30
+ * @param handler Optional listener for diagnostic events.
31
+ * @param throttleMs Minimum time in milliseconds between emitted events for one code.
32
32
  * @param consoleFallback True to print a fixed warning if the diagnostic handler throws.
33
33
  */
34
34
  constructor(handler?: DiagnosticHandler | undefined, throttleMs?: number, consoleFallback?: boolean);
@@ -39,44 +39,47 @@ export declare class Diagnostics {
39
39
  */
40
40
  setPolicy(throttleMs: number, consoleFallback: boolean): void;
41
41
  /**
42
- * Updates or removes the active diagnostic event handler.
42
+ * Replaces or removes the active diagnostic event handler.
43
43
  * @param handler New diagnostic event handler.
44
44
  */
45
45
  setHandler(handler?: DiagnosticHandler): void;
46
46
  /**
47
- * Increments the count for a code. It does not call the handler.
47
+ * Increments the count for a code without calling the handler.
48
48
  * @param code Diagnostic code to increment.
49
- * @param by Increment delta.
49
+ * @param by Amount to add.
50
50
  * @returns New total for the code.
51
51
  */
52
52
  count(code: DiagnosticCode, by?: number): number;
53
53
  /**
54
- * Increments the counter for the code. It sends the event to the handler when the
55
- * throttle window has passed. It never throws.
54
+ * Bumps the counter for the code and, once the throttle window has passed, sends the event
55
+ * to the handler. Never throws.
56
56
  * @param code Diagnostic code.
57
57
  * @param message Event description.
58
58
  * @param detail Optional structured metadata.
59
59
  * @param cause Caught error instance or reason.
60
+ * @returns False if the throttle dropped the event.
60
61
  */
61
- report(code: DiagnosticCode, message: string, detail?: Record<string, unknown>, cause?: unknown): void;
62
+ report(code: DiagnosticCode, message: string, detail?: Record<string, unknown>, cause?: unknown): boolean;
62
63
  /**
63
- * Executes a synchronous function and reports any thrown error to diagnostics.
64
+ * Runs a synchronous function and reports anything it throws to diagnostics.
64
65
  * @param code Diagnostic code to report on throw.
65
- * @param message ASD-STE100 sentence that states the failure. The handler gets it as the event message.
66
- * @param fn Function to execute.
67
- * @returns Function return value, or undefined on throw.
66
+ * @param message ASD-STE100 sentence that states the failure. The handler receives it as the
67
+ * event message.
68
+ * @param fn Function to run.
69
+ * @returns The function's return value, or undefined if it threw.
68
70
  */
69
71
  guard<T>(code: DiagnosticCode, message: string, fn: () => T): T | undefined;
70
72
  /**
71
- * Executes an asynchronous function and reports any rejected promise to diagnostics.
73
+ * Runs an asynchronous function and reports a rejected promise to diagnostics.
72
74
  * @param code Diagnostic code to report on rejection.
73
- * @param message ASD-STE100 sentence that states the failure. The handler gets it as the event message.
74
- * @param fn Async function to execute.
75
- * @returns Promise that resolves to the return value, or undefined on rejection.
75
+ * @param message ASD-STE100 sentence that states the failure. The handler receives it as the
76
+ * event message.
77
+ * @param fn Async function to run.
78
+ * @returns Promise that resolves to the return value, or to undefined on rejection.
76
79
  */
77
80
  guardAsync<T>(code: DiagnosticCode, message: string, fn: () => Promise<T>): Promise<T | undefined>;
78
81
  /**
79
- * Returns a copy of all cumulative diagnostic event counts since initialization.
82
+ * Returns a copy of the cumulative diagnostic counts since initialization.
80
83
  * @returns Map of diagnostic codes to occurrence counts.
81
84
  */
82
85
  snapshot(): Record<string, number>;
@@ -2,28 +2,28 @@ import type { ResolvedConfig } from "../models/config";
2
2
  import type { LossReason } from "../models/drop";
3
3
  import type { LogRecord } from "../models/log-record";
4
4
  import type { Diagnostics } from "./diagnostics";
5
- /** Collects lost records and gives one summary for each reason to the onDrop hook. */
5
+ /** Collects lost records and hands the onDrop hook one summary per reason. */
6
6
  export declare class DropReporter {
7
7
  private readonly config;
8
8
  private readonly diagnostics;
9
- /** Summaries that wait for the end of the task, one for each reason. */
9
+ /** Summaries waiting for the end of the task, one per reason. */
10
10
  private readonly pending;
11
- /** True while a microtask waits to send the summaries. */
11
+ /** True while a microtask is waiting to send the summaries. */
12
12
  private scheduled;
13
- /** True while the hook runs. A loss that the hook causes is not reported again. */
13
+ /** True while the hook runs. A loss the hook itself causes isn't reported again. */
14
14
  private reporting;
15
15
  /**
16
- * @param config Active configuration. The reporter reads `onDrop` from it at each call.
16
+ * @param config Active configuration. `onDrop` is read from it on every call.
17
17
  * @param diagnostics Diagnostics reporter.
18
18
  */
19
19
  constructor(config: ResolvedConfig, diagnostics: Diagnostics);
20
20
  /**
21
- * Adds lost records to the summary of their reason. Without an onDrop hook, it does nothing.
21
+ * Adds lost records to the summary for their reason. Does nothing without an onDrop hook.
22
22
  * @param reason Cause of the loss.
23
23
  * @param records Lost records.
24
24
  * @param batchIds Ids of the lost batches.
25
25
  */
26
26
  add(reason: LossReason, records: readonly LogRecord[], batchIds?: readonly string[]): void;
27
- /** Gives each waiting summary to the hook. A hook that throws does not stop the others. */
27
+ /** Hands every waiting summary to the hook. A hook that throws doesn't stop the others. */
28
28
  private flush;
29
29
  }
@@ -4,7 +4,7 @@ export declare class HoldBuffer {
4
4
  private readonly onDrop;
5
5
  /** Held records in arrival order. */
6
6
  private held;
7
- /** Number of held actions. A count finds a full buffer without a scan at each push. */
7
+ /** Number of held actions. Counting them spots a full buffer without a scan on every push. */
8
8
  private actions;
9
9
  /**
10
10
  * @param onDrop Receives the record that a full buffer drops.
@@ -1,32 +1,32 @@
1
1
  import { type IdentityStores } from "../utils/identity";
2
2
  import type { Diagnostics } from "./diagnostics";
3
- /** Lifetime rules for a journey. A journey is one user task across several contexts. */
3
+ /** Lifetime rules for a journey, which is one user task spanning several contexts. */
4
4
  export interface JourneyOptions {
5
- /** Maximum open time of a journey, in milliseconds. After this time, the engine ends it. */
5
+ /** Maximum time a journey stays open, in milliseconds. After that the engine ends it. */
6
6
  maxAgeMs: number;
7
7
  /** True if the journey ends for all contexts when the owning context closes. */
8
8
  endOnOwnerClose: boolean;
9
9
  /** Query parameter checked at boot for a seeded journey token. */
10
10
  urlParam: string;
11
11
  }
12
- /** Journey lifetime policy in force. Tests build an engine with shorter values. */
12
+ /** The journey lifetime policy in effect. Tests build an engine with shorter values. */
13
13
  export declare const JOURNEY_OPTIONS: JourneyOptions;
14
14
  /** User journey workflow context shared across windows and applications. */
15
15
  export interface Journey {
16
16
  /** Unique journey correlation identifier. */
17
17
  id: string;
18
- /** Journey workflow name for a person to read. */
18
+ /** Human-readable name of the journey's workflow. */
19
19
  name: string;
20
20
  /** Journey start timestamp in epoch milliseconds. */
21
21
  startedAt: number;
22
- /** Optional parent journey ID when the journey branches from an earlier journey. */
22
+ /** Parent journey ID, set when the journey branches from an earlier one. */
23
23
  parentId?: string;
24
24
  /** Context identifier of the document that started the journey. */
25
25
  ownerContextId: string;
26
26
  }
27
27
  /**
28
28
  * Parses and validates an unknown value into a Journey object. The value comes from
29
- * sessionStorage or from a bus message of another realm.
29
+ * sessionStorage or from another realm's bus message.
30
30
  * @param value Unverified parsed JSON value.
31
31
  * @returns Validated Journey instance or null.
32
32
  */
@@ -53,13 +53,13 @@ export declare class JourneyEngine {
53
53
  /** Returns the active journey instance or null. */
54
54
  current(): Journey | null;
55
55
  /**
56
- * Finds and adopts the initial journey. It checks the URL query, then sessionStorage,
56
+ * Finds and adopts the initial journey. Checks the URL query first, then sessionStorage,
57
57
  * then OpenFin customData.
58
58
  * @returns Promise that resolves when journey initialization completes.
59
59
  */
60
60
  bootstrap(): Promise<void>;
61
61
  /**
62
- * Starts a new journey. It replaces the active journey and tells connected peers.
62
+ * Starts a new journey, replacing the active one and telling connected peers.
63
63
  * @param name Human-readable workflow name.
64
64
  * @param opts Optional parent linkage and pre-assigned identifier.
65
65
  * @returns Started Journey instance.
@@ -69,19 +69,18 @@ export declare class JourneyEngine {
69
69
  id?: string;
70
70
  }): Journey;
71
71
  /**
72
- * Gives the id of a new journey. A longer id, or an id with multibyte characters, makes the
73
- * journey token too long for adoptJourney().
72
+ * Picks the id for a new journey. A longer id, or one with multibyte characters, would make
73
+ * the journey token too long for adoptJourney().
74
74
  * @param requested Id from the app, or undefined.
75
- * @returns The requested id when it matches JOURNEY_ID_PATTERN, else a new id.
75
+ * @returns The requested id when it matches JOURNEY_ID_PATTERN, otherwise a new id.
76
76
  */
77
77
  private journeyId;
78
78
  /** Ends the active journey and broadcasts the change. */
79
79
  end(): void;
80
80
  /**
81
- * Applies a journey update from a bus peer. It does not broadcast the update again.
82
- * An echo makes two windows send the change back and forth without end.
83
- * It ignores a journey with the same ID as the active journey. Thus an echo cannot
84
- * restart the timer.
81
+ * Applies a journey update from a bus peer without broadcasting it again. An echo would
82
+ * make two windows send the change back and forth forever. A journey with the same ID as
83
+ * the active one is ignored, so an echo can't restart the timer.
85
84
  * @param journey Updated Journey instance or null.
86
85
  */
87
86
  applyRemote(journey: Journey | null): void;
@@ -114,8 +113,8 @@ export declare class JourneyEngine {
114
113
  private restore;
115
114
  /**
116
115
  * Decodes a base64url token into a validated Journey object. Anyone can edit the URL
117
- * that holds a token. Each step throws on bad input. The guard reports the failure
118
- * and does not throw it.
116
+ * that holds a token, and every step throws on bad input. The guard reports the failure
117
+ * instead of letting it throw.
119
118
  * @param token Encoded token string.
120
119
  * @returns Decoded Journey instance or null on decode error.
121
120
  */
@@ -135,15 +134,15 @@ export declare class JourneyEngine {
135
134
  */
136
135
  private readUrlToken;
137
136
  /**
138
- * Removes the journey token from the address bar after the engine adopts it.
139
- * If not, a copy or a bookmark of the link starts the same journey in another session.
137
+ * Removes the journey token from the address bar once the engine has adopted it.
138
+ * Otherwise a copied or bookmarked link would start the same journey in another session.
140
139
  */
141
140
  private removeUrlToken;
142
141
  /**
143
- * Reads the journey token from the customData of the OpenFin window options.
144
- * OPENFIN_OPTIONS_TIMEOUT_MS limits the wait. At the deadline, it reports
145
- * openfin.unavailable and returns no token. A window without a token gives the same result.
146
- * @returns Promise that resolves to token string or null.
142
+ * Reads the journey token from customData in the OpenFin window options. The wait is
143
+ * capped by OPENFIN_OPTIONS_TIMEOUT_MS. At the deadline we report openfin.unavailable and
144
+ * return no token. A window with no token gives the same result.
145
+ * @returns Promise that resolves to the token string or null.
147
146
  */
148
147
  private readOpenFinToken;
149
148
  }
@@ -10,11 +10,11 @@ export declare class OneLogger {
10
10
  private readonly bind;
11
11
  readonly namespace: string;
12
12
  private readonly options;
13
- /** log.type of the level methods. It is "system" only for the namespaces of the library. */
13
+ /** log.type the level methods use. "system" only for the library's own namespaces. */
14
14
  private readonly levelType;
15
15
  /**
16
- * @param bind Returns the runtime for each write.
17
- * A logger that exists before configure() writes to the configured runtime.
16
+ * @param bind Returns the runtime for each write, so a logger created before configure()
17
+ * still writes to the configured runtime.
18
18
  * @param namespace Application subsystem or module namespace.
19
19
  * @param options Scoped context options.
20
20
  */
@@ -51,23 +51,23 @@ export declare class OneLogger {
51
51
  */
52
52
  warn: (message: string, payload?: Record<string, unknown>) => void;
53
53
  /**
54
- * Logs an error record with the breadcrumb history. If payload is absent, a plain
55
- * object in the error slot becomes the payload.
54
+ * Logs an error record with the breadcrumb history. When payload is omitted, a plain
55
+ * object in the error slot is used as the payload.
56
56
  * @param message Error description.
57
57
  * @param error Caught error instance, reason, or payload.
58
58
  * @param payload Optional contextual attributes.
59
59
  */
60
60
  error: (message: string, error?: unknown, payload?: Record<string, unknown>) => void;
61
61
  /**
62
- * Logs a fatal error record. If payload is absent, a plain object in the error slot
63
- * becomes the payload.
62
+ * Logs a fatal error record. When payload is omitted, a plain object in the error slot
63
+ * is used as the payload.
64
64
  * @param message Error description.
65
65
  * @param error Caught error instance, reason, or payload.
66
66
  * @param payload Optional contextual attributes.
67
67
  */
68
68
  fatal: (message: string, error?: unknown, payload?: Record<string, unknown>) => void;
69
69
  /**
70
- * Logs one user action.
70
+ * Logs a user action.
71
71
  * @param name Action identifier.
72
72
  * @param payload Optional action attributes.
73
73
  */
@@ -104,42 +104,43 @@ export declare class OneLogger {
104
104
  */
105
105
  timeAsync: <T>(label: string, fn: () => Promise<T>, attributes?: Record<string, unknown>) => Promise<T>;
106
106
  /**
107
- * Builds and emits a standard log record. It also prints the record to the console.
107
+ * Builds and emits a standard log record, and prints it to the console.
108
108
  * @param level Severity level.
109
109
  * @param type Record classification.
110
110
  * @param body Primary message.
111
111
  * @param payload Optional contextual attributes.
112
112
  */
113
113
  private write;
114
- /** Runs a call at once or queues it without reading its payload. */
114
+ /** Runs a call right away, or queues it without reading its payload. */
115
115
  private submit;
116
- /** Builds a standard record from a call whose payload is now ready to read. */
116
+ /** Builds a standard record once the call's payload is ready to read. */
117
117
  private writeNow;
118
118
  /**
119
- * Builds and emits an error record with breadcrumbs. It also prints the record to the console.
119
+ * Builds and emits an error record with breadcrumbs, and prints it to the console.
120
120
  * @param level Severity level ("ERROR" or "FATAL").
121
121
  * @param message Error description.
122
122
  * @param error Caught error instance, reason, or payload.
123
123
  * @param payload Optional contextual attributes.
124
124
  */
125
125
  private writeError;
126
- /** Builds an error record after the deferred queue releases its payload. */
126
+ /** Builds an error record once the deferred queue releases its payload. */
127
127
  private writeErrorNow;
128
128
  /**
129
- * Prints one log line. With a redact hook, the line shows only what redact returned.
130
- * A host can record console arguments. The console must not show what redact removes.
131
- * @param runtime Runtime of this write.
129
+ * Prints one log line. With a redact hook or processors, the line shows only what they
130
+ * returned. A host can record console arguments, so the console must not show what the hooks
131
+ * remove.
132
+ * @param runtime The runtime for this write.
132
133
  * @param level Severity level.
133
134
  * @param message Primary message.
134
135
  * @param payload Caller payload.
135
- * @param error Error of an error call.
136
- * @param record Built record, or null if the library did not build it or redact dropped it.
137
- * @param dropped Reason of the drop when the builder dropped the record.
136
+ * @param error The error from an error call.
137
+ * @param record Built record, or null if it was never built or redact dropped it.
138
+ * @param dropped Why the builder dropped the record, if it did.
138
139
  */
139
140
  private print;
140
141
  /**
141
- * Tests if the console prints a level that the library does not send.
142
- * @param runtime Runtime of this write.
142
+ * Checks whether the console prints a level that we don't send.
143
+ * @param runtime The runtime for this write.
143
144
  * @param level Severity level.
144
145
  * @returns True if logging is on and the console accepts the level.
145
146
  */
@@ -1,7 +1,7 @@
1
1
  import type { InstrumentDef, Measure, MetricAttributes } from "../models/metric";
2
2
  import { type ClientSpan } from "../utils/tracing";
3
3
  import type { SpanData } from "./spans";
4
- /** Receivers of the values of one measure. */
4
+ /** Where the values of one measure go. */
5
5
  export interface MeasureSinks {
6
6
  /** Adds a value to a histogram. */
7
7
  metric(def: InstrumentDef, value: number, attributes: MetricAttributes): void;
@@ -9,11 +9,11 @@ export interface MeasureSinks {
9
9
  span(span: SpanData): void;
10
10
  }
11
11
  /**
12
- * Starts the clock of one operation.
13
- * @param name Operation name. A JavaScript caller can pass another type.
14
- * @param attributes Copy of the attribute set of the app.
15
- * @param span Span of the operation, or undefined with spans off or for a dropped trace.
16
- * @param sinks Receivers of the values.
17
- * @returns The handle of the operation.
12
+ * Starts the clock for one operation.
13
+ * @param name Operation name. A JavaScript caller can pass any type.
14
+ * @param attributes Copy of the app's attribute set.
15
+ * @param span The operation's span, or undefined when spans are off or the trace was dropped.
16
+ * @param sinks Where the values go.
17
+ * @returns The operation's handle.
18
18
  */
19
19
  export declare function createMeasure(name: unknown, attributes: MetricAttributes, span: ClientSpan | undefined, sinks: MeasureSinks): Measure;