@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
@@ -1,6 +1,6 @@
1
- import type { ConsoleStyles, ResolvedConfig } from "./models/config";
2
- import type { LogLevel, LogType } from "./models/log-record";
3
- import type { StorageLimits } from "./models/storage";
1
+ import type { ConsoleStyles, ResolvedConfig } from "./models/config.js";
2
+ import type { LogLevel, LogType } from "./models/log-record.js";
3
+ import type { StorageLimits } from "./models/storage.js";
4
4
  /** Prefix on console messages this library writes. */
5
5
  export declare const LIBRARY_LOG_PREFIX = "[ui-observability]";
6
6
  /**
@@ -220,6 +220,8 @@ export declare const HTTP_FORBIDDEN = 403;
220
220
  export declare const HTTP_REQUEST_TIMEOUT = 408;
221
221
  /** 413, payload too large. The transport must split the batch. */
222
222
  export declare const HTTP_PAYLOAD_TOO_LARGE = 413;
223
+ /** 415, unsupported media type. A stock OpenTelemetry Collector gives it to a text/plain batch. */
224
+ export declare const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
223
225
  /** 429, backpressure. */
224
226
  export declare const HTTP_TOO_MANY_REQUESTS = 429;
225
227
  /** 500, floor for server-side errors. */
@@ -230,6 +232,10 @@ export declare const HTTP_SERVICE_UNAVAILABLE = 503;
230
232
  export declare const MILLIS_PER_SECOND = 1000;
231
233
  /** Max exit payload size, in bytes (`sendBeacon`/`fetch(keepalive)` shared budget). */
232
234
  export declare const BEACON_LIMIT_BYTES = 60000;
235
+ /** Largest ingest response body the library reads, in bytes. It skips a larger body. */
236
+ export declare const RESPONSE_BODY_LIMIT_BYTES = 16384;
237
+ /** Longest server message that a diagnostic repeats. The server controls this text. */
238
+ export declare const SERVER_MESSAGE_MAX_CHARS = 256;
233
239
  /** Content type for an exit payload. CORS-safelisted, so it doesn't trigger a preflight. */
234
240
  export declare const CONTENT_TYPE_TEXT_PLAIN = "text/plain;charset=UTF-8";
235
241
  /**
@@ -386,11 +392,18 @@ export declare const BUS_TYPE: {
386
392
  readonly sampling: "ui-observability.message.sampling";
387
393
  readonly samplingRequest: "ui-observability.message.sampling-request";
388
394
  readonly tab: "ui-observability.message.tab";
395
+ readonly flushRequest: "ui-observability.message.flush-request";
396
+ readonly flushResult: "ui-observability.message.flush-result";
389
397
  };
390
398
  /** Global window property key used to locate a same-origin runtime instance. */
391
399
  export declare const RUNTIME_GLOBAL_KEY = "ui-observability.runtime";
392
400
  /** Global key for the runtime shutdown() stopped. Calls go to it until the next configure(). */
393
401
  export declare const RUNTIME_STOPPED_KEY = "ui-observability.stopped";
402
+ /**
403
+ * Global key prefix for the observed window list. The key adds the version, so two copies of one
404
+ * version share the list, as they share the runtime, and another version keeps its own.
405
+ */
406
+ export declare const OBSERVED_WINDOWS_KEY = "ui-observability.observed-windows";
394
407
  /** Global symbol key for the library request scope count, shared by every copy on the page. */
395
408
  export declare const LIBRARY_REQUEST_KEY = "ui-observability.request-scope";
396
409
  /** Global symbol key for the library console scope count, shared by every copy on the page. */
@@ -399,7 +412,10 @@ export declare const LIBRARY_CONSOLE_KEY = "ui-observability.console-scope";
399
412
  export declare const TRANSPORT_CALL_KEY = "ui-observability.transport-calls";
400
413
  /** Maximum error records captured per throttling window before suppression. */
401
414
  export declare const ERROR_STORM_MAX_PER_WINDOW = 20;
402
- /** Error rate-limiting window duration in milliseconds. */
415
+ /**
416
+ * Default length of the capture rate limit window, and of the replay upload and error ceiling
417
+ * windows, in milliseconds.
418
+ */
403
419
  export declare const ERROR_STORM_WINDOW_MS = 10000;
404
420
  /**
405
421
  * Max ERROR and FATAL records the pipeline admits per storm window. This is a safety limit for
@@ -421,6 +437,18 @@ export declare const MAX_TRACKED_ERROR_SIGNATURES = 200;
421
437
  export declare const CLICK_TEXT_MAX_CHARS = 50;
422
438
  /** Attribute that names a click action, unless the app configures a different one. */
423
439
  export declare const ACTION_ATTRIBUTE_DEFAULT = "data-observability-action";
440
+ /**
441
+ * Selector for the regions the app keeps out of the records. Click capture skips them by
442
+ * default, and session replay always blocks them, so a hidden region can't leak through either.
443
+ */
444
+ export declare const IGNORE_SELECTOR = "[data-observability-ignore]";
445
+ /**
446
+ * Selector for the regions that change on their own, such as a live price grid. A change or a
447
+ * scroll inside one isn't the page answering a click, so it doesn't stop a dead click.
448
+ */
449
+ export declare const DEAD_CLICK_IGNORE_SELECTOR = "[data-observability-live]";
450
+ /** Attributes that React rewrites in one batch with no net change, so only that change counts. */
451
+ export declare const NET_CHANGE_ATTRIBUTES: readonly string[];
424
452
  /** How many clicks on one element make a rage click, by default. */
425
453
  export declare const RAGE_CLICK_COUNT = 3;
426
454
  /** The time window a rage click's clicks must fall within, in milliseconds, by default. */
@@ -435,8 +463,6 @@ export declare const ARIA_LABEL_MAX_CHARS = 40;
435
463
  export declare const SELECTOR_MAX_CLASSES = 2;
436
464
  /** Default CSS for the console prefix. The colors are readable in light and dark devtools. */
437
465
  export declare const CONSOLE_DEFAULT_STYLES: Readonly<Required<ConsoleStyles>>;
438
- /** Scaling factor for rounding a duration to three decimal places. */
439
- export declare const DURATION_PRECISION = 1000;
440
466
  /** Minimum time between storage gap warning reports, in milliseconds. */
441
467
  export declare const GAP_REPORT_THROTTLE_MS = 60000;
442
468
  /** Default namespace for records the auto-capture modules emit. */
@@ -471,6 +497,11 @@ export declare const METRIC_KEYS: {
471
497
  readonly bounds: "metric.bounds";
472
498
  readonly buckets: "metric.bucket_counts";
473
499
  };
500
+ /**
501
+ * Every metric field the library writes on a metric record. The OTLP metrics serializer keeps
502
+ * them off a point's attributes, because the record holds the library's value under that name.
503
+ */
504
+ export declare const METRIC_FIELD_KEYS: readonly string[];
474
505
  /** Precision of the profiler histogram: 2^4 = 16 sub-buckets per power of two. */
475
506
  export declare const PROFILE_SUB_BITS = 4;
476
507
  /** Buckets per probe: 16 for 0 to 15 us, then 16 for each exponent from 4 to 25. */
@@ -479,8 +510,6 @@ export declare const PROFILE_BUCKETS = 368;
479
510
  export declare const PROFILE_MAX_US = 67108863;
480
511
  /** Cap on the buckets in one profiler summary record, to keep the payload small. */
481
512
  export declare const PROFILE_POINT_BUCKETS = 100;
482
- /** Default interval between profiler summary records, in ms. */
483
- export declare const PROFILER_FLUSH_INTERVAL_MS = 10000;
484
513
  /** Default probe limit. The runtime fixes the limit at startup. */
485
514
  export declare const PROFILER_MAX_PROBES = 64;
486
515
  /** Metric name for profiler summary records. */
@@ -551,6 +580,12 @@ export declare const TRANSPORT_WORKER_REFUSAL: {
551
580
  };
552
581
  /** Maximum requests in one transport worker. */
553
582
  export declare const TRANSPORT_WORKER_MAX_JOBS = 64;
583
+ /**
584
+ * Extra wait for the transport worker's answer after the request deadline. The worker replies
585
+ * with a status it got in time when the deadline ends its body read, and that reply needs a
586
+ * message hop.
587
+ */
588
+ export declare const WORKER_REPLY_GRACE_MS = 1000;
554
589
  /** Longest the deferred logger waits for idle time before it builds its records. */
555
590
  export declare const DEFER_IDLE_TIMEOUT_MS = 1000;
556
591
  /** Maximum pending payload references per runtime. A full queue builds its records first. */
@@ -570,11 +605,6 @@ export declare const UNKNOWN_SERVICE_NAME = "unknown-service";
570
605
  export declare const SAMPLING_RATE_MIN = 0;
571
606
  /** Highest sampling rate (keep everything). */
572
607
  export declare const SAMPLING_RATE_MAX = 1;
573
- /**
574
- * Fallback for an invalid sampling rate (keep everything).
575
- * @see {@link SAMPLING_RATE_MAX}
576
- */
577
- export declare const SAMPLING_RATE_FALLBACK = 1;
578
608
  /** The remote sampling rules version this library accepts. */
579
609
  export declare const REMOTE_SAMPLING_VERSION = 1;
580
610
  /** Maximum length of the sampling header, in characters. */
@@ -594,24 +624,24 @@ export declare const UNDEFAULTED_CONFIG_KEYS: readonly ["contextProvider", "reda
594
624
  * Nested config section keys.
595
625
  * @see {@link ResolvedConfig}
596
626
  */
597
- export declare const CONFIG_SECTIONS: readonly ["capturePolicy", "metadata", "persistence", "diagnostics", "correlation", "metrics", "buffering", "delivery", "loggerCache", "securityContext", "sampling", "bus", "journey", "batching", "retention", "limits", "capture", "debugBuffer", "profiler", "replay"];
627
+ export declare const CONFIG_SECTIONS: readonly ["captureLimits", "metadata", "storage", "diagnostics", "correlation", "metrics", "buffering", "delivery", "loggerCache", "securityContext", "sampling", "bus", "journey", "batching", "retention", "limits", "capture", "debugBuffer", "profiler", "replay"];
598
628
  /**
599
629
  * Section keys with no default, excluded from their section of `DEFAULT_CONFIG`.
600
630
  * @see {@link UNDEFAULTED_CONFIG_KEYS}
601
631
  */
602
632
  export declare const UNDEFAULTED_SECTION_KEYS: Record<(typeof CONFIG_SECTIONS)[number], string[]>;
603
- /** Console mirroring level used when a consumer passes `console: true`. */
633
+ /** Console output level used when a consumer passes `consoleOutput: true`. */
604
634
  export declare const CONSOLE_DEFAULT_LEVEL: LogLevel;
605
635
  /** Max time a partial log batch waits before the pipeline sends it, in milliseconds. */
606
636
  export declare const LOG_FLUSH_INTERVAL_MS = 2000;
607
637
  /** Max records per log batch. At this count, the pipeline sends the batch early. */
608
638
  export declare const LOG_BATCH_SIZE = 100;
609
639
  /**
610
- * Max time a partial metric batch waits before the pipeline sends it, in milliseconds.
611
- * Metric batches wait longer than log batches because metrics have a higher volume and
612
- * no caller is waiting for them.
640
+ * Default interval of the counter, histogram and profiler points, in milliseconds. A partial
641
+ * metric batch waits this long too, longer than a log batch, because metrics have a higher
642
+ * volume and no caller is waiting for them.
613
643
  */
614
- export declare const METRIC_FLUSH_INTERVAL_MS = 10000;
644
+ export declare const METRIC_INTERVAL_MS = 10000;
615
645
  /** Max records per metric batch. At this count, the pipeline sends the batch early. */
616
646
  export declare const METRIC_BATCH_SIZE = 500;
617
647
  /** Max concurrent ingest requests, across both streams. */
@@ -629,6 +659,13 @@ export declare const STORAGE_LIMITS: StorageLimits;
629
659
  * a call that never settles would hold on to a dispatch slot or the drain flag.
630
660
  */
631
661
  export declare const STORAGE_DEADLINE_MS = 10000;
662
+ /** Default wait of flush() and of a rotation's flush, in milliseconds. */
663
+ export declare const FLUSH_TIMEOUT_MS = 5000;
664
+ /**
665
+ * Longest wait of flush() and of a rotation's flush, in milliseconds. A browser timer fires at
666
+ * once for a delay above 2^31 - 1 ms, so the wait has a ceiling.
667
+ */
668
+ export declare const FLUSH_TIMEOUT_MAX_MS = 600000;
632
669
  /** First backoff step, in milliseconds. Doubles with every attempt. */
633
670
  export declare const RETRY_BASE_DELAY_MS = 2000;
634
671
  /** Backoff ceiling, in milliseconds. */
@@ -647,10 +684,37 @@ export declare const BUS_CHANNEL_NAME = "ui_observability_control";
647
684
  export declare const BUS_HANDSHAKE_TIMEOUT_MS = 1500;
648
685
  /** Handshake attempts allowed before a cross-origin forwarder promotes itself to sender. */
649
686
  export declare const BUS_MAX_HANDSHAKE_ATTEMPTS = 3;
650
- /** Max non-action records in one hold buffer. A full buffer drops the oldest. */
687
+ /**
688
+ * Max named sources, for example OpenFin identities, whose message rate the bus tracks at once.
689
+ * A new source past it is refused, so a flood of fake names can't grow the map without end.
690
+ */
691
+ export declare const BUS_MAX_TRACKED_SOURCES = 256;
692
+ /**
693
+ * Max flush requests from other contexts that wait for the next flush. A request past it gets
694
+ * no answer, so a flood of requests can't grow the list without end.
695
+ */
696
+ export declare const BUS_MAX_FLUSH_REQUESTS = 100;
697
+ /** Max flush requests of one source that wait, so one frame can't fill the whole list. */
698
+ export declare const BUS_MAX_FLUSH_REQUESTS_PER_SOURCE = 4;
699
+ /**
700
+ * Min time between the starts of two flushes that the bus runs for other contexts, in
701
+ * milliseconds. A request in the gap joins the next one, so a flood can't flush without a pause.
702
+ */
703
+ export declare const BUS_FLUSH_GAP_MS = 1000;
704
+ /**
705
+ * Share of a forwarder's time left that it gives its sender in a flush request. The rest is for
706
+ * the answer, so the caller's wait outlasts the callee's deadline at each hop of a chain.
707
+ */
708
+ export declare const FLUSH_REQUEST_SHARE = 0.9;
709
+ /** Default of buffering.maxHeldRecords, the cap on non-action records in one hold buffer. */
651
710
  export declare const BUS_MAX_BOOT_BUFFER_RECORDS = 500;
652
711
  /** Max action records in one hold buffer. Their own cap means a log storm can't push one out. */
653
712
  export declare const BUS_MAX_BOOT_BUFFER_ACTIONS = 2000;
713
+ /**
714
+ * Records of each kind that a full hold buffer never drops, counted from the first one. The
715
+ * first error of a failed startup is usually the cause, so it has to outlive the storm.
716
+ */
717
+ export declare const HOLD_BUFFER_HEAD_RECORDS = 100;
654
718
  /** Max distinct values in each list of an onDrop summary. */
655
719
  export declare const DROP_SUMMARY_MAX_ITEMS = 20;
656
720
  /**
@@ -673,6 +737,22 @@ export declare const RECORD_LIMITS: {
673
737
  maxNodes: number;
674
738
  maxRecordBytes: number;
675
739
  };
740
+ /**
741
+ * Routing settings a rotation resets when the update leaves them out. The rotation also spreads
742
+ * this into its base, where undefined means no hook, so an undefined key in the update resets too.
743
+ */
744
+ export declare const ROUTING_RESET: {
745
+ readonly endpoint: null;
746
+ readonly metricsEndpoint: null;
747
+ readonly tracesEndpoint: null;
748
+ readonly headers: undefined;
749
+ readonly credentials: "omit";
750
+ readonly transport: undefined;
751
+ readonly transportOnExit: undefined;
752
+ readonly transportWorker: undefined;
753
+ };
754
+ /** Routing settings that configure() can't change while isolation is on. */
755
+ export declare const ROUTING_KEYS: (keyof typeof ROUTING_RESET)[];
676
756
  /**
677
757
  * The default runtime config, before the consumer calls `configure()`. `serializer` is left
678
758
  * out, because `resolveConfig` supplies that default to avoid a circular import.
@@ -0,0 +1,54 @@
1
+ /** Category of a breadcrumb event. */
2
+ export type BreadcrumbCategory = "log" | "action" | "event" | "click" | "navigation" | "http" | "console" | "frame" | "profile" | "custom";
3
+ /** Short summary of one event, kept so an error record can carry it. */
4
+ export interface Breadcrumb {
5
+ /** Timestamp in epoch milliseconds. */
6
+ t: number;
7
+ /** Category of the event. */
8
+ category: BreadcrumbCategory;
9
+ /** Human-readable description of the event. */
10
+ message: string;
11
+ /** Optional contextual metadata. */
12
+ data?: Record<string, unknown>;
13
+ }
14
+ /** Fixed-size ring buffer that keeps recent breadcrumbs in time order. */
15
+ export declare class BreadcrumbBuffer {
16
+ /** The ring's backing array. */
17
+ private buffer;
18
+ /** Next write index in the circular buffer. */
19
+ private pointer;
20
+ /**
21
+ * True once the pointer has wrapped past the capacity. The pointer alone can't tell an
22
+ * empty ring from one that wrapped back to index 0.
23
+ */
24
+ private filled;
25
+ /** Maximum number of breadcrumbs the buffer keeps. */
26
+ private capacity;
27
+ /**
28
+ * @param capacity Maximum number of breadcrumbs. 0 turns the buffer off. Any other value
29
+ * below the minimum size is raised to it.
30
+ */
31
+ constructor(capacity: number);
32
+ /**
33
+ * Changes the capacity, keeping the most recent breadcrumbs that fit.
34
+ * @param capacity New capacity. Pass 0 to drop the stored breadcrumbs and turn the buffer off.
35
+ */
36
+ resize(capacity: number): void;
37
+ /**
38
+ * Adds a breadcrumb. When the buffer is full, it overwrites the oldest one.
39
+ * @param crumb Breadcrumb to add.
40
+ */
41
+ push(crumb: Breadcrumb): void;
42
+ /**
43
+ * Keeps only the breadcrumbs that pass the test, in their order.
44
+ * @param keep Returns true for a breadcrumb to keep.
45
+ */
46
+ retain(keep: (crumb: Breadcrumb) => boolean): void;
47
+ /** Removes all breadcrumbs, so a new session never carries the previous user's trail. */
48
+ clear(): void;
49
+ /**
50
+ * Returns all stored breadcrumbs, oldest to newest.
51
+ * @returns The breadcrumbs in time order.
52
+ */
53
+ snapshot(): Breadcrumb[];
54
+ }
@@ -39,6 +39,11 @@ export declare class BreadcrumbBuffer {
39
39
  * @param crumb Breadcrumb to add.
40
40
  */
41
41
  push(crumb: Breadcrumb): void;
42
+ /**
43
+ * Keeps only the breadcrumbs that pass the test, in their order.
44
+ * @param keep Returns true for a breadcrumb to keep.
45
+ */
46
+ retain(keep: (crumb: Breadcrumb) => boolean): void;
42
47
  /** Removes all breadcrumbs, so a new session never carries the previous user's trail. */
43
48
  clear(): void;
44
49
  /**
@@ -0,0 +1,45 @@
1
+ import type { ObservabilityConfig, ResolvedConfig } from "../models/config.cjs";
2
+ import type { Diagnostics } from "./diagnostics.cjs";
3
+ /**
4
+ * Reads a destination that null turns off. An empty or blank string turns it off too, with a
5
+ * report, because an empty environment variable must not leave the records going to the old
6
+ * destination. A rotation runs it too, to find a refused URL.
7
+ * @param key Config key.
8
+ * @param value The value the consumer passed.
9
+ * @param fallback The current destination.
10
+ * @param diagnostics Diagnostics reporter.
11
+ * @returns The URL, null when it's off, or the fallback for a refused value.
12
+ */
13
+ export declare function resolveDestination(key: string, value: unknown, fallback: unknown, diagnostics: Diagnostics): unknown;
14
+ /**
15
+ * Reads the endpoint. "" stays "", the value for "not set", so resolveConfig reports a missing
16
+ * endpoint. A blank string is refused, because it would send to the page itself. A rotation
17
+ * runs it too, to find a refused URL.
18
+ * @param value The value the consumer passed.
19
+ * @param fallback The current endpoint.
20
+ * @param diagnostics Diagnostics reporter.
21
+ * @returns The endpoint, null for console-only mode, or the fallback for a refused value.
22
+ */
23
+ export declare function resolveEndpoint(value: unknown, fallback: unknown, diagnostics: Diagnostics): unknown;
24
+ /**
25
+ * Stands in for a redact value that isn't a function when no redact hook was set before. The
26
+ * record builder drops each record while it's the hook, so a record the app meant to redact
27
+ * never leaves the page.
28
+ * @returns null, which drops the record.
29
+ */
30
+ export declare const REFUSE_RECORDS: () => null;
31
+ /**
32
+ * Resolves partial configuration input into a validated ResolvedConfig.
33
+ * @param input Partial consumer configuration options.
34
+ * @param diagnostics Diagnostics reporter.
35
+ * @param previous The active configuration, for an incremental reconfigure.
36
+ * @returns Complete, validated configuration object.
37
+ */
38
+ export declare function resolveConfig(input: Partial<ObservabilityConfig>, diagnostics: Diagnostics, previous?: ResolvedConfig): ResolvedConfig;
39
+ /**
40
+ * Changes the active configuration object in place, so subsystems holding a section
41
+ * reference see the update.
42
+ * @param target Active configuration object to change.
43
+ * @param next Configuration object with the new values.
44
+ */
45
+ export declare function applyResolvedConfig(target: ResolvedConfig, next: ResolvedConfig): void;
@@ -1,5 +1,33 @@
1
- import type { ObservabilityConfig, ResolvedConfig } from "../models/config";
2
- import type { Diagnostics } from "./diagnostics";
1
+ import type { ObservabilityConfig, ResolvedConfig } from "../models/config.js";
2
+ import type { Diagnostics } from "./diagnostics.js";
3
+ /**
4
+ * Reads a destination that null turns off. An empty or blank string turns it off too, with a
5
+ * report, because an empty environment variable must not leave the records going to the old
6
+ * destination. A rotation runs it too, to find a refused URL.
7
+ * @param key Config key.
8
+ * @param value The value the consumer passed.
9
+ * @param fallback The current destination.
10
+ * @param diagnostics Diagnostics reporter.
11
+ * @returns The URL, null when it's off, or the fallback for a refused value.
12
+ */
13
+ export declare function resolveDestination(key: string, value: unknown, fallback: unknown, diagnostics: Diagnostics): unknown;
14
+ /**
15
+ * Reads the endpoint. "" stays "", the value for "not set", so resolveConfig reports a missing
16
+ * endpoint. A blank string is refused, because it would send to the page itself. A rotation
17
+ * runs it too, to find a refused URL.
18
+ * @param value The value the consumer passed.
19
+ * @param fallback The current endpoint.
20
+ * @param diagnostics Diagnostics reporter.
21
+ * @returns The endpoint, null for console-only mode, or the fallback for a refused value.
22
+ */
23
+ export declare function resolveEndpoint(value: unknown, fallback: unknown, diagnostics: Diagnostics): unknown;
24
+ /**
25
+ * Stands in for a redact value that isn't a function when no redact hook was set before. The
26
+ * record builder drops each record while it's the hook, so a record the app meant to redact
27
+ * never leaves the page.
28
+ * @returns null, which drops the record.
29
+ */
30
+ export declare const REFUSE_RECORDS: () => null;
3
31
  /**
4
32
  * Resolves partial configuration input into a validated ResolvedConfig.
5
33
  * @param input Partial consumer configuration options.
@@ -0,0 +1,24 @@
1
+ /** Key-value store for ambient context attributes attached to log records. */
2
+ export declare class ContextStore {
3
+ /** Backing store mapping attribute keys to raw values. */
4
+ private readonly map;
5
+ /**
6
+ * Merges attributes into the ambient context. null removes a key, and undefined keeps the
7
+ * current value, as in configure().
8
+ * @param values Attributes to merge.
9
+ */
10
+ merge(values: Record<string, unknown>): void;
11
+ /**
12
+ * Removes an attribute from the ambient context.
13
+ * @param key Attribute key to remove.
14
+ */
15
+ remove(key: string): void;
16
+ /** Removes all ambient context attributes. */
17
+ clear(): void;
18
+ /**
19
+ * Returns a copy of all ambient context attributes, so a merge target or a sanitizer
20
+ * can't change the store.
21
+ * @returns Plain object with the stored key-value pairs.
22
+ */
23
+ getAll(): Record<string, unknown>;
24
+ }
@@ -3,16 +3,11 @@ export declare class ContextStore {
3
3
  /** Backing store mapping attribute keys to raw values. */
4
4
  private readonly map;
5
5
  /**
6
- * Sets one ambient context attribute.
7
- * @param key Attribute key.
8
- * @param value Raw attribute value.
9
- */
10
- set(key: string, value: unknown): void;
11
- /**
12
- * Merges several key-value pairs into the ambient context.
6
+ * Merges attributes into the ambient context. null removes a key, and undefined keeps the
7
+ * current value, as in configure().
13
8
  * @param values Attributes to merge.
14
9
  */
15
- setMany(values: Record<string, unknown>): void;
10
+ merge(values: Record<string, unknown>): void;
16
11
  /**
17
12
  * Removes an attribute from the ambient context.
18
13
  * @param key Attribute key to remove.
@@ -0,0 +1,34 @@
1
+ import type { DebugBufferOptions } from "../models/config.cjs";
2
+ import type { LogRecord } from "../models/log-record.cjs";
3
+ /** Bounded list of the records that were dropped by level or by sampling. */
4
+ export declare class DebugBuffer {
5
+ private readonly policy;
6
+ /** Kept records, oldest first. Can grow to twice maxRecords between trims. */
7
+ private kept;
8
+ /**
9
+ * @param policy Returns the current settings. A later configure() can change them.
10
+ */
11
+ constructor(policy: () => DebugBufferOptions);
12
+ /**
13
+ * Keeps a record. When the buffer is full, the oldest record goes first.
14
+ * @param record Built record. The privacy hooks have already run on it.
15
+ */
16
+ push(record: LogRecord): void;
17
+ /**
18
+ * Takes the kept records that aren't too old and empties the buffer.
19
+ * @returns The records, oldest first, each with `uiobs.debug_buffer: true`.
20
+ */
21
+ drain(): LogRecord[];
22
+ /**
23
+ * Returns the kept records without taking them.
24
+ * @returns The records, oldest first.
25
+ */
26
+ snapshot(): LogRecord[];
27
+ /**
28
+ * Returns the kept records that the current settings allow. A disabled buffer empties itself.
29
+ * @returns The records, oldest first.
30
+ */
31
+ private live;
32
+ /** Removes every kept record, so nothing from an old session or identity goes out. */
33
+ clear(): void;
34
+ }
@@ -1,5 +1,5 @@
1
- import type { DebugBufferPolicy } from "../models/config";
2
- import type { LogRecord } from "../models/log-record";
1
+ import type { DebugBufferOptions } from "../models/config.js";
2
+ import type { LogRecord } from "../models/log-record.js";
3
3
  /** Bounded list of the records that were dropped by level or by sampling. */
4
4
  export declare class DebugBuffer {
5
5
  private readonly policy;
@@ -8,7 +8,7 @@ export declare class DebugBuffer {
8
8
  /**
9
9
  * @param policy Returns the current settings. A later configure() can change them.
10
10
  */
11
- constructor(policy: () => DebugBufferPolicy);
11
+ constructor(policy: () => DebugBufferOptions);
12
12
  /**
13
13
  * Keeps a record. When the buffer is full, the oldest record goes first.
14
14
  * @param record Built record. The privacy hooks have already run on it.
@@ -0,0 +1,12 @@
1
+ import type { ResolvedConfig } from "../models/config.cjs";
2
+ import { type SanitizeLimits } from "../utils/sanitize.cjs";
3
+ import type { Diagnostics } from "./diagnostics.cjs";
4
+ /**
5
+ * Copies the config for a support ticket, without the headers and with every URL trimmed. A
6
+ * function becomes its name and a RegExp its text.
7
+ * @param config Active configuration.
8
+ * @param limits Limits for the copy, the same as for record attributes.
9
+ * @param diagnostics Diagnostics reporter.
10
+ * @returns JSON-safe copy of the config.
11
+ */
12
+ export declare function configSummary(config: ResolvedConfig, limits: SanitizeLimits, diagnostics: Diagnostics): Record<string, unknown>;
@@ -1,6 +1,6 @@
1
- import type { ResolvedConfig } from "../models/config";
2
- import { type SanitizeLimits } from "../utils/sanitize";
3
- import type { Diagnostics } from "./diagnostics";
1
+ import type { ResolvedConfig } from "../models/config.js";
2
+ import { type SanitizeLimits } from "../utils/sanitize.js";
3
+ import type { Diagnostics } from "./diagnostics.js";
4
4
  /**
5
5
  * Copies the config for a support ticket, without the headers and with every URL trimmed. A
6
6
  * function becomes its name and a RegExp its text.
@@ -0,0 +1,7 @@
1
+ import type { Diagnostics } from "./diagnostics.cjs";
2
+ /** Queues a call without reading its payload. A full queue builds its pending calls first. */
3
+ export declare function deferWrite(owner: object, work: () => void, diagnostics: Diagnostics, limit: number | null): void;
4
+ /** Builds pending calls before a flush, a session change or a delivery identity change. */
5
+ export declare function drainDeferred(owner: object): void;
6
+ /** Releases calls that a hook queues during shutdown. No records were built for them. */
7
+ export declare function cancelDeferred(owner: object): void;
@@ -1,6 +1,6 @@
1
- import type { Diagnostics } from "./diagnostics";
1
+ import type { Diagnostics } from "./diagnostics.js";
2
2
  /** Queues a call without reading its payload. A full queue builds its pending calls first. */
3
- export declare function deferWrite(owner: object, work: () => void, diagnostics: Diagnostics, limit: number): void;
3
+ export declare function deferWrite(owner: object, work: () => void, diagnostics: Diagnostics, limit: number | null): void;
4
4
  /** Builds pending calls before a flush, a session change or a delivery identity change. */
5
5
  export declare function drainDeferred(owner: object): void;
6
6
  /** Releases calls that a hook queues during shutdown. No records were built for them. */
@@ -0,0 +1,86 @@
1
+ /** Closed set of diagnostic event codes emitted by library subsystems. */
2
+ export type DiagnosticCode = "config.locked" | "security.rotated" | "security.rotation_failed" | "security.context_mismatch" | "record.dropped_during_rotation" | "bus.rejected_message" | "bus.journey_denied" | "config.invalid" | "config.reconfigured" | "record.sanitize_failed" | "record.truncated" | "record.dropped_by_level" | "record.dropped_by_sampling" | "record.dropped_by_ceiling" | "record.dropped_by_processor" | "record.dropped_by_redact" | "record.dropped_boot_buffer_full" | "record.dropped_malformed" | "record.dropped_no_destination" | "runtime.version_mismatch" | "journey.expired" | "journey.adopted" | "journey.token_too_large" | "trace.otel_failed" | "bus.role_resolved" | "bus.no_owner" | "bus.handshake_timeout" | "bus.untrusted_origin" | "bus.send_failed" | "bus.protocol_mismatch" | "transport.http_error" | "transport.timeout" | "transport.batch_split" | "transport.partial_success" | "transport.throttled" | "transport.dropped_permanent" | "transport.rejected_credentials" | "transport.serialize_failed" | "storage.unavailable" | "storage.degraded" | "storage.quota_exceeded" | "storage.evicted" | "storage.dead_lettered" | "pipeline.crashed" | "capture.install_failed" | "capture.rate_limited" | "capture.header_failed" | "capture.trace_header_kept" | "capture.record_failed" | "capture.transport_request" | "openfin.unavailable" | "platform.api_blocked" | "handler.threw";
3
+ /** Diagnostic event payload dispatched to consumer handlers. */
4
+ export interface DiagnosticEvent {
5
+ /** Diagnostic fault code. */
6
+ code: DiagnosticCode;
7
+ /** Human-readable description. */
8
+ message: string;
9
+ /** Structured context metadata. */
10
+ detail?: Record<string, unknown>;
11
+ /** Caught error instance or reason. */
12
+ cause?: unknown;
13
+ /** Event timestamp in epoch milliseconds. */
14
+ at: number;
15
+ /** Total count of this code since startup, including rate-limited occurrences. */
16
+ count: number;
17
+ }
18
+ /** Consumer callback for receiving rate-limited diagnostic events. */
19
+ export type DiagnosticHandler = (event: DiagnosticEvent) => void;
20
+ /** Reports internal errors. Dispatch is rate limited, but every event is counted. */
21
+ export declare class Diagnostics {
22
+ private handler?;
23
+ private throttleMs;
24
+ private consoleFallback;
25
+ /** Running occurrence counts per diagnostic code. */
26
+ private readonly counters;
27
+ /** Timestamp of the last emitted event per code, in epoch milliseconds. */
28
+ private readonly lastEmitted;
29
+ /**
30
+ * @param handler Optional listener for diagnostic events.
31
+ * @param throttleMs Minimum time in milliseconds between emitted events for one code.
32
+ * @param consoleFallback True to print a fixed warning if the diagnostic handler throws.
33
+ */
34
+ constructor(handler?: DiagnosticHandler | undefined, throttleMs?: number, consoleFallback?: boolean);
35
+ /**
36
+ * Changes the report interval and the console fallback rule.
37
+ * @param throttleMs Minimum wait between reports of one code, in milliseconds.
38
+ * @param consoleFallback True to print a fixed warning if the handler throws.
39
+ */
40
+ setPolicy(throttleMs: number, consoleFallback: boolean): void;
41
+ /**
42
+ * Replaces or removes the active diagnostic event handler.
43
+ * @param handler New diagnostic event handler.
44
+ */
45
+ setHandler(handler?: DiagnosticHandler): void;
46
+ /**
47
+ * Increments the count for a code without calling the handler.
48
+ * @param code Diagnostic code to increment.
49
+ * @param by Amount to add.
50
+ * @returns New total for the code.
51
+ */
52
+ count(code: DiagnosticCode, by?: number): number;
53
+ /**
54
+ * Bumps the counter for the code and, once the throttle window has passed, sends the event
55
+ * to the handler. Never throws.
56
+ * @param code Diagnostic code.
57
+ * @param message Event description.
58
+ * @param detail Optional structured metadata.
59
+ * @param cause Caught error instance or reason.
60
+ * @returns False if the throttle dropped the event.
61
+ */
62
+ report(code: DiagnosticCode, message: string, detail?: Record<string, unknown>, cause?: unknown): boolean;
63
+ /**
64
+ * Runs a synchronous function and reports anything it throws to diagnostics.
65
+ * @param code Diagnostic code to report on throw.
66
+ * @param message ASD-STE100 sentence that states the failure. The handler receives it as the
67
+ * event message.
68
+ * @param fn Function to run.
69
+ * @returns The function's return value, or undefined if it threw.
70
+ */
71
+ guard<T>(code: DiagnosticCode, message: string, fn: () => T): T | undefined;
72
+ /**
73
+ * Runs an asynchronous function and reports a rejected promise to diagnostics.
74
+ * @param code Diagnostic code to report on rejection.
75
+ * @param message ASD-STE100 sentence that states the failure. The handler receives it as the
76
+ * event message.
77
+ * @param fn Async function to run.
78
+ * @returns Promise that resolves to the return value, or to undefined on rejection.
79
+ */
80
+ guardAsync<T>(code: DiagnosticCode, message: string, fn: () => Promise<T>): Promise<T | undefined>;
81
+ /**
82
+ * Returns a copy of the cumulative diagnostic counts since initialization.
83
+ * @returns Map of diagnostic codes to occurrence counts.
84
+ */
85
+ snapshot(): Record<string, number>;
86
+ }
@@ -1,5 +1,5 @@
1
1
  /** Closed set of diagnostic event codes emitted by library subsystems. */
2
- export type DiagnosticCode = "config.locked" | "security.rotated" | "security.context_mismatch" | "record.dropped_during_rotation" | "bus.rejected_message" | "config.invalid" | "config.reconfigured" | "record.sanitize_failed" | "record.truncated" | "record.dropped_by_level" | "record.dropped_by_sampling" | "record.dropped_by_ceiling" | "record.dropped_by_processor" | "record.dropped_by_redact" | "record.dropped_boot_buffer_full" | "record.dropped_malformed" | "record.dropped_no_destination" | "runtime.version_mismatch" | "journey.expired" | "journey.adopted" | "journey.token_too_large" | "trace.otel_failed" | "bus.role_resolved" | "bus.no_owner" | "bus.handshake_timeout" | "bus.untrusted_origin" | "bus.send_failed" | "transport.http_error" | "transport.timeout" | "transport.batch_split" | "transport.throttled" | "transport.dropped_permanent" | "transport.rejected_credentials" | "transport.serialize_failed" | "storage.unavailable" | "storage.degraded" | "storage.quota_exceeded" | "storage.evicted" | "storage.dead_lettered" | "pipeline.crashed" | "capture.install_failed" | "capture.rate_limited" | "capture.header_failed" | "capture.record_failed" | "capture.transport_request" | "openfin.unavailable" | "platform.api_blocked" | "handler.threw";
2
+ export type DiagnosticCode = "config.locked" | "security.rotated" | "security.rotation_failed" | "security.context_mismatch" | "record.dropped_during_rotation" | "bus.rejected_message" | "bus.journey_denied" | "config.invalid" | "config.reconfigured" | "record.sanitize_failed" | "record.truncated" | "record.dropped_by_level" | "record.dropped_by_sampling" | "record.dropped_by_ceiling" | "record.dropped_by_processor" | "record.dropped_by_redact" | "record.dropped_boot_buffer_full" | "record.dropped_malformed" | "record.dropped_no_destination" | "runtime.version_mismatch" | "journey.expired" | "journey.adopted" | "journey.token_too_large" | "trace.otel_failed" | "bus.role_resolved" | "bus.no_owner" | "bus.handshake_timeout" | "bus.untrusted_origin" | "bus.send_failed" | "bus.protocol_mismatch" | "transport.http_error" | "transport.timeout" | "transport.batch_split" | "transport.partial_success" | "transport.throttled" | "transport.dropped_permanent" | "transport.rejected_credentials" | "transport.serialize_failed" | "storage.unavailable" | "storage.degraded" | "storage.quota_exceeded" | "storage.evicted" | "storage.dead_lettered" | "pipeline.crashed" | "capture.install_failed" | "capture.rate_limited" | "capture.header_failed" | "capture.trace_header_kept" | "capture.record_failed" | "capture.transport_request" | "openfin.unavailable" | "platform.api_blocked" | "handler.threw";
3
3
  /** Diagnostic event payload dispatched to consumer handlers. */
4
4
  export interface DiagnosticEvent {
5
5
  /** Diagnostic fault code. */