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