@utk09/ui-observability 0.12.0 → 1.1.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 (523) hide show
  1. package/CHANGELOG.md +280 -10
  2. package/README.md +70 -839
  3. package/dist/{batch-BjQUwjA6.js → batch-D3NHhF9L.js} +4 -4
  4. package/dist/{batch-BjQUwjA6.js.map → batch-D3NHhF9L.js.map} +1 -1
  5. package/dist/{batch-D5LlU4Q9.cjs → batch-DnYRJqhU.cjs} +2 -2
  6. package/dist/{batch-D5LlU4Q9.cjs.map → batch-DnYRJqhU.cjs.map} +1 -1
  7. package/dist/bus/bus.d.cts +355 -0
  8. package/dist/bus/bus.d.ts +86 -12
  9. package/dist/bus/links.d.cts +132 -0
  10. package/dist/bus/links.d.ts +18 -3
  11. package/dist/bus/validation.d.cts +16 -0
  12. package/dist/bus/validation.d.ts +10 -1
  13. package/dist/bus-B__467mL.cjs +2 -0
  14. package/dist/bus-B__467mL.cjs.map +1 -0
  15. package/dist/bus-dw7T92sO.js +788 -0
  16. package/dist/bus-dw7T92sO.js.map +1 -0
  17. package/dist/capture/console.d.cts +37 -0
  18. package/dist/capture/console.d.ts +1 -1
  19. package/dist/capture/errors.d.cts +32 -0
  20. package/dist/capture/errors.d.ts +1 -1
  21. package/dist/capture/interactions.d.cts +80 -0
  22. package/dist/capture/interactions.d.ts +36 -4
  23. package/dist/capture/lifecycle.d.cts +20 -0
  24. package/dist/capture/lifecycle.d.ts +1 -1
  25. package/dist/capture/long-frames.d.cts +31 -0
  26. package/dist/capture/long-frames.d.ts +1 -1
  27. package/dist/capture/network.d.cts +57 -0
  28. package/dist/capture/network.d.ts +1 -1
  29. package/dist/capture/observed-windows.d.cts +51 -0
  30. package/dist/capture/observed-windows.d.ts +51 -0
  31. package/dist/capture/profiler-frames.d.cts +44 -0
  32. package/dist/capture/profiler-frames.d.ts +1 -1
  33. package/dist/capture/replay-buffer.d.cts +45 -0
  34. package/dist/capture/replay-buffer.d.ts +9 -10
  35. package/dist/capture/replay-upload.d.cts +79 -0
  36. package/dist/capture/replay-upload.d.ts +7 -2
  37. package/dist/capture/replay.d.cts +114 -0
  38. package/dist/capture/replay.d.ts +1 -1
  39. package/dist/capture/reports.d.cts +17 -0
  40. package/dist/capture/reports.d.ts +1 -1
  41. package/dist/capture/resource-timing.d.cts +14 -0
  42. package/dist/capture/resource-timing.d.ts +1 -1
  43. package/dist/capture/server-timing.d.cts +19 -0
  44. package/dist/capture/storm.d.cts +13 -0
  45. package/dist/capture/storm.d.ts +5 -5
  46. package/dist/capture/types.d.cts +128 -0
  47. package/dist/capture/types.d.ts +10 -9
  48. package/dist/capture/unclean-exit.d.cts +31 -0
  49. package/dist/capture/unclean-exit.d.ts +1 -1
  50. package/dist/capture/user-timing.d.cts +22 -0
  51. package/dist/capture/user-timing.d.ts +2 -2
  52. package/dist/capture/web-socket.d.cts +40 -0
  53. package/dist/capture/web-socket.d.ts +3 -3
  54. package/dist/capture/web-vitals.d.cts +40 -0
  55. package/dist/capture/web-vitals.d.ts +1 -1
  56. package/dist/{compression-lD9abCcO.cjs → compression-C0hUHKR-.cjs} +2 -2
  57. package/dist/{compression-lD9abCcO.cjs.map → compression-C0hUHKR-.cjs.map} +1 -1
  58. package/dist/{compression-AJJCMBOa.js → compression-SHPAvS4U.js} +2 -2
  59. package/dist/{compression-AJJCMBOa.js.map → compression-SHPAvS4U.js.map} +1 -1
  60. package/dist/config-CSNcS7OZ.js +558 -0
  61. package/dist/config-CSNcS7OZ.js.map +1 -0
  62. package/dist/config-CybPP5VM.cjs +2 -0
  63. package/dist/config-CybPP5VM.cjs.map +1 -0
  64. package/dist/console-BsM-fSCQ.js +81 -0
  65. package/dist/console-BsM-fSCQ.js.map +1 -0
  66. package/dist/console-Dkxs6IVQ.cjs +2 -0
  67. package/dist/console-Dkxs6IVQ.cjs.map +1 -0
  68. package/dist/constants-BwJDXzj6.js +357 -0
  69. package/dist/constants-BwJDXzj6.js.map +1 -0
  70. package/dist/constants-CtF52hIV.cjs +2 -0
  71. package/dist/constants-CtF52hIV.cjs.map +1 -0
  72. package/dist/constants.d.cts +763 -0
  73. package/dist/constants.d.ts +100 -20
  74. package/dist/core/breadcrumbs.d.cts +54 -0
  75. package/dist/core/breadcrumbs.d.ts +5 -0
  76. package/dist/core/config.d.cts +45 -0
  77. package/dist/core/config.d.ts +30 -2
  78. package/dist/core/context.d.cts +24 -0
  79. package/dist/core/context.d.ts +3 -8
  80. package/dist/core/debug-buffer.d.cts +34 -0
  81. package/dist/core/debug-buffer.d.ts +3 -3
  82. package/dist/core/debug-bundle.d.cts +12 -0
  83. package/dist/core/debug-bundle.d.ts +3 -3
  84. package/dist/core/deferred.d.cts +7 -0
  85. package/dist/core/deferred.d.ts +2 -2
  86. package/dist/core/diagnostics.d.cts +86 -0
  87. package/dist/core/diagnostics.d.ts +1 -1
  88. package/dist/core/drops.d.cts +39 -0
  89. package/dist/core/drops.d.ts +16 -6
  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 +7 -7
  94. package/dist/core/logger.d.cts +141 -0
  95. package/dist/core/logger.d.ts +23 -30
  96. package/dist/core/measure.d.cts +30 -0
  97. package/dist/core/measure.d.ts +14 -3
  98. package/dist/core/meter.d.cts +78 -0
  99. package/dist/core/meter.d.ts +14 -8
  100. package/dist/core/pipeline.d.cts +227 -0
  101. package/dist/core/pipeline.d.ts +73 -10
  102. package/dist/core/profile-buckets.d.cts +31 -0
  103. package/dist/core/profiler.d.cts +218 -0
  104. package/dist/core/profiler.d.ts +2 -2
  105. package/dist/core/record.d.cts +190 -0
  106. package/dist/core/record.d.ts +44 -12
  107. package/dist/core/remote-rules.d.cts +17 -0
  108. package/dist/core/remote-rules.d.ts +3 -3
  109. package/dist/core/remote-sampling.d.cts +74 -0
  110. package/dist/core/remote-sampling.d.ts +3 -3
  111. package/dist/core/rotation.d.cts +99 -0
  112. package/dist/core/rotation.d.ts +99 -0
  113. package/dist/core/runtime.d.cts +774 -0
  114. package/dist/core/runtime.d.ts +254 -70
  115. package/dist/core/sampling.d.cts +86 -0
  116. package/dist/core/sampling.d.ts +5 -5
  117. package/dist/core/sender.d.cts +161 -0
  118. package/dist/core/sender.d.ts +59 -15
  119. package/dist/core/spans.d.cts +39 -0
  120. package/dist/core/spans.d.ts +1 -1
  121. package/dist/debug-bundle-B2v6Cym-.cjs +2 -0
  122. package/dist/debug-bundle-B2v6Cym-.cjs.map +1 -0
  123. package/dist/debug-bundle-Cs_YWzTa.js +35 -0
  124. package/dist/debug-bundle-Cs_YWzTa.js.map +1 -0
  125. package/dist/defineProperty-X1c4tIPD.cjs +1 -0
  126. package/dist/defineProperty-s2S8BXUc.js +35 -0
  127. package/dist/doctor.cjs +1 -1
  128. package/dist/doctor.cjs.map +1 -1
  129. package/dist/doctor.d.cts +36 -0
  130. package/dist/doctor.d.ts +5 -2
  131. package/dist/doctor.js +119 -87
  132. package/dist/doctor.js.map +1 -1
  133. package/dist/errors-DP2RUm4V.cjs +3 -0
  134. package/dist/errors-DP2RUm4V.cjs.map +1 -0
  135. package/dist/errors-Q3Ng1ciC.js +86 -0
  136. package/dist/errors-Q3Ng1ciC.js.map +1 -0
  137. package/dist/factory-DV17sm2p.js +404 -0
  138. package/dist/factory-DV17sm2p.js.map +1 -0
  139. package/dist/factory-K8O6gpux.cjs +2 -0
  140. package/dist/factory-K8O6gpux.cjs.map +1 -0
  141. package/dist/guards-BlYGRK4l.js +10 -0
  142. package/dist/guards-BlYGRK4l.js.map +1 -0
  143. package/dist/guards-EjG3ahFp.cjs +2 -0
  144. package/dist/guards-EjG3ahFp.cjs.map +1 -0
  145. package/dist/{identity-BrQp_5J5.js → identity-BgtHyY4u.js} +33 -26
  146. package/dist/identity-BgtHyY4u.js.map +1 -0
  147. package/dist/identity-CvuyqZk7.cjs +2 -0
  148. package/dist/identity-CvuyqZk7.cjs.map +1 -0
  149. package/dist/index.cjs +1 -1
  150. package/dist/index.cjs.map +1 -1
  151. package/dist/index.d.cts +301 -0
  152. package/dist/index.d.ts +90 -98
  153. package/dist/index.js +1253 -1555
  154. package/dist/index.js.map +1 -1
  155. package/dist/indexeddb-storage-D4KVcqdD.cjs +2 -0
  156. package/dist/indexeddb-storage-D4KVcqdD.cjs.map +1 -0
  157. package/dist/{indexeddb-storage-DLXQzAGh.js → indexeddb-storage-e-13ZLWm.js} +61 -57
  158. package/dist/indexeddb-storage-e-13ZLWm.js.map +1 -0
  159. package/dist/interactions-Byxf1C82.js +207 -0
  160. package/dist/interactions-Byxf1C82.js.map +1 -0
  161. package/dist/interactions-OK85T-Dk.cjs +2 -0
  162. package/dist/interactions-OK85T-Dk.cjs.map +1 -0
  163. package/dist/{journey-35yCMNFo.js → journey-C93FTYcs.js} +46 -49
  164. package/dist/journey-C93FTYcs.js.map +1 -0
  165. package/dist/journey-nMbob3OB.cjs +2 -0
  166. package/dist/journey-nMbob3OB.cjs.map +1 -0
  167. package/dist/{library-console-BFWEuQsl.cjs → library-console-DJUQzcgM.cjs} +2 -2
  168. package/dist/{library-console-BFWEuQsl.cjs.map → library-console-DJUQzcgM.cjs.map} +1 -1
  169. package/dist/{library-console-Dl_Ly6DQ.js → library-console-DklSmucS.js} +2 -2
  170. package/dist/{library-console-Dl_Ly6DQ.js.map → library-console-DklSmucS.js.map} +1 -1
  171. package/dist/{library-request-nI6pvI6I.js → library-request-UGEwOHpf.js} +2 -2
  172. package/dist/{library-request-nI6pvI6I.js.map → library-request-UGEwOHpf.js.map} +1 -1
  173. package/dist/{library-request-Da-CHKzT.cjs → library-request-kY9iTpIF.cjs} +2 -2
  174. package/dist/{library-request-Da-CHKzT.cjs.map → library-request-kY9iTpIF.cjs.map} +1 -1
  175. package/dist/{lifecycle-CZ6RRXc6.js → lifecycle-B2PlIuQu.js} +21 -29
  176. package/dist/lifecycle-B2PlIuQu.js.map +1 -0
  177. package/dist/lifecycle-DaMdH_X7.cjs +2 -0
  178. package/dist/lifecycle-DaMdH_X7.cjs.map +1 -0
  179. package/dist/log-record-Bmx6etMh.cjs +2 -0
  180. package/dist/log-record-Bmx6etMh.cjs.map +1 -0
  181. package/dist/{log-record-DIA6McNr.js → log-record-DSt2P-Sr.js} +8 -7
  182. package/dist/log-record-DSt2P-Sr.js.map +1 -0
  183. package/dist/{long-frames-430_85Da.js → long-frames-Bamjs1WV.js} +18 -22
  184. package/dist/long-frames-Bamjs1WV.js.map +1 -0
  185. package/dist/long-frames-lhtONgGt.cjs +2 -0
  186. package/dist/long-frames-lhtONgGt.cjs.map +1 -0
  187. package/dist/models/batch.d.cts +57 -0
  188. package/dist/models/batch.d.ts +2 -2
  189. package/dist/models/bus.d.cts +163 -0
  190. package/dist/models/bus.d.ts +28 -3
  191. package/dist/models/config.d.cts +1555 -0
  192. package/dist/models/config.d.ts +377 -261
  193. package/dist/models/drop.d.cts +54 -0
  194. package/dist/models/drop.d.ts +16 -3
  195. package/dist/models/health.d.cts +148 -0
  196. package/dist/models/health.d.ts +108 -12
  197. package/dist/models/log-record.d.cts +61 -0
  198. package/dist/models/metric.d.cts +139 -0
  199. package/dist/models/metric.d.ts +13 -2
  200. package/dist/models/plugin.d.cts +47 -0
  201. package/dist/models/plugin.d.ts +3 -3
  202. package/dist/models/replay.d.cts +60 -0
  203. package/dist/models/serializer.d.cts +25 -0
  204. package/dist/models/serializer.d.ts +4 -2
  205. package/dist/models/storage.d.cts +95 -0
  206. package/dist/models/storage.d.ts +7 -5
  207. package/dist/network-BCn8Gn47.cjs +2 -0
  208. package/dist/network-BCn8Gn47.cjs.map +1 -0
  209. package/dist/{network-C7SkLf4v.js → network-Cg1L2w2r.js} +57 -57
  210. package/dist/network-Cg1L2w2r.js.map +1 -0
  211. package/dist/observed-windows-B3gJkdql.cjs +2 -0
  212. package/dist/observed-windows-B3gJkdql.cjs.map +1 -0
  213. package/dist/observed-windows-BrwaJNlj.js +64 -0
  214. package/dist/observed-windows-BrwaJNlj.js.map +1 -0
  215. package/dist/{otlp-2MCrC3kd.cjs → otlp-CrAWkQdO.cjs} +2 -2
  216. package/dist/{otlp-2MCrC3kd.cjs.map → otlp-CrAWkQdO.cjs.map} +1 -1
  217. package/dist/{otlp-COq033e3.js → otlp-D6dRZyB8.js} +9 -9
  218. package/dist/{otlp-COq033e3.js.map → otlp-D6dRZyB8.js.map} +1 -1
  219. package/dist/{platform-CVewe4wQ.js → platform-8DLhjddo.js} +9 -9
  220. package/dist/{platform-CVewe4wQ.js.map → platform-8DLhjddo.js.map} +1 -1
  221. package/dist/{platform-12uR7kBQ.cjs → platform-BqRc-7RO.cjs} +2 -2
  222. package/dist/{platform-12uR7kBQ.cjs.map → platform-BqRc-7RO.cjs.map} +1 -1
  223. package/dist/{profiler-BVWIOgnq.js → profiler-BaXSqCfz.js} +78 -96
  224. package/dist/profiler-BaXSqCfz.js.map +1 -0
  225. package/dist/profiler-BvWW2kNM.cjs +2 -0
  226. package/dist/profiler-BvWW2kNM.cjs.map +1 -0
  227. package/dist/{profiler-frames-CLXlT_xL.js → profiler-frames-C4ySHN0X.js} +21 -29
  228. package/dist/profiler-frames-C4ySHN0X.js.map +1 -0
  229. package/dist/profiler-frames-DeaBiB-5.cjs +2 -0
  230. package/dist/profiler-frames-DeaBiB-5.cjs.map +1 -0
  231. package/dist/remote-rules-D7L6D_D2.cjs +2 -0
  232. package/dist/remote-rules-D7L6D_D2.cjs.map +1 -0
  233. package/dist/remote-rules-Dq9xe7Qn.js +95 -0
  234. package/dist/remote-rules-Dq9xe7Qn.js.map +1 -0
  235. package/dist/replay-B0M8kWz_.js +310 -0
  236. package/dist/replay-B0M8kWz_.js.map +1 -0
  237. package/dist/replay-QOFBpAXh.cjs +2 -0
  238. package/dist/replay-QOFBpAXh.cjs.map +1 -0
  239. package/dist/{reports-BuXekPOS.js → reports--8APRLa-.js} +25 -30
  240. package/dist/reports--8APRLa-.js.map +1 -0
  241. package/dist/reports-ojuMKGO7.cjs +2 -0
  242. package/dist/reports-ojuMKGO7.cjs.map +1 -0
  243. package/dist/{resource-timing-CXGHwFRD.js → resource-timing-BzR05rE-.js} +20 -23
  244. package/dist/resource-timing-BzR05rE-.js.map +1 -0
  245. package/dist/resource-timing-pAG3ZhB5.cjs +2 -0
  246. package/dist/resource-timing-pAG3ZhB5.cjs.map +1 -0
  247. package/dist/response-body-BWvwKQ2p.js +331 -0
  248. package/dist/response-body-BWvwKQ2p.js.map +1 -0
  249. package/dist/response-body-CKEJ5itk.cjs +3 -0
  250. package/dist/response-body-CKEJ5itk.cjs.map +1 -0
  251. package/dist/rotation-BylN1B9e.js +93 -0
  252. package/dist/rotation-BylN1B9e.js.map +1 -0
  253. package/dist/rotation-E2eKClIs.cjs +2 -0
  254. package/dist/rotation-E2eKClIs.cjs.map +1 -0
  255. package/dist/sampling-B46LW0cy.cjs +2 -0
  256. package/dist/sampling-B46LW0cy.cjs.map +1 -0
  257. package/dist/sampling-zXA6r-Nw.js +63 -0
  258. package/dist/sampling-zXA6r-Nw.js.map +1 -0
  259. package/dist/{sanitize-CNmsD9r3.js → sanitize-DjnR6RXR.js} +2 -2
  260. package/dist/sanitize-DjnR6RXR.js.map +1 -0
  261. package/dist/{sanitize-ChLn97Ch.cjs → sanitize-Qj6LuZqp.cjs} +2 -2
  262. package/dist/sanitize-Qj6LuZqp.cjs.map +1 -0
  263. package/dist/sender-Bdp-TAS4.js +979 -0
  264. package/dist/sender-Bdp-TAS4.js.map +1 -0
  265. package/dist/sender-DR7ZycZY.cjs +2 -0
  266. package/dist/sender-DR7ZycZY.cjs.map +1 -0
  267. package/dist/storage/context-storage.d.cts +90 -0
  268. package/dist/storage/context-storage.d.ts +5 -5
  269. package/dist/storage/emergency-queue.d.cts +27 -0
  270. package/dist/storage/emergency-queue.d.ts +4 -4
  271. package/dist/storage/eviction.d.cts +40 -0
  272. package/dist/storage/eviction.d.ts +1 -1
  273. package/dist/storage/factory.d.cts +21 -0
  274. package/dist/storage/factory.d.ts +3 -3
  275. package/dist/storage/gap.d.cts +20 -0
  276. package/dist/storage/gap.d.ts +3 -3
  277. package/dist/storage/idb-driver.d.cts +93 -0
  278. package/dist/storage/idb-driver.d.ts +1 -1
  279. package/dist/storage/indexeddb-storage.d.cts +97 -0
  280. package/dist/storage/indexeddb-storage.d.ts +12 -4
  281. package/dist/storage/keys.d.cts +17 -0
  282. package/dist/storage/keys.d.ts +2 -2
  283. package/dist/storage/local-storage.d.cts +139 -0
  284. package/dist/storage/local-storage.d.ts +11 -4
  285. package/dist/storage/memory-storage.d.cts +73 -0
  286. package/dist/storage/memory-storage.d.ts +4 -3
  287. package/dist/storage/persistence.d.cts +8 -0
  288. package/dist/storage/persistence.d.ts +2 -2
  289. package/dist/storage/stored-context.d.cts +34 -0
  290. package/dist/storage/stored-context.d.ts +34 -0
  291. package/dist/stored-context-BOu54M8Y.cjs +2 -0
  292. package/dist/stored-context-BOu54M8Y.cjs.map +1 -0
  293. package/dist/stored-context-CSttrAsw.js +51 -0
  294. package/dist/stored-context-CSttrAsw.js.map +1 -0
  295. package/dist/storm-BHgI12iS.cjs +2 -0
  296. package/dist/storm-BHgI12iS.cjs.map +1 -0
  297. package/dist/storm-DKlpv0FL.js +9 -0
  298. package/dist/storm-DKlpv0FL.js.map +1 -0
  299. package/dist/transport/compression.d.cts +7 -0
  300. package/dist/transport/custom-transport.d.cts +22 -0
  301. package/dist/transport/custom-transport.d.ts +6 -5
  302. package/dist/transport/errors.d.cts +31 -0
  303. package/dist/transport/exit-flush.d.cts +135 -0
  304. package/dist/transport/exit-flush.d.ts +30 -13
  305. package/dist/transport/headers.d.cts +8 -0
  306. package/dist/transport/headers.d.ts +2 -2
  307. package/dist/transport/http-transport.d.cts +116 -0
  308. package/dist/transport/http-transport.d.ts +20 -8
  309. package/dist/transport/memory-transport.d.cts +30 -0
  310. package/dist/transport/memory-transport.d.ts +2 -2
  311. package/dist/transport/response-body.d.cts +49 -0
  312. package/dist/transport/response-body.d.ts +49 -0
  313. package/dist/transport/retry-engine.d.cts +129 -0
  314. package/dist/transport/retry-engine.d.ts +27 -9
  315. package/dist/transport/serializers/ecs.d.cts +3 -0
  316. package/dist/transport/serializers/ecs.d.ts +1 -1
  317. package/dist/transport/serializers/otlp-metrics.d.cts +3 -0
  318. package/dist/transport/serializers/otlp-metrics.d.ts +1 -1
  319. package/dist/transport/serializers/otlp-traces.d.cts +3 -0
  320. package/dist/transport/serializers/otlp-traces.d.ts +1 -1
  321. package/dist/transport/serializers/otlp.d.cts +47 -0
  322. package/dist/transport/serializers/otlp.d.ts +2 -2
  323. package/dist/transport/serializers/select.d.cts +38 -0
  324. package/dist/transport/serializers/select.d.ts +5 -5
  325. package/dist/transport/status-transport.d.cts +129 -0
  326. package/dist/transport/status-transport.d.ts +25 -8
  327. package/dist/transport/worker-client.d.cts +23 -0
  328. package/dist/transport/worker-client.d.ts +12 -3
  329. package/dist/transport/worker-entry.d.cts +5 -0
  330. package/dist/transport/worker-entry.d.ts +1 -1
  331. package/dist/transport/worker-protocol.d.cts +38 -0
  332. package/dist/transport/worker-protocol.d.ts +4 -2
  333. package/dist/transport/worker-server.d.cts +3 -0
  334. package/dist/transport/worker-server.d.ts +1 -1
  335. package/dist/transport/worker-transport.d.cts +10 -0
  336. package/dist/transport/worker-transport.d.ts +5 -4
  337. package/dist/types-BAerHgCq.js.map +1 -1
  338. package/dist/types-C7WNpnG1.cjs.map +1 -1
  339. package/dist/unclean-exit-BYPYYkQ5.cjs +2 -0
  340. package/dist/unclean-exit-BYPYYkQ5.cjs.map +1 -0
  341. package/dist/{unclean-exit-Cob_jyTv.js → unclean-exit-BcOB8A2e.js} +23 -30
  342. package/dist/unclean-exit-BcOB8A2e.js.map +1 -0
  343. package/dist/{user-timing-DgHubxCI.js → user-timing-4KIJ74Vi.js} +15 -17
  344. package/dist/user-timing-4KIJ74Vi.js.map +1 -0
  345. package/dist/user-timing-BsU2wQKE.cjs +2 -0
  346. package/dist/user-timing-BsU2wQKE.cjs.map +1 -0
  347. package/dist/utils/console.d.cts +36 -0
  348. package/dist/utils/console.d.ts +4 -4
  349. package/dist/utils/deadline.d.cts +14 -0
  350. package/dist/utils/error-like.d.cts +25 -0
  351. package/dist/utils/fixed-window.d.cts +25 -0
  352. package/dist/utils/global-scope.d.cts +20 -0
  353. package/dist/utils/guards.d.cts +14 -0
  354. package/dist/utils/guards.d.ts +8 -0
  355. package/dist/utils/identity.d.cts +114 -0
  356. package/dist/utils/identity.d.ts +8 -4
  357. package/dist/utils/library-console.d.cts +11 -0
  358. package/dist/utils/library-request.d.cts +24 -0
  359. package/dist/utils/lock.d.cts +24 -0
  360. package/dist/utils/lock.d.ts +1 -1
  361. package/dist/utils/openfin.d.cts +48 -0
  362. package/dist/utils/patch.d.cts +9 -0
  363. package/dist/utils/platform.d.cts +62 -0
  364. package/dist/utils/platform.d.ts +2 -2
  365. package/dist/utils/sanitize.d.cts +52 -0
  366. package/dist/utils/sanitize.d.ts +1 -1
  367. package/dist/utils/sequence.d.cts +10 -0
  368. package/dist/utils/tracing.d.cts +158 -0
  369. package/dist/utils/tracing.d.ts +11 -4
  370. package/dist/utils/unref.d.cts +9 -0
  371. package/dist/web-socket-Cs1ZbmmN.cjs +2 -0
  372. package/dist/{web-socket-DthJuSAg.js.map → web-socket-Cs1ZbmmN.cjs.map} +1 -1
  373. package/dist/{web-socket-DthJuSAg.js → web-socket-Zg0hj1LB.js} +23 -28
  374. package/dist/web-socket-Zg0hj1LB.js.map +1 -0
  375. package/dist/{web-vitals-CsGCWnUr.js → web-vitals-4pWACwaR.js} +15 -21
  376. package/dist/web-vitals-4pWACwaR.js.map +1 -0
  377. package/dist/web-vitals-__X7t4pj.cjs +2 -0
  378. package/dist/web-vitals-__X7t4pj.cjs.map +1 -0
  379. package/dist/{worker-protocol-B0_8rWy5.js → worker-protocol-CYpAbrVl.js} +14 -11
  380. package/dist/worker-protocol-CYpAbrVl.js.map +1 -0
  381. package/dist/worker-protocol-DFYXIFus.cjs +2 -0
  382. package/dist/worker-protocol-DFYXIFus.cjs.map +1 -0
  383. package/dist/worker-server--yGTadTA.cjs +2 -0
  384. package/dist/worker-server--yGTadTA.cjs.map +1 -0
  385. package/dist/worker-server-BokySIII.js +94 -0
  386. package/dist/worker-server-BokySIII.js.map +1 -0
  387. package/dist/worker-transport-BdEvh_-a.cjs +2 -0
  388. package/dist/worker-transport-BdEvh_-a.cjs.map +1 -0
  389. package/dist/worker-transport-JK-Fby9J.js +194 -0
  390. package/dist/worker-transport-JK-Fby9J.js.map +1 -0
  391. package/llms.txt +400 -0
  392. package/package.json +65 -49
  393. package/dist/bus-D_7pd7RN.cjs +0 -2
  394. package/dist/bus-D_7pd7RN.cjs.map +0 -1
  395. package/dist/bus-ecxUNTja.js +0 -660
  396. package/dist/bus-ecxUNTja.js.map +0 -1
  397. package/dist/console-CLz_PvFn.cjs +0 -2
  398. package/dist/console-CLz_PvFn.cjs.map +0 -1
  399. package/dist/console-cwgHKXvM.js +0 -82
  400. package/dist/console-cwgHKXvM.js.map +0 -1
  401. package/dist/constants-Bwl_YtQi.js +0 -349
  402. package/dist/constants-Bwl_YtQi.js.map +0 -1
  403. package/dist/constants-DakMxVB2.cjs +0 -2
  404. package/dist/constants-DakMxVB2.cjs.map +0 -1
  405. package/dist/context-storage-BjzeBSxH.cjs +0 -2
  406. package/dist/context-storage-BjzeBSxH.cjs.map +0 -1
  407. package/dist/context-storage-BzkoHzkQ.js +0 -51
  408. package/dist/context-storage-BzkoHzkQ.js.map +0 -1
  409. package/dist/debug-bundle-BOdYmCeV.js +0 -32
  410. package/dist/debug-bundle-BOdYmCeV.js.map +0 -1
  411. package/dist/debug-bundle-Ex4L_LSP.cjs +0 -2
  412. package/dist/debug-bundle-Ex4L_LSP.cjs.map +0 -1
  413. package/dist/emergency-queue-B9WZxanZ.js +0 -67
  414. package/dist/emergency-queue-B9WZxanZ.js.map +0 -1
  415. package/dist/emergency-queue-HBpL5r3V.cjs +0 -2
  416. package/dist/emergency-queue-HBpL5r3V.cjs.map +0 -1
  417. package/dist/errors-D6bwgJtO.js +0 -92
  418. package/dist/errors-D6bwgJtO.js.map +0 -1
  419. package/dist/errors-DCOCRdSi.cjs +0 -3
  420. package/dist/errors-DCOCRdSi.cjs.map +0 -1
  421. package/dist/factory-DLFDjdLv.cjs +0 -2
  422. package/dist/factory-DLFDjdLv.cjs.map +0 -1
  423. package/dist/factory-e9Qo3K0z.js +0 -276
  424. package/dist/factory-e9Qo3K0z.js.map +0 -1
  425. package/dist/guards-Cidk71ME.js +0 -7
  426. package/dist/guards-Cidk71ME.js.map +0 -1
  427. package/dist/guards-nJ70syPt.cjs +0 -2
  428. package/dist/guards-nJ70syPt.cjs.map +0 -1
  429. package/dist/identity-BlvlgjrU.cjs +0 -2
  430. package/dist/identity-BlvlgjrU.cjs.map +0 -1
  431. package/dist/identity-BrQp_5J5.js.map +0 -1
  432. package/dist/indexeddb-storage-CtLvZH1r.cjs +0 -2
  433. package/dist/indexeddb-storage-CtLvZH1r.cjs.map +0 -1
  434. package/dist/indexeddb-storage-DLXQzAGh.js.map +0 -1
  435. package/dist/interactions-B6z2I4tU.js +0 -119
  436. package/dist/interactions-B6z2I4tU.js.map +0 -1
  437. package/dist/interactions-P6pz08Jn.cjs +0 -2
  438. package/dist/interactions-P6pz08Jn.cjs.map +0 -1
  439. package/dist/journey-35yCMNFo.js.map +0 -1
  440. package/dist/journey-DAGh5h9k.cjs +0 -2
  441. package/dist/journey-DAGh5h9k.cjs.map +0 -1
  442. package/dist/keys-BHhw_0Wh.cjs +0 -2
  443. package/dist/keys-BHhw_0Wh.cjs.map +0 -1
  444. package/dist/keys-BU9j5YqW.js +0 -16
  445. package/dist/keys-BU9j5YqW.js.map +0 -1
  446. package/dist/lifecycle-BGGOcN4N.cjs +0 -2
  447. package/dist/lifecycle-BGGOcN4N.cjs.map +0 -1
  448. package/dist/lifecycle-CZ6RRXc6.js.map +0 -1
  449. package/dist/log-record-D7bA1RPb.cjs +0 -2
  450. package/dist/log-record-D7bA1RPb.cjs.map +0 -1
  451. package/dist/log-record-DIA6McNr.js.map +0 -1
  452. package/dist/long-frames-430_85Da.js.map +0 -1
  453. package/dist/long-frames-Dd8tsi2U.cjs +0 -2
  454. package/dist/long-frames-Dd8tsi2U.cjs.map +0 -1
  455. package/dist/models/stats.d.ts +0 -11
  456. package/dist/network-C7SkLf4v.js.map +0 -1
  457. package/dist/network-pEX3PAJv.cjs +0 -2
  458. package/dist/network-pEX3PAJv.cjs.map +0 -1
  459. package/dist/profiler-BVWIOgnq.js.map +0 -1
  460. package/dist/profiler-eVCknCzS.cjs +0 -2
  461. package/dist/profiler-eVCknCzS.cjs.map +0 -1
  462. package/dist/profiler-frames-CLXlT_xL.js.map +0 -1
  463. package/dist/profiler-frames-Dg2OebB2.cjs +0 -2
  464. package/dist/profiler-frames-Dg2OebB2.cjs.map +0 -1
  465. package/dist/remote-rules-BJGDJGwA.js +0 -98
  466. package/dist/remote-rules-BJGDJGwA.js.map +0 -1
  467. package/dist/remote-rules-CJD3ToVk.cjs +0 -2
  468. package/dist/remote-rules-CJD3ToVk.cjs.map +0 -1
  469. package/dist/replay-0zAJv9T3.js +0 -338
  470. package/dist/replay-0zAJv9T3.js.map +0 -1
  471. package/dist/replay-DomJpXqW.cjs +0 -2
  472. package/dist/replay-DomJpXqW.cjs.map +0 -1
  473. package/dist/reports-BsbqmP8h.cjs +0 -2
  474. package/dist/reports-BsbqmP8h.cjs.map +0 -1
  475. package/dist/reports-BuXekPOS.js.map +0 -1
  476. package/dist/resource-timing-CXGHwFRD.js.map +0 -1
  477. package/dist/resource-timing-DkycFGDa.cjs +0 -2
  478. package/dist/resource-timing-DkycFGDa.cjs.map +0 -1
  479. package/dist/sampling-Dd0wllyq.cjs +0 -2
  480. package/dist/sampling-Dd0wllyq.cjs.map +0 -1
  481. package/dist/sampling-UUDbi3K0.js +0 -60
  482. package/dist/sampling-UUDbi3K0.js.map +0 -1
  483. package/dist/sanitize-CNmsD9r3.js.map +0 -1
  484. package/dist/sanitize-ChLn97Ch.cjs.map +0 -1
  485. package/dist/select-CTk-K5mG.cjs +0 -3
  486. package/dist/select-CTk-K5mG.cjs.map +0 -1
  487. package/dist/select-DPv_j6wq.js +0 -270
  488. package/dist/select-DPv_j6wq.js.map +0 -1
  489. package/dist/sender-15zEsZpr.js +0 -857
  490. package/dist/sender-15zEsZpr.js.map +0 -1
  491. package/dist/sender-Bfpv9tad.cjs +0 -2
  492. package/dist/sender-Bfpv9tad.cjs.map +0 -1
  493. package/dist/storage-BA9RqRO-.cjs +0 -2
  494. package/dist/storage-BA9RqRO-.cjs.map +0 -1
  495. package/dist/storage-DZwed89z.js +0 -16
  496. package/dist/storage-DZwed89z.js.map +0 -1
  497. package/dist/storm-BTSNTIWI.js +0 -9
  498. package/dist/storm-BTSNTIWI.js.map +0 -1
  499. package/dist/storm-D0_qZOEg.cjs +0 -2
  500. package/dist/storm-D0_qZOEg.cjs.map +0 -1
  501. package/dist/unclean-exit-ClGzrc2A.cjs +0 -2
  502. package/dist/unclean-exit-ClGzrc2A.cjs.map +0 -1
  503. package/dist/unclean-exit-Cob_jyTv.js.map +0 -1
  504. package/dist/user-timing-CdYqx3PF.cjs +0 -2
  505. package/dist/user-timing-CdYqx3PF.cjs.map +0 -1
  506. package/dist/user-timing-DgHubxCI.js.map +0 -1
  507. package/dist/utils/timer.d.ts +0 -19
  508. package/dist/web-socket-BTuvYoJI.cjs +0 -2
  509. package/dist/web-socket-BTuvYoJI.cjs.map +0 -1
  510. package/dist/web-vitals-Ch5BpDmo.cjs +0 -2
  511. package/dist/web-vitals-Ch5BpDmo.cjs.map +0 -1
  512. package/dist/web-vitals-CsGCWnUr.js.map +0 -1
  513. package/dist/worker-protocol-B0_8rWy5.js.map +0 -1
  514. package/dist/worker-protocol-BjzFORfq.cjs +0 -2
  515. package/dist/worker-protocol-BjzFORfq.cjs.map +0 -1
  516. package/dist/worker-server-4en-Lt-3.cjs +0 -2
  517. package/dist/worker-server-4en-Lt-3.cjs.map +0 -1
  518. package/dist/worker-server-Cne9MX9I.js +0 -83
  519. package/dist/worker-server-Cne9MX9I.js.map +0 -1
  520. package/dist/worker-transport-B-GF4Aqn.cjs +0 -2
  521. package/dist/worker-transport-B-GF4Aqn.cjs.map +0 -1
  522. package/dist/worker-transport-C3SjJAEC.js +0 -200
  523. package/dist/worker-transport-C3SjJAEC.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,276 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## [1.1.0] - 2026-11-22
6
+
7
+ A minor release. It has no breaking change. It captures clicks in popout windows, and it finds dead clicks on pages with live data. It gives each popup its own tab id. It also closes gaps in the loss reports of `shutdown()`, and it removes a limit on the signal endpoints.
8
+
9
+ ### Added - v1.1.0
10
+
11
+ - `observeWindow(target)` captures clicks, rage clicks and dead clicks in another window of the page with the same origin, for example a popout. It returns a function that stops the capture. The library does not capture a window from another origin.
12
+ - `capture.interactions.deadClickIgnoreSelector` names the regions that change on their own, for example a price cell. A change or a scroll inside such a region is not an answer to a click. The default is `[data-observability-live]`. `""` turns the filter off.
13
+ - The diagnostic code `bus.journey_denied`. The bus counts it for a journey request from a registered frame or worker without `journey:read`.
14
+ - The `tab` bus message has the optional field `since`. It holds the `performance.timeOrigin` of the document. An older library ignores it.
15
+ - `docs/guides.md` has the section "One Setup for All Specs". It configures the library one time in a Vitest setup file. No spec then needs a mock of the library.
16
+ - The `serializer` reference and the `LogSerializer` JSDoc tell that the library drops a batch that the server refuses with `400`. A custom serializer must keep each record within the limits of the server.
17
+ - `docs/configuration.md` tells that the spans of the library need no OpenTelemetry SDK.
18
+
19
+ ### Changed - v1.1.0
20
+
21
+ - A journey request from a registered frame or worker without `journey:read` does not count `bus.rejected_message` now. Each frame and worker with the default permissions sends one at startup.
22
+ - When the bus finds a duplicated tab id, the newer document makes a new tab id. The older document keeps its id. Before, the document with the larger random context id made a new id, or no document did.
23
+ - A write that keeps the old value of an attribute or a text is not an answer to a click. A batch that sets `name` or `type` and then puts back the old value is not an answer either.
24
+ - A swap of marked elements under one parent is not an answer to a click. A marked element that only appears or only goes away is an answer.
25
+ - Click capture checks the node type of the clicked element, not `instanceof Element`. A click on an element of another window is then recorded.
26
+ - `metricsEndpoint` and `tracesEndpoint` work with each `serializer`. Metric batches and span batches always use OTLP. Before, the `ecs` serializer or a custom serializer turned these endpoints off and reported `config.invalid`.
27
+ - With a custom serializer, the transport worker sends the metric batches and the span batches. The log batches still use the main thread.
28
+ - The package has no `engines` field. An install with `engine-strict` no longer fails on an older Node version. Use Node 22 or later. The tests run on Node 22.22.3.
29
+ - **Development:** `devEngines` in `package.json` sets Node 22.22.3 or later for this repository.
30
+ - **Development:** the workspace accepts the `@emnapi` versions that `oxc-parser` pins for `@napi-rs/wasm-runtime@1.2.7`. `pnpm peers check` passes.
31
+ - **Development:** GitHub CI runs the `verify` steps on the Node floor and on Node 24. It also builds the playgrounds and runs the playground tests, the browser tests and the playground smoke tests.
32
+ - **Development:** the Prettier config prints Markdown tables in compact form, with no column padding.
33
+ - **Development:** `playground/react-custom-backend` is a new example. A React 19 app sends its logs to its own backend through a custom `serializer`. `tools/mock-app-api.mjs` is its mock app API, with a login, prices and orders.
34
+ - **Development:** `playground/react` is now an FX workspace on `dockview-react` 8.9.1. It has a login, a saved layout for each user and tenant, popout windows, panel windows and 11 panels. It calls `observeWindow()` for each popout.
35
+ - **Development:** the replay player in `playground/react/src/replay-player/` replaces the replay spike and the replay viewer. The workspace does not install their rrweb packages now, so it does not declare the `@rrweb/types` peer.
36
+ - **Development:** `tools/mock-ingest-server.mjs` keeps replay segments in a bounded memory store. `GET /v1/replay/recordings` and `GET /v1/replay/recordings/<id>` read them.
37
+ - **Development:** the mock ingest server and the mock app API listen on `127.0.0.1` only. They refuse a `Host` header that is not `localhost` or `127.0.0.1`.
38
+ - **Development:** `tools/mock-app-api.mjs` has `POST /api/refresh` for the token refresh recipe.
39
+ - **Development:** `pnpm run test:playground` runs one Chromium smoke test for each playground app.
40
+ - **Development:** `e2e/observe-window.e2e.ts` checks `observeWindow()` with a real popup in Chromium, Firefox and WebKit.
41
+
42
+ ### Fixed - v1.1.0
43
+
44
+ - A popup that `window.open()` opens gets its own tab id at startup. Before, it kept the tab id that it copied from its opener.
45
+ - React's input writes no longer hide each `ui.dead_click`. React writes `name` and `type` at each render with no net change.
46
+ - With `diagnostics.records`, a diagnostic from the check of the next settings in a rotation goes to the new identity. An example is `config.invalid`. Before, the library dropped that record during the rotation.
47
+ - A `shutdown()` before the end of startup reports each held record to `onDrop` with `load_failed`. Before, with `bus: { mode: "off" }`, the library lost these records with no report.
48
+ - A `shutdown()` after the delivery stack loads, but before the end of startup, sends the startup records. Before, the library lost them with no report.
49
+ - A `shutdown()` during the sender load of a `carry` rotation rejects the rotation. `onDrop` reports the carried records in memory with `security_context`. Before, the rotation resolved, and the library lost the records with no report.
50
+ - A `shutdown({ clearStorage: "context" })` during that load removes the stored batches of the old context. Before, these batches stayed on the device.
51
+ - After a failed load of the delivery stack, `shutdown({ clearStorage })` still removes the stored batches that a `carry` rotation during a pause left.
52
+ - The testing examples in `docs/guides.md` and `llms.txt` call `memory.clear()` after `await shutdown()`. Before, the records that `shutdown()` sent reached the next test.
53
+ - `docs/configuration.md` and the `endpoint` JSDoc tell that a relative `endpoint` works. The library also reports `config.invalid` with the origin that gets the records.
54
+ - `docs/ingest-server.md` tells that the batches for `metricsEndpoint` and `tracesEndpoint` use OTLP with each `serializer`. This includes a `text/plain` exit batch.
55
+ - `docs/delivery-guarantees.md` tells how a `413` splits a batch. It also tells that the library loses an exit batch that gets a `413`, with no `onDrop` report.
56
+ - `docs/configuration.md` tells that an exit batch can hold more than `batching.logBatchSize` records.
57
+ - `docs/runtime-policies.md` tells that a full `payloadMode: "defer"` queue builds its pending calls inside the log call that finds it full.
58
+ - The "Logout on a shared device" recipe uses `clearStorage: "namespace"`. With `"context"`, the parked batches of earlier page loads stay on the device for `retention.maxAgeMs`.
59
+ - `docs/configuration.md` and `docs/threat-model.md` tell that the processors of the sender do not run on a record from a frame or a worker. Only `redact` runs on it again.
60
+ - `docs/threat-model.md` and `docs/production-recipes.md` tell that `shutdown()` removes each `registerFrame()` and `registerWorker()` registration.
61
+ - The "Consent withdrawal" recipe tells that a frame or a worker with its own `endpoint` becomes its own sender when the owner starts no bus.
62
+ - `CHANGELOG.md` has the 1.0.0 section one time. Before, it had that section two times.
63
+ - **Development:** the debug bundle test does not fail now when the random security context id holds "abc".
64
+
65
+ ## [1.0.0] - 2026-11-20
66
+
67
+ The first stable release. It has breaking changes from 0.12.0. Read `docs/migration-v1.md` before you upgrade. Each feature of 1.0.0 is stable. `docs/release-and-support.md` gives the stability rules and the deprecation policy.
68
+
69
+ ### Added - v1.0.0
70
+
71
+ - `gauge(name, options)` returns a gauge. `set(value, attributes?)` keeps the last value for each attribute set. Each interval sends that value as one point. With `metricsEndpoint`, the point is an OTLP gauge.
72
+ - `measure(name, fn, attributes?)` times one function call. A promise result ends the measure when it settles. A throw or a rejection gives the outcome `"error"`. The histogram is `ui.measure.duration` with the attributes `measure.name` and `measure.outcome`.
73
+ - `shutdown(options?)` takes options. The default `pending: "flush"` sends the open interval of the meters and the profiler, and each record in memory. It waits for those requests, then runs the exit flush and stops each request that is still open. The stored batches stay in storage.
74
+ - `shutdown({ pending: "discard" })` sends nothing and runs no exit flush. `onDrop` reports each record in memory with `discarded`.
75
+ - `shutdown({ clearStorage: "context" | "namespace" })` discards. It removes the stored batches, the emergency queue entries, the stored session id, the tab id and the journey. It also works after an earlier `shutdown()`. `clearStorage: null` removes nothing.
76
+ - `flush({ timeoutMs })` and the flush result. The result has `status`, `accepted`, `stored`, `dropped`, `forwarded` and `pending`. Each count is a number of records. `status` is `"complete"`, `"timeout"` or `"inactive"`. `"complete"` means that no record waits. It does not prove delivery.
77
+ - `getHealth().delivery` has `lastFailureAt`, `consecutiveFailures`, `throttledUntil` and `dropped`. A rotation resets the first three. It keeps `dropped` and `lastSendAt`.
78
+ - The `LossReason` `"partially_rejected"`. An OTLP `2xx` answer with `partialSuccess` gives the rejected count to `onDrop`. The library does not send the batch again.
79
+ - The `LossReason` `"disabled"`. It reports a record that a child context forwards during a pause. It also reports the held records when the first `configure()` call sets `enabled: false`. It also reports the records in memory at a `pagehide` or a `shutdown()` during a pause. Each record is reported one time.
80
+ - The `LossReason` `"discarded"`.
81
+ - `buffering.maxHeldRecords` limits each hold buffer. The default is 500, and the range is 200 to 10000.
82
+ - The diagnostic codes `transport.partial_success`, `capture.trace_header_kept`, `bus.protocol_mismatch` and `security.rotation_failed`.
83
+ - The `getHealth()` issues `security.rotation_failed` and `records.refused`.
84
+ - The bus messages `ui-observability.message.flush-request` and `ui-observability.message.flush-result`.
85
+ - New exported types: `DeliveryHealth`, `FlushOptions`, `FlushResult`, `FlushStatus`, `Gauge`, `Logger`, `RoutingOptions`, `ShutdownOptions` and `StorageScope`. The package exports the options type of each config section.
86
+ - `llms.txt` in the package. It describes the library for a large language model, with the public functions, the main config keys, the recipes and the common mistakes.
87
+ - `docs/migration-v1.md`. It gives the steps from 0.12.x to 1.0.0.
88
+ - `docs/api.md`, `docs/configuration.md`, `docs/guides.md`, `docs/ingest-server.md` and `docs/development.md`. They hold the reference text from the README.
89
+ - `docs/release-and-support.md`, the release contract. It has a release step that turns on GitHub private vulnerability reporting.
90
+ - `docs/production-recipes.md`. It gives login, logout, tenant rotation, token refresh, consent withdrawal and the initialization order. It also tells how to change the context after a failed load of the rotation code.
91
+ - `docs/architecture.md`. It gives the record path, the buffers and the state changes of the runtime.
92
+ - `SECURITY.md`. It gives the private route for a vulnerability report.
93
+ - `pnpm run check:consumers`. It packs the package and type-checks three consumers. `verify` runs it.
94
+ - `pnpm run test:e2e`. It runs the browser tests in Chromium, Firefox and WebKit. The tests include the session replay with the real `@rrweb/record` recorder, a `srcdoc` frame on the message link and a failed load of the rotation code.
95
+ - `pnpm run test:collector`. It sends records to a pinned OpenTelemetry Collector and checks what the collector wrote.
96
+ - `pnpm run bench:release`. It runs the release benchmark against `bench/budgets.json`.
97
+ - The mock ingest server has `GET /__received`, `GET /__echo` and `POST /__reset` for tests. `UIOBS_MOCK_PORT` sets its port. `UIOBS_MOCK_RECORD=1` keeps the requests.
98
+ - `uiobs doctor` names the `415` of a stock OpenTelemetry Collector in the result of the `beacon` rule.
99
+
100
+ ### Changed - v1.0.0
101
+
102
+ #### Start and pause
103
+
104
+ - **Breaking:** The library starts at the first `configure()` call that works. Before that call, it installs no capture. It starts no bus and no sender. It sends nothing.
105
+ - A log call before `configure()` waits in the hold buffer. With the default `consoleOutput` settings, it prints nothing.
106
+ - At the start, a held record gets the `processors`, the `redact` hook, the identity, the levels, the sampling, the `limits` and the `page.url` rule of the startup call.
107
+ - At the start, the library removes the breadcrumbs of log calls from before the start. The breadcrumbs of `addBreadcrumb()` stay.
108
+ - Before the first `configure()` call that works, the ids stay in memory. The library writes nothing to `localStorage` or `sessionStorage`.
109
+ - The first `configure()` call that works sets each setting that is fixed at startup, also after an early log call. This includes `identity`, `correlation`, `storage`, `bus.mode`, `bus.openFinRole` and `otelLoader`.
110
+ - **Breaking:** `enabled: false` pauses the library at any time. The library first sends the open interval of the counters, gauges, histograms and probes. It then removes its captures, the replay recorder and its network patches. The sender sends nothing. The records from before the pause go out after `enabled: true`.
111
+ - A pause stores no new record. A failed request in flight, a sender load that ends, a `retain` rotation and a logout deletion still change storage.
112
+ - A first `configure()` call with `enabled: false` fixes the startup settings. It starts no bus and no sender, and it writes nothing to storage. The runtime starts at the first `enabled: true`.
113
+ - A paused forwarder drops the records of its child contexts.
114
+ - `shutdown()` during a pause sends nothing. A rotation with `pending: "flush"` during a pause acts as `discard`.
115
+ - **Breaking:** `rotateSecurityContext()` rejects before the first `configure()` call that works.
116
+ - **Breaking:** `getHealth().status` has two new values, `"unconfigured"` and `"disabled"`. A failed first `configure()` call reports `"unconfigured"`.
117
+
118
+ #### Config rules
119
+
120
+ - **Breaking:** In each `configure()` call, an omitted key or a key with the value `undefined` keeps its current value. This applies at each depth.
121
+ - **Breaking, security:** `headers: undefined` now keeps the headers and the token in them. With isolation on, which is the default, use `rotateSecurityContext()` at logout. With isolation off, use `headers: null`.
122
+ - **Breaking:** `null` removes a hook. This applies to `redact`, `onDrop`, `onDiagnostic`, `contextProvider`, `otelLoader`, `transport`, `transportOnExit`, `transportWorker`, `capture.urlTransform` and the `loader` of `capture.webVitals`.
123
+ - **Breaking, security:** A `redact` value that is not a function keeps the current hook. Without a current hook, the library drops each record until `redact` is a function or `null`.
124
+ - **Breaking, security:** A `processors` list with an entry that is not a function keeps the current list. Without a current list, the library drops each record until `processors` is a list of functions or `[]`.
125
+ - **Breaking, security:** If the first `configure()` call cannot read its options, the library writes a console warning. It installs no capture and drops each record until a call sets `redact` to a function or `null`.
126
+ - **Breaking:** On a limit key, `null` sets no limit and `0` sets a limit of zero. Before, `0` set no limit.
127
+ - **Breaking:** These keys do not accept `0`: `buffering.maxPendingRecords`, `buffering.maxPendingBytes`, `correlation.sessionIdleMs`, `correlation.traceMaxAgeMs`, `debugBuffer.maxAgeMs`, `bus.maxMessageBytes`, `bus.maxRecordsPerMessage` and `bus.maxMessagesPerSecond`. `captureLimits.windowMs` must be 1 or more.
128
+ - **Breaking:** `null` turns off `metricsEndpoint`, `tracesEndpoint` and `replay.endpoint`. Their default is `null`. An empty or blank string also turns them off, and it reports `config.invalid`.
129
+ - **Breaking, security:** A relative endpoint URL resolves against `document.baseURI`. The library reports the origin that gets the records. It refuses an endpoint URL with a user name or a password, and it refuses a blank `endpoint`.
130
+ - **Breaking:** A new `sampling.rates` map replaces the current map. A rate outside 0 to 1 removes its entry.
131
+ - **Breaking:** `sampling.alwaysSampleTypes` has the type `LogType[]`. An unknown type reports `config.invalid`.
132
+ - **Breaking:** A `consoleOutput` object without `level` keeps the current level.
133
+ - **Breaking:** `metrics.maxHistogramBoundaries` applies only to the boundaries that the app gives to `histogram()`.
134
+ - **Breaking:** You cannot change `bus.mode` and `bus.openFinRole` after startup. A later change reports `config.invalid` and keeps the value.
135
+ - An invalid `sampling.defaultRate`, `sampling.remoteMaxRate` or `serializer` keeps the current value.
136
+ - A message for a hook, a URL key or a choice key does not print the text of the value.
137
+ - A config section that is not an object reports `config.invalid`.
138
+ - These pairs report `config.invalid`, and the values stay: `transport` with `transportWorker`, `transportOnExit` without `transport`, `capture.remoteToggles` without `sampling.remote`, and `capture.propagateTraceHeaderTo` without `capture.fetch` or `capture.xhr`.
139
+ - The resolved config no longer copies an unknown key.
140
+
141
+ #### Config shape
142
+
143
+ - **Breaking:** The section `capturePolicy` is now `captureLimits`. `captureLimits.windowMs` sets only the capture rate limits.
144
+ - **Breaking:** `sampling.errorCeiling` replaces `capturePolicy.errorCeiling`. `sampling.errorCeilingWindowMs` sets its window.
145
+ - **Breaking:** `metrics.intervalMs` replaces `batching.metricFlushIntervalMs` and `profiler.flushIntervalMs`. Counters, gauges, histograms and probes use this interval.
146
+ - **Breaking:** A capture with options takes `true` or an options object. `longFrames: { thresholdMs }`, `userTiming: { include }`, `webVitals: { loader }` and `console: { levels }` replace `longFrameMs`, `userTimingInclude`, `webVitalsLoader` and the console list. An unknown key inside an options object reports `config.invalid`.
147
+ - **Breaking:** The `storage` section replaces the `storage` string and the `persistence` section: `storage: { backend, namespace, requestPersistent }`. You cannot change the section after startup.
148
+ - **Breaking:** `consoleOutput` replaces the top-level `console` key. `ConsoleOutputOptions` replaces `ConsoleOptions`.
149
+ - **Breaking:** Each section type has the name of its key plus `Options`, for example `SamplingOptions`. The `...Policy` type names are gone.
150
+ - **Breaking:** `replay.maxSegmentEvents` and `replay.maxSegmentBytes` replace `replay.batchSize` and `replay.batchBytes`.
151
+ - **Breaking:** `replay.uploadWindowMs` sets the window of `replay.uploadsPerWindow`. Before, `capturePolicy.windowMs` set it.
152
+
153
+ #### Security context rotation
154
+
155
+ - **Breaking:** `rotateSecurityContext()` takes the routing settings in `routing`. The type `DeliveryOptions` is now `RoutingOptions`. Each key that is not a routing setting reports `config.invalid`, and the rotation ignores it.
156
+ - **Breaking:** Rotation `timeoutMs` accepts 0 to 600000. A value outside this range rejects the rotation.
157
+ - **Breaking, security:** A rejected rotation stops the delivery of the old context. The library drops each new record with the `onDrop` reason `security_context` until a rotation succeeds. `getHealth()` shows `security.rotation_failed` and `senderReady: false`.
158
+ - **Breaking, security:** After a rejected rotation, the next rotation that succeeds applies its `pending` rule to the stored records and the emergency queue of the closed context. With `flush`, it removes them, as `discard` does.
159
+ - **Breaking:** `rotateSecurityContext()` calls run in call order. A call during another rotation waits, and then it runs.
160
+ - **Breaking:** A rotation rejects only for a routing value that it cannot apply. A warning does not reject it.
161
+ - **Breaking:** A rotation in a forwarder rejects, and the forwarder's delivery stays open.
162
+ - **Breaking:** A record that the library builds during a rotation goes to `onDrop` at once with `security_context`.
163
+ - A rotation with `pending: "discard"` or `"flush"` removes the stored batches of the old context also when no sender runs, for example during a pause or before consent.
164
+ - A rotation with `pending: "retain"` stores the records that wait in memory under the old context.
165
+ - `rotateSecurityContext()` rejects an `update.context` that is not an object. A `null` context counts as no context. A `null` or `undefined` value in `update.context` sets no key.
166
+ - The rotation code loads in its own chunk on the first `rotateSecurityContext()`.
167
+
168
+ #### Public API
169
+
170
+ - **Breaking:** `flush()` now returns `Promise<FlushResult>`, not `Promise<void>`.
171
+ - **Breaking:** `flush()` now waits at most 5000 ms by default. `timeoutMs` sets the wait, from 0 to 600000 ms.
172
+ - **Breaking:** In a frame, a worker or an OpenFin view, `flush()` now waits for the answer of the sender. The sender gets 90 percent of the time that is left.
173
+ - **Breaking:** `getHealth()` puts the delivery state in a `delivery` block. `pending`, `inFlight`, `stored` and `lastSendAt` are no longer top-level fields.
174
+ - **Breaking:** `setContext(values)` takes an attribute map and merges it. A `null` value removes its key. An `undefined` value keeps the current value. A value that is not an object reports `config.invalid` and changes nothing.
175
+ - **Breaking:** `getJourneyToken()` returns `null` when no journey is active.
176
+ - **Breaking:** The package exports the logger class only as the type `Logger`. `getLogger()` and `PluginContext.logger` use `Logger`.
177
+ - **Breaking:** `startTrace()` is now `newTrace()`.
178
+ - `getHealth().delivery.consecutiveFailures` resets only when the server accepts a batch.
179
+
180
+ #### Delivery
181
+
182
+ - **Breaking:** Without `headers`, the exit batch to another origin is a keepalive `fetch` with `text/plain;charset=UTF-8`. It obeys `credentials`, so by default it sends no cookie. Only `credentials: "include"` uses `sendBeacon`. The CORS answer of the ingest server must permit the origin of the page.
183
+ - **Breaking:** The exit batch to an endpoint on the origin of the page is a keepalive `fetch` with the content type of the serializer. Before, it was a `text/plain` beacon.
184
+ - **Breaking:** A `fetch` request that already has a `traceparent` header keeps it. The library records no client span for it and reports `capture.trace_header_kept`. Before, the library replaced the header.
185
+ - **Breaking:** On a metric point from a frame or a worker, the `redact` of the sender can change `metric.name`, `metric.unit` and `metric.attribute_keys`.
186
+ - A forwarded record gets its metric and span fields back only when its `log.type` and namespace are those of the library, and each field has the shape that the library writes.
187
+ - The library reads at most 16 KiB of the body of a `413` or of an OTLP `2xx` answer. `delivery.requestTimeoutMs` also limits that read.
188
+ - The main thread waits 1000 ms more for an answer from a transport worker that is ready.
189
+ - A full hold buffer keeps its first 100 records of each kind. It drops the oldest record after them.
190
+ - `StorageAdapter.save()` returns `Promise<boolean>`. The value is true only when the batch is in storage when the save ends.
191
+ - The `transport.http_error` and `transport.throttled` texts tell whether storage kept the batch.
192
+ - The exit flush counts the keepalive bytes that are still in flight from the flush of the hidden page.
193
+
194
+ #### Bus
195
+
196
+ - **Breaking:** A same-origin child frame compares the bus protocol tag of its parent with its own tag before a direct call. With a different tag, it reports `bus.protocol_mismatch` and tries a message link.
197
+ - The bus starts a flush for other contexts at most one time each second. It keeps at most 4 waiting flush requests for each source and 100 in total.
198
+ - The bus does not take a flush request on the broadcast link.
199
+ - A flush that a frame or a worker asks for does not send the open interval of the metrics and the profiler of its sender.
200
+ - The bus sends each answer for a worker to that worker only.
201
+
202
+ #### Session replay
203
+
204
+ - **Breaking:** Session replay always blocks each element in `[data-observability-ignore]`.
205
+ - The `capture.rate_limited` text for a full replay buffer says that the replay of an error in that time starts at the error, with no events from before it.
206
+
207
+ #### Build, browsers and docs
208
+
209
+ - The build targets ES2021. The library supports Chrome 85, Edge 85, Firefox 79 and Safari 14.1 and later.
210
+ - The README and `docs/browser-support.md` state that OpenFin support is not validated on a real OpenFin runtime.
211
+ - The gzip budget of the main graph is 55,524 B. The measured main graph is 50,478 B.
212
+ - The README is short. It has the installation, the quick start, three recipes and a table of the reference documents.
213
+ - The ingest contract is in `docs/ingest-server.md`. Its rules do not change.
214
+ - Lint enforces braces on each conditional again. `eslint-config-prettier` had turned the `curly` rule off.
215
+
216
+ ### Removed - v1.0.0
217
+
218
+ - **Breaking:** `logMetric()` and the logger method `logMetric()`. Use `counter()`, `gauge()` or `histogram()`.
219
+ - **Breaking:** `timeSync()`, `timeAsync()` and the logger methods of the same names. Use `measure()`. `measure()` logs no ERROR record on a failure.
220
+ - **Breaking:** `getStats()` and `getQueueDepth()`. Use `getHealth().delivery`.
221
+ - **Breaking:** `clearPersistedLogs()`. Use `shutdown({ pending: "discard", clearStorage: scope })`.
222
+ - **Breaking:** `setContextMap()`. Use `setContext(values)`.
223
+ - **Breaking:** The type `DeliveryStats` and the value export `OneLogger`.
224
+ - **Breaking:** `retention.mode`. Set `retention.maxAgeMs` and `retention.maxAttempts` to `null` in place of `"until-delivered"`.
225
+ - **Breaking:** `delivery.retryIdleDelayMs`, `delivery.batchesPerDrain`, `correlation.sessionTouchMs`, `bus.maxTrackedSources` and `capturePolicy.maxErrorSignatures`. A config with one of these keys reports `config.invalid`.
226
+ - **Breaking:** `bus.validation`. The bus always checks each message. `getHealth().bus` no longer has `validation` and `maxTrackedSources`.
227
+
228
+ ### Fixed - v1.0.0
229
+
230
+ - A log call no longer throws in Chrome 92, Firefox 91 and Safari 15.3 or older. Before, with console output or with `processors`, each log call threw. A second `configure()` also threw.
231
+ - Session replay sets `replay.id` when the browser has no `crypto.randomUUID`. This also applies to a page on plain `http`.
232
+ - `TransportError` keeps its `cause` in browsers without the ES2022 `cause` option.
233
+ - The type declarations work for a strict consumer with `moduleResolution` `"NodeNext"` (ES module or CommonJS) or `"Bundler"`, also with `skipLibCheck: false`. `exports` gives `import` and `require` each its own declarations, `index.d.ts` and `index.d.cts`.
234
+ - `configure({ redact: undefined })` no longer removes `redact`. The other hooks and the transports have the same fix.
235
+ - `redact`, `onDiagnostic`, `otelLoader` and the `loader` of `capture.webVitals` report `config.invalid` for a value that is not a function.
236
+ - `configure()` no longer throws when a getter in its input throws.
237
+ - `configure()` no longer writes into the app's object.
238
+ - A key that is fixed at startup no longer reports "cannot change after startup" for the value `undefined`.
239
+ - A histogram without custom boundaries no longer reports `config.invalid` when the boundary limit is low.
240
+ - `sampling: { defaultRate: undefined }` no longer sets the rate to `1`.
241
+ - `serviceName`, `serviceVersion`, `environment` and `securityContext.id` report `config.invalid` for a value that is not a string.
242
+ - An `undefined` style no longer reports `config.invalid`. `consoleOutput.styles: null` now reports `config.invalid`.
243
+ - A failed first `configure()` call after an early log call no longer lets records go out without `redact`.
244
+ - A failed first `configure()` call writes no id to `localStorage` or `sessionStorage`. It reports `config.invalid` to diagnostics, and it writes the console warning.
245
+ - A frame that logs before `configure()` uses the `bus.mode` of its first `configure()` call.
246
+ - A journey that starts before `configure()` stays active after the call. The journey token leaves the URL.
247
+ - A `newSession()` call before `configure()` keeps its session after the start.
248
+ - `onDrop` reports each lost record one time, also when a `pagehide` comes before a later rotation or `shutdown()`.
249
+ - A `shutdown()` before the end of startup reports the held records to `onDrop` with `load_failed`.
250
+ - A rotation that waits for the delivery stack load at `shutdown()` stops and rejects. Before, it could remove the stored batches of the old context.
251
+ - A rotation that a shutdown stops after it took the old records reports those records to `onDrop` with `security_context`.
252
+ - A rotation that a shutdown meets in its storage step rejects, and does not apply the new context.
253
+ - A delivery stack load that ends after a rejected rotation no longer sends the stored batches of the old context.
254
+ - After `shutdown()`, `startJourney()` and `adoptJourney()` write nothing to `sessionStorage`.
255
+ - `flush()` no longer waits without end for a request or a storage call that does not settle.
256
+ - A response body that stalls no longer holds a send past the request deadline or after a stop.
257
+ - `fetch(request, init)` with trace propagation builds the request one time with the whole init of the caller. With an empty init, it keeps the referrer of the request.
258
+ - A refused beacon marks the keepalive budget as used, so a later exit batch goes to the emergency queue.
259
+ - A diagnostic no longer says that the library stored a batch that storage did not keep.
260
+ - A `srcdoc` or `about:blank` frame forwards its records through its same-origin parent. Before, the parent refused its `"null"` origin, and the frame sent its own records past the `redact` of the parent.
261
+ - In Firefox, a `srcdoc` frame without a direct link finds its same-origin parent through the `origin` global of the parent. A `srcdoc` frame inside a `srcdoc` frame also finds it.
262
+ - A `srcdoc` or `about:blank` parent sends a new security context to its direct children. Before, the next batch of such a child was dropped with only a `security.context_mismatch` count.
263
+ - A `srcdoc` parent under `bus.sourcePolicy: "trusted-origin"` accepts its same-origin children. It also does not report them as untrusted.
264
+ - A `srcdoc` forwarder accepts the sampling rules of its parent on the message link.
265
+ - A replay snapshot that fails at an error no longer keeps the upload open. Before, each later event went to the replay endpoint with no end. Now the library sends no replay for that error and reports `capture.record_failed`.
266
+ - A replay snapshot that fails halfway sends no part of itself. The buffer then waits for the next full snapshot, so an upload always starts with one.
267
+ - A failed replay snapshot does not use an upload of `replay.uploadsPerWindow`.
268
+ - The library reports a full replay buffer one time for each recording, also when the first snapshot is too large.
269
+ - A new replay recording does not report the dropped events of an earlier recording.
270
+ - The replay uploader sends no segment after a later call removes both `replay.endpoint` and `replay.onSegment`.
271
+ - The mock ingest server no longer stops on a log record, a span or a metric point with no time. It prints `observedTimeUnixNano` for a log record, or `-` when the record has no time.
272
+ - The mock ingest server answers `400` to a JSON body that does not have the expected shape. Before, that body stopped the server.
273
+ - `docs/ingest-server.md` names `application/x-ndjson` for `serializer: "ecs"`. It says that `408` and each `5xx` make the library send the batch again.
274
+
5
275
  ## [0.12.0] - 2026-11-16
6
276
 
7
277
  ### Added - v0.12.0
@@ -523,16 +793,16 @@ configure({ endpoint, console: true });
523
793
  configure({ endpoint, console: "WARN" });
524
794
  ```
525
795
 
526
- | Section | Removed keys |
527
- | --------- | ------------------------------------------------------------------------------------------------------------------------- |
528
- | `streams` | `logs.batchSize`, `logs.flushIntervalMs`, `metrics.batchSize`, `metrics.flushIntervalMs` |
529
- | `retry` | `baseDelayMs`, `maxDelayMs`, `idleDelayMs` |
530
- | `journey` | `maxAgeMs`, `endOnOwnerClose`, `urlParam` |
531
- | `limits` | `maxBodyChars`, `maxAttributeChars`, `maxAttributeCount`, `maxStackChars`, `maxDepth`, `maxArrayLength`, `maxRecordBytes` |
532
- | `storage` | `dbName`, `maxBatches`, `maxAgeMs`, `maxAttempts` |
533
- | `bus` | `channelName`, `handshakeTimeoutMs`, `maxHandshakeAttempts`, `maxBootBufferRecords`, `openFinHost`, `orphanPolicy` |
534
- | `capture` | `maxBreadcrumbs`, `errorDedupeMs` |
535
- | top level | `maxConcurrentRequests`, `requestTimeoutMs`, `compressionThresholdBytes` |
796
+ | Section | Removed keys |
797
+ | --- | --- |
798
+ | `streams` | `logs.batchSize`, `logs.flushIntervalMs`, `metrics.batchSize`, `metrics.flushIntervalMs` |
799
+ | `retry` | `baseDelayMs`, `maxDelayMs`, `idleDelayMs` |
800
+ | `journey` | `maxAgeMs`, `endOnOwnerClose`, `urlParam` |
801
+ | `limits` | `maxBodyChars`, `maxAttributeChars`, `maxAttributeCount`, `maxStackChars`, `maxDepth`, `maxArrayLength`, `maxRecordBytes` |
802
+ | `storage` | `dbName`, `maxBatches`, `maxAgeMs`, `maxAttempts` |
803
+ | `bus` | `channelName`, `handshakeTimeoutMs`, `maxHandshakeAttempts`, `maxBootBufferRecords`, `openFinHost`, `orphanPolicy` |
804
+ | `capture` | `maxBreadcrumbs`, `errorDedupeMs` |
805
+ | top level | `maxConcurrentRequests`, `requestTimeoutMs`, `compressionThresholdBytes` |
536
806
 
537
807
  `sampling` is unchanged.
538
808