@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
package/dist/index.d.ts CHANGED
@@ -2,113 +2,118 @@ import type { WorkerLike } from "./bus/links";
2
2
  import type { Journey } from "./core/journey";
3
3
  import { OneLogger, type OneLoggerOptions } from "./core/logger";
4
4
  import type { ObservabilityConfig } from "./models/config";
5
+ export type { ReplayLoader, ReplayPluginLoader, ReplayPluginTools, ReplaySegment, } from "./models/replay";
5
6
  import type { SecurityContextUpdate, SecurityContextRotationOptions } from "./models/config";
6
7
  import type { DebugBundle, ObservabilityHealth } from "./models/health";
7
8
  import type { FrameOptions, SourceOptions } from "./models/bus";
8
9
  export type { FrameOptions, SourceOptions, BusPermission } from "./models/bus";
9
10
  import type { MetricType } from "./models/log-record";
10
11
  import type { DeliveryStats } from "./models/stats";
11
- import type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes } from "./models/metric";
12
+ import type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes, Profiler } from "./models/metric";
12
13
  export { OneLogger };
13
14
  export { serveTransportWorker } from "./transport/worker-entry";
14
15
  export { createMemoryTransport, type MemoryTransport } from "./transport/memory-transport";
15
16
  export type { Journey, ObservabilityConfig, OneLoggerOptions };
16
- export type { DeliveryPolicy, BufferingPolicy, MetricsPolicy, CorrelationPolicy, DiagnosticsPolicy, PersistencePolicy, MetadataPolicy, CapturePolicy, BusOptions, CaptureOptions, InteractionOptions, ResourceTimingOptions, RemoteCaptureFlag, LoggerCacheOptions, SecurityContextOptions, SecurityContextUpdate, SecurityContextRotationOptions, DeliveryOptions, ConsoleOptions, ConsoleStyles, ExitTransport, Transport, TransportRequest, TransportResponse, } from "./models/config";
17
+ export type { DeliveryPolicy, BufferingPolicy, MetricsPolicy, CorrelationPolicy, DiagnosticsPolicy, PersistencePolicy, MetadataPolicy, CapturePolicy, DebugBufferPolicy, ProfilerPolicy, ReplayPolicy, BusOptions, CaptureOptions, InteractionOptions, ResourceTimingOptions, RemoteCaptureFlag, LoggerCacheOptions, SecurityContextOptions, SecurityContextUpdate, SecurityContextRotationOptions, DeliveryOptions, ConsoleOptions, ConsoleStyles, ExitTransport, Transport, TransportRequest, TransportResponse, } from "./models/config";
17
18
  export type { DebugBundle, ObservabilityHealth } from "./models/health";
18
19
  export type { WorkerLike } from "./bus/links";
19
20
  export type { DiagnosticCode, DiagnosticEvent } from "./core/diagnostics";
20
21
  export type { DropSummary, LossReason } from "./models/drop";
21
22
  export type { LogLevel, LogRecord, LogType, MetricType } from "./models/log-record";
22
- export type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes, } from "./models/metric";
23
+ export type { Counter, Histogram, HistogramOptions, InstrumentOptions, Measure, MetricAttributes, Probe, ProbeOptions, Profiler, } from "./models/metric";
23
24
  export type { CapturePlugin, PluginContext } from "./models/plugin";
24
25
  export type { LogSerializer, SerializedBatch } from "./models/serializer";
25
26
  export type { DeliveryStats } from "./models/stats";
26
27
  export type { StorageAdapter } from "./models/storage";
27
28
  /**
28
- * Removes stored logs. Pending records and requests can write to storage again.
29
- * @param scope Context or namespace whose stored records to remove.
30
- * @returns Promise that resolves when removal completes.
29
+ * Removes stored logs. Records and requests that are still pending can write to storage again
30
+ * afterwards.
31
+ * @param scope Whose stored records to remove: the context's or the namespace's.
32
+ * @returns Promise that resolves once the logs are removed.
31
33
  */
32
34
  export declare function clearPersistedLogs(scope?: "context" | "namespace"): Promise<void>;
33
35
  /**
34
- * Initializes or reconfigures the observability runtime instance.
35
- * `payloadMode: "defer"` builds logger records in idle time. The debug buffer keeps immediate builds.
36
+ * Initializes or reconfigures the observability runtime.
37
+ * With `payloadMode: "defer"`, logger records are built in idle time. With the debug buffer on,
38
+ * they are still built at the call.
36
39
  * @param config Consumer configuration options.
37
40
  */
38
41
  export declare function configure(config: Partial<ObservabilityConfig>): void;
39
42
  /**
40
- * Locks or unlocks configuration. The lock does not control access by other code of this origin.
43
+ * Locks or unlocks the configuration. The lock isn't access control against other code on
44
+ * this origin.
41
45
  * @param locked True to refuse changes through configure().
42
46
  */
43
47
  export declare function setConfigurationLocked(locked: boolean): void;
44
48
  /**
45
- * Stops delivery for the old context and starts delivery for the new context.
49
+ * Stops delivery for the old context and starts it for the new one.
46
50
  * @param update New identity, delivery settings and context attributes.
47
- * @param options Rule for old records and the flush deadline.
48
- * @returns Promise that resolves when the change completes.
51
+ * @param options What to do with old records, and the flush deadline.
52
+ * @returns Promise that resolves once the change is complete.
49
53
  */
50
54
  export declare function rotateSecurityContext(update: SecurityContextUpdate, options?: SecurityContextRotationOptions): Promise<void>;
51
55
  /**
52
- * Reads the runtime state, delivery counts and policies of this SDK copy.
56
+ * Reads this SDK copy's runtime state, delivery counts and policies.
53
57
  * @returns Promise that resolves to the current state.
54
58
  */
55
59
  export declare function getHealth(): Promise<ObservabilityHealth>;
56
60
  /**
57
- * Collects the state of the library for a support ticket. The bundle has the health, the
61
+ * Collects the library's state for a support ticket. The bundle holds the health, the
58
62
  * diagnostic counters, the resource, the breadcrumbs, the debug buffer and a config summary.
59
- * The summary has no headers and no URL query. A plugin or a custom serializer shows only its
60
- * name. The privacy hooks process the breadcrumbs. A debug buffer record keeps its context
61
- * attributes. The app decides where to send the bundle.
63
+ * The summary has no headers and no URL query, and a plugin or custom serializer shows up by
64
+ * name only. The breadcrumbs go through the privacy hooks. A debug buffer record keeps its
65
+ * context attributes. Where the bundle gets sent is up to the app.
62
66
  * @returns Promise that resolves to a JSON-safe bundle.
63
67
  */
64
68
  export declare function collectDebugBundle(): Promise<DebugBundle>;
65
69
  /**
66
- * Gives a namespace logger from the cache, or a new scoped logger.
70
+ * Returns the cached logger for a namespace, or a new scoped logger.
67
71
  * @param namespace Application subsystem or module namespace.
68
72
  * @param options Context attributes for this logger only.
69
- * @returns Logger for the namespace. Options or a disabled cache give a new logger.
73
+ * @returns Logger for the namespace. You get a new logger if you pass options or the cache
74
+ * is disabled.
70
75
  */
71
76
  export declare function getLogger(namespace: string, options?: OneLoggerOptions): OneLogger;
72
77
  /**
73
78
  * Logs a trace-level debug record.
74
79
  * @param message Detail message.
75
- * @param payload Optional contextual attributes.
80
+ * @param payload Optional context attributes.
76
81
  */
77
82
  export declare function trace(message: string, payload?: Record<string, unknown>): void;
78
83
  /**
79
84
  * Logs a debug-level record.
80
85
  * @param message Detail message.
81
- * @param payload Optional contextual attributes.
86
+ * @param payload Optional context attributes.
82
87
  */
83
88
  export declare function debug(message: string, payload?: Record<string, unknown>): void;
84
89
  /**
85
90
  * Logs an informational record.
86
91
  * @param message Informational message.
87
- * @param payload Optional contextual attributes.
92
+ * @param payload Optional context attributes.
88
93
  */
89
94
  export declare function info(message: string, payload?: Record<string, unknown>): void;
90
95
  /**
91
96
  * Logs a warning record.
92
97
  * @param message Warning message.
93
- * @param payload Optional contextual attributes.
98
+ * @param payload Optional context attributes.
94
99
  */
95
100
  export declare function warn(message: string, payload?: Record<string, unknown>): void;
96
101
  /**
97
- * Logs an error record with causal error and breadcrumbs.
102
+ * Logs an error record, with the error that caused it and the breadcrumbs.
98
103
  * @param message Error summary.
99
- * @param err Caught error instance or reason.
100
- * @param payload Optional contextual attributes.
104
+ * @param err The caught error or reason.
105
+ * @param payload Optional context attributes.
101
106
  */
102
107
  export declare function error(message: string, err?: unknown, payload?: Record<string, unknown>): void;
103
108
  /**
104
- * Logs a fatal record with causal error and breadcrumbs.
109
+ * Logs a fatal record, with the error that caused it and the breadcrumbs.
105
110
  * @param message Fatal error summary.
106
- * @param err Caught error instance or reason.
107
- * @param payload Optional contextual attributes.
111
+ * @param err The caught error or reason.
112
+ * @param payload Optional context attributes.
108
113
  */
109
114
  export declare function fatal(message: string, err?: unknown, payload?: Record<string, unknown>): void;
110
115
  /**
111
- * Logs a discrete user interaction action.
116
+ * Logs a single user action.
112
117
  * @param name Action identifier.
113
118
  * @param payload Optional action attributes.
114
119
  */
@@ -120,68 +125,96 @@ export declare function logAction(name: string, payload?: Record<string, unknown
120
125
  */
121
126
  export declare function logEvent(name: string, payload?: Record<string, unknown>): void;
122
127
  /**
123
- * Logs a numerical metric measurement.
128
+ * Logs a numeric metric measurement.
124
129
  * @param name Metric identifier.
125
130
  * @param value Measured value.
126
131
  * @param unit Unit of measurement.
127
- * @param type Metric type classification.
132
+ * @param type Metric type.
128
133
  * @param attributes Optional metric attributes.
129
134
  */
130
135
  export declare function logMetric(name: string, value: number, unit?: string, type?: MetricType, attributes?: Record<string, unknown>): void;
131
136
  /**
132
- * Gives a counter. The library sums its values in memory. It sends one point for each attribute
133
- * set at each interval. A handle stays valid across configure() and shutdown().
137
+ * Returns a counter. Values are summed in memory, and every interval the library sends one
138
+ * point per attribute set. A handle stays valid across configure() and shutdown().
134
139
  * @param name Metric name.
135
140
  * @param options Unit of the values.
136
141
  * @returns The counter.
137
142
  */
138
143
  export declare function counter(name: string, options?: InstrumentOptions): Counter;
139
144
  /**
140
- * Gives a histogram. The library counts its values in buckets in memory. It sends one point for
141
- * each attribute set at each interval. A handle stays valid across configure() and shutdown().
145
+ * Returns a histogram. Values are counted into buckets in memory, and every interval the
146
+ * library sends one point per attribute set. A handle stays valid across configure() and
147
+ * shutdown().
142
148
  * @param name Metric name.
143
149
  * @param options Unit of the values and the bucket boundaries.
144
150
  * @returns The histogram.
145
151
  */
146
152
  export declare function histogram(name: string, options?: HistogramOptions): Histogram;
147
153
  /**
148
- * Times an operation with named phases. Each phase and the total go into duration histograms.
149
- * With `tracesEndpoint`, the operation is a span with one child span for each phase.
150
- * @param name Operation name. Each name makes one series.
151
- * @param attributes Attribute set of each histogram point. Keep it small.
152
- * @returns The handle of the operation.
154
+ * Times an operation with named phases. Every phase and the total go into duration histograms.
155
+ * With `tracesEndpoint` set, the operation is also a span with one child span per phase.
156
+ * @param name Operation name. Every name creates one series.
157
+ * @param attributes Attribute set for every histogram point. Keep it small.
158
+ * @returns The operation's handle.
153
159
  */
154
160
  export declare function startMeasure(name: string, attributes?: MetricAttributes): Measure;
155
161
  /**
156
- * Measures the execution time of a synchronous function and logs a duration metric.
162
+ * Starts the session replay recorder. With `replay.requireConsent` set, nothing is recorded
163
+ * until you call this, so call it once the user agrees. Does nothing while `replay.enabled`
164
+ * is false.
165
+ */
166
+ export declare function startReplay(): void;
167
+ /**
168
+ * Stops the session replay recorder and drops any replay events that haven't been sent. With
169
+ * `replay.requireConsent` set, the recorder stays off until the next `startReplay()`.
170
+ */
171
+ export declare function stopReplay(): void;
172
+ /**
173
+ * Times spans of app code with probes. A probe is a named handle with `begin()`, `end()`,
174
+ * `endAfterPaint()` and `record()`, and `time()` times a single function call. Once per
175
+ * interval the library sends one `ui.profile.duration` histogram for every probe that has data.
176
+ *
177
+ * The profiler is off by default. Set `profiler.enabled` to true to turn it on. While it is
178
+ * off, probes don't read the clock. After `shutdown()` a probe does nothing until a later
179
+ * `configure()` turns the profiler back on. Probes stay valid across `configure()` and
180
+ * `shutdown()`, and you can create them before `configure()`. No call ever throws.
181
+ * @example
182
+ * const render = profiler.probe("grid.render");
183
+ * const token = render.begin();
184
+ * drawGrid();
185
+ * render.end(token);
186
+ */
187
+ export declare const profiler: Profiler;
188
+ /**
189
+ * Times a synchronous function and logs a duration metric.
157
190
  * @param label Metric name prefix.
158
191
  * @param fn Synchronous function to time.
159
- * @param attributes Optional contextual attributes.
160
- * @returns Result returned by the timed function.
192
+ * @param attributes Optional context attributes.
193
+ * @returns Whatever the timed function returns.
161
194
  */
162
195
  export declare function timeSync<T>(label: string, fn: () => T, attributes?: Record<string, unknown>): T;
163
196
  /**
164
- * Measures the execution time of an asynchronous function and logs a duration metric.
197
+ * Times an asynchronous function and logs a duration metric.
165
198
  * @param label Metric name prefix.
166
199
  * @param fn Asynchronous function to time.
167
- * @param attributes Optional contextual attributes.
168
- * @returns Promise that resolves to the result of the timed function.
200
+ * @param attributes Optional context attributes.
201
+ * @returns Promise that resolves to the timed function's result.
169
202
  */
170
203
  export declare function timeAsync<T>(label: string, fn: () => Promise<T>, attributes?: Record<string, unknown>): Promise<T>;
171
204
  /**
172
205
  * Adds a breadcrumb to the trail. The next error record carries the trail.
173
206
  * @param message Description of the event.
174
- * @param data Optional metadata. The library copies it now.
207
+ * @param data Optional metadata. It is copied right away.
175
208
  */
176
209
  export declare function addBreadcrumb(message: string, data?: Record<string, unknown>): void;
177
210
  /**
178
- * Sets a key-value pair on the ambient context. All later records include it.
211
+ * Sets a key-value pair on the ambient context. Every later record includes it.
179
212
  * @param key Attribute key.
180
213
  * @param value Attribute value.
181
214
  */
182
215
  export declare function setContext(key: string, value: unknown): void;
183
216
  /**
184
- * Merges multiple key-value pairs into the ambient context.
217
+ * Merges several key-value pairs into the ambient context.
185
218
  * @param values Key-value map of attributes to add.
186
219
  */
187
220
  export declare function setContextMap(values: Record<string, unknown>): void;
@@ -194,35 +227,35 @@ export declare function removeContext(key: string): void;
194
227
  * Starts a new journey correlation context.
195
228
  * @param name Journey workflow identifier.
196
229
  * @param options `parent` links the active journey as the parent. `id` sets the journey id, a
197
- * string of 1 to 64 letters, digits, "_", ".", ":" or "-". Without it, the library makes an id.
198
- * @returns Started Journey instance.
230
+ * string of 1 to 64 letters, digits, "_", ".", ":" or "-". Without it, the library generates one.
231
+ * @returns The started Journey.
199
232
  */
200
233
  export declare function startJourney(name: string, options?: {
201
234
  parent?: boolean;
202
235
  id?: string;
203
236
  }): Journey;
204
- /** Terminates the active journey correlation context. */
237
+ /** Ends the active journey correlation context. */
205
238
  export declare function endJourney(): void;
206
239
  /**
207
- * Returns the currently active journey, or null if none is in progress.
208
- * @returns Active Journey instance or null.
240
+ * Returns the active journey, or null if none is in progress.
241
+ * @returns The active Journey, or null.
209
242
  */
210
243
  export declare function currentJourney(): Journey | null;
211
244
  /**
212
- * Serializes active journey metadata into a cross-context URL token.
213
- * @returns Serialized token string, or undefined if no journey is active.
245
+ * Serializes the active journey's metadata into a URL token that another context can adopt.
246
+ * @returns The token, or undefined if no journey is active.
214
247
  */
215
248
  export declare function getJourneyToken(): string | undefined;
216
249
  /**
217
- * Adopts a serialized journey token into this application realm.
250
+ * Adopts a serialized journey token in this application realm.
218
251
  * @param token Serialized journey token.
219
- * @returns True if the token is valid and the runtime adopts it.
252
+ * @returns True if the token is valid and the runtime adopted it.
220
253
  */
221
254
  export declare function adoptJourney(token: string): boolean;
222
255
  /**
223
- * Connects a Web Worker or MessagePort to the document bus for record routing.
224
- * @param worker Target Worker or MessagePort instance.
225
- * @param options Permissions of the worker. The default permission is "records".
256
+ * Connects a Web Worker or MessagePort to the document bus, so its records get routed.
257
+ * @param worker The Worker or MessagePort to connect.
258
+ * @param options The worker's permissions. Defaults to "records".
226
259
  * @returns Function that removes this registration.
227
260
  */
228
261
  export declare function registerWorker(worker: WorkerLike, options?: SourceOptions): () => void;
@@ -233,44 +266,44 @@ export declare function registerWorker(worker: WorkerLike, options?: SourceOptio
233
266
  * @returns Function that removes this registration.
234
267
  */
235
268
  export declare function registerFrame(frame: HTMLIFrameElement | Window, options: FrameOptions): () => void;
236
- /** Rotates trace context to begin a new distributed trace. */
269
+ /** Rotates the trace context to begin a new distributed trace. */
237
270
  export declare function startTrace(): void;
238
271
  /**
239
- * Returns W3C traceparent headers for outgoing HTTP request propagation.
240
- * @returns Map of trace header keys and values.
272
+ * Returns the W3C traceparent headers to put on an outgoing HTTP request.
273
+ * @returns Map of trace header names to values.
241
274
  */
242
275
  export declare function getTraceHeaders(): Record<string, string>;
243
276
  /**
244
- * Builds deferred calls and flushes pending batches across pipeline streams.
245
- * @returns Promise that resolves after the pipeline processes the queued batches.
277
+ * Builds any deferred calls and flushes the pending batches of every pipeline stream.
278
+ * @returns Promise that resolves once the pipeline has processed the queued batches.
246
279
  */
247
280
  export declare function flush(): Promise<void>;
248
281
  /**
249
282
  * Counts the batches waiting in storage for delivery.
250
- * @returns Promise that resolves to the number of stored batches. A forwarder reports 0.
251
- * A forwarder does not store batches.
283
+ * @returns Promise that resolves to the number of stored batches. A forwarder doesn't store
284
+ * batches, so it reports 0.
252
285
  */
253
286
  export declare function getQueueDepth(): Promise<number>;
254
287
  /**
255
- * Reads the delivery state of this context.
256
- * @returns Promise that resolves to the records that wait, the records in requests, the batches
288
+ * Reads this context's delivery state.
289
+ * @returns Promise that resolves to the records waiting, the records in requests, the batches
257
290
  * in storage and the time of the last accepted send. A forwarder reports only its own buffers.
258
291
  */
259
292
  export declare function getStats(): Promise<DeliveryStats>;
260
293
  /**
261
- * Starts new correlation in this tab. It ends the active journey and starts a new trace. Other
262
- * tabs read the new id at their next startup. Use rotateSecurityContext() at logout or at a
263
- * tenant change.
294
+ * Starts a new correlation in this tab. Ends the active journey and starts a new trace. Other
295
+ * tabs pick up the new id at their next startup. For a logout or a tenant change, use
296
+ * rotateSecurityContext().
264
297
  */
265
298
  export declare function newSession(): void;
266
299
  /**
267
- * Returns a snapshot of cumulative diagnostic event counts.
268
- * @returns Map of diagnostic fault codes to occurrence counts.
300
+ * Returns a snapshot of the cumulative diagnostic event counts.
301
+ * @returns Map of diagnostic codes to how often each one occurred.
269
302
  */
270
303
  export declare function getDiagnosticCounters(): Record<string, number>;
271
304
  /**
272
- * Flushes pending records and stops all runtime subsystems. It cancels a request that is still
273
- * open after the final flush. A stored batch of that request stays in storage.
274
- * @returns Promise that resolves when shutdown completes.
305
+ * Flushes pending records and stops every runtime subsystem. A request still open after the
306
+ * final flush is cancelled, and its stored batch stays in storage.
307
+ * @returns Promise that resolves once shutdown is complete.
275
308
  */
276
309
  export declare function shutdown(): Promise<void>;