@utk09/ui-observability 0.11.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (557) hide show
  1. package/CHANGELOG.md +481 -0
  2. package/README.md +73 -669
  3. package/bin/uiobs.mjs +1 -1
  4. package/dist/{batch-CL9uWYY3.js → batch-CXmPmTse.js} +3 -3
  5. package/dist/batch-CXmPmTse.js.map +1 -0
  6. package/dist/{batch-C8OcWR2L.cjs → batch-mmPigCpi.cjs} +2 -2
  7. package/dist/batch-mmPigCpi.cjs.map +1 -0
  8. package/dist/bus/bus.d.cts +331 -0
  9. package/dist/bus/bus.d.ts +108 -57
  10. package/dist/bus/links.d.cts +132 -0
  11. package/dist/bus/links.d.ts +22 -7
  12. package/dist/bus/validation.d.cts +16 -0
  13. package/dist/bus/validation.d.ts +11 -2
  14. package/dist/bus-C39wspFV.js +775 -0
  15. package/dist/bus-C39wspFV.js.map +1 -0
  16. package/dist/bus-_EaOVPGq.cjs +2 -0
  17. package/dist/bus-_EaOVPGq.cjs.map +1 -0
  18. package/dist/capture/console.d.cts +37 -0
  19. package/dist/capture/console.d.ts +11 -11
  20. package/dist/capture/errors.d.cts +32 -0
  21. package/dist/capture/errors.d.ts +7 -7
  22. package/dist/capture/interactions.d.cts +48 -0
  23. package/dist/capture/interactions.d.ts +15 -15
  24. package/dist/capture/lifecycle.d.cts +20 -0
  25. package/dist/capture/lifecycle.d.ts +4 -4
  26. package/dist/capture/long-frames.d.cts +31 -0
  27. package/dist/capture/long-frames.d.ts +7 -7
  28. package/dist/capture/network.d.cts +57 -0
  29. package/dist/capture/network.d.ts +18 -18
  30. package/dist/capture/profiler-frames.d.cts +44 -0
  31. package/dist/capture/profiler-frames.d.ts +44 -0
  32. package/dist/capture/replay-buffer.d.cts +45 -0
  33. package/dist/capture/replay-buffer.d.ts +45 -0
  34. package/dist/capture/replay-upload.d.cts +79 -0
  35. package/dist/capture/replay-upload.d.ts +79 -0
  36. package/dist/capture/replay.d.cts +114 -0
  37. package/dist/capture/replay.d.ts +114 -0
  38. package/dist/capture/reports.d.cts +17 -0
  39. package/dist/capture/reports.d.ts +3 -3
  40. package/dist/capture/resource-timing.d.cts +14 -0
  41. package/dist/capture/resource-timing.d.ts +2 -2
  42. package/dist/capture/server-timing.d.cts +19 -0
  43. package/dist/capture/server-timing.d.ts +3 -3
  44. package/dist/capture/storm.d.cts +13 -0
  45. package/dist/capture/storm.d.ts +7 -7
  46. package/dist/capture/types.d.cts +128 -0
  47. package/dist/capture/types.d.ts +54 -41
  48. package/dist/capture/unclean-exit.d.cts +31 -0
  49. package/dist/capture/unclean-exit.d.ts +9 -9
  50. package/dist/capture/user-timing.d.cts +22 -0
  51. package/dist/capture/user-timing.d.ts +4 -4
  52. package/dist/capture/web-socket.d.cts +40 -0
  53. package/dist/capture/web-socket.d.ts +14 -14
  54. package/dist/capture/web-vitals.d.cts +40 -0
  55. package/dist/capture/web-vitals.d.ts +21 -8
  56. package/dist/compression-CvED_Jel.cjs +2 -0
  57. package/dist/compression-CvED_Jel.cjs.map +1 -0
  58. package/dist/compression-tVtXwVjX.js +11 -0
  59. package/dist/compression-tVtXwVjX.js.map +1 -0
  60. package/dist/config-DUs7uHHt.cjs +2 -0
  61. package/dist/config-DUs7uHHt.cjs.map +1 -0
  62. package/dist/config-SgQcCP1_.js +560 -0
  63. package/dist/config-SgQcCP1_.js.map +1 -0
  64. package/dist/console-BGgGnjSi.js +81 -0
  65. package/dist/console-BGgGnjSi.js.map +1 -0
  66. package/dist/console-CSZ5_Vx5.cjs +2 -0
  67. package/dist/console-CSZ5_Vx5.cjs.map +1 -0
  68. package/dist/constants-CUyd9cTZ.js +357 -0
  69. package/dist/constants-CUyd9cTZ.js.map +1 -0
  70. package/dist/constants-CqdJhTxH.cjs +2 -0
  71. package/dist/constants-CqdJhTxH.cjs.map +1 -0
  72. package/dist/constants.d.cts +751 -0
  73. package/dist/constants.d.ts +231 -116
  74. package/dist/core/breadcrumbs.d.cts +54 -0
  75. package/dist/core/breadcrumbs.d.ts +21 -15
  76. package/dist/core/config.d.cts +45 -0
  77. package/dist/core/config.d.ts +33 -5
  78. package/dist/core/context.d.cts +24 -0
  79. package/dist/core/context.d.ts +8 -13
  80. package/dist/core/debug-buffer.d.cts +34 -0
  81. package/dist/core/debug-buffer.d.ts +13 -13
  82. package/dist/core/debug-bundle.d.cts +12 -0
  83. package/dist/core/debug-bundle.d.ts +6 -6
  84. package/dist/core/deferred.d.cts +7 -0
  85. package/dist/core/deferred.d.ts +4 -4
  86. package/dist/core/diagnostics.d.cts +86 -0
  87. package/dist/core/diagnostics.d.ts +25 -22
  88. package/dist/core/drops.d.cts +39 -0
  89. package/dist/core/drops.d.ts +22 -12
  90. package/dist/core/hold-buffer.d.cts +36 -0
  91. package/dist/core/hold-buffer.d.ts +16 -7
  92. package/dist/core/journey.d.cts +148 -0
  93. package/dist/core/journey.d.ts +28 -29
  94. package/dist/core/logger.d.cts +141 -0
  95. package/dist/core/logger.d.ts +45 -51
  96. package/dist/core/measure.d.cts +30 -0
  97. package/dist/core/measure.d.ts +21 -10
  98. package/dist/core/meter.d.cts +78 -0
  99. package/dist/core/meter.d.ts +38 -28
  100. package/dist/core/pipeline.d.cts +227 -0
  101. package/dist/core/pipeline.d.ts +114 -50
  102. package/dist/core/profile-buckets.d.cts +31 -0
  103. package/dist/core/profile-buckets.d.ts +31 -0
  104. package/dist/core/profiler.d.cts +218 -0
  105. package/dist/core/profiler.d.ts +218 -0
  106. package/dist/core/record.d.cts +190 -0
  107. package/dist/core/record.d.ts +67 -35
  108. package/dist/core/remote-rules.d.cts +17 -0
  109. package/dist/core/remote-rules.d.ts +7 -7
  110. package/dist/core/remote-sampling.d.cts +74 -0
  111. package/dist/core/remote-sampling.d.ts +24 -23
  112. package/dist/core/rotation.d.cts +75 -0
  113. package/dist/core/rotation.d.ts +75 -0
  114. package/dist/core/runtime.d.cts +765 -0
  115. package/dist/core/runtime.d.ts +430 -186
  116. package/dist/core/sampling.d.cts +86 -0
  117. package/dist/core/sampling.d.ts +22 -22
  118. package/dist/core/sender.d.cts +161 -0
  119. package/dist/core/sender.d.ts +80 -34
  120. package/dist/core/spans.d.cts +39 -0
  121. package/dist/core/spans.d.ts +6 -6
  122. package/dist/{deadline-BOjOxNHj.js → deadline-C4ccAuk5.js} +3 -6
  123. package/dist/deadline-C4ccAuk5.js.map +1 -0
  124. package/dist/deadline-CUGbto-y.cjs +2 -0
  125. package/dist/deadline-CUGbto-y.cjs.map +1 -0
  126. package/dist/debug-bundle-BXIlwDKM.cjs +2 -0
  127. package/dist/debug-bundle-BXIlwDKM.cjs.map +1 -0
  128. package/dist/debug-bundle-CRpYV_ui.js +35 -0
  129. package/dist/debug-bundle-CRpYV_ui.js.map +1 -0
  130. package/dist/defineProperty-X1c4tIPD.cjs +1 -0
  131. package/dist/defineProperty-s2S8BXUc.js +35 -0
  132. package/dist/doctor.cjs +1 -1
  133. package/dist/doctor.cjs.map +1 -1
  134. package/dist/doctor.d.cts +36 -0
  135. package/dist/doctor.d.ts +19 -6
  136. package/dist/doctor.js +180 -53
  137. package/dist/doctor.js.map +1 -1
  138. package/dist/error-like-B11pB4aL.js.map +1 -1
  139. package/dist/error-like-gGRx2s36.cjs.map +1 -1
  140. package/dist/errors-BE_EZV7Q.js +86 -0
  141. package/dist/errors-BE_EZV7Q.js.map +1 -0
  142. package/dist/errors-CNPbesMs.cjs +3 -0
  143. package/dist/errors-CNPbesMs.cjs.map +1 -0
  144. package/dist/factory-CTi0Is3F.js +404 -0
  145. package/dist/factory-CTi0Is3F.js.map +1 -0
  146. package/dist/factory-hRrH32v5.cjs +2 -0
  147. package/dist/factory-hRrH32v5.cjs.map +1 -0
  148. package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
  149. package/dist/fixed-window-Dq3MLUUv.js.map +1 -1
  150. package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
  151. package/dist/global-scope-D9I8s-oN.js.map +1 -1
  152. package/dist/guards-BlYGRK4l.js +10 -0
  153. package/dist/guards-BlYGRK4l.js.map +1 -0
  154. package/dist/guards-EjG3ahFp.cjs +2 -0
  155. package/dist/guards-EjG3ahFp.cjs.map +1 -0
  156. package/dist/{identity-DT5VmvXy.js → identity-DdhKgrpk.js} +11 -15
  157. package/dist/identity-DdhKgrpk.js.map +1 -0
  158. package/dist/identity-DlWRIuwy.cjs +2 -0
  159. package/dist/identity-DlWRIuwy.cjs.map +1 -0
  160. package/dist/index.cjs +1 -1
  161. package/dist/index.cjs.map +1 -1
  162. package/dist/index.d.cts +300 -0
  163. package/dist/index.d.ts +165 -141
  164. package/dist/index.js +1283 -1468
  165. package/dist/index.js.map +1 -1
  166. package/dist/indexeddb-storage-CL9uqBCy.cjs +2 -0
  167. package/dist/indexeddb-storage-CL9uqBCy.cjs.map +1 -0
  168. package/dist/{indexeddb-storage-BJVtiQKm.js → indexeddb-storage-GHdl0t8A.js} +51 -47
  169. package/dist/indexeddb-storage-GHdl0t8A.js.map +1 -0
  170. package/dist/interactions-CUkzK8sR.cjs +2 -0
  171. package/dist/interactions-CUkzK8sR.cjs.map +1 -0
  172. package/dist/{interactions-DTgKy_6K.js → interactions-DiFvCosX.js} +41 -49
  173. package/dist/interactions-DiFvCosX.js.map +1 -0
  174. package/dist/journey-B4Adltjm.cjs +2 -0
  175. package/dist/journey-B4Adltjm.cjs.map +1 -0
  176. package/dist/{journey-CuJrHzEg.js → journey-D2_sia57.js} +51 -53
  177. package/dist/journey-D2_sia57.js.map +1 -0
  178. package/dist/{library-console-C1m6g1BR.js → library-console-Btrzt814.js} +2 -2
  179. package/dist/library-console-Btrzt814.js.map +1 -0
  180. package/dist/{library-console-D2GY9Or6.cjs → library-console-CPW6bvZH.cjs} +2 -2
  181. package/dist/library-console-CPW6bvZH.cjs.map +1 -0
  182. package/dist/{library-request-BQBT9N9Q.js → library-request-BJ9PLRaD.js} +2 -2
  183. package/dist/library-request-BJ9PLRaD.js.map +1 -0
  184. package/dist/{library-request-1BX_UlaX.cjs → library-request-D7OvTxZV.cjs} +2 -2
  185. package/dist/library-request-D7OvTxZV.cjs.map +1 -0
  186. package/dist/{lifecycle-BaKx_-32.js → lifecycle-22CUCrc9.js} +21 -29
  187. package/dist/lifecycle-22CUCrc9.js.map +1 -0
  188. package/dist/lifecycle-IaAm1mOC.cjs +2 -0
  189. package/dist/lifecycle-IaAm1mOC.cjs.map +1 -0
  190. package/dist/{log-record-CAoGBBf3.js → log-record-BNiLfqtL.js} +8 -7
  191. package/dist/log-record-BNiLfqtL.js.map +1 -0
  192. package/dist/log-record-CkivuiEl.cjs +2 -0
  193. package/dist/log-record-CkivuiEl.cjs.map +1 -0
  194. package/dist/long-frames-BUUbXd-B.cjs +2 -0
  195. package/dist/long-frames-BUUbXd-B.cjs.map +1 -0
  196. package/dist/long-frames-DNFaRnC3.js +62 -0
  197. package/dist/long-frames-DNFaRnC3.js.map +1 -0
  198. package/dist/models/batch.d.cts +57 -0
  199. package/dist/models/batch.d.ts +16 -17
  200. package/dist/models/bus.d.cts +158 -0
  201. package/dist/models/bus.d.ts +46 -26
  202. package/dist/models/config.d.cts +1540 -0
  203. package/dist/models/config.d.ts +692 -405
  204. package/dist/models/drop.d.cts +54 -0
  205. package/dist/models/drop.d.ts +29 -14
  206. package/dist/models/health.d.cts +148 -0
  207. package/dist/models/health.d.ts +119 -23
  208. package/dist/models/log-record.d.cts +61 -0
  209. package/dist/models/log-record.d.ts +13 -14
  210. package/dist/models/metric.d.cts +139 -0
  211. package/dist/models/metric.d.ts +94 -18
  212. package/dist/models/plugin.d.cts +47 -0
  213. package/dist/models/plugin.d.ts +16 -16
  214. package/dist/models/replay.d.cts +60 -0
  215. package/dist/models/replay.d.ts +60 -0
  216. package/dist/models/serializer.d.cts +23 -0
  217. package/dist/models/serializer.d.ts +3 -4
  218. package/dist/models/storage.d.cts +95 -0
  219. package/dist/models/storage.d.ts +17 -14
  220. package/dist/network-CGMLQ-mA.cjs +2 -0
  221. package/dist/network-CGMLQ-mA.cjs.map +1 -0
  222. package/dist/{network-DBNwApoF.js → network-on2zZT6H.js} +57 -57
  223. package/dist/network-on2zZT6H.js.map +1 -0
  224. package/dist/openfin-Bxelt0yg.js.map +1 -1
  225. package/dist/openfin-DtH2f7zX.cjs.map +1 -1
  226. package/dist/otlp-BENHf3g9.cjs +2 -0
  227. package/dist/otlp-BENHf3g9.cjs.map +1 -0
  228. package/dist/{otlp-BTJdIa6F.js → otlp-DimfrRor.js} +22 -29
  229. package/dist/otlp-DimfrRor.js.map +1 -0
  230. package/dist/patch-BX8KrPCT.cjs.map +1 -1
  231. package/dist/patch-UdPz1ea8.js.map +1 -1
  232. package/dist/{platform-DkcuXwe-.js → platform-BaaFIPCU.js} +8 -8
  233. package/dist/platform-BaaFIPCU.js.map +1 -0
  234. package/dist/{platform-C2Ez5kDc.cjs → platform-CfA3-7sJ.cjs} +2 -2
  235. package/dist/platform-CfA3-7sJ.cjs.map +1 -0
  236. package/dist/profiler-BAZoh7A4.js +292 -0
  237. package/dist/profiler-BAZoh7A4.js.map +1 -0
  238. package/dist/profiler-D4tJpDRc.cjs +2 -0
  239. package/dist/profiler-D4tJpDRc.cjs.map +1 -0
  240. package/dist/profiler-frames-C4xr7KfH.cjs +2 -0
  241. package/dist/profiler-frames-C4xr7KfH.cjs.map +1 -0
  242. package/dist/profiler-frames-cJMx9wNM.js +78 -0
  243. package/dist/profiler-frames-cJMx9wNM.js.map +1 -0
  244. package/dist/remote-rules-Dz9MRAsB.js +95 -0
  245. package/dist/remote-rules-Dz9MRAsB.js.map +1 -0
  246. package/dist/remote-rules-_tY0zj5o.cjs +2 -0
  247. package/dist/remote-rules-_tY0zj5o.cjs.map +1 -0
  248. package/dist/replay-B3gFXIZd.cjs +2 -0
  249. package/dist/replay-B3gFXIZd.cjs.map +1 -0
  250. package/dist/replay-Ds-ANH34.js +310 -0
  251. package/dist/replay-Ds-ANH34.js.map +1 -0
  252. package/dist/reports-BDSe4dFH.cjs +2 -0
  253. package/dist/reports-BDSe4dFH.cjs.map +1 -0
  254. package/dist/{reports-TA-zInnq.js → reports-C-thq-bk.js} +25 -30
  255. package/dist/reports-C-thq-bk.js.map +1 -0
  256. package/dist/resource-timing-C576gFIQ.cjs +2 -0
  257. package/dist/resource-timing-C576gFIQ.cjs.map +1 -0
  258. package/dist/{resource-timing-BLv3EA2A.js → resource-timing-eUl2dNgC.js} +20 -23
  259. package/dist/resource-timing-eUl2dNgC.js.map +1 -0
  260. package/dist/response-body-YdNl-HkR.cjs +3 -0
  261. package/dist/response-body-YdNl-HkR.cjs.map +1 -0
  262. package/dist/response-body-eoSQpLiH.js +331 -0
  263. package/dist/response-body-eoSQpLiH.js.map +1 -0
  264. package/dist/rotation-Cwct4ckk.js +94 -0
  265. package/dist/rotation-Cwct4ckk.js.map +1 -0
  266. package/dist/rotation-D4qUAHAu.cjs +2 -0
  267. package/dist/rotation-D4qUAHAu.cjs.map +1 -0
  268. package/dist/sampling-BlrI8jor.js +63 -0
  269. package/dist/sampling-BlrI8jor.js.map +1 -0
  270. package/dist/sampling-mXt4dstx.cjs +2 -0
  271. package/dist/sampling-mXt4dstx.cjs.map +1 -0
  272. package/dist/{sanitize-6ymPlVvP.js → sanitize-Ba0KqU06.js} +2 -2
  273. package/dist/sanitize-Ba0KqU06.js.map +1 -0
  274. package/dist/{sanitize-BAWzkZt0.cjs → sanitize-DQyiI_KY.cjs} +2 -2
  275. package/dist/sanitize-DQyiI_KY.cjs.map +1 -0
  276. package/dist/sender-BdRuNVhF.cjs +2 -0
  277. package/dist/sender-BdRuNVhF.cjs.map +1 -0
  278. package/dist/sender-Dv8rAmpV.js +979 -0
  279. package/dist/sender-Dv8rAmpV.js.map +1 -0
  280. package/dist/storage/context-storage.d.cts +90 -0
  281. package/dist/storage/context-storage.d.ts +38 -37
  282. package/dist/storage/emergency-queue.d.cts +27 -0
  283. package/dist/storage/emergency-queue.d.ts +13 -13
  284. package/dist/storage/eviction.d.cts +40 -0
  285. package/dist/storage/eviction.d.ts +13 -13
  286. package/dist/storage/factory.d.cts +21 -0
  287. package/dist/storage/factory.d.ts +11 -10
  288. package/dist/storage/gap.d.cts +20 -0
  289. package/dist/storage/gap.d.ts +9 -9
  290. package/dist/storage/idb-driver.d.cts +93 -0
  291. package/dist/storage/idb-driver.d.ts +32 -33
  292. package/dist/storage/indexeddb-storage.d.cts +97 -0
  293. package/dist/storage/indexeddb-storage.d.ts +38 -31
  294. package/dist/storage/keys.d.cts +17 -0
  295. package/dist/storage/keys.d.ts +9 -9
  296. package/dist/storage/local-storage.d.cts +139 -0
  297. package/dist/storage/local-storage.d.ts +49 -42
  298. package/dist/storage/memory-storage.d.cts +73 -0
  299. package/dist/storage/memory-storage.d.ts +25 -25
  300. package/dist/storage/persistence.d.cts +8 -0
  301. package/dist/storage/persistence.d.ts +3 -3
  302. package/dist/storage/stored-context.d.cts +34 -0
  303. package/dist/storage/stored-context.d.ts +34 -0
  304. package/dist/stored-context-B2EzVuYm.js +51 -0
  305. package/dist/stored-context-B2EzVuYm.js.map +1 -0
  306. package/dist/stored-context-CXt7eHZL.cjs +2 -0
  307. package/dist/stored-context-CXt7eHZL.cjs.map +1 -0
  308. package/dist/storm-C-zYSdDX.cjs +2 -0
  309. package/dist/storm-C-zYSdDX.cjs.map +1 -0
  310. package/dist/storm-DjKetLKZ.js +9 -0
  311. package/dist/storm-DjKetLKZ.js.map +1 -0
  312. package/dist/transport/compression.d.cts +7 -0
  313. package/dist/transport/compression.d.ts +2 -2
  314. package/dist/transport/custom-transport.d.cts +22 -0
  315. package/dist/transport/custom-transport.d.ts +6 -5
  316. package/dist/transport/errors.d.cts +31 -0
  317. package/dist/transport/errors.d.ts +7 -7
  318. package/dist/transport/exit-flush.d.cts +135 -0
  319. package/dist/transport/exit-flush.d.ts +62 -45
  320. package/dist/transport/headers.d.cts +8 -0
  321. package/dist/transport/headers.d.ts +4 -4
  322. package/dist/transport/http-transport.d.cts +116 -0
  323. package/dist/transport/http-transport.d.ts +48 -35
  324. package/dist/transport/memory-transport.d.cts +30 -0
  325. package/dist/transport/memory-transport.d.ts +8 -8
  326. package/dist/transport/response-body.d.cts +49 -0
  327. package/dist/transport/response-body.d.ts +49 -0
  328. package/dist/transport/retry-engine.d.cts +129 -0
  329. package/dist/transport/retry-engine.d.ts +62 -43
  330. package/dist/transport/serializers/ecs.d.cts +3 -0
  331. package/dist/transport/serializers/ecs.d.ts +2 -2
  332. package/dist/transport/serializers/otlp-metrics.d.cts +3 -0
  333. package/dist/transport/serializers/otlp-metrics.d.ts +2 -2
  334. package/dist/transport/serializers/otlp-traces.d.cts +3 -0
  335. package/dist/transport/serializers/otlp-traces.d.ts +2 -2
  336. package/dist/transport/serializers/otlp.d.cts +47 -0
  337. package/dist/transport/serializers/otlp.d.ts +18 -18
  338. package/dist/transport/serializers/select.d.cts +38 -0
  339. package/dist/transport/serializers/select.d.ts +11 -11
  340. package/dist/transport/status-transport.d.cts +129 -0
  341. package/dist/transport/status-transport.d.ts +45 -28
  342. package/dist/transport/worker-client.d.cts +23 -0
  343. package/dist/transport/worker-client.d.ts +12 -3
  344. package/dist/transport/worker-entry.d.cts +5 -0
  345. package/dist/transport/worker-entry.d.ts +1 -1
  346. package/dist/transport/worker-protocol.d.cts +38 -0
  347. package/dist/transport/worker-protocol.d.ts +7 -5
  348. package/dist/transport/worker-server.d.cts +3 -0
  349. package/dist/transport/worker-server.d.ts +1 -1
  350. package/dist/transport/worker-transport.d.cts +10 -0
  351. package/dist/transport/worker-transport.d.ts +5 -4
  352. package/dist/types-BAerHgCq.js.map +1 -1
  353. package/dist/types-C7WNpnG1.cjs.map +1 -1
  354. package/dist/{unclean-exit-CwcUhFOn.js → unclean-exit-DQD1cT7c.js} +23 -30
  355. package/dist/unclean-exit-DQD1cT7c.js.map +1 -0
  356. package/dist/unclean-exit-py99ApzT.cjs +2 -0
  357. package/dist/unclean-exit-py99ApzT.cjs.map +1 -0
  358. package/dist/unref-CU9Nyz_9.cjs +2 -0
  359. package/dist/unref-CU9Nyz_9.cjs.map +1 -0
  360. package/dist/unref-DgHPQeWv.js +7 -0
  361. package/dist/unref-DgHPQeWv.js.map +1 -0
  362. package/dist/{user-timing-_jZIhDKI.js → user-timing-BePqb1uN.js} +18 -18
  363. package/dist/user-timing-BePqb1uN.js.map +1 -0
  364. package/dist/user-timing-D6XTmpuM.cjs +2 -0
  365. package/dist/user-timing-D6XTmpuM.cjs.map +1 -0
  366. package/dist/utils/console.d.cts +36 -0
  367. package/dist/utils/console.d.ts +6 -6
  368. package/dist/utils/deadline.d.cts +14 -0
  369. package/dist/utils/deadline.d.ts +4 -4
  370. package/dist/utils/error-like.d.cts +25 -0
  371. package/dist/utils/error-like.d.ts +7 -7
  372. package/dist/utils/fixed-window.d.cts +25 -0
  373. package/dist/utils/fixed-window.d.ts +9 -8
  374. package/dist/utils/global-scope.d.cts +20 -0
  375. package/dist/utils/global-scope.d.ts +8 -8
  376. package/dist/utils/guards.d.cts +14 -0
  377. package/dist/utils/guards.d.ts +10 -2
  378. package/dist/utils/identity.d.cts +109 -0
  379. package/dist/utils/identity.d.ts +20 -21
  380. package/dist/utils/library-console.d.cts +11 -0
  381. package/dist/utils/library-console.d.ts +4 -4
  382. package/dist/utils/library-request.d.cts +24 -0
  383. package/dist/utils/library-request.d.ts +10 -10
  384. package/dist/utils/lock.d.cts +24 -0
  385. package/dist/utils/lock.d.ts +11 -10
  386. package/dist/utils/openfin.d.cts +48 -0
  387. package/dist/utils/openfin.d.ts +5 -5
  388. package/dist/utils/patch.d.cts +9 -0
  389. package/dist/utils/patch.d.ts +6 -6
  390. package/dist/utils/platform.d.cts +62 -0
  391. package/dist/utils/platform.d.ts +15 -13
  392. package/dist/utils/sanitize.d.cts +52 -0
  393. package/dist/utils/sanitize.d.ts +5 -5
  394. package/dist/utils/sequence.d.cts +10 -0
  395. package/dist/utils/tracing.d.cts +158 -0
  396. package/dist/utils/tracing.d.ts +49 -42
  397. package/dist/utils/unref.d.cts +9 -0
  398. package/dist/utils/unref.d.ts +3 -3
  399. package/dist/web-socket-CoIUBM3C.cjs +2 -0
  400. package/dist/web-socket-CoIUBM3C.cjs.map +1 -0
  401. package/dist/{web-socket-CV7yIMnm.js → web-socket-DSHgDiZ6.js} +23 -28
  402. package/dist/web-socket-DSHgDiZ6.js.map +1 -0
  403. package/dist/web-vitals-4pWACwaR.js +71 -0
  404. package/dist/web-vitals-4pWACwaR.js.map +1 -0
  405. package/dist/web-vitals-__X7t4pj.cjs +2 -0
  406. package/dist/web-vitals-__X7t4pj.cjs.map +1 -0
  407. package/dist/worker-protocol-QbvqNazn.cjs +2 -0
  408. package/dist/worker-protocol-QbvqNazn.cjs.map +1 -0
  409. package/dist/{worker-protocol-CrsdSDLn.js → worker-protocol-x074Rpet.js} +14 -11
  410. package/dist/worker-protocol-x074Rpet.js.map +1 -0
  411. package/dist/worker-server-CFe4nvos.cjs +2 -0
  412. package/dist/worker-server-CFe4nvos.cjs.map +1 -0
  413. package/dist/worker-server-iUVSjH8L.js +94 -0
  414. package/dist/worker-server-iUVSjH8L.js.map +1 -0
  415. package/dist/worker-transport-CRAX-09c.cjs +2 -0
  416. package/dist/worker-transport-CRAX-09c.cjs.map +1 -0
  417. package/dist/worker-transport-Dy1KMA7t.js +190 -0
  418. package/dist/worker-transport-Dy1KMA7t.js.map +1 -0
  419. package/llms.txt +397 -0
  420. package/package.json +55 -41
  421. package/dist/batch-C8OcWR2L.cjs.map +0 -1
  422. package/dist/batch-CL9uWYY3.js.map +0 -1
  423. package/dist/bus-BZ0GldpT.js +0 -660
  424. package/dist/bus-BZ0GldpT.js.map +0 -1
  425. package/dist/bus-VWlmM5xs.cjs +0 -2
  426. package/dist/bus-VWlmM5xs.cjs.map +0 -1
  427. package/dist/console-BPZCuSLc.cjs +0 -2
  428. package/dist/console-BPZCuSLc.cjs.map +0 -1
  429. package/dist/console-BeCF7n59.js +0 -82
  430. package/dist/console-BeCF7n59.js.map +0 -1
  431. package/dist/constants-DqKJH_MP.cjs +0 -2
  432. package/dist/constants-DqKJH_MP.cjs.map +0 -1
  433. package/dist/constants-zyrqveN4.js +0 -304
  434. package/dist/constants-zyrqveN4.js.map +0 -1
  435. package/dist/context-storage-BjzeBSxH.cjs +0 -2
  436. package/dist/context-storage-BjzeBSxH.cjs.map +0 -1
  437. package/dist/context-storage-BzkoHzkQ.js +0 -51
  438. package/dist/context-storage-BzkoHzkQ.js.map +0 -1
  439. package/dist/deadline-BOjOxNHj.js.map +0 -1
  440. package/dist/deadline-XSnm95pg.cjs +0 -2
  441. package/dist/deadline-XSnm95pg.cjs.map +0 -1
  442. package/dist/debug-bundle-BzJNpbF0.cjs +0 -2
  443. package/dist/debug-bundle-BzJNpbF0.cjs.map +0 -1
  444. package/dist/debug-bundle-C7UkHZ-q.js +0 -25
  445. package/dist/debug-bundle-C7UkHZ-q.js.map +0 -1
  446. package/dist/emergency-queue-CNTRui5t.cjs +0 -2
  447. package/dist/emergency-queue-CNTRui5t.cjs.map +0 -1
  448. package/dist/emergency-queue-Zy6lNafo.js +0 -67
  449. package/dist/emergency-queue-Zy6lNafo.js.map +0 -1
  450. package/dist/errors-Dh7kef0i.js +0 -92
  451. package/dist/errors-Dh7kef0i.js.map +0 -1
  452. package/dist/errors-tfEr48bS.cjs +0 -3
  453. package/dist/errors-tfEr48bS.cjs.map +0 -1
  454. package/dist/factory-BonqI3NL.js +0 -276
  455. package/dist/factory-BonqI3NL.js.map +0 -1
  456. package/dist/factory-CJXVYp0R.cjs +0 -2
  457. package/dist/factory-CJXVYp0R.cjs.map +0 -1
  458. package/dist/guards-Cidk71ME.js +0 -7
  459. package/dist/guards-Cidk71ME.js.map +0 -1
  460. package/dist/guards-nJ70syPt.cjs +0 -2
  461. package/dist/guards-nJ70syPt.cjs.map +0 -1
  462. package/dist/identity-Cxgj6pZX.cjs +0 -2
  463. package/dist/identity-Cxgj6pZX.cjs.map +0 -1
  464. package/dist/identity-DT5VmvXy.js.map +0 -1
  465. package/dist/indexeddb-storage-BJVtiQKm.js.map +0 -1
  466. package/dist/indexeddb-storage-CIoW21Xd.cjs +0 -2
  467. package/dist/indexeddb-storage-CIoW21Xd.cjs.map +0 -1
  468. package/dist/interactions-DTgKy_6K.js.map +0 -1
  469. package/dist/interactions-fEN6FbVo.cjs +0 -2
  470. package/dist/interactions-fEN6FbVo.cjs.map +0 -1
  471. package/dist/journey-CuJrHzEg.js.map +0 -1
  472. package/dist/journey-pffMVMfa.cjs +0 -2
  473. package/dist/journey-pffMVMfa.cjs.map +0 -1
  474. package/dist/keys-BHhw_0Wh.cjs +0 -2
  475. package/dist/keys-BHhw_0Wh.cjs.map +0 -1
  476. package/dist/keys-BU9j5YqW.js +0 -16
  477. package/dist/keys-BU9j5YqW.js.map +0 -1
  478. package/dist/library-console-C1m6g1BR.js.map +0 -1
  479. package/dist/library-console-D2GY9Or6.cjs.map +0 -1
  480. package/dist/library-request-1BX_UlaX.cjs.map +0 -1
  481. package/dist/library-request-BQBT9N9Q.js.map +0 -1
  482. package/dist/lifecycle-2EtUaRpo.cjs +0 -2
  483. package/dist/lifecycle-2EtUaRpo.cjs.map +0 -1
  484. package/dist/lifecycle-BaKx_-32.js.map +0 -1
  485. package/dist/log-record-CAoGBBf3.js.map +0 -1
  486. package/dist/log-record-i9zOTkpQ.cjs +0 -2
  487. package/dist/log-record-i9zOTkpQ.cjs.map +0 -1
  488. package/dist/long-frames-BVg4i5SC.cjs +0 -2
  489. package/dist/long-frames-BVg4i5SC.cjs.map +0 -1
  490. package/dist/long-frames-Czk7IupC.js +0 -64
  491. package/dist/long-frames-Czk7IupC.js.map +0 -1
  492. package/dist/models/stats.d.ts +0 -11
  493. package/dist/network-DBNwApoF.js.map +0 -1
  494. package/dist/network-xbbuvG_6.cjs +0 -2
  495. package/dist/network-xbbuvG_6.cjs.map +0 -1
  496. package/dist/otlp-BDvFrLnc.cjs +0 -2
  497. package/dist/otlp-BDvFrLnc.cjs.map +0 -1
  498. package/dist/otlp-BTJdIa6F.js.map +0 -1
  499. package/dist/platform-C2Ez5kDc.cjs.map +0 -1
  500. package/dist/platform-DkcuXwe-.js.map +0 -1
  501. package/dist/remote-rules-Cfb4K-Nl.js +0 -98
  502. package/dist/remote-rules-Cfb4K-Nl.js.map +0 -1
  503. package/dist/remote-rules-vzvk7aKf.cjs +0 -2
  504. package/dist/remote-rules-vzvk7aKf.cjs.map +0 -1
  505. package/dist/reports-Dk2YhKIh.cjs +0 -2
  506. package/dist/reports-Dk2YhKIh.cjs.map +0 -1
  507. package/dist/reports-TA-zInnq.js.map +0 -1
  508. package/dist/resource-timing-BLv3EA2A.js.map +0 -1
  509. package/dist/resource-timing-Cysw1S1f.cjs +0 -2
  510. package/dist/resource-timing-Cysw1S1f.cjs.map +0 -1
  511. package/dist/sampling-C4VV-1MS.js +0 -60
  512. package/dist/sampling-C4VV-1MS.js.map +0 -1
  513. package/dist/sampling-Ckh2yW9k.cjs +0 -2
  514. package/dist/sampling-Ckh2yW9k.cjs.map +0 -1
  515. package/dist/sanitize-6ymPlVvP.js.map +0 -1
  516. package/dist/sanitize-BAWzkZt0.cjs.map +0 -1
  517. package/dist/select-ZF4by-lF.cjs +0 -3
  518. package/dist/select-ZF4by-lF.cjs.map +0 -1
  519. package/dist/select-xtQaenIi.js +0 -270
  520. package/dist/select-xtQaenIi.js.map +0 -1
  521. package/dist/sender-CiMHC9YG.js +0 -856
  522. package/dist/sender-CiMHC9YG.js.map +0 -1
  523. package/dist/sender-D5wBoXA8.cjs +0 -2
  524. package/dist/sender-D5wBoXA8.cjs.map +0 -1
  525. package/dist/storage-BA9RqRO-.cjs +0 -2
  526. package/dist/storage-BA9RqRO-.cjs.map +0 -1
  527. package/dist/storage-DZwed89z.js +0 -16
  528. package/dist/storage-DZwed89z.js.map +0 -1
  529. package/dist/storm-CYi9Swpx.cjs +0 -2
  530. package/dist/storm-CYi9Swpx.cjs.map +0 -1
  531. package/dist/storm-VR024_QN.js +0 -9
  532. package/dist/storm-VR024_QN.js.map +0 -1
  533. package/dist/unclean-exit-CwcUhFOn.js.map +0 -1
  534. package/dist/unclean-exit-DFUN57wY.cjs +0 -2
  535. package/dist/unclean-exit-DFUN57wY.cjs.map +0 -1
  536. package/dist/user-timing-C9kfRq3J.cjs +0 -2
  537. package/dist/user-timing-C9kfRq3J.cjs.map +0 -1
  538. package/dist/user-timing-_jZIhDKI.js.map +0 -1
  539. package/dist/utils/timer.d.ts +0 -19
  540. package/dist/web-socket-BWUoqBh8.cjs +0 -2
  541. package/dist/web-socket-BWUoqBh8.cjs.map +0 -1
  542. package/dist/web-socket-CV7yIMnm.js.map +0 -1
  543. package/dist/web-vitals-Bq4WFHQo.js +0 -52
  544. package/dist/web-vitals-Bq4WFHQo.js.map +0 -1
  545. package/dist/web-vitals-DFuoTQbZ.cjs +0 -2
  546. package/dist/web-vitals-DFuoTQbZ.cjs.map +0 -1
  547. package/dist/worker-protocol-Bai7GAIA.cjs +0 -2
  548. package/dist/worker-protocol-Bai7GAIA.cjs.map +0 -1
  549. package/dist/worker-protocol-CrsdSDLn.js.map +0 -1
  550. package/dist/worker-server-BrIYkfoa.cjs +0 -2
  551. package/dist/worker-server-BrIYkfoa.cjs.map +0 -1
  552. package/dist/worker-server-Dp5HYm4b.js +0 -83
  553. package/dist/worker-server-Dp5HYm4b.js.map +0 -1
  554. package/dist/worker-transport-Bwej4N2e.cjs +0 -2
  555. package/dist/worker-transport-Bwej4N2e.cjs.map +0 -1
  556. package/dist/worker-transport-D6jtgpqN.js +0 -199
  557. package/dist/worker-transport-D6jtgpqN.js.map +0 -1
@@ -1,20 +1,20 @@
1
- import type { ConsoleStyles, ResolvedConfig } from "./models/config";
2
- import type { LogLevel, LogType } from "./models/log-record";
3
- import type { StorageLimits } from "./models/storage";
1
+ import type { ConsoleStyles, ResolvedConfig } from "./models/config.js";
2
+ import type { LogLevel, LogType } from "./models/log-record.js";
3
+ import type { StorageLimits } from "./models/storage.js";
4
4
  /** Prefix on console messages this library writes. */
5
5
  export declare const LIBRARY_LOG_PREFIX = "[ui-observability]";
6
6
  /**
7
- * Throttle window for each diagnostic code, in milliseconds. It limits how often an error
8
- * loop calls the handler.
7
+ * Throttle window per diagnostic code, in milliseconds. Limits how often an error
8
+ * loop can call the handler.
9
9
  */
10
10
  export declare const DIAGNOSTIC_THROTTLE_MS = 1000;
11
11
  /** `localStorage` key for the session id and its last-seen time. */
12
12
  export declare const SESSION_ID_KEY = "ui-observability.session";
13
13
  /** `sessionStorage` key for the tab id. */
14
14
  export declare const TAB_ID_KEY = "ui-observability.tab";
15
- /** sessionStorage key of the marker of a page that is alive. A clean close removes it. */
15
+ /** sessionStorage key for a live page's marker. A clean close removes it. */
16
16
  export declare const ALIVE_KEY = "ui-observability.alive";
17
- /** Interval of the updates of the alive marker, in milliseconds. */
17
+ /** How often the alive marker is updated, in milliseconds. */
18
18
  export declare const ALIVE_UPDATE_MS = 30000;
19
19
  /** Session idle timeout, in milliseconds. */
20
20
  export declare const SESSION_IDLE_MS: number;
@@ -72,15 +72,15 @@ export declare const SEVERITY_NUMBER: Record<LogLevel, number>;
72
72
  export declare const LEVEL_ORDER: Record<LogLevel, number>;
73
73
  /** Record kind attribute key. */
74
74
  export declare const ATTR_LOG_TYPE = "log.type";
75
- /** Record sequence number in its context. It starts at 1. */
75
+ /** A record's sequence number within its context. Starts at 1. */
76
76
  export declare const ATTR_LOG_SEQ = "log.seq";
77
77
  /** Logger namespace attribute key. */
78
78
  export declare const ATTR_APP_NAMESPACE = "app.namespace";
79
- /** Document URL when the library built the record. */
79
+ /** The document URL at the time the record was built. */
80
80
  export declare const ATTR_PAGE_URL = "page.url";
81
81
  /**
82
- * HTTP request URL attribute key. Network capture sets it. Do not reuse `ATTR_PAGE_URL`.
83
- * The page URL overwrites the request target under that key.
82
+ * HTTP request URL attribute key, set by network capture. Don't reuse `ATTR_PAGE_URL` for it,
83
+ * because the page URL overwrites the request target under that key.
84
84
  * @see {@link ATTR_PAGE_URL}
85
85
  */
86
86
  export declare const ATTR_URL_FULL = "url.full";
@@ -92,12 +92,12 @@ export declare const ATTR_JOURNEY_NAME = "journey.name";
92
92
  export declare const ATTR_JOURNEY_PARENT_ID = "journey.parent_id";
93
93
  /** Marks a record whose attributes failed to sanitize. */
94
94
  export declare const ATTR_SANITIZE_FAILED = "uiobs.sanitize_failed";
95
- /** Own fields of an Error reason, or the whole reason when it is not an Error. */
95
+ /** An Error reason's own fields, or the whole reason when it isn't an Error. */
96
96
  export declare const ATTR_ERROR_DATA = "error.data";
97
- /** Breadcrumb history of an error record. */
97
+ /** An error record's breadcrumb history. */
98
98
  export declare const ATTR_BREADCRUMBS = "breadcrumbs";
99
99
  /**
100
- * Marks a record when the library drops its attributes because they exceed the byte budget.
100
+ * Marks a record whose attributes were dropped for exceeding the byte budget.
101
101
  * @see {@link ATTR_ATTRIBUTES_BYTES}
102
102
  */
103
103
  export declare const ATTR_ATTRIBUTES_DROPPED = "uiobs.attributes_dropped";
@@ -106,11 +106,11 @@ export declare const ATTR_ATTRIBUTES_DROPPED = "uiobs.attributes_dropped";
106
106
  * @see {@link ATTR_ATTRIBUTES_DROPPED}
107
107
  */
108
108
  export declare const ATTR_ATTRIBUTES_BYTES = "uiobs.attributes_bytes";
109
- /** Server time minus client time, in milliseconds, from the Date header of an accepted answer. */
109
+ /** Server time minus client time, in milliseconds, from an accepted answer's Date header. */
110
110
  export declare const ATTR_CLOCK_OFFSET_MS = "uiobs.clock_offset_ms";
111
- /** Marks a record that the debug buffer kept until an error. */
111
+ /** Marks a record the debug buffer held until an error. */
112
112
  export declare const ATTR_DEBUG_BUFFER = "uiobs.debug_buffer";
113
- /** Half the resolution of the HTTP Date header. It centers the error of the clock offset. */
113
+ /** Half the HTTP Date header's resolution. Centers the clock offset's error. */
114
114
  export declare const DATE_HEADER_HALF_STEP_MS = 500;
115
115
  /** Application name resource key. */
116
116
  export declare const RESOURCE_SERVICE_NAME = "service.name";
@@ -153,7 +153,7 @@ export declare const RESOURCE_OPENFIN_NAME = "openfin.name";
153
153
  */
154
154
  export declare const TELEMETRY_SDK_NAME = "@utk09/ui-observability";
155
155
  /**
156
- * Value of `telemetry.sdk.version`. The build writes the version of package.json here.
156
+ * Value of `telemetry.sdk.version`. The build writes the package.json version here.
157
157
  * @see {@link RESOURCE_TELEMETRY_SDK_VERSION}
158
158
  */
159
159
  export declare const TELEMETRY_SDK_VERSION: string;
@@ -168,11 +168,11 @@ export declare const SERIALIZER_NAME_OTLP = "otlp";
168
168
  export declare const SERIALIZER_NAME_ECS = "ecs";
169
169
  /**
170
170
  * ECS `log.level` names that differ from the lowercase severity text. ECS spells
171
- * the warning level in full. All other levels match in lowercase.
171
+ * the warning level out in full, and every other level matches in lowercase.
172
172
  * @see {@link SERIALIZER_NAME_ECS}
173
173
  */
174
174
  export declare const ECS_LEVEL_NAMES: Partial<Record<LogLevel, string>>;
175
- /** ECS version of the documents. The Elastic ECS logging libraries write this version. */
175
+ /** The ECS version of the documents, the same one the Elastic ECS logging libraries write. */
176
176
  export declare const ECS_VERSION = "8.10.0";
177
177
  /** Content type for an OTLP/JSON body. */
178
178
  export declare const CONTENT_TYPE_JSON = "application/json";
@@ -220,6 +220,8 @@ export declare const HTTP_FORBIDDEN = 403;
220
220
  export declare const HTTP_REQUEST_TIMEOUT = 408;
221
221
  /** 413, payload too large. The transport must split the batch. */
222
222
  export declare const HTTP_PAYLOAD_TOO_LARGE = 413;
223
+ /** 415, unsupported media type. A stock OpenTelemetry Collector gives it to a text/plain batch. */
224
+ export declare const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
223
225
  /** 429, backpressure. */
224
226
  export declare const HTTP_TOO_MANY_REQUESTS = 429;
225
227
  /** 500, floor for server-side errors. */
@@ -230,7 +232,11 @@ export declare const HTTP_SERVICE_UNAVAILABLE = 503;
230
232
  export declare const MILLIS_PER_SECOND = 1000;
231
233
  /** Max exit payload size, in bytes (`sendBeacon`/`fetch(keepalive)` shared budget). */
232
234
  export declare const BEACON_LIMIT_BYTES = 60000;
233
- /** Content type for an exit payload. It is CORS-safelisted and does not cause a preflight. */
235
+ /** Largest ingest response body the library reads, in bytes. It skips a larger body. */
236
+ export declare const RESPONSE_BODY_LIMIT_BYTES = 16384;
237
+ /** Longest server message that a diagnostic repeats. The server controls this text. */
238
+ export declare const SERVER_MESSAGE_MAX_CHARS = 256;
239
+ /** Content type for an exit payload. CORS-safelisted, so it doesn't trigger a preflight. */
234
240
  export declare const CONTENT_TYPE_TEXT_PLAIN = "text/plain;charset=UTF-8";
235
241
  /**
236
242
  * Batch id query param name, for the exit path.
@@ -243,23 +249,24 @@ export declare const QUERY_PARAM_EXIT_REASON = "uiobs_exit";
243
249
  export declare const BATCH_STORAGE_KEY_PREFIX = "ui-observability.batch.";
244
250
  /** Zero-padded digit width for the creation time in a batch key. */
245
251
  export declare const BATCH_KEY_TIME_WIDTH = 14;
246
- /** localStorage key prefix for a batch that exit flush stores. */
252
+ /** localStorage key prefix for a batch stored by the exit flush. */
247
253
  export declare const EMERGENCY_STORAGE_KEY_PREFIX = "ui-observability.emergency.";
248
254
  /** Maximum number of exit batches in the emergency queue. */
249
255
  export declare const EMERGENCY_MAX_ENTRIES = 20;
250
- /** Key that the library writes to test if localStorage accepts writes. */
256
+ /** Key we write to check whether localStorage accepts writes. */
251
257
  export declare const STORAGE_PROBE_KEY = "ui-observability.probe";
252
258
  /** Fraction of the store to evict on a quota error (1 in N). */
253
259
  export declare const QUOTA_EVICTION_DIVISOR = 4;
254
260
  /** DOMException name for a full store. */
255
261
  export declare const QUOTA_EXCEEDED_ERROR = "QuotaExceededError";
256
262
  /**
257
- * Native IndexedDB version. Version 11 replaced Dexie. Version 12 adds the context index.
258
- * Dexie opened this database at ten times its declared version. A version below 11 makes
259
- * open() fail with VersionError for an existing installation. Then no code can read its batches.
263
+ * Native IndexedDB version. Version 11 replaced Dexie, and version 12 adds the context index.
264
+ * Dexie opened this database at ten times its declared version, so a version below 11 makes
265
+ * open() fail with VersionError on an existing installation, and then nothing can read its
266
+ * batches.
260
267
  */
261
268
  export declare const INDEXEDDB_SCHEMA_VERSION = 12;
262
- /** IndexedDB object store that holds batches. Dexie set this name before the library removed it. */
269
+ /** IndexedDB object store that holds the batches. The name dates from Dexie, since removed. */
263
270
  export declare const INDEXEDDB_STORE_NAME = "batches";
264
271
  /** Index on the batch store that orders reads by creation time. */
265
272
  export declare const INDEXEDDB_CREATED_AT_INDEX = "createdAt";
@@ -291,30 +298,30 @@ export declare const JOURNEY_STORAGE_KEY = "ui-observability.journey";
291
298
  */
292
299
  export declare const JOURNEY_TOKEN_NAME_MAX_CHARS = 64;
293
300
  /**
294
- * Max length of a journey id from startJourney(), in characters. The token of a journey with this
295
- * id and a full name stays below the token limit.
301
+ * Max length of a journey id from startJourney(), in characters. A journey with an id this long
302
+ * and a full-length name still gets a token below the token limit.
296
303
  * @see {@link JOURNEY_TOKEN_MAX_CHARS}
297
304
  */
298
305
  export declare const JOURNEY_ID_MAX_CHARS = 64;
299
306
  /**
300
- * Accepted journey id from startJourney(): letters, digits, "_", ".", ":" and "-". Each character
301
- * is one byte in UTF-8. A multibyte id makes the token larger than its limit.
307
+ * Accepted journey id from startJourney(): letters, digits, "_", ".", ":" and "-". Every
308
+ * character is one byte in UTF-8. A multibyte id would push the token over its limit.
302
309
  */
303
310
  export declare const JOURNEY_ID_PATTERN: RegExp;
304
311
  /**
305
- * Time that the start of a journey token can be ahead of this clock, in milliseconds. Two machines
306
- * can disagree on the time. A token further ahead never expires.
312
+ * How far ahead of this clock a journey token's start time can be, in milliseconds. Two machines
313
+ * can disagree on the time, but a token further ahead than this would never expire.
307
314
  */
308
315
  export declare const JOURNEY_CLOCK_SKEW_MS: number;
309
316
  /**
310
- * Max whole-token length, in characters. It rejects an oversized token. It does not
311
- * validate the token content.
317
+ * Max whole-token length, in characters. This only rejects an oversized token. It doesn't
318
+ * validate the token's content.
312
319
  * @see {@link JOURNEY_TOKEN_NAME_MAX_CHARS}
313
320
  */
314
321
  export declare const JOURNEY_TOKEN_MAX_CHARS = 256;
315
322
  /**
316
- * Time to wait for `fin.me.getOptions()`, in milliseconds. After this time, the
317
- * runtime continues without a seeded journey.
323
+ * How long to wait for `fin.me.getOptions()`, in milliseconds. After that, the
324
+ * runtime carries on without a seeded journey.
318
325
  * @see {@link OPENFIN_JOURNEY_CUSTOM_DATA_KEY}
319
326
  */
320
327
  export declare const OPENFIN_OPTIONS_TIMEOUT_MS = 2000;
@@ -358,8 +365,8 @@ export declare const FNV_PRIME = 16777619;
358
365
  /** Largest 32-bit unsigned value. */
359
366
  export declare const UINT32_MAX = 4294967295;
360
367
  /**
361
- * Types that minLevel does not drop. An action is an audit fact. A metric and a span are measurements.
362
- * The remote rate cap for records below minLevel does not apply to them.
368
+ * Types that minLevel never drops. An action is an audit fact, and a metric or a span is a
369
+ * measurement. The remote rate cap for records below minLevel doesn't apply to them either.
363
370
  */
364
371
  export declare const LEVEL_BYPASS_TYPES: readonly LogType[];
365
372
  /** Record kind routed to the metric stream. */
@@ -371,9 +378,9 @@ export declare const LOG_TYPE_SPAN: LogType;
371
378
  /** Protocol identifier for bus envelopes. The bus drops an envelope with a different version. */
372
379
  export declare const BUS_PROTOCOL = "ui-observability/2";
373
380
  /**
374
- * Type tag of each bus message. Every frame must use the same values. The prefix makes a message
375
- * easy to identify in a postMessage log. The envelope tag BUS_PROTOCOL still separates the bus
376
- * from other traffic.
381
+ * Type tag for every bus message. Every frame must use the same values. The prefix makes a
382
+ * message easy to spot in a postMessage log, but it is still the BUS_PROTOCOL envelope tag that
383
+ * separates the bus from other traffic.
377
384
  */
378
385
  export declare const BUS_TYPE: {
379
386
  readonly hello: "ui-observability.message.hello";
@@ -385,80 +392,88 @@ export declare const BUS_TYPE: {
385
392
  readonly sampling: "ui-observability.message.sampling";
386
393
  readonly samplingRequest: "ui-observability.message.sampling-request";
387
394
  readonly tab: "ui-observability.message.tab";
395
+ readonly flushRequest: "ui-observability.message.flush-request";
396
+ readonly flushResult: "ui-observability.message.flush-result";
388
397
  };
389
398
  /** Global window property key used to locate a same-origin runtime instance. */
390
399
  export declare const RUNTIME_GLOBAL_KEY = "ui-observability.runtime";
391
- /** Global key of the runtime that shutdown() stopped. Calls go to it until the next configure(). */
400
+ /** Global key for the runtime shutdown() stopped. Calls go to it until the next configure(). */
392
401
  export declare const RUNTIME_STOPPED_KEY = "ui-observability.stopped";
393
- /** Global symbol key of the library request scope count. All library copies on a page share it. */
402
+ /** Global symbol key for the library request scope count, shared by every copy on the page. */
394
403
  export declare const LIBRARY_REQUEST_KEY = "ui-observability.request-scope";
395
- /** Global symbol key of the library console scope count. All library copies on a page share it. */
404
+ /** Global symbol key for the library console scope count, shared by every copy on the page. */
396
405
  export declare const LIBRARY_CONSOLE_KEY = "ui-observability.console-scope";
397
- /** Global symbol key of the count of custom transport calls that wait for an answer. */
406
+ /** Global symbol key for the number of custom transport calls still waiting for an answer. */
398
407
  export declare const TRANSPORT_CALL_KEY = "ui-observability.transport-calls";
399
408
  /** Maximum error records captured per throttling window before suppression. */
400
409
  export declare const ERROR_STORM_MAX_PER_WINDOW = 20;
401
- /** Error rate-limiting window duration in milliseconds. */
410
+ /**
411
+ * Default length of the capture rate limit window, and of the replay upload and error ceiling
412
+ * windows, in milliseconds.
413
+ */
402
414
  export declare const ERROR_STORM_WINDOW_MS = 10000;
403
415
  /**
404
- * Max ERROR and FATAL records that the pipeline admits in each storm window.
405
- * It is a safety limit for a render loop. It does not shape normal traffic.
406
- * ERROR and FATAL records skip sampling. A direct logger.error call has no other limit.
416
+ * Max ERROR and FATAL records the pipeline admits per storm window. This is a safety limit for
417
+ * a render loop, not a way to shape normal traffic. ERROR and FATAL records skip sampling, so a
418
+ * direct logger.error call has no other limit.
407
419
  */
408
420
  export declare const ERROR_CEILING_MAX_PER_WINDOW = 500;
409
- /** Default minimum duration of a long frame that the library records, in milliseconds. */
421
+ /** Default minimum duration for a long frame to be recorded, in milliseconds. */
410
422
  export declare const LONG_FRAME_THRESHOLD_MS = 100;
411
- /** Maximum long frames recorded in each storm window. A frozen tab cannot flood the pipeline. */
423
+ /** Maximum long frames recorded per storm window, so a frozen tab can't flood the pipeline. */
412
424
  export declare const LONG_FRAME_MAX_PER_WINDOW = 20;
413
- /** Maximum WebSocket events recorded in each storm window. A reconnect loop cannot flood the pipeline. */
425
+ /** Max WebSocket events recorded per storm window, so a reconnect loop can't flood the pipeline. */
414
426
  export declare const WEBSOCKET_MAX_PER_WINDOW = 20;
415
427
  /** Maximum character length of a console breadcrumb message. */
416
428
  export declare const CONSOLE_BREADCRUMB_MAX_CHARS = 200;
417
429
  /** Maximum distinct error signatures tracked for deduplication before LRU eviction. */
418
430
  export declare const MAX_TRACKED_ERROR_SIGNATURES = 200;
419
- /** Maximum character length retained from clicked element text in breadcrumbs. */
431
+ /** Maximum characters of a clicked element's text kept in a breadcrumb. */
420
432
  export declare const CLICK_TEXT_MAX_CHARS = 50;
421
- /** Attribute that names a click action when the app sets no other attribute. */
433
+ /** Attribute that names a click action, unless the app configures a different one. */
422
434
  export declare const ACTION_ATTRIBUTE_DEFAULT = "data-observability-action";
423
- /** Clicks on one element that make a rage click, by default. */
435
+ /**
436
+ * Selector for the regions the app keeps out of the records. Click capture skips them by
437
+ * default, and session replay always blocks them, so a hidden region can't leak through either.
438
+ */
439
+ export declare const IGNORE_SELECTOR = "[data-observability-ignore]";
440
+ /** How many clicks on one element make a rage click, by default. */
424
441
  export declare const RAGE_CLICK_COUNT = 3;
425
- /** Time in which the clicks of a rage click occur, in milliseconds, by default. */
442
+ /** The time window a rage click's clicks must fall within, in milliseconds, by default. */
426
443
  export declare const RAGE_CLICK_WINDOW_MS = 1000;
427
- /** Wait for a visible response to a click before it counts as a dead click, in milliseconds. */
444
+ /** How long to wait for a visible response before a click counts as dead, in milliseconds. */
428
445
  export declare const DEAD_CLICK_MS = 1000;
429
- /** Controls whose click must give a visible response. Only these get a dead click check. */
446
+ /** Controls that should respond visibly to a click. Only these get a dead click check. */
430
447
  export declare const DEAD_CLICK_CONTROLS = "a, button, summary, input[type=\"button\"], input[type=\"submit\"], input[type=\"reset\"], [role=\"button\"], [role=\"link\"], [role=\"menuitem\"], [role=\"tab\"]";
431
- /** Maximum character length retained from an aria-label attribute in generated selectors. */
448
+ /** Maximum characters of an aria-label kept in a generated selector. */
432
449
  export declare const ARIA_LABEL_MAX_CHARS = 40;
433
- /** Maximum class names included per element in generated CSS selectors. */
450
+ /** Maximum class names per element in a generated CSS selector. */
434
451
  export declare const SELECTOR_MAX_CLASSES = 2;
435
- /** Default CSS of the console prefix. The colors are readable on light and dark devtools. */
452
+ /** Default CSS for the console prefix. The colors are readable in light and dark devtools. */
436
453
  export declare const CONSOLE_DEFAULT_STYLES: Readonly<Required<ConsoleStyles>>;
437
- /** Scaling factor for rounding duration measurements to three decimal places. */
438
- export declare const DURATION_PRECISION = 1000;
439
- /** Minimum duration in milliseconds between storage gap warning reports. */
454
+ /** Minimum time between storage gap warning reports, in milliseconds. */
440
455
  export declare const GAP_REPORT_THROTTLE_MS = 60000;
441
- /** Default namespace for telemetry records emitted by auto-capture modules. */
456
+ /** Default namespace for records the auto-capture modules emit. */
442
457
  export declare const CAPTURE_NAMESPACE = "uiobs.capture";
443
- /** Default namespace for telemetry records emitted by storage subsystems. */
458
+ /** Default namespace for records the storage subsystems emit. */
444
459
  export declare const STORAGE_NAMESPACE = "uiobs.storage";
445
- /** Namespace of the records that `diagnostics.records` gives. */
460
+ /** Namespace for the records `diagnostics.records` produces. */
446
461
  export declare const DIAGNOSTICS_NAMESPACE = "uiobs.diagnostics";
447
- /** Measurement unit that the library uses when the call gives no unit. */
462
+ /** The measurement unit used when a call doesn't give one. */
448
463
  export declare const DEFAULT_METRIC_UNIT = "count";
449
- /** Namespace of the points that the counter and histogram instruments give. */
464
+ /** Namespace for the points the counter and histogram instruments produce. */
450
465
  export declare const METRIC_NAMESPACE = "uiobs.metrics";
451
- /** Maximum attribute sets of one instrument in one interval. More sets go to one overflow set. */
466
+ /** Maximum attribute sets per instrument per interval. Any more go into one overflow set. */
452
467
  export declare const METRIC_MAX_SERIES = 100;
453
- /** Maximum bucket boundaries of one histogram. More boundaries make a large point. */
468
+ /** Maximum bucket boundaries per histogram. More than that makes for a large point. */
454
469
  export declare const METRIC_MAX_BOUNDARIES = 50;
455
- /** Attribute of the overflow set. OpenTelemetry uses the same key. */
470
+ /** Attribute on the overflow set. OpenTelemetry uses the same key. */
456
471
  export declare const ATTR_METRIC_OVERFLOW = "otel.metric.overflow";
457
- /** Default histogram boundaries. They are the OpenTelemetry default boundaries. */
472
+ /** Default histogram boundaries, the same as OpenTelemetry's defaults. */
458
473
  export declare const METRIC_DEFAULT_BOUNDARIES: readonly number[];
459
474
  /**
460
- * Attribute keys of an aggregated metric point. The OTLP metrics serializer reads them.
461
- * Sampling keeps each record with a start time. A sample of a sum gives a false sum.
475
+ * Attribute keys on an aggregated metric point, read by the OTLP metrics serializer.
476
+ * Sampling keeps every record that has a start time, because sampling a sum gives a false sum.
462
477
  */
463
478
  export declare const METRIC_KEYS: {
464
479
  readonly start: "metric.start_time_unix_nano";
@@ -470,9 +485,61 @@ export declare const METRIC_KEYS: {
470
485
  readonly bounds: "metric.bounds";
471
486
  readonly buckets: "metric.bucket_counts";
472
487
  };
488
+ /**
489
+ * Every metric field the library writes on a metric record. The OTLP metrics serializer keeps
490
+ * them off a point's attributes, because the record holds the library's value under that name.
491
+ */
492
+ export declare const METRIC_FIELD_KEYS: readonly string[];
493
+ /** Precision of the profiler histogram: 2^4 = 16 sub-buckets per power of two. */
494
+ export declare const PROFILE_SUB_BITS = 4;
495
+ /** Buckets per probe: 16 for 0 to 15 us, then 16 for each exponent from 4 to 25. */
496
+ export declare const PROFILE_BUCKETS = 368;
497
+ /** Largest tracked duration in microseconds (2^26 - 1). Larger values go in the last bucket. */
498
+ export declare const PROFILE_MAX_US = 67108863;
499
+ /** Cap on the buckets in one profiler summary record, to keep the payload small. */
500
+ export declare const PROFILE_POINT_BUCKETS = 100;
501
+ /** Default probe limit. The runtime fixes the limit at startup. */
502
+ export declare const PROFILER_MAX_PROBES = 64;
503
+ /** Metric name for profiler summary records. */
504
+ export declare const PROFILE_METRIC_NAME = "ui.profile.duration";
505
+ /** Attribute keys on profiler summary records. */
506
+ export declare const PROFILE_KEYS: {
507
+ readonly probe: "profile.probe";
508
+ readonly sampleEvery: "profile.sample_every";
509
+ readonly p50: "profile.p50";
510
+ readonly p90: "profile.p90";
511
+ readonly p99: "profile.p99";
512
+ readonly overhead: "profile.overhead_ns";
513
+ readonly selfP99: "profile.self_p99";
514
+ readonly framePhase: "profile.frame_phase";
515
+ };
516
+ /** How deep spans can nest and still get a self time. Going deeper drops the frames below. */
517
+ export declare const PROFILER_STACK_DEPTH = 32;
518
+ /** How many recent spans the profiler keeps for linking to long animation frames. */
519
+ export declare const PROFILER_RING_SPANS = 256;
520
+ /** Shortest span, in ms, that gets linked to a long animation frame. */
521
+ export declare const PROFILER_LINK_MIN_MS = 1;
522
+ /** Metric name for long animation frame phases, reported per probe in the frame. */
523
+ export declare const PROFILE_FRAME_METRIC_NAME = "ui.profile.frame.duration";
524
+ /** Probe name for frame pacing. Each value is the time between two frames. */
525
+ export declare const PROFILE_FRAME_PROBE = "frame.interval";
526
+ /** Reported when the library can't read an instrument's options. */
527
+ export declare const INSTRUMENT_OPTIONS_FAULT = "The library could not read the options of an instrument. The library uses the defaults.";
528
+ /** Ambient attribute that ties every record to the session replay recording. */
529
+ export declare const REPLAY_ID_KEY = "replay.id";
530
+ /** Put this attribute on an element to leave its text unmasked in session replay. */
531
+ export declare const REPLAY_UNMASK_ATTRIBUTE = "data-observability-unmask";
532
+ /** Hard cap on registered probe names, and so the upper bound for profiler.maxProbes. */
533
+ export declare const PROFILER_PROBE_LIMIT = 1024;
534
+ /** Global symbol key for the profiler core. Copies of the same library version share the core. */
535
+ export declare const PROFILER_GLOBAL_KEY = "ui-observability.profiler";
536
+ /** Minimum window for the profiler's overhead measurement, in ms. */
537
+ export declare const PROFILER_CALIBRATION_MS = 2;
538
+ /** Cap on begin()/end() pairs in the profiler's overhead measurement. */
539
+ export declare const PROFILER_CALIBRATION_PAIRS = 100000;
473
540
  /** Namespace of the span records. */
474
541
  export declare const TRACE_NAMESPACE = "uiobs.traces";
475
- /** Attribute keys of the span fields of a span record. The traces serializer reads them. */
542
+ /** Attribute keys for the span fields on a span record, read by the traces serializer. */
476
543
  export declare const SPAN_KEYS: {
477
544
  readonly kind: "span.kind";
478
545
  readonly parentId: "span.parent_id";
@@ -482,9 +549,9 @@ export declare const SPAN_KEYS: {
482
549
  readonly linkTraceId: "span.link.trace_id";
483
550
  readonly linkSpanId: "span.link.span_id";
484
551
  };
485
- /** Protocol of the private transport worker channel. */
552
+ /** Protocol for the private transport worker channel. */
486
553
  export declare const TRANSPORT_WORKER_PROTOCOL = "ui-observability.transport/1";
487
- /** Type tags of the private transport worker messages. */
554
+ /** Type tags for the private transport worker messages. */
488
555
  export declare const TRANSPORT_WORKER_TYPE: {
489
556
  readonly connect: "connect";
490
557
  readonly ready: "ready";
@@ -492,7 +559,7 @@ export declare const TRANSPORT_WORKER_TYPE: {
492
559
  readonly result: "result";
493
560
  readonly cancel: "cancel";
494
561
  };
495
- /** Refusal of the worker entry. A constant keeps the protocol code out of the main chunk. */
562
+ /** The worker entry's refusal message. A constant keeps the protocol code out of the main chunk. */
496
563
  export declare const TRANSPORT_WORKER_REFUSAL: {
497
564
  readonly p: "ui-observability.transport/1";
498
565
  readonly v: string;
@@ -501,18 +568,24 @@ export declare const TRANSPORT_WORKER_REFUSAL: {
501
568
  };
502
569
  /** Maximum requests in one transport worker. */
503
570
  export declare const TRANSPORT_WORKER_MAX_JOBS = 64;
504
- /** Maximum wait for idle time before the deferred logger builds its records. */
571
+ /**
572
+ * Extra wait for the transport worker's answer after the request deadline. The worker replies
573
+ * with a status it got in time when the deadline ends its body read, and that reply needs a
574
+ * message hop.
575
+ */
576
+ export declare const WORKER_REPLY_GRACE_MS = 1000;
577
+ /** Longest the deferred logger waits for idle time before it builds its records. */
505
578
  export declare const DEFER_IDLE_TIMEOUT_MS = 1000;
506
- /** Maximum pending payload references of one runtime. A full queue builds its records first. */
579
+ /** Maximum pending payload references per runtime. A full queue builds its records first. */
507
580
  export declare const DEFER_QUEUE_LIMIT = 1000;
508
- /** Default minimum duration of a slow resource event, in milliseconds. */
581
+ /** Default minimum duration for a slow resource event, in milliseconds. */
509
582
  export declare const RESOURCE_SLOW_MS = 1000;
510
583
  /** Response header with server duration entries. */
511
584
  export declare const SERVER_TIMING_HEADER = "Server-Timing";
512
585
  /** Maximum Server-Timing header length and entry count. */
513
586
  export declare const SERVER_TIMING_MAX_CHARS = 4096;
514
587
  export declare const SERVER_TIMING_MAX_ENTRIES = 32;
515
- /** Capture switches that a remote rule can change. Privacy controls stay local. */
588
+ /** Capture switches a remote rule can change. Privacy controls stay local. */
516
589
  export declare const REMOTE_CAPTURE_FLAGS: readonly ["errors", "rejections", "resourceErrors", "fetch", "xhr", "httpMetrics", "navigation", "webVitals", "longFrames", "interactions", "console", "webSocket", "uncleanExit", "userTiming", "serverTiming", "reports", "resourceTiming", "lifecycle"];
517
590
  /** Default `service.name` when a consumer sets none. */
518
591
  export declare const UNKNOWN_SERVICE_NAME = "unknown-service";
@@ -520,20 +593,15 @@ export declare const UNKNOWN_SERVICE_NAME = "unknown-service";
520
593
  export declare const SAMPLING_RATE_MIN = 0;
521
594
  /** Highest sampling rate (keep everything). */
522
595
  export declare const SAMPLING_RATE_MAX = 1;
523
- /**
524
- * Fallback for an invalid sampling rate (keep everything).
525
- * @see {@link SAMPLING_RATE_MAX}
526
- */
527
- export declare const SAMPLING_RATE_FALLBACK = 1;
528
- /** Version of the remote sampling rules that the library accepts. */
596
+ /** The remote sampling rules version this library accepts. */
529
597
  export declare const REMOTE_SAMPLING_VERSION = 1;
530
598
  /** Maximum length of the sampling header, in characters. */
531
599
  export declare const REMOTE_SAMPLING_MAX_CHARS = 4096;
532
- /** Maximum time that remote sampling rules stay in force, in milliseconds. */
600
+ /** Longest that remote sampling rules stay in effect, in milliseconds. */
533
601
  export declare const REMOTE_SAMPLING_MAX_TTL_MS: number;
534
602
  /** Maximum namespace rates in one set of remote sampling rules. */
535
603
  export declare const REMOTE_SAMPLING_MAX_RATES = 100;
536
- /** Time between two requests of a forwarder for the remote sampling rules, in milliseconds. */
604
+ /** How often a forwarder asks for the remote sampling rules, in milliseconds. */
537
605
  export declare const REMOTE_SAMPLING_POLL_MS = 30000;
538
606
  /**
539
607
  * Config keys with no default, excluded from `DEFAULT_CONFIG`.
@@ -544,29 +612,29 @@ export declare const UNDEFAULTED_CONFIG_KEYS: readonly ["contextProvider", "reda
544
612
  * Nested config section keys.
545
613
  * @see {@link ResolvedConfig}
546
614
  */
547
- export declare const CONFIG_SECTIONS: readonly ["capturePolicy", "metadata", "persistence", "diagnostics", "correlation", "metrics", "buffering", "delivery", "loggerCache", "securityContext", "sampling", "bus", "journey", "batching", "retention", "limits", "capture", "debugBuffer"];
615
+ export declare const CONFIG_SECTIONS: readonly ["captureLimits", "metadata", "storage", "diagnostics", "correlation", "metrics", "buffering", "delivery", "loggerCache", "securityContext", "sampling", "bus", "journey", "batching", "retention", "limits", "capture", "debugBuffer", "profiler", "replay"];
548
616
  /**
549
617
  * Section keys with no default, excluded from their section of `DEFAULT_CONFIG`.
550
618
  * @see {@link UNDEFAULTED_CONFIG_KEYS}
551
619
  */
552
620
  export declare const UNDEFAULTED_SECTION_KEYS: Record<(typeof CONFIG_SECTIONS)[number], string[]>;
553
- /** Console mirroring level used when a consumer passes `console: true`. */
621
+ /** Console output level used when a consumer passes `consoleOutput: true`. */
554
622
  export declare const CONSOLE_DEFAULT_LEVEL: LogLevel;
555
623
  /** Max time a partial log batch waits before the pipeline sends it, in milliseconds. */
556
624
  export declare const LOG_FLUSH_INTERVAL_MS = 2000;
557
625
  /** Max records per log batch. At this count, the pipeline sends the batch early. */
558
626
  export declare const LOG_BATCH_SIZE = 100;
559
627
  /**
560
- * Max time a partial metric batch waits before the pipeline sends it, in milliseconds.
561
- * Metric batches wait longer than log batches. Metrics have a higher volume, and no
562
- * caller waits for them.
628
+ * Default interval of the counter, histogram and profiler points, in milliseconds. A partial
629
+ * metric batch waits this long too, longer than a log batch, because metrics have a higher
630
+ * volume and no caller is waiting for them.
563
631
  */
564
- export declare const METRIC_FLUSH_INTERVAL_MS = 10000;
632
+ export declare const METRIC_INTERVAL_MS = 10000;
565
633
  /** Max records per metric batch. At this count, the pipeline sends the batch early. */
566
634
  export declare const METRIC_BATCH_SIZE = 500;
567
635
  /** Max concurrent ingest requests, across both streams. */
568
636
  export declare const MAX_CONCURRENT_REQUESTS = 2;
569
- /** Max time for one ingest request, in milliseconds. Then the transport aborts and retries it. */
637
+ /** Max time for one ingest request, in milliseconds. The transport then aborts and retries it. */
570
638
  export declare const REQUEST_TIMEOUT_MS = 15000;
571
639
  /** Min payload size to compress, in bytes. */
572
640
  export declare const COMPRESSION_THRESHOLD_BYTES = 1024;
@@ -575,17 +643,24 @@ export declare const STORAGE_DB_NAME = "UiObservability";
575
643
  /** Capacity and retention thresholds every storage adapter enforces. */
576
644
  export declare const STORAGE_LIMITS: StorageLimits;
577
645
  /**
578
- * Max time for one storage call, in milliseconds. Then the library treats the call as failed.
579
- * A call that does not settle keeps a dispatch slot or the drain flag.
646
+ * Max time for one storage call, in milliseconds. After that the call counts as failed, because
647
+ * a call that never settles would hold on to a dispatch slot or the drain flag.
580
648
  */
581
649
  export declare const STORAGE_DEADLINE_MS = 10000;
582
- /** First backoff step, in milliseconds. Each attempt doubles it. */
650
+ /** Default wait of flush() and of a rotation's flush, in milliseconds. */
651
+ export declare const FLUSH_TIMEOUT_MS = 5000;
652
+ /**
653
+ * Longest wait of flush() and of a rotation's flush, in milliseconds. A browser timer fires at
654
+ * once for a delay above 2^31 - 1 ms, so the wait has a ceiling.
655
+ */
656
+ export declare const FLUSH_TIMEOUT_MAX_MS = 600000;
657
+ /** First backoff step, in milliseconds. Doubles with every attempt. */
583
658
  export declare const RETRY_BASE_DELAY_MS = 2000;
584
659
  /** Backoff ceiling, in milliseconds. */
585
660
  export declare const RETRY_MAX_DELAY_MS = 60000;
586
661
  /** How often to check for stored work when nothing has failed recently, in milliseconds. */
587
662
  export declare const RETRY_IDLE_DELAY_MS = 30000;
588
- /** Max time a journey stays open, in milliseconds. Then the library treats it as abandoned. */
663
+ /** Max time a journey stays open, in milliseconds. After that it counts as abandoned. */
589
664
  export declare const JOURNEY_MAX_AGE_MS: number;
590
665
  /** True if the journey ends for all contexts when the owning context closes. */
591
666
  export declare const JOURNEY_END_ON_OWNER_CLOSE = false;
@@ -597,25 +672,49 @@ export declare const BUS_CHANNEL_NAME = "ui_observability_control";
597
672
  export declare const BUS_HANDSHAKE_TIMEOUT_MS = 1500;
598
673
  /** Handshake attempts allowed before a cross-origin forwarder promotes itself to sender. */
599
674
  export declare const BUS_MAX_HANDSHAKE_ATTEMPTS = 3;
600
- /** Max records that are not actions in one hold buffer. A full buffer drops the oldest. */
675
+ /**
676
+ * Max named sources, for example OpenFin identities, whose message rate the bus tracks at once.
677
+ * A new source past it is refused, so a flood of fake names can't grow the map without end.
678
+ */
679
+ export declare const BUS_MAX_TRACKED_SOURCES = 256;
680
+ /**
681
+ * Max flush requests from other contexts that wait for the next flush. A request past it gets
682
+ * no answer, so a flood of requests can't grow the list without end.
683
+ */
684
+ export declare const BUS_MAX_FLUSH_REQUESTS = 100;
685
+ /** Max flush requests of one source that wait, so one frame can't fill the whole list. */
686
+ export declare const BUS_MAX_FLUSH_REQUESTS_PER_SOURCE = 4;
687
+ /**
688
+ * Min time between the starts of two flushes that the bus runs for other contexts, in
689
+ * milliseconds. A request in the gap joins the next one, so a flood can't flush without a pause.
690
+ */
691
+ export declare const BUS_FLUSH_GAP_MS = 1000;
692
+ /**
693
+ * Share of a forwarder's time left that it gives its sender in a flush request. The rest is for
694
+ * the answer, so the caller's wait outlasts the callee's deadline at each hop of a chain.
695
+ */
696
+ export declare const FLUSH_REQUEST_SHARE = 0.9;
697
+ /** Default of buffering.maxHeldRecords, the cap on non-action records in one hold buffer. */
601
698
  export declare const BUS_MAX_BOOT_BUFFER_RECORDS = 500;
602
- /** Max action records in one hold buffer. Actions have their own cap. A log storm cannot push one out. */
699
+ /** Max action records in one hold buffer. Their own cap means a log storm can't push one out. */
603
700
  export declare const BUS_MAX_BOOT_BUFFER_ACTIONS = 2000;
604
- /** Max different values in each list of an onDrop summary. */
701
+ /**
702
+ * Records of each kind that a full hold buffer never drops, counted from the first one. The
703
+ * first error of a failed startup is usually the cause, so it has to outlive the storm.
704
+ */
705
+ export declare const HOLD_BUFFER_HEAD_RECORDS = 100;
706
+ /** Max distinct values in each list of an onDrop summary. */
605
707
  export declare const DROP_SUMMARY_MAX_ITEMS = 20;
606
708
  /**
607
- * Max characters of an untrusted message type in a diagnostic detail. The sender sets the text.
608
- * The longest BUS_TYPE value has 41 characters. Each valid type then fits.
709
+ * Max characters of an untrusted message type in a diagnostic detail, since the sender controls
710
+ * that text. The longest BUS_TYPE value is 41 characters, so every valid type fits.
609
711
  */
610
712
  export declare const BUS_TYPE_DETAIL_MAX_CHARS = 48;
611
713
  /** Breadcrumbs kept as context for the next error. */
612
714
  export declare const MAX_BREADCRUMBS = 50;
613
- /**
614
- * Time window in which the library counts identical errors but does not send them again,
615
- * in milliseconds.
616
- */
715
+ /** How long identical errors are counted without being sent again, in milliseconds. */
617
716
  export declare const ERROR_DEDUPE_MS = 5000;
618
- /** Size caps for every record. The library applies them after sanitize and after redact. */
717
+ /** Size caps for every record, applied after sanitize and after redact. */
619
718
  export declare const RECORD_LIMITS: {
620
719
  maxBodyChars: number;
621
720
  maxAttributeChars: number;
@@ -627,9 +726,25 @@ export declare const RECORD_LIMITS: {
627
726
  maxRecordBytes: number;
628
727
  };
629
728
  /**
630
- * Default runtime config before the consumer calls `configure()`. It excludes `serializer`.
631
- * `resolveConfig` supplies that default to prevent a circular import.
632
- * It comes after the constants that it reads. A const cannot be read before its line.
729
+ * Routing settings a rotation resets when the update leaves them out. The rotation also spreads
730
+ * this into its base, where undefined means no hook, so an undefined key in the update resets too.
731
+ */
732
+ export declare const ROUTING_RESET: {
733
+ readonly endpoint: null;
734
+ readonly metricsEndpoint: null;
735
+ readonly tracesEndpoint: null;
736
+ readonly headers: undefined;
737
+ readonly credentials: "omit";
738
+ readonly transport: undefined;
739
+ readonly transportOnExit: undefined;
740
+ readonly transportWorker: undefined;
741
+ };
742
+ /** Routing settings that configure() can't change while isolation is on. */
743
+ export declare const ROUTING_KEYS: (keyof typeof ROUTING_RESET)[];
744
+ /**
745
+ * The default runtime config, before the consumer calls `configure()`. `serializer` is left
746
+ * out, because `resolveConfig` supplies that default to avoid a circular import.
747
+ * This sits below the constants it reads, since a const can't be read before its own line.
633
748
  * @see {@link ResolvedConfig}
634
749
  * @see {@link UNDEFAULTED_CONFIG_KEYS}
635
750
  */