@safaricom-mxl/web-sdk 0.0.11 → 0.0.13

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 (1099) hide show
  1. package/DATA_EXPORT.md +1 -1
  2. package/REACT.md +1 -1
  3. package/README.md +19 -28
  4. package/UPGRADING.md +2 -2
  5. package/dist/_virtual/_rolldown/runtime.cjs +7 -13
  6. package/dist/api-logs/api/LogAPI/LogAPI.cjs +6 -7
  7. package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
  8. package/dist/api-logs/api/LogAPI/LogAPI.d.cts +0 -1
  9. package/dist/api-logs/api/LogAPI/LogAPI.d.cts.map +1 -1
  10. package/dist/api-logs/api/LogAPI/LogAPI.d.ts +0 -2
  11. package/dist/api-logs/api/LogAPI/LogAPI.d.ts.map +1 -1
  12. package/dist/api-logs/api/LogAPI/LogAPI.js +1 -2
  13. package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
  14. package/dist/api-logs/api/LogAPI/index.cjs +3 -4
  15. package/dist/api-logs/api/LogAPI/index.js +1 -2
  16. package/dist/api-logs/api/LogAPI/types.d.cts +0 -1
  17. package/dist/api-logs/api/LogAPI/types.d.cts.map +1 -1
  18. package/dist/api-logs/api/LogAPI/types.d.ts +0 -2
  19. package/dist/api-logs/api/LogAPI/types.d.ts.map +1 -1
  20. package/dist/api-logs/api/index.cjs +3 -4
  21. package/dist/api-logs/api/index.d.ts +0 -1
  22. package/dist/api-logs/api/index.js +1 -2
  23. package/dist/api-logs/index.cjs +5 -6
  24. package/dist/api-logs/index.d.ts +0 -1
  25. package/dist/api-logs/index.js +1 -2
  26. package/dist/api-logs/logAPI.cjs +3 -5
  27. package/dist/api-logs/logAPI.cjs.map +1 -1
  28. package/dist/api-logs/logAPI.js +1 -2
  29. package/dist/api-logs/logAPI.js.map +1 -1
  30. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs +2 -3
  31. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
  32. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts +0 -1
  33. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts.map +1 -1
  34. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts +0 -2
  35. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts.map +1 -1
  36. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js +1 -1
  37. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
  38. package/dist/api-logs/manager/NoOpLogManager/index.cjs +3 -4
  39. package/dist/api-logs/manager/NoOpLogManager/index.js +1 -2
  40. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs +3 -5
  41. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs.map +1 -1
  42. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts +0 -1
  43. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts.map +1 -1
  44. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts +0 -2
  45. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts.map +1 -1
  46. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js +1 -2
  47. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js.map +1 -1
  48. package/dist/api-logs/manager/ProxyLogManager/index.cjs +3 -4
  49. package/dist/api-logs/manager/ProxyLogManager/index.js +1 -2
  50. package/dist/api-logs/manager/index.cjs +4 -5
  51. package/dist/api-logs/manager/index.js +1 -2
  52. package/dist/api-page/api/PageAPI/PageAPI.cjs +6 -7
  53. package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
  54. package/dist/api-page/api/PageAPI/PageAPI.js +1 -2
  55. package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
  56. package/dist/api-page/api/PageAPI/index.cjs +3 -4
  57. package/dist/api-page/api/PageAPI/index.js +1 -2
  58. package/dist/api-page/api/index.cjs +3 -4
  59. package/dist/api-page/api/index.js +1 -2
  60. package/dist/api-page/index.cjs +5 -6
  61. package/dist/api-page/index.js +1 -2
  62. package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs +2 -3
  63. package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs.map +1 -1
  64. package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js +1 -1
  65. package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js.map +1 -1
  66. package/dist/api-page/manager/NoOpPageManager/index.cjs +3 -4
  67. package/dist/api-page/manager/NoOpPageManager/index.js +1 -2
  68. package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs +3 -5
  69. package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs.map +1 -1
  70. package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js +1 -2
  71. package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js.map +1 -1
  72. package/dist/api-page/manager/ProxyPageManager/index.cjs +3 -4
  73. package/dist/api-page/manager/ProxyPageManager/index.js +1 -2
  74. package/dist/api-page/manager/index.cjs +4 -5
  75. package/dist/api-page/manager/index.js +1 -2
  76. package/dist/api-page/pageAPI.cjs +3 -5
  77. package/dist/api-page/pageAPI.cjs.map +1 -1
  78. package/dist/api-page/pageAPI.js +1 -2
  79. package/dist/api-page/pageAPI.js.map +1 -1
  80. package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs +6 -7
  81. package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
  82. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts +0 -1
  83. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts.map +1 -1
  84. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts +0 -2
  85. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts.map +1 -1
  86. package/dist/api-sessions/api/SessionAPI/SessionAPI.js +1 -2
  87. package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
  88. package/dist/api-sessions/api/SessionAPI/index.cjs +3 -4
  89. package/dist/api-sessions/api/SessionAPI/index.js +1 -2
  90. package/dist/api-sessions/api/SessionAPI/types.d.cts +0 -1
  91. package/dist/api-sessions/api/SessionAPI/types.d.cts.map +1 -1
  92. package/dist/api-sessions/api/SessionAPI/types.d.ts +0 -2
  93. package/dist/api-sessions/api/SessionAPI/types.d.ts.map +1 -1
  94. package/dist/api-sessions/api/index.cjs +3 -4
  95. package/dist/api-sessions/api/index.d.ts +0 -1
  96. package/dist/api-sessions/api/index.js +1 -2
  97. package/dist/api-sessions/index.cjs +5 -6
  98. package/dist/api-sessions/index.d.ts +0 -1
  99. package/dist/api-sessions/index.js +1 -2
  100. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs +2 -3
  101. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs.map +1 -1
  102. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts +0 -2
  103. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts.map +1 -1
  104. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js +1 -1
  105. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js.map +1 -1
  106. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.cjs +3 -4
  107. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.js +1 -2
  108. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs +3 -5
  109. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs.map +1 -1
  110. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts +0 -2
  111. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts.map +1 -1
  112. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js +1 -2
  113. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js.map +1 -1
  114. package/dist/api-sessions/manager/ProxySpanSessionManager/index.cjs +3 -4
  115. package/dist/api-sessions/manager/ProxySpanSessionManager/index.js +1 -2
  116. package/dist/api-sessions/manager/index.cjs +4 -5
  117. package/dist/api-sessions/manager/index.d.ts +0 -2
  118. package/dist/api-sessions/manager/index.js +1 -2
  119. package/dist/api-sessions/manager/types.d.cts +3 -0
  120. package/dist/api-sessions/manager/types.d.cts.map +1 -1
  121. package/dist/api-sessions/manager/types.d.ts +3 -1
  122. package/dist/api-sessions/manager/types.d.ts.map +1 -1
  123. package/dist/api-sessions/sessionAPI.cjs +3 -5
  124. package/dist/api-sessions/sessionAPI.cjs.map +1 -1
  125. package/dist/api-sessions/sessionAPI.js +1 -2
  126. package/dist/api-sessions/sessionAPI.js.map +1 -1
  127. package/dist/api-traces/api/TraceAPI/TraceAPI.cjs +6 -7
  128. package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
  129. package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts +0 -1
  130. package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts.map +1 -1
  131. package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts +0 -2
  132. package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts.map +1 -1
  133. package/dist/api-traces/api/TraceAPI/TraceAPI.js +1 -2
  134. package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
  135. package/dist/api-traces/api/TraceAPI/index.cjs +3 -4
  136. package/dist/api-traces/api/TraceAPI/index.js +1 -2
  137. package/dist/api-traces/api/TraceAPI/types.d.cts.map +1 -1
  138. package/dist/api-traces/api/TraceAPI/types.d.ts +0 -1
  139. package/dist/api-traces/api/TraceAPI/types.d.ts.map +1 -1
  140. package/dist/api-traces/api/index.cjs +3 -4
  141. package/dist/api-traces/api/index.d.ts +0 -1
  142. package/dist/api-traces/api/index.js +1 -2
  143. package/dist/api-traces/index.cjs +5 -6
  144. package/dist/api-traces/index.d.ts +0 -2
  145. package/dist/api-traces/index.js +1 -2
  146. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs +4 -5
  147. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs.map +1 -1
  148. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts +0 -2
  149. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts.map +1 -1
  150. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js +1 -2
  151. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js.map +1 -1
  152. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs +3 -4
  153. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs.map +1 -1
  154. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts +0 -1
  155. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts.map +1 -1
  156. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js +1 -2
  157. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js.map +1 -1
  158. package/dist/api-traces/manager/NoOpTraceManager/index.cjs +3 -4
  159. package/dist/api-traces/manager/NoOpTraceManager/index.js +1 -2
  160. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs +3 -5
  161. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs.map +1 -1
  162. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts +0 -2
  163. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts.map +1 -1
  164. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js +1 -2
  165. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js.map +1 -1
  166. package/dist/api-traces/manager/ProxyTraceManager/index.cjs +3 -4
  167. package/dist/api-traces/manager/ProxyTraceManager/index.js +1 -2
  168. package/dist/api-traces/manager/index.cjs +4 -5
  169. package/dist/api-traces/manager/index.d.ts +0 -2
  170. package/dist/api-traces/manager/index.js +1 -2
  171. package/dist/api-traces/manager/types.d.ts +0 -1
  172. package/dist/api-traces/manager/types.d.ts.map +1 -1
  173. package/dist/api-traces/traceAPI.cjs +3 -5
  174. package/dist/api-traces/traceAPI.cjs.map +1 -1
  175. package/dist/api-traces/traceAPI.js +1 -2
  176. package/dist/api-traces/traceAPI.js.map +1 -1
  177. package/dist/api-users/api/UserAPI/UserAPI.cjs +6 -7
  178. package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
  179. package/dist/api-users/api/UserAPI/UserAPI.js +1 -2
  180. package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
  181. package/dist/api-users/api/UserAPI/index.cjs +3 -4
  182. package/dist/api-users/api/UserAPI/index.js +1 -2
  183. package/dist/api-users/api/index.cjs +3 -4
  184. package/dist/api-users/api/index.js +1 -2
  185. package/dist/api-users/index.cjs +6 -7
  186. package/dist/api-users/index.js +1 -2
  187. package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs +2 -3
  188. package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs.map +1 -1
  189. package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js +1 -1
  190. package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js.map +1 -1
  191. package/dist/api-users/manager/NoOpUserManager/index.cjs +3 -4
  192. package/dist/api-users/manager/NoOpUserManager/index.js +1 -2
  193. package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs +3 -5
  194. package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs.map +1 -1
  195. package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js +1 -2
  196. package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js.map +1 -1
  197. package/dist/api-users/manager/ProxyUserManager/index.cjs +3 -4
  198. package/dist/api-users/manager/ProxyUserManager/index.js +1 -2
  199. package/dist/api-users/manager/constants/index.cjs +2 -3
  200. package/dist/api-users/manager/constants/index.cjs.map +1 -1
  201. package/dist/api-users/manager/constants/index.js +1 -1
  202. package/dist/api-users/manager/index.cjs +5 -6
  203. package/dist/api-users/manager/index.js +1 -2
  204. package/dist/api-users/userAPI.cjs +3 -5
  205. package/dist/api-users/userAPI.cjs.map +1 -1
  206. package/dist/api-users/userAPI.js +1 -2
  207. package/dist/api-users/userAPI.js.map +1 -1
  208. package/dist/common/attributes.cjs +3 -5
  209. package/dist/common/attributes.cjs.map +1 -1
  210. package/dist/common/attributes.js +1 -2
  211. package/dist/common/attributes.js.map +1 -1
  212. package/dist/common/index.cjs +3 -4
  213. package/dist/common/index.js +1 -2
  214. package/dist/common/types.d.cts +1 -0
  215. package/dist/common/types.d.cts.map +1 -1
  216. package/dist/common/types.d.ts +1 -0
  217. package/dist/common/types.d.ts.map +1 -1
  218. package/dist/constants/attributes.cjs +11 -3
  219. package/dist/constants/attributes.cjs.map +1 -1
  220. package/dist/constants/attributes.d.cts +11 -4
  221. package/dist/constants/attributes.d.cts.map +1 -1
  222. package/dist/constants/attributes.d.ts +11 -4
  223. package/dist/constants/attributes.d.ts.map +1 -1
  224. package/dist/constants/attributes.js +10 -2
  225. package/dist/constants/attributes.js.map +1 -1
  226. package/dist/constants/index.cjs +4 -4
  227. package/dist/constants/index.d.cts +2 -2
  228. package/dist/constants/index.d.ts +2 -2
  229. package/dist/constants/index.js +2 -3
  230. package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs +2 -3
  231. package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs.map +1 -1
  232. package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js +1 -1
  233. package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js.map +1 -1
  234. package/dist/exporters/BaseFetchExporter/index.cjs +3 -4
  235. package/dist/exporters/BaseFetchExporter/index.js +1 -2
  236. package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs +6 -7
  237. package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs.map +1 -1
  238. package/dist/exporters/MXLLogExporter/MXLLogExporter.js +1 -2
  239. package/dist/exporters/MXLLogExporter/MXLLogExporter.js.map +1 -1
  240. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +9 -6
  241. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
  242. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts +4 -0
  243. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
  244. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +4 -1
  245. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
  246. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +5 -2
  247. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
  248. package/dist/exporters/MXLLogExporter/index.cjs +3 -4
  249. package/dist/exporters/MXLLogExporter/index.js +1 -2
  250. package/dist/exporters/MXLLogExporter/utils.cjs +3 -4
  251. package/dist/exporters/MXLLogExporter/utils.cjs.map +1 -1
  252. package/dist/exporters/MXLLogExporter/utils.js +1 -2
  253. package/dist/exporters/MXLLogExporter/utils.js.map +1 -1
  254. package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs +6 -7
  255. package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs.map +1 -1
  256. package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js +1 -2
  257. package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js.map +1 -1
  258. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs +5 -6
  259. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
  260. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts +0 -1
  261. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts.map +1 -1
  262. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js +1 -2
  263. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
  264. package/dist/exporters/MXLTraceExporter/index.cjs +3 -4
  265. package/dist/exporters/MXLTraceExporter/index.js +1 -2
  266. package/dist/exporters/MXLTraceExporter/utils.cjs +3 -4
  267. package/dist/exporters/MXLTraceExporter/utils.cjs.map +1 -1
  268. package/dist/exporters/MXLTraceExporter/utils.js +1 -2
  269. package/dist/exporters/MXLTraceExporter/utils.js.map +1 -1
  270. package/dist/exporters/constants.cjs +3 -6
  271. package/dist/exporters/constants.cjs.map +1 -1
  272. package/dist/exporters/constants.js +2 -4
  273. package/dist/exporters/constants.js.map +1 -1
  274. package/dist/exporters/index.cjs +7 -8
  275. package/dist/exporters/index.d.ts +0 -2
  276. package/dist/exporters/index.js +1 -2
  277. package/dist/exporters/otlpBrowserFetchExportDelegate.cjs +5 -6
  278. package/dist/exporters/otlpBrowserFetchExportDelegate.cjs.map +1 -1
  279. package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts +2 -2
  280. package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts.map +1 -1
  281. package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts +2 -2
  282. package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts.map +1 -1
  283. package/dist/exporters/otlpBrowserFetchExportDelegate.js +1 -2
  284. package/dist/exporters/otlpBrowserFetchExportDelegate.js.map +1 -1
  285. package/dist/exporters/utils.cjs +2 -3
  286. package/dist/exporters/utils.cjs.map +1 -1
  287. package/dist/exporters/utils.d.cts.map +1 -1
  288. package/dist/exporters/utils.d.ts.map +1 -1
  289. package/dist/exporters/utils.js +1 -1
  290. package/dist/exporters/utils.js.map +1 -1
  291. package/dist/index.cjs +17 -16
  292. package/dist/index.d.cts +2 -1
  293. package/dist/index.d.ts +2 -6
  294. package/dist/index.js +2 -2
  295. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs +3 -4
  296. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs.map +1 -1
  297. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js +1 -2
  298. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js.map +1 -1
  299. package/dist/instrumentations/InstrumentationAbstract/index.cjs +3 -4
  300. package/dist/instrumentations/InstrumentationAbstract/index.js +1 -2
  301. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +16 -8
  302. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
  303. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +7 -1
  304. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
  305. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +7 -5
  306. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
  307. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +11 -3
  308. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
  309. package/dist/instrumentations/MXLInstrumentationBase/index.cjs +3 -4
  310. package/dist/instrumentations/MXLInstrumentationBase/index.js +1 -2
  311. package/dist/instrumentations/MXLInstrumentationBase/types.d.cts +3 -0
  312. package/dist/instrumentations/MXLInstrumentationBase/types.d.cts.map +1 -1
  313. package/dist/instrumentations/MXLInstrumentationBase/types.d.ts +3 -1
  314. package/dist/instrumentations/MXLInstrumentationBase/types.d.ts.map +1 -1
  315. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +4 -5
  316. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
  317. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts +0 -1
  318. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
  319. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +1 -2
  320. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
  321. package/dist/instrumentations/clicks/ClicksInstrumentation/index.cjs +3 -4
  322. package/dist/instrumentations/clicks/ClicksInstrumentation/index.js +1 -2
  323. package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts +0 -1
  324. package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts.map +1 -1
  325. package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts +0 -2
  326. package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts.map +1 -1
  327. package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs +2 -3
  328. package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs.map +1 -1
  329. package/dist/instrumentations/clicks/ClicksInstrumentation/utils.js +1 -1
  330. package/dist/instrumentations/clicks/index.cjs +3 -4
  331. package/dist/instrumentations/clicks/index.d.ts +0 -1
  332. package/dist/instrumentations/clicks/index.js +1 -2
  333. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +12 -13
  334. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
  335. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.cts.map +1 -1
  336. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts +0 -1
  337. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts.map +1 -1
  338. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +8 -9
  339. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
  340. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs +2 -3
  341. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs.map +1 -1
  342. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js +1 -1
  343. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js.map +1 -1
  344. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs +2 -3
  345. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs.map +1 -1
  346. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js +1 -1
  347. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js.map +1 -1
  348. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.cjs +4 -5
  349. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.js +1 -2
  350. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.cts.map +1 -1
  351. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts +0 -1
  352. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts.map +1 -1
  353. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +6 -7
  354. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
  355. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +4 -5
  356. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
  357. package/dist/instrumentations/document-load/index.cjs +4 -5
  358. package/dist/instrumentations/document-load/index.d.ts +0 -1
  359. package/dist/instrumentations/document-load/index.js +1 -2
  360. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +67 -0
  361. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -0
  362. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts +19 -0
  363. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts.map +1 -0
  364. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts +19 -0
  365. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts.map +1 -0
  366. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +66 -0
  367. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -0
  368. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs +21 -0
  369. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs.map +1 -0
  370. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts +12 -0
  371. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts.map +1 -0
  372. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts +12 -0
  373. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts.map +1 -0
  374. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js +13 -0
  375. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js.map +1 -0
  376. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.cjs +3 -0
  377. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.cts +3 -0
  378. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.ts +3 -0
  379. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.js +2 -0
  380. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.cjs +0 -0
  381. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts +16 -0
  382. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts.map +1 -0
  383. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts +16 -0
  384. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts.map +1 -0
  385. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.js +0 -0
  386. package/dist/instrumentations/element-timing/index.cjs +3 -0
  387. package/dist/instrumentations/element-timing/index.d.cts +3 -0
  388. package/dist/instrumentations/element-timing/index.d.ts +3 -0
  389. package/dist/instrumentations/element-timing/index.js +2 -0
  390. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +3 -4
  391. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
  392. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts +0 -1
  393. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts.map +1 -1
  394. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +1 -2
  395. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
  396. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.cjs +3 -4
  397. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.js +1 -2
  398. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts +0 -1
  399. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts.map +1 -1
  400. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts +0 -2
  401. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts.map +1 -1
  402. package/dist/instrumentations/empty-root/index.cjs +3 -4
  403. package/dist/instrumentations/empty-root/index.d.ts +0 -1
  404. package/dist/instrumentations/empty-root/index.js +1 -2
  405. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +3 -4
  406. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
  407. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts +0 -1
  408. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts.map +1 -1
  409. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +1 -2
  410. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
  411. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.cjs +3 -4
  412. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.js +1 -2
  413. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts +0 -1
  414. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts.map +1 -1
  415. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts +0 -2
  416. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts.map +1 -1
  417. package/dist/instrumentations/exceptions/index.cjs +3 -4
  418. package/dist/instrumentations/exceptions/index.d.ts +0 -1
  419. package/dist/instrumentations/exceptions/index.js +1 -2
  420. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs +7 -8
  421. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
  422. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js +3 -4
  423. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
  424. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.cjs +3 -4
  425. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.js +1 -2
  426. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs +3 -4
  427. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs.map +1 -1
  428. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js +1 -2
  429. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js.map +1 -1
  430. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.cjs +3 -4
  431. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.js +1 -2
  432. package/dist/instrumentations/fetch/index.cjs +3 -4
  433. package/dist/instrumentations/fetch/index.d.ts +0 -1
  434. package/dist/instrumentations/fetch/index.js +1 -2
  435. package/dist/instrumentations/index.cjs +19 -20
  436. package/dist/instrumentations/index.d.cts +9 -9
  437. package/dist/instrumentations/index.d.ts +9 -19
  438. package/dist/instrumentations/index.js +5 -6
  439. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +168 -0
  440. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -0
  441. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +33 -0
  442. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -0
  443. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +33 -0
  444. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -0
  445. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +166 -0
  446. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -0
  447. package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs +29 -0
  448. package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs.map +1 -0
  449. package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts +16 -0
  450. package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts.map +1 -0
  451. package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts +16 -0
  452. package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts.map +1 -0
  453. package/dist/instrumentations/loaf/LoafInstrumentation/constants.js +17 -0
  454. package/dist/instrumentations/loaf/LoafInstrumentation/constants.js.map +1 -0
  455. package/dist/instrumentations/loaf/LoafInstrumentation/index.cjs +3 -0
  456. package/dist/instrumentations/loaf/LoafInstrumentation/index.d.cts +3 -0
  457. package/dist/instrumentations/loaf/LoafInstrumentation/index.d.ts +3 -0
  458. package/dist/instrumentations/loaf/LoafInstrumentation/index.js +2 -0
  459. package/dist/instrumentations/loaf/LoafInstrumentation/types.cjs +0 -0
  460. package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts +6 -0
  461. package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts.map +1 -0
  462. package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts +6 -0
  463. package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts.map +1 -0
  464. package/dist/instrumentations/loaf/LoafInstrumentation/types.js +0 -0
  465. package/dist/instrumentations/loaf/index.cjs +3 -0
  466. package/dist/instrumentations/loaf/index.d.cts +3 -0
  467. package/dist/instrumentations/loaf/index.d.ts +3 -0
  468. package/dist/instrumentations/loaf/index.js +2 -0
  469. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +7 -8
  470. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
  471. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts +0 -1
  472. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
  473. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +4 -5
  474. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
  475. package/dist/instrumentations/navigation/NavigationInstrumentation/index.cjs +4 -5
  476. package/dist/instrumentations/navigation/NavigationInstrumentation/index.js +1 -2
  477. package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs +3 -4
  478. package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs.map +1 -1
  479. package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js +1 -2
  480. package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js.map +1 -1
  481. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs +3 -4
  482. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs.map +1 -1
  483. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts +0 -1
  484. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts.map +1 -1
  485. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts +0 -2
  486. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts.map +1 -1
  487. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js +1 -2
  488. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js.map +1 -1
  489. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.cjs +3 -4
  490. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.js +1 -2
  491. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs +8 -9
  492. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs.map +1 -1
  493. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js +3 -4
  494. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js.map +1 -1
  495. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.cjs +3 -4
  496. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.js +1 -2
  497. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs +5 -6
  498. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs.map +1 -1
  499. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js +3 -4
  500. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js.map +1 -1
  501. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.cjs +3 -4
  502. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.js +1 -2
  503. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs +8 -9
  504. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs.map +1 -1
  505. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js +4 -5
  506. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js.map +1 -1
  507. package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts +0 -1
  508. package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts.map +1 -1
  509. package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts +0 -2
  510. package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts.map +1 -1
  511. package/dist/instrumentations/navigation/index.cjs +4 -5
  512. package/dist/instrumentations/navigation/index.d.ts +0 -1
  513. package/dist/instrumentations/navigation/index.js +1 -2
  514. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +59 -0
  515. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -0
  516. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts +19 -0
  517. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts.map +1 -0
  518. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts +19 -0
  519. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts.map +1 -0
  520. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +57 -0
  521. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -0
  522. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs +13 -0
  523. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs.map +1 -0
  524. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts +8 -0
  525. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts.map +1 -0
  526. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts +8 -0
  527. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts.map +1 -0
  528. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js +9 -0
  529. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js.map +1 -0
  530. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.cjs +3 -0
  531. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.cts +3 -0
  532. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.ts +3 -0
  533. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.js +2 -0
  534. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.cjs +0 -0
  535. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts +7 -0
  536. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts.map +1 -0
  537. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts +7 -0
  538. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts.map +1 -0
  539. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.js +0 -0
  540. package/dist/instrumentations/server-timing/index.cjs +3 -0
  541. package/dist/instrumentations/server-timing/index.d.cts +3 -0
  542. package/dist/instrumentations/server-timing/index.d.ts +3 -0
  543. package/dist/instrumentations/server-timing/index.js +2 -0
  544. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs +7 -8
  545. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs.map +1 -1
  546. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts.map +1 -1
  547. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts +0 -1
  548. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts.map +1 -1
  549. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js +1 -2
  550. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js.map +1 -1
  551. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs +2 -3
  552. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs.map +1 -1
  553. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js +1 -1
  554. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.cjs +3 -4
  555. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.js +1 -2
  556. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts +0 -1
  557. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts.map +1 -1
  558. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts +0 -2
  559. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts.map +1 -1
  560. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs +3 -4
  561. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs.map +1 -1
  562. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts +0 -1
  563. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts.map +1 -1
  564. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js +1 -2
  565. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js.map +1 -1
  566. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.cjs +3 -4
  567. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.js +1 -2
  568. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts +0 -1
  569. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts.map +1 -1
  570. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts +0 -2
  571. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts.map +1 -1
  572. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs +4 -5
  573. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs.map +1 -1
  574. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts.map +1 -1
  575. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts +0 -1
  576. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts.map +1 -1
  577. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js +1 -2
  578. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js.map +1 -1
  579. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs +2 -3
  580. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs.map +1 -1
  581. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js +1 -1
  582. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.cjs +3 -4
  583. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.js +1 -2
  584. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts +0 -1
  585. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts.map +1 -1
  586. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts +0 -2
  587. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts.map +1 -1
  588. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs +10 -73
  589. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs.map +1 -1
  590. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts +1 -14
  591. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts.map +1 -1
  592. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts +1 -17
  593. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts.map +1 -1
  594. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js +8 -71
  595. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js.map +1 -1
  596. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.cjs +3 -4
  597. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.js +1 -2
  598. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts +1 -6
  599. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts.map +1 -1
  600. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts +1 -7
  601. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts.map +1 -1
  602. package/dist/instrumentations/session/index.cjs +6 -11
  603. package/dist/instrumentations/session/index.d.cts +1 -5
  604. package/dist/instrumentations/session/index.d.ts +1 -11
  605. package/dist/instrumentations/session/index.js +1 -4
  606. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +95 -0
  607. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -0
  608. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts +23 -0
  609. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts.map +1 -0
  610. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts +23 -0
  611. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts.map +1 -0
  612. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +93 -0
  613. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -0
  614. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs +17 -0
  615. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs.map +1 -0
  616. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts +10 -0
  617. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts.map +1 -0
  618. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts +10 -0
  619. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts.map +1 -0
  620. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js +11 -0
  621. package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js.map +1 -0
  622. package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.cjs +3 -0
  623. package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.cts +3 -0
  624. package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.ts +3 -0
  625. package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.js +2 -0
  626. package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.cjs +0 -0
  627. package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts +18 -0
  628. package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts.map +1 -0
  629. package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts +18 -0
  630. package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts.map +1 -0
  631. package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.js +0 -0
  632. package/dist/instrumentations/user-timing/index.cjs +3 -0
  633. package/dist/instrumentations/user-timing/index.d.cts +3 -0
  634. package/dist/instrumentations/user-timing/index.d.ts +3 -0
  635. package/dist/instrumentations/user-timing/index.js +2 -0
  636. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +79 -105
  637. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
  638. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts.map +1 -1
  639. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts +0 -1
  640. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts.map +1 -1
  641. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +75 -101
  642. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
  643. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs +19 -0
  644. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs.map +1 -0
  645. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts +11 -0
  646. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts.map +1 -0
  647. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts +11 -0
  648. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts.map +1 -0
  649. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js +12 -0
  650. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js.map +1 -0
  651. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs +60 -4
  652. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs.map +1 -1
  653. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts +9 -7
  654. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts.map +1 -1
  655. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts +9 -7
  656. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts.map +1 -1
  657. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js +57 -3
  658. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js.map +1 -1
  659. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.cjs +3 -4
  660. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.js +1 -2
  661. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +1 -1
  662. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
  663. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +1 -2
  664. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
  665. package/dist/instrumentations/web-vitals/index.cjs +3 -4
  666. package/dist/instrumentations/web-vitals/index.d.ts +0 -1
  667. package/dist/instrumentations/web-vitals/index.js +1 -2
  668. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs +3 -4
  669. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs.map +1 -1
  670. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js +1 -2
  671. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js.map +1 -1
  672. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.cjs +3 -4
  673. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.js +1 -2
  674. package/dist/instrumentations/xhr/index.cjs +3 -4
  675. package/dist/instrumentations/xhr/index.d.ts +0 -1
  676. package/dist/instrumentations/xhr/index.js +1 -2
  677. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +43 -10
  678. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
  679. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts +10 -0
  680. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
  681. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts +10 -1
  682. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
  683. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +39 -6
  684. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
  685. package/dist/managers/MXLConfigManager/constants.cjs +2 -3
  686. package/dist/managers/MXLConfigManager/constants.cjs.map +1 -1
  687. package/dist/managers/MXLConfigManager/constants.d.cts +0 -1
  688. package/dist/managers/MXLConfigManager/constants.d.cts.map +1 -1
  689. package/dist/managers/MXLConfigManager/constants.d.ts +0 -2
  690. package/dist/managers/MXLConfigManager/constants.d.ts.map +1 -1
  691. package/dist/managers/MXLConfigManager/constants.js +1 -1
  692. package/dist/managers/MXLConfigManager/index.cjs +3 -4
  693. package/dist/managers/MXLConfigManager/index.js +1 -2
  694. package/dist/managers/MXLConfigManager/types.d.cts +2 -1
  695. package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
  696. package/dist/managers/MXLConfigManager/types.d.ts +2 -2
  697. package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
  698. package/dist/managers/MXLConfigManager/utils.cjs +2 -3
  699. package/dist/managers/MXLConfigManager/utils.cjs.map +1 -1
  700. package/dist/managers/MXLConfigManager/utils.js +1 -1
  701. package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +24 -8
  702. package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
  703. package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts +3 -0
  704. package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts.map +1 -1
  705. package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts +3 -1
  706. package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts.map +1 -1
  707. package/dist/managers/MXLLimitManager/MXLLimitManager.js +22 -6
  708. package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
  709. package/dist/managers/MXLLimitManager/constants.cjs +11 -8
  710. package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
  711. package/dist/managers/MXLLimitManager/constants.js +10 -6
  712. package/dist/managers/MXLLimitManager/constants.js.map +1 -1
  713. package/dist/managers/MXLLimitManager/index.cjs +4 -5
  714. package/dist/managers/MXLLimitManager/index.js +1 -2
  715. package/dist/managers/MXLLimitManager/types.d.cts +7 -1
  716. package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
  717. package/dist/managers/MXLLimitManager/types.d.ts +7 -2
  718. package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
  719. package/dist/managers/MXLLogManager/MXLLogManager.cjs +11 -12
  720. package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
  721. package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
  722. package/dist/managers/MXLLogManager/MXLLogManager.d.ts +0 -2
  723. package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
  724. package/dist/managers/MXLLogManager/MXLLogManager.js +5 -6
  725. package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
  726. package/dist/managers/MXLLogManager/index.cjs +3 -4
  727. package/dist/managers/MXLLogManager/index.js +1 -2
  728. package/dist/managers/MXLLogManager/types.d.ts +0 -3
  729. package/dist/managers/MXLLogManager/types.d.ts.map +1 -1
  730. package/dist/managers/MXLPageManager/MXLPageManager.cjs +3 -4
  731. package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
  732. package/dist/managers/MXLPageManager/MXLPageManager.js +1 -2
  733. package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
  734. package/dist/managers/MXLPageManager/index.cjs +3 -4
  735. package/dist/managers/MXLPageManager/index.js +1 -2
  736. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs +3 -4
  737. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
  738. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js +1 -2
  739. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
  740. package/dist/managers/MXLSDKFeaturesManager/index.cjs +3 -4
  741. package/dist/managers/MXLSDKFeaturesManager/index.js +1 -2
  742. package/dist/managers/MXLSDKFeaturesManager/types.d.cts +0 -1
  743. package/dist/managers/MXLSDKFeaturesManager/types.d.cts.map +1 -1
  744. package/dist/managers/MXLSDKFeaturesManager/types.d.ts +0 -2
  745. package/dist/managers/MXLSDKFeaturesManager/types.d.ts.map +1 -1
  746. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs +18 -17
  747. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs.map +1 -1
  748. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts +3 -1
  749. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts.map +1 -1
  750. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts +3 -3
  751. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts.map +1 -1
  752. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js +9 -8
  753. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js.map +1 -1
  754. package/dist/managers/MXLSpanSessionManager/constants.cjs +2 -3
  755. package/dist/managers/MXLSpanSessionManager/constants.cjs.map +1 -1
  756. package/dist/managers/MXLSpanSessionManager/constants.js +1 -1
  757. package/dist/managers/MXLSpanSessionManager/index.cjs +3 -4
  758. package/dist/managers/MXLSpanSessionManager/index.js +1 -2
  759. package/dist/managers/MXLSpanSessionManager/types.d.cts +5 -0
  760. package/dist/managers/MXLSpanSessionManager/types.d.cts.map +1 -1
  761. package/dist/managers/MXLSpanSessionManager/types.d.ts +5 -3
  762. package/dist/managers/MXLSpanSessionManager/types.d.ts.map +1 -1
  763. package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs +3 -4
  764. package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
  765. package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.cts.map +1 -1
  766. package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts +0 -1
  767. package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts.map +1 -1
  768. package/dist/managers/MXLTraceManager/MXLExtendedSpan.js +1 -2
  769. package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
  770. package/dist/managers/MXLTraceManager/MXLTraceManager.cjs +8 -8
  771. package/dist/managers/MXLTraceManager/MXLTraceManager.cjs.map +1 -1
  772. package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts +0 -1
  773. package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts.map +1 -1
  774. package/dist/managers/MXLTraceManager/MXLTraceManager.js +5 -5
  775. package/dist/managers/MXLTraceManager/MXLTraceManager.js.map +1 -1
  776. package/dist/managers/MXLTraceManager/index.cjs +4 -5
  777. package/dist/managers/MXLTraceManager/index.js +1 -2
  778. package/dist/managers/MXLUserManager/MXLUserManager.cjs +7 -8
  779. package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
  780. package/dist/managers/MXLUserManager/MXLUserManager.js +1 -2
  781. package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
  782. package/dist/managers/MXLUserManager/constants.cjs +2 -3
  783. package/dist/managers/MXLUserManager/constants.cjs.map +1 -1
  784. package/dist/managers/MXLUserManager/constants.js +1 -1
  785. package/dist/managers/MXLUserManager/index.cjs +3 -4
  786. package/dist/managers/MXLUserManager/index.js +1 -2
  787. package/dist/managers/MXLUserManager/types.cjs +4 -5
  788. package/dist/managers/MXLUserManager/types.cjs.map +1 -1
  789. package/dist/managers/MXLUserManager/types.js +3 -4
  790. package/dist/managers/MXLUserManager/types.js.map +1 -1
  791. package/dist/managers/index.cjs +12 -13
  792. package/dist/managers/index.d.cts +1 -1
  793. package/dist/managers/index.d.ts +1 -9
  794. package/dist/managers/index.js +1 -2
  795. package/dist/mxl-web-sdk.js +38 -1
  796. package/dist/mxl-web-sdk.js.map +1 -1
  797. package/dist/packages/otlp-transformer/dist/index.cjs +480 -177
  798. package/dist/packages/otlp-transformer/dist/index.cjs.map +1 -1
  799. package/dist/packages/otlp-transformer/dist/index.d.cts +6 -2
  800. package/dist/packages/otlp-transformer/dist/index.d.cts.map +1 -1
  801. package/dist/packages/otlp-transformer/dist/index.d.ts +6 -2
  802. package/dist/packages/otlp-transformer/dist/index.d.ts.map +1 -1
  803. package/dist/packages/otlp-transformer/dist/index.js +480 -176
  804. package/dist/packages/otlp-transformer/dist/index.js.map +1 -1
  805. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs +4 -5
  806. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs.map +1 -1
  807. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.cts.map +1 -1
  808. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.ts.map +1 -1
  809. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js +2 -3
  810. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js.map +1 -1
  811. package/dist/processors/BrowserLogRecordProcessor/index.cjs +3 -4
  812. package/dist/processors/BrowserLogRecordProcessor/index.js +1 -2
  813. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs +4 -5
  814. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
  815. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.cts.map +1 -1
  816. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.ts.map +1 -1
  817. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js +2 -3
  818. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
  819. package/dist/processors/BrowserSpanProcessor/index.cjs +3 -4
  820. package/dist/processors/BrowserSpanProcessor/index.js +1 -2
  821. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs +4 -5
  822. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs.map +1 -1
  823. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js +1 -2
  824. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js.map +1 -1
  825. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.cjs +3 -4
  826. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.js +1 -2
  827. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts +0 -1
  828. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts.map +1 -1
  829. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs +2 -3
  830. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs.map +1 -1
  831. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js +1 -1
  832. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js.map +1 -1
  833. package/dist/processors/LogRecordScrubProcessor/index.cjs +3 -4
  834. package/dist/processors/LogRecordScrubProcessor/index.js +1 -2
  835. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs +5 -6
  836. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
  837. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js +3 -4
  838. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
  839. package/dist/processors/MXLLogRecordProcessor/index.cjs +3 -4
  840. package/dist/processors/MXLLogRecordProcessor/index.js +1 -2
  841. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs +6 -7
  842. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
  843. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js +3 -4
  844. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
  845. package/dist/processors/MXLNetworkSpanProcessor/index.cjs +3 -4
  846. package/dist/processors/MXLNetworkSpanProcessor/index.js +1 -2
  847. package/dist/processors/MXLNetworkSpanProcessor/types.cjs +3 -4
  848. package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
  849. package/dist/processors/MXLNetworkSpanProcessor/types.js +1 -2
  850. package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
  851. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs +6 -7
  852. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs.map +1 -1
  853. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js +3 -4
  854. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js.map +1 -1
  855. package/dist/processors/MXLSessionBatchedSpanProcessor/index.cjs +3 -4
  856. package/dist/processors/MXLSessionBatchedSpanProcessor/index.js +1 -2
  857. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts +0 -1
  858. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts.map +1 -1
  859. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs +5 -6
  860. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
  861. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js +3 -4
  862. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
  863. package/dist/processors/PageLogRecordProcessor/index.cjs +3 -4
  864. package/dist/processors/PageLogRecordProcessor/index.js +1 -2
  865. package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs +5 -6
  866. package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
  867. package/dist/processors/PageSpanProcessor/PageSpanProcessor.js +3 -4
  868. package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
  869. package/dist/processors/PageSpanProcessor/index.cjs +3 -4
  870. package/dist/processors/PageSpanProcessor/index.js +1 -2
  871. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs +2 -3
  872. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
  873. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js +1 -1
  874. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
  875. package/dist/processors/SpanScrubProcessor/index.cjs +3 -4
  876. package/dist/processors/SpanScrubProcessor/index.js +1 -2
  877. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs +3 -4
  878. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs.map +1 -1
  879. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js +1 -2
  880. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js.map +1 -1
  881. package/dist/processors/UserLogRecordProcessor/index.cjs +3 -4
  882. package/dist/processors/UserLogRecordProcessor/index.js +1 -2
  883. package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs +3 -4
  884. package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
  885. package/dist/processors/UserSpanProcessor/UserSpanProcessor.js +1 -2
  886. package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
  887. package/dist/processors/UserSpanProcessor/index.cjs +3 -4
  888. package/dist/processors/UserSpanProcessor/index.js +1 -2
  889. package/dist/processors/index.cjs +14 -15
  890. package/dist/processors/index.d.ts +0 -12
  891. package/dist/processors/index.js +1 -2
  892. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs +4 -5
  893. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs.map +1 -1
  894. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js +1 -2
  895. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js.map +1 -1
  896. package/dist/propagators/MXLW3CTraceContextPropagator/index.cjs +3 -4
  897. package/dist/propagators/MXLW3CTraceContextPropagator/index.js +1 -2
  898. package/dist/propagators/index.cjs +3 -4
  899. package/dist/propagators/index.d.ts +0 -1
  900. package/dist/propagators/index.js +1 -2
  901. package/dist/react-instrumentation/index.cjs +7 -8
  902. package/dist/react-instrumentation/index.d.ts +0 -3
  903. package/dist/react-instrumentation/index.js +1 -2
  904. package/dist/resources/appInstanceId.cjs +4 -5
  905. package/dist/resources/appInstanceId.cjs.map +1 -1
  906. package/dist/resources/appInstanceId.js +1 -2
  907. package/dist/resources/appInstanceId.js.map +1 -1
  908. package/dist/resources/constants/index.cjs +3 -4
  909. package/dist/resources/constants/index.cjs.map +1 -1
  910. package/dist/resources/constants/index.d.cts +1 -1
  911. package/dist/resources/constants/index.d.ts +1 -1
  912. package/dist/resources/constants/index.js +2 -2
  913. package/dist/resources/constants/index.js.map +1 -1
  914. package/dist/resources/index.cjs +7 -6
  915. package/dist/resources/index.d.cts +2 -2
  916. package/dist/resources/index.d.ts +2 -2
  917. package/dist/resources/index.js +2 -3
  918. package/dist/resources/webSdkResource.cjs +22 -9
  919. package/dist/resources/webSdkResource.cjs.map +1 -1
  920. package/dist/resources/webSdkResource.d.cts +16 -1
  921. package/dist/resources/webSdkResource.d.cts.map +1 -1
  922. package/dist/resources/webSdkResource.d.ts +16 -1
  923. package/dist/resources/webSdkResource.d.ts.map +1 -1
  924. package/dist/resources/webSdkResource.js +17 -6
  925. package/dist/resources/webSdkResource.js.map +1 -1
  926. package/dist/sdk/defaultAttributeScrubbers.cjs +3 -4
  927. package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
  928. package/dist/sdk/defaultAttributeScrubbers.js +1 -2
  929. package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
  930. package/dist/sdk/index.cjs +3 -4
  931. package/dist/sdk/index.d.cts +2 -2
  932. package/dist/sdk/index.d.ts +2 -2
  933. package/dist/sdk/index.js +1 -2
  934. package/dist/sdk/initSDK.cjs +75 -58
  935. package/dist/sdk/initSDK.cjs.map +1 -1
  936. package/dist/sdk/initSDK.d.cts +4 -1
  937. package/dist/sdk/initSDK.d.cts.map +1 -1
  938. package/dist/sdk/initSDK.d.ts +4 -1
  939. package/dist/sdk/initSDK.d.ts.map +1 -1
  940. package/dist/sdk/initSDK.js +37 -20
  941. package/dist/sdk/initSDK.js.map +1 -1
  942. package/dist/sdk/registry.cjs +3 -4
  943. package/dist/sdk/registry.cjs.map +1 -1
  944. package/dist/sdk/registry.js +1 -2
  945. package/dist/sdk/registry.js.map +1 -1
  946. package/dist/sdk/setupDefaultInstrumentations.cjs +36 -28
  947. package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
  948. package/dist/sdk/setupDefaultInstrumentations.d.cts +2 -3
  949. package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
  950. package/dist/sdk/setupDefaultInstrumentations.d.ts +2 -3
  951. package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
  952. package/dist/sdk/setupDefaultInstrumentations.js +26 -19
  953. package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
  954. package/dist/sdk/setupSessionRecorder.cjs +45 -0
  955. package/dist/sdk/setupSessionRecorder.cjs.map +1 -0
  956. package/dist/sdk/setupSessionRecorder.d.cts +21 -0
  957. package/dist/sdk/setupSessionRecorder.d.cts.map +1 -0
  958. package/dist/sdk/setupSessionRecorder.d.ts +21 -0
  959. package/dist/sdk/setupSessionRecorder.d.ts.map +1 -0
  960. package/dist/sdk/setupSessionRecorder.js +42 -0
  961. package/dist/sdk/setupSessionRecorder.js.map +1 -0
  962. package/dist/sdk/types.d.cts +51 -17
  963. package/dist/sdk/types.d.cts.map +1 -1
  964. package/dist/sdk/types.d.ts +51 -23
  965. package/dist/sdk/types.d.ts.map +1 -1
  966. package/dist/sdk/utils.cjs +3 -4
  967. package/dist/sdk/utils.cjs.map +1 -1
  968. package/dist/sdk/utils.js +1 -2
  969. package/dist/sdk/utils.js.map +1 -1
  970. package/dist/transport/FetchTransport/FetchTransport.cjs +3 -4
  971. package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
  972. package/dist/transport/FetchTransport/FetchTransport.js +1 -2
  973. package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
  974. package/dist/transport/FetchTransport/createFetchTransport.cjs +3 -4
  975. package/dist/transport/FetchTransport/createFetchTransport.cjs.map +1 -1
  976. package/dist/transport/FetchTransport/createFetchTransport.js +1 -2
  977. package/dist/transport/FetchTransport/createFetchTransport.js.map +1 -1
  978. package/dist/transport/FetchTransport/index.cjs +3 -4
  979. package/dist/transport/FetchTransport/index.js +1 -2
  980. package/dist/transport/RetryingTransport/RetryingTransport.cjs +6 -7
  981. package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
  982. package/dist/transport/RetryingTransport/RetryingTransport.d.ts +0 -1
  983. package/dist/transport/RetryingTransport/RetryingTransport.d.ts.map +1 -1
  984. package/dist/transport/RetryingTransport/RetryingTransport.js +4 -5
  985. package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
  986. package/dist/transport/RetryingTransport/constants.cjs +2 -3
  987. package/dist/transport/RetryingTransport/constants.cjs.map +1 -1
  988. package/dist/transport/RetryingTransport/constants.js +1 -1
  989. package/dist/transport/RetryingTransport/createRetryingTransport.cjs +4 -5
  990. package/dist/transport/RetryingTransport/createRetryingTransport.cjs.map +1 -1
  991. package/dist/transport/RetryingTransport/createRetryingTransport.d.cts.map +1 -1
  992. package/dist/transport/RetryingTransport/createRetryingTransport.d.ts +0 -1
  993. package/dist/transport/RetryingTransport/createRetryingTransport.d.ts.map +1 -1
  994. package/dist/transport/RetryingTransport/createRetryingTransport.js +1 -2
  995. package/dist/transport/RetryingTransport/createRetryingTransport.js.map +1 -1
  996. package/dist/transport/RetryingTransport/index.cjs +3 -4
  997. package/dist/transport/RetryingTransport/index.js +1 -2
  998. package/dist/transport/index.cjs +4 -5
  999. package/dist/transport/index.d.ts +0 -2
  1000. package/dist/transport/index.js +1 -2
  1001. package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs +4 -5
  1002. package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs.map +1 -1
  1003. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts +0 -1
  1004. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts.map +1 -1
  1005. package/dist/utils/MXLSpanStorage/MXLSpanStorage.js +1 -2
  1006. package/dist/utils/MXLSpanStorage/MXLSpanStorage.js.map +1 -1
  1007. package/dist/utils/MXLSpanStorage/index.cjs +3 -4
  1008. package/dist/utils/MXLSpanStorage/index.d.ts +0 -1
  1009. package/dist/utils/MXLSpanStorage/index.js +1 -2
  1010. package/dist/utils/NamespacedStorage/NamespacedStorage.cjs +12 -3
  1011. package/dist/utils/NamespacedStorage/NamespacedStorage.cjs.map +1 -1
  1012. package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts +8 -0
  1013. package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts.map +1 -1
  1014. package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts +8 -0
  1015. package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts.map +1 -1
  1016. package/dist/utils/NamespacedStorage/NamespacedStorage.js +11 -1
  1017. package/dist/utils/NamespacedStorage/NamespacedStorage.js.map +1 -1
  1018. package/dist/utils/NamespacedStorage/index.cjs +3 -4
  1019. package/dist/utils/NamespacedStorage/index.js +1 -2
  1020. package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs +4 -4
  1021. package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
  1022. package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts +1 -0
  1023. package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts.map +1 -1
  1024. package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts +1 -0
  1025. package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts.map +1 -1
  1026. package/dist/utils/PerformanceManager/OTelPerformanceManager.js +2 -2
  1027. package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
  1028. package/dist/utils/PerformanceManager/index.cjs +3 -4
  1029. package/dist/utils/PerformanceManager/index.js +1 -2
  1030. package/dist/utils/PerformanceManager/types.d.cts +1 -0
  1031. package/dist/utils/PerformanceManager/types.d.cts.map +1 -1
  1032. package/dist/utils/PerformanceManager/types.d.ts +1 -0
  1033. package/dist/utils/PerformanceManager/types.d.ts.map +1 -1
  1034. package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs +2 -3
  1035. package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs.map +1 -1
  1036. package/dist/utils/bulkAddEventListener/bulkAddEventListener.js +1 -1
  1037. package/dist/utils/bulkAddEventListener/index.cjs +3 -4
  1038. package/dist/utils/bulkAddEventListener/index.js +1 -2
  1039. package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs +2 -3
  1040. package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs.map +1 -1
  1041. package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.js +1 -1
  1042. package/dist/utils/bulkRemoveEventListener/index.cjs +3 -4
  1043. package/dist/utils/bulkRemoveEventListener/index.js +1 -2
  1044. package/dist/utils/createSafeProxy/createSafeProxy.cjs +2 -3
  1045. package/dist/utils/createSafeProxy/createSafeProxy.cjs.map +1 -1
  1046. package/dist/utils/createSafeProxy/createSafeProxy.js +1 -1
  1047. package/dist/utils/createSafeProxy/index.cjs +3 -4
  1048. package/dist/utils/createSafeProxy/index.js +1 -2
  1049. package/dist/utils/generateUUID.cjs +2 -3
  1050. package/dist/utils/generateUUID.cjs.map +1 -1
  1051. package/dist/utils/generateUUID.js +1 -1
  1052. package/dist/utils/generateWebVitalID.cjs +9 -0
  1053. package/dist/utils/generateWebVitalID.cjs.map +1 -0
  1054. package/dist/utils/generateWebVitalID.d.cts +5 -0
  1055. package/dist/utils/generateWebVitalID.d.cts.map +1 -0
  1056. package/dist/utils/generateWebVitalID.d.ts +5 -0
  1057. package/dist/utils/generateWebVitalID.d.ts.map +1 -0
  1058. package/dist/utils/generateWebVitalID.js +8 -0
  1059. package/dist/utils/generateWebVitalID.js.map +1 -0
  1060. package/dist/utils/getIncrementedCount.cjs +6 -3
  1061. package/dist/utils/getIncrementedCount.cjs.map +1 -1
  1062. package/dist/utils/getIncrementedCount.js +5 -1
  1063. package/dist/utils/getIncrementedCount.js.map +1 -1
  1064. package/dist/utils/getVisibilityState.cjs +4 -5
  1065. package/dist/utils/getVisibilityState.cjs.map +1 -1
  1066. package/dist/utils/getVisibilityState.js +3 -4
  1067. package/dist/utils/getVisibilityState.js.map +1 -1
  1068. package/dist/utils/globalConfig.cjs +2 -3
  1069. package/dist/utils/globalConfig.cjs.map +1 -1
  1070. package/dist/utils/globalConfig.js +1 -1
  1071. package/dist/utils/index.cjs +20 -16
  1072. package/dist/utils/index.d.cts +4 -2
  1073. package/dist/utils/index.d.ts +4 -5
  1074. package/dist/utils/index.js +3 -2
  1075. package/dist/utils/isDeviceIdEnabled.cjs +2 -3
  1076. package/dist/utils/isDeviceIdEnabled.cjs.map +1 -1
  1077. package/dist/utils/isDeviceIdEnabled.js +1 -1
  1078. package/dist/utils/isDeviceIdEnabled.js.map +1 -1
  1079. package/dist/utils/nsfConfigValidation.cjs +2 -3
  1080. package/dist/utils/nsfConfigValidation.cjs.map +1 -1
  1081. package/dist/utils/nsfConfigValidation.d.ts +0 -2
  1082. package/dist/utils/nsfConfigValidation.d.ts.map +1 -1
  1083. package/dist/utils/nsfConfigValidation.js +1 -1
  1084. package/dist/utils/performanceObserver/index.cjs +4 -0
  1085. package/dist/utils/performanceObserver/index.d.cts +2 -0
  1086. package/dist/utils/performanceObserver/index.d.ts +2 -0
  1087. package/dist/utils/performanceObserver/index.js +2 -0
  1088. package/dist/utils/performanceObserver/performanceObserver.cjs +47 -0
  1089. package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -0
  1090. package/dist/utils/performanceObserver/performanceObserver.d.cts +23 -0
  1091. package/dist/utils/performanceObserver/performanceObserver.d.cts.map +1 -0
  1092. package/dist/utils/performanceObserver/performanceObserver.d.ts +23 -0
  1093. package/dist/utils/performanceObserver/performanceObserver.d.ts.map +1 -0
  1094. package/dist/utils/performanceObserver/performanceObserver.js +45 -0
  1095. package/dist/utils/performanceObserver/performanceObserver.js.map +1 -0
  1096. package/dist/utils/throttle.cjs +2 -3
  1097. package/dist/utils/throttle.cjs.map +1 -1
  1098. package/dist/utils/throttle.js +1 -1
  1099. package/package.json +15 -13
@@ -1,102 +1,74 @@
1
- import { KEY_APP_SURFACE_LABEL, KEY_BROWSER_URL_FULL, KEY_MXL_PAGE_ID, KEY_MXL_PAGE_PATH, KEY_MXL_TYPE, MXL_TYPES } from "../../../constants/attributes.js";
1
+ import { KEY_APP_SURFACE_LABEL, KEY_BROWSER_URL_FULL, KEY_MXL_PAGE_ID, KEY_MXL_PAGE_PATH, KEY_MXL_TYPE } from "../../../constants/attributes.js";
2
2
  import { page } from "../../../api-page/pageAPI.js";
3
3
  import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.js";
4
- import { ALL_WEB_VITALS, MXL_WEB_VITALS_PREFIX, WEB_VITALS_ID_TO_LISTENER } from "./constants.js";
4
+ import { KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX, KEY_MXL_WEB_VITAL_DELTA, KEY_MXL_WEB_VITAL_ID, KEY_MXL_WEB_VITAL_NAME, KEY_MXL_WEB_VITAL_NAVIGATION_TYPE, KEY_MXL_WEB_VITAL_RATING, KEY_MXL_WEB_VITAL_VALUE } from "./attributes.js";
5
+ import { ALL_WEB_VITALS, MAX_LOAF_SCRIPT_URL_LENGTH, MXL_WEB_VITALS_PREFIX, WEB_VITALS_ID_TO_LISTENER } from "./constants.js";
5
6
  import { ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
6
-
7
7
  //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts
8
- const webVitalAttributionToReport = (name, metric) => {
8
+ const isPrimitiveValue = (value) => {
9
+ const type = typeof value;
10
+ return type === "number" || type === "string" || type === "boolean";
11
+ };
12
+ const roundClamp = (value) => Math.round(Math.max(0, value));
13
+ const webVitalAttributionToReport = (metric) => {
9
14
  const attributes = {};
10
- const toReport = [];
11
- if (name === "CLS") {
12
- const attribution = metric.attribution;
13
- toReport.push(...[{
14
- key: "largestShiftTarget",
15
- value: attribution.largestShiftTarget
16
- }, {
17
- key: "largestShiftValue",
18
- value: attribution.largestShiftValue
19
- }]);
20
- } else if (name === "INP") {
21
- const attribution = metric.attribution;
22
- toReport.push(...[
23
- {
24
- key: "interactionTarget",
25
- value: attribution.interactionTarget
26
- },
27
- {
28
- key: "interactionType",
29
- value: attribution.interactionType
30
- },
31
- {
32
- key: "nextPaintTime",
33
- value: attribution.nextPaintTime
34
- },
35
- {
36
- key: "inputDelay",
37
- value: attribution.inputDelay
38
- },
39
- {
40
- key: "processingDuration",
41
- value: attribution.processingDuration
42
- },
43
- {
44
- key: "presentationDelay",
45
- value: attribution.presentationDelay
46
- },
47
- {
48
- key: "totalScriptDuration",
49
- value: attribution.totalScriptDuration
50
- },
51
- {
52
- key: "totalStyleAndLayoutDuration",
53
- value: attribution.totalStyleAndLayoutDuration
54
- },
55
- {
56
- key: "totalPaintDuration",
57
- value: attribution.totalPaintDuration
58
- },
59
- {
60
- key: "totalUnattributedDuration",
61
- value: attribution.totalUnattributedDuration
62
- },
63
- {
64
- key: "loadState",
65
- value: attribution.loadState
66
- }
67
- ]);
68
- } else if (name === "LCP") {
69
- const attribution = metric.attribution;
70
- toReport.push(...[
71
- {
72
- key: "target",
73
- value: attribution.target
74
- },
75
- {
76
- key: "url",
77
- value: attribution.url
78
- },
79
- {
80
- key: "timeToFirstByte",
81
- value: attribution.timeToFirstByte
82
- },
83
- {
84
- key: "resourceLoadDelay",
85
- value: attribution.resourceLoadDelay
86
- },
87
- {
88
- key: "resourceLoadDuration",
89
- value: attribution.resourceLoadDuration
90
- },
91
- {
92
- key: "elementRenderDelay",
93
- value: attribution.elementRenderDelay
15
+ const attribution = metric.attribution;
16
+ if (!attribution || typeof attribution !== "object") return attributes;
17
+ for (const [key, value] of Object.entries(attribution)) if (isPrimitiveValue(value)) attributes[`${KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}${key}`] = value;
18
+ return attributes;
19
+ };
20
+ const loafScriptsAttribution = (metric, diag) => {
21
+ const attributes = {};
22
+ const attribution = metric.attribution;
23
+ try {
24
+ if (attribution.longAnimationFrameEntries.length > 0) {
25
+ const scripts = /* @__PURE__ */ new Map();
26
+ for (const entry of attribution.longAnimationFrameEntries) for (const script of entry.scripts) {
27
+ let url = script.sourceURL || "(inline)";
28
+ if (url.length > 2048) url = `${url.substring(0, MAX_LOAF_SCRIPT_URL_LENGTH)}...`;
29
+ const existing = scripts.get(url);
30
+ if (existing) {
31
+ existing.totalDuration += script.duration;
32
+ existing.styleAndLayoutDuration += script.forcedStyleAndLayoutDuration;
33
+ existing.count++;
34
+ } else scripts.set(url, {
35
+ totalDuration: script.duration,
36
+ styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,
37
+ count: 1
38
+ });
94
39
  }
95
- ]);
40
+ if (scripts.size > 0) attributes[`${KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}loaf_scripts`] = JSON.stringify(Object.fromEntries([...scripts].sort((a, b) => b[1].totalDuration - a[1].totalDuration).slice(0, 250).map(([url, script]) => [url, {
41
+ total_duration: Math.round(script.totalDuration),
42
+ style_and_layout_duration: Math.round(script.styleAndLayoutDuration),
43
+ count: script.count
44
+ }])));
45
+ }
46
+ } catch (e) {
47
+ diag.error("error building loaf scripts for INP", e);
96
48
  }
97
- toReport.forEach((report) => {
98
- if (report.value !== void 0) attributes[`mxl.web_vital.attribution.${report.key}`] = report.value;
99
- });
49
+ return attributes;
50
+ };
51
+ const ttfbSubPartsAttribution = (metric, diag) => {
52
+ const attributes = {};
53
+ const entry = metric.attribution.navigationEntry;
54
+ if (entry) try {
55
+ const redirect = roundClamp(entry.redirectEnd - entry.redirectStart);
56
+ const domainLookup = roundClamp(entry.domainLookupEnd - entry.domainLookupStart);
57
+ const tcpConnection = roundClamp(entry.secureConnectionStart > 0 ? entry.secureConnectionStart - entry.connectStart : entry.connectEnd - entry.connectStart);
58
+ const tlsNegotiation = roundClamp(entry.secureConnectionStart > 0 ? entry.connectEnd - entry.secureConnectionStart : 0);
59
+ const serverResponse = roundClamp(Math.max(entry.finalResponseHeadersStart ?? 0, entry.responseStart) - entry.requestStart);
60
+ const unattributed = roundClamp(Math.round(entry.responseEnd - entry.startTime) - redirect - domainLookup - tcpConnection - tlsNegotiation - serverResponse);
61
+ const prefix = KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX;
62
+ attributes[`${prefix}redirect`] = redirect;
63
+ attributes[`${prefix}domainLookup`] = domainLookup;
64
+ attributes[`${prefix}tcpConnection`] = tcpConnection;
65
+ attributes[`${prefix}tlsNegotiation`] = tlsNegotiation;
66
+ attributes[`${prefix}serverResponse`] = serverResponse;
67
+ attributes[`${prefix}unattributed`] = unattributed;
68
+ } catch (e) {
69
+ diag.error("error computing TTFB timing breakdown", e);
70
+ }
71
+ else diag.debug("TTFB navigationEntry unavailable, skipping timing breakdown");
100
72
  return attributes;
101
73
  };
102
74
  var WebVitalsInstrumentation = class extends MXLInstrumentationBase {
@@ -147,16 +119,18 @@ var WebVitalsInstrumentation = class extends MXLInstrumentationBase {
147
119
  const metricTime = this._getTimeForMetric(metric);
148
120
  const attributedPage = this._getAttributedPageForMetric(metric);
149
121
  const attrs = {
150
- [KEY_MXL_TYPE]: MXL_TYPES.WebVital,
122
+ [KEY_MXL_TYPE]: "ux.web_vital",
151
123
  [ATTR_URL_FULL]: attributedPage.fullURL,
152
124
  [KEY_BROWSER_URL_FULL]: attributedPage.fullURL,
153
- "mxl.web_vital.navigation_type": metric.navigationType,
154
- "mxl.web_vital.name": metric.name,
155
- "mxl.web_vital.rating": metric.rating,
156
- "mxl.web_vital.id": metric.id,
157
- "mxl.web_vital.delta": metric.delta,
158
- "mxl.web_vital.value": metric.value,
159
- ...webVitalAttributionToReport(name, metric)
125
+ [KEY_MXL_WEB_VITAL_NAVIGATION_TYPE]: metric.navigationType,
126
+ [KEY_MXL_WEB_VITAL_NAME]: metric.name,
127
+ [KEY_MXL_WEB_VITAL_RATING]: metric.rating,
128
+ [KEY_MXL_WEB_VITAL_ID]: metric.id,
129
+ [KEY_MXL_WEB_VITAL_DELTA]: metric.delta,
130
+ [KEY_MXL_WEB_VITAL_VALUE]: metric.value,
131
+ ...webVitalAttributionToReport(metric),
132
+ ...name === "INP" ? loafScriptsAttribution(metric, this._diag) : {},
133
+ ...name === "TTFB" ? ttfbSubPartsAttribution(metric, this._diag) : {}
160
134
  };
161
135
  if (attributedPage.path && attributedPage.pageID) {
162
136
  attrs[KEY_MXL_PAGE_PATH] = attributedPage.path;
@@ -214,7 +188,7 @@ var WebVitalsInstrumentation = class extends MXLInstrumentationBase {
214
188
  return this._currentAttributedPage();
215
189
  }
216
190
  };
217
-
218
191
  //#endregion
219
192
  export { WebVitalsInstrumentation };
193
+
220
194
  //# sourceMappingURL=WebVitalsInstrumentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebVitalsInstrumentation.js","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"sourcesContent":["import type { Attributes } from '@opentelemetry/api';\nimport { ATTR_URL_FULL } from '@opentelemetry/semantic-conventions';\nimport type {\n CLSAttribution,\n CLSMetricWithAttribution,\n INPAttribution,\n LCPAttribution,\n Metric,\n MetricWithAttribution,\n} from 'web-vitals/attribution';\nimport type { PageManager } from '../../../api-page/index.ts';\nimport { page } from '../../../api-page/index.ts';\nimport type { URLDocument } from '../../../common/index.ts';\nimport {\n KEY_APP_SURFACE_LABEL,\n KEY_MXL_PAGE_ID,\n KEY_MXL_PAGE_PATH,\n KEY_MXL_TYPE,\n KEY_BROWSER_URL_FULL,\n MXL_TYPES,\n} from '../../../constants/index.ts';\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport {\n ALL_WEB_VITALS,\n MXL_WEB_VITALS_PREFIX,\n WEB_VITALS_ID_TO_LISTENER,\n} from './constants.ts';\nimport type {\n WebVitalListeners,\n WebVitalsInstrumentationArgs,\n} from './types.ts';\n\ntype AttributedPage = {\n fullURL: string;\n path?: string;\n pageID?: string;\n label?: string;\n};\n\nconst webVitalAttributionToReport = (\n name: Metric['name'],\n metric: MetricWithAttribution,\n) => {\n const attributes: Attributes = {};\n const toReport: {\n key: string;\n value: string | boolean | number | undefined;\n }[] = [];\n\n if (name === 'CLS') {\n // https://www.npmjs.com/package/web-vitals#CLSAttribution\n const attribution = metric.attribution as CLSAttribution;\n toReport.push(\n ...[\n {\n key: 'largestShiftTarget',\n value: attribution.largestShiftTarget,\n },\n {\n key: 'largestShiftValue',\n value: attribution.largestShiftValue,\n },\n ],\n );\n } else if (name === 'INP') {\n // https://www.npmjs.com/package/web-vitals#inpattribution\n const attribution = metric.attribution as INPAttribution;\n toReport.push(\n ...[\n { key: 'interactionTarget', value: attribution.interactionTarget },\n { key: 'interactionType', value: attribution.interactionType },\n { key: 'nextPaintTime', value: attribution.nextPaintTime },\n { key: 'inputDelay', value: attribution.inputDelay },\n { key: 'processingDuration', value: attribution.processingDuration },\n { key: 'presentationDelay', value: attribution.presentationDelay },\n { key: 'totalScriptDuration', value: attribution.totalScriptDuration },\n {\n key: 'totalStyleAndLayoutDuration',\n value: attribution.totalStyleAndLayoutDuration,\n },\n { key: 'totalPaintDuration', value: attribution.totalPaintDuration },\n {\n key: 'totalUnattributedDuration',\n value: attribution.totalUnattributedDuration,\n },\n { key: 'loadState', value: attribution.loadState },\n ],\n );\n } else if (name === 'LCP') {\n // https://www.npmjs.com/package/web-vitals#lcpattribution\n const attribution = metric.attribution as LCPAttribution;\n toReport.push(\n ...[\n { key: 'target', value: attribution.target },\n { key: 'url', value: attribution.url },\n { key: 'timeToFirstByte', value: attribution.timeToFirstByte },\n { key: 'resourceLoadDelay', value: attribution.resourceLoadDelay },\n {\n key: 'resourceLoadDuration',\n value: attribution.resourceLoadDuration,\n },\n { key: 'elementRenderDelay', value: attribution.elementRenderDelay },\n ],\n );\n }\n\n toReport.forEach((report) => {\n if (report.value !== undefined) {\n attributes[`mxl.web_vital.attribution.${report.key}`] = report.value;\n }\n });\n\n return attributes;\n};\n\nexport class WebVitalsInstrumentation extends MXLInstrumentationBase {\n private readonly _listeners: WebVitalListeners;\n private readonly _urlDocument: URLDocument;\n private readonly _urlAttribution: boolean;\n private readonly _pageManager: PageManager;\n private readonly _attributedPage: Record<\n Metric['name'],\n AttributedPage | undefined\n > = {\n INP: undefined,\n LCP: undefined,\n CLS: undefined,\n FCP: undefined,\n TTFB: undefined,\n };\n private _largestShiftTargetForCLS: string | undefined;\n private _listenersRegistered = false;\n private _isEnabled = false;\n\n // instrumentation that adds an event to the session span for each web vital report\n public constructor({\n diag,\n perf,\n listeners = WEB_VITALS_ID_TO_LISTENER,\n urlDocument = window.document,\n urlAttribution = true,\n pageManager,\n }: WebVitalsInstrumentationArgs = {}) {\n super({\n instrumentationName: 'WebVitalsInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n this._listeners = listeners;\n this._urlDocument = urlDocument;\n this._urlAttribution = urlAttribution;\n this._pageManager = pageManager ?? page.getPageManager();\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public override disable(): void {\n // web-vitals library doesn't support removing listeners, so we just pause emission\n // https://github.com/GoogleChrome/web-vitals/issues/357#issuecomment-1593439036\n this._isEnabled = false;\n this._diag.debug('WebVitalsInstrumentation disabled, pausing emission');\n }\n\n public enable(): void {\n this._isEnabled = true;\n\n // web-vitals library doesn't support removing listeners, so only register once\n if (this._listenersRegistered) {\n this._diag.debug(\n 'WebVitalsInstrumentation listeners already registered, resuming emission',\n );\n return;\n }\n this._listenersRegistered = true;\n\n ALL_WEB_VITALS.forEach((name) => {\n this._listeners[name]?.((metric) => {\n if (!this._isEnabled) {\n return;\n }\n\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n\n if (!currentSessionSpan) {\n return;\n }\n\n // first thing record the time when this cb was invoked\n const metricTime = this._getTimeForMetric(metric);\n\n const attributedPage = this._getAttributedPageForMetric(metric);\n\n const attrs: Attributes = {\n [KEY_MXL_TYPE]: MXL_TYPES.WebVital,\n [ATTR_URL_FULL]: attributedPage.fullURL,\n [KEY_BROWSER_URL_FULL]: attributedPage.fullURL,\n 'mxl.web_vital.navigation_type': metric.navigationType,\n 'mxl.web_vital.name': metric.name,\n 'mxl.web_vital.rating': metric.rating,\n 'mxl.web_vital.id': metric.id,\n 'mxl.web_vital.delta': metric.delta,\n 'mxl.web_vital.value': metric.value,\n ...webVitalAttributionToReport(name, metric),\n };\n\n // Add page attributes if route and page ID exist\n if (attributedPage.path && attributedPage.pageID) {\n attrs[KEY_MXL_PAGE_PATH] = attributedPage.path;\n attrs[KEY_MXL_PAGE_ID] = attributedPage.pageID;\n }\n\n if (attributedPage.label) {\n attrs[KEY_APP_SURFACE_LABEL] = attributedPage.label;\n }\n\n currentSessionSpan.addEvent(\n `${MXL_WEB_VITALS_PREFIX}-report-${name}`,\n attrs,\n metricTime,\n );\n });\n });\n\n if (this._urlAttribution) {\n // When these web vitals make their final report (e.g. when the listeners w/ reportAllChanges=false trigger) the\n // document's URL at that time may not match what it was at the time the scores were last updated. Instead, listen\n // for updates to the scores and keep track of the Page information to attribute for each\n this._listeners.TTFB?.(\n () => {\n this._attributedPage.TTFB = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.FCP?.(\n () => {\n this._attributedPage.FCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.INP?.(\n () => {\n this._attributedPage.INP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.LCP?.(\n () => {\n this._attributedPage.LCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.CLS?.(\n (metric: MetricWithAttribution) => {\n const clsMetric = metric as CLSMetricWithAttribution;\n // A layout shift could cause CLS to change its rating but because the score is cumulative this might not\n // correspond with an updated `largestShiftTarget`. Since we want to tie the attributed URL to the page that\n // the `largestShiftTarget` was on we only update the attributed URL if that target has changed\n if (\n this._largestShiftTargetForCLS !==\n clsMetric.attribution.largestShiftTarget\n ) {\n this._largestShiftTargetForCLS =\n clsMetric.attribution.largestShiftTarget;\n this._attributedPage.CLS = this._currentAttributedPage();\n }\n },\n {\n reportAllChanges: true,\n },\n );\n }\n }\n\n private _getTimeForMetric(metric: MetricWithAttribution): number {\n if (metric.name === 'CLS' && metric.attribution.largestShiftTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.largestShiftTime,\n );\n }\n\n if (metric.name === 'INP' && metric.attribution.interactionTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.interactionTime,\n );\n }\n\n return this.perf.getNowMillis();\n }\n\n private _currentAttributedPage(): AttributedPage {\n const attributed: AttributedPage = {\n fullURL: this._urlDocument.URL,\n };\n\n const currentRoute = this._pageManager.getCurrentRoute();\n const currentPageId = this._pageManager.getCurrentPageId();\n if (currentRoute && currentPageId) {\n attributed.path = currentRoute.path;\n attributed.pageID = currentPageId;\n }\n\n const pageLabel = this._pageManager.getPageLabel();\n if (pageLabel) {\n attributed.label = pageLabel;\n }\n\n return attributed;\n }\n\n private _getAttributedPageForMetric(\n metric: MetricWithAttribution,\n ): AttributedPage {\n if (metric.name === 'FCP' && this._attributedPage.FCP) {\n return this._attributedPage.FCP;\n }\n\n if (metric.name === 'TTFB' && this._attributedPage.TTFB) {\n return this._attributedPage.TTFB;\n }\n\n if (metric.name === 'INP' && this._attributedPage.INP) {\n return this._attributedPage.INP;\n }\n\n if (metric.name === 'LCP' && this._attributedPage.LCP) {\n return this._attributedPage.LCP;\n }\n\n if (\n metric.name === 'CLS' &&\n this._attributedPage.CLS &&\n metric.attribution.largestShiftTarget === this._largestShiftTargetForCLS\n ) {\n return this._attributedPage.CLS;\n }\n\n return this._currentAttributedPage();\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"WebVitalsInstrumentation.js","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.ts"],"sourcesContent":["import type {\n Attributes,\n AttributeValue,\n DiagLogger,\n} from '@opentelemetry/api';\nimport { ATTR_URL_FULL } from '@opentelemetry/semantic-conventions';\nimport type {\n CLSMetricWithAttribution,\n INPAttribution,\n Metric,\n MetricWithAttribution,\n TTFBAttribution,\n} from 'web-vitals/attribution';\nimport type { PageManager } from '../../../api-page/index.ts';\nimport { page } from '../../../api-page/index.ts';\nimport type { URLDocument } from '../../../common/index.ts';\nimport {\n MXL_TYPES,\n KEY_APP_SURFACE_LABEL,\n KEY_BROWSER_URL_FULL,\n KEY_MXL_PAGE_ID,\n KEY_MXL_PAGE_PATH,\n KEY_MXL_TYPE,\n} from '../../../constants/index.ts';\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport {\n KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX,\n KEY_MXL_WEB_VITAL_DELTA,\n KEY_MXL_WEB_VITAL_ID,\n KEY_MXL_WEB_VITAL_NAME,\n KEY_MXL_WEB_VITAL_NAVIGATION_TYPE,\n KEY_MXL_WEB_VITAL_RATING,\n KEY_MXL_WEB_VITAL_VALUE,\n} from './attributes.ts';\nimport {\n ALL_WEB_VITALS,\n MXL_WEB_VITALS_PREFIX,\n MAX_LOAF_SCRIPT_ENTRIES,\n MAX_LOAF_SCRIPT_URL_LENGTH,\n WEB_VITALS_ID_TO_LISTENER,\n} from './constants.ts';\nimport type {\n WebVitalListeners,\n WebVitalsInstrumentationArgs,\n} from './types.ts';\n\ntype AttributedPage = {\n fullURL: string;\n path?: string;\n pageID?: string;\n label?: string;\n};\n\nconst isPrimitiveValue = (value: unknown): value is AttributeValue => {\n const type = typeof value;\n return type === 'number' || type === 'string' || type === 'boolean';\n};\n\nconst roundClamp = (value: number): number => Math.round(Math.max(0, value));\n\nconst webVitalAttributionToReport = (\n metric: MetricWithAttribution,\n): Attributes => {\n const attributes: Attributes = {};\n const attribution = metric.attribution;\n\n if (!attribution || typeof attribution !== 'object') {\n return attributes;\n }\n\n for (const [key, value] of Object.entries(attribution)) {\n if (isPrimitiveValue(value)) {\n attributes[`${KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}${key}`] = value;\n }\n }\n\n return attributes;\n};\n\nconst loafScriptsAttribution = (\n metric: MetricWithAttribution,\n diag: DiagLogger,\n): Attributes => {\n const attributes: Attributes = {};\n const attribution = metric.attribution as INPAttribution;\n\n try {\n // suppress LoAF baseline errors\n /* eslint-disable baseline-js/use-baseline */\n if (attribution.longAnimationFrameEntries.length > 0) {\n const scripts = new Map<\n string,\n {\n totalDuration: number;\n styleAndLayoutDuration: number;\n count: number;\n }\n >();\n for (const entry of attribution.longAnimationFrameEntries) {\n for (const script of entry.scripts) {\n let url = script.sourceURL || '(inline)';\n if (url.length > MAX_LOAF_SCRIPT_URL_LENGTH) {\n url = `${url.substring(0, MAX_LOAF_SCRIPT_URL_LENGTH)}...`;\n }\n const existing = scripts.get(url);\n if (existing) {\n existing.totalDuration += script.duration;\n existing.styleAndLayoutDuration +=\n script.forcedStyleAndLayoutDuration;\n existing.count++;\n } else {\n scripts.set(url, {\n totalDuration: script.duration,\n styleAndLayoutDuration: script.forcedStyleAndLayoutDuration,\n count: 1,\n });\n }\n }\n }\n if (scripts.size > 0) {\n attributes[`${KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX}loaf_scripts`] =\n JSON.stringify(\n Object.fromEntries(\n [...scripts]\n .sort((a, b) => b[1].totalDuration - a[1].totalDuration)\n .slice(0, MAX_LOAF_SCRIPT_ENTRIES)\n .map(([url, script]) => [\n url,\n {\n total_duration: Math.round(script.totalDuration),\n style_and_layout_duration: Math.round(\n script.styleAndLayoutDuration,\n ),\n count: script.count,\n },\n ]),\n ),\n );\n }\n }\n /* eslint-enable baseline-js/use-baseline */\n } catch (e) {\n diag.error('error building loaf scripts for INP', e);\n }\n\n return attributes;\n};\n\nconst ttfbSubPartsAttribution = (\n metric: MetricWithAttribution,\n diag: DiagLogger,\n): Attributes => {\n const attributes: Attributes = {};\n const attribution = metric.attribution as TTFBAttribution;\n const entry = attribution.navigationEntry as\n | PerformanceNavigationTiming\n | undefined;\n\n if (entry) {\n try {\n const redirect = roundClamp(entry.redirectEnd - entry.redirectStart);\n const domainLookup = roundClamp(\n entry.domainLookupEnd - entry.domainLookupStart,\n );\n const tcpConnection = roundClamp(\n entry.secureConnectionStart > 0\n ? entry.secureConnectionStart - entry.connectStart\n : entry.connectEnd - entry.connectStart,\n );\n const tlsNegotiation = roundClamp(\n entry.secureConnectionStart > 0\n ? entry.connectEnd - entry.secureConnectionStart\n : 0,\n );\n const effectiveResponseStart = Math.max(\n // @ts-expect-error 103 Early hints are not supported in all browsers\n // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart\n entry.finalResponseHeadersStart ?? 0,\n entry.responseStart,\n );\n const serverResponse = roundClamp(\n effectiveResponseStart - entry.requestStart,\n );\n const total = Math.round(entry.responseEnd - entry.startTime);\n const unattributed = roundClamp(\n total -\n redirect -\n domainLookup -\n tcpConnection -\n tlsNegotiation -\n serverResponse,\n );\n const prefix = KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX;\n attributes[`${prefix}redirect`] = redirect;\n attributes[`${prefix}domainLookup`] = domainLookup;\n attributes[`${prefix}tcpConnection`] = tcpConnection;\n attributes[`${prefix}tlsNegotiation`] = tlsNegotiation;\n attributes[`${prefix}serverResponse`] = serverResponse;\n attributes[`${prefix}unattributed`] = unattributed;\n } catch (e) {\n diag.error('error computing TTFB timing breakdown', e);\n }\n } else {\n diag.debug('TTFB navigationEntry unavailable, skipping timing breakdown');\n }\n\n return attributes;\n};\n\nexport class WebVitalsInstrumentation extends MXLInstrumentationBase {\n private readonly _listeners: WebVitalListeners;\n private readonly _urlDocument: URLDocument;\n private readonly _urlAttribution: boolean;\n private readonly _pageManager: PageManager;\n private readonly _attributedPage: Record<\n Metric['name'],\n AttributedPage | undefined\n > = {\n INP: undefined,\n LCP: undefined,\n CLS: undefined,\n FCP: undefined,\n TTFB: undefined,\n };\n private _largestShiftTargetForCLS: string | undefined;\n private _listenersRegistered = false;\n private _isEnabled = false;\n\n // instrumentation that adds an event to the session span for each web vital report\n public constructor({\n diag,\n perf,\n listeners = WEB_VITALS_ID_TO_LISTENER,\n urlDocument = window.document,\n urlAttribution = true,\n pageManager,\n }: WebVitalsInstrumentationArgs = {}) {\n super({\n instrumentationName: 'WebVitalsInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n this._listeners = listeners;\n this._urlDocument = urlDocument;\n this._urlAttribution = urlAttribution;\n this._pageManager = pageManager ?? page.getPageManager();\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public override disable(): void {\n // web-vitals library doesn't support removing listeners, so we just pause emission\n // https://github.com/GoogleChrome/web-vitals/issues/357#issuecomment-1593439036\n this._isEnabled = false;\n this._diag.debug('WebVitalsInstrumentation disabled, pausing emission');\n }\n\n public enable(): void {\n this._isEnabled = true;\n\n // web-vitals library doesn't support removing listeners, so only register once\n if (this._listenersRegistered) {\n this._diag.debug(\n 'WebVitalsInstrumentation listeners already registered, resuming emission',\n );\n return;\n }\n this._listenersRegistered = true;\n\n ALL_WEB_VITALS.forEach((name) => {\n this._listeners[name]?.((metric) => {\n if (!this._isEnabled) {\n return;\n }\n\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n\n if (!currentSessionSpan) {\n return;\n }\n\n // first thing record the time when this cb was invoked\n const metricTime = this._getTimeForMetric(metric);\n\n const attributedPage = this._getAttributedPageForMetric(metric);\n\n const attrs: Attributes = {\n [KEY_MXL_TYPE]: MXL_TYPES.WebVital,\n [ATTR_URL_FULL]: attributedPage.fullURL,\n [KEY_BROWSER_URL_FULL]: attributedPage.fullURL,\n [KEY_MXL_WEB_VITAL_NAVIGATION_TYPE]: metric.navigationType,\n [KEY_MXL_WEB_VITAL_NAME]: metric.name,\n [KEY_MXL_WEB_VITAL_RATING]: metric.rating,\n [KEY_MXL_WEB_VITAL_ID]: metric.id,\n [KEY_MXL_WEB_VITAL_DELTA]: metric.delta,\n [KEY_MXL_WEB_VITAL_VALUE]: metric.value,\n ...webVitalAttributionToReport(metric),\n ...(name === 'INP' ? loafScriptsAttribution(metric, this._diag) : {}),\n ...(name === 'TTFB'\n ? ttfbSubPartsAttribution(metric, this._diag)\n : {}),\n };\n\n // Add page attributes if route and page ID exist\n if (attributedPage.path && attributedPage.pageID) {\n attrs[KEY_MXL_PAGE_PATH] = attributedPage.path;\n attrs[KEY_MXL_PAGE_ID] = attributedPage.pageID;\n }\n\n if (attributedPage.label) {\n attrs[KEY_APP_SURFACE_LABEL] = attributedPage.label;\n }\n\n currentSessionSpan.addEvent(\n `${MXL_WEB_VITALS_PREFIX}-report-${name}`,\n attrs,\n metricTime,\n );\n });\n });\n\n if (this._urlAttribution) {\n // When these web vitals make their final report (e.g. when the listeners w/ reportAllChanges=false trigger) the\n // document's URL at that time may not match what it was at the time the scores were last updated. Instead, listen\n // for updates to the scores and keep track of the Page information to attribute for each\n this._listeners.TTFB?.(\n () => {\n this._attributedPage.TTFB = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.FCP?.(\n () => {\n this._attributedPage.FCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.INP?.(\n () => {\n this._attributedPage.INP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.LCP?.(\n () => {\n this._attributedPage.LCP = this._currentAttributedPage();\n },\n {\n reportAllChanges: true,\n },\n );\n this._listeners.CLS?.(\n (metric: MetricWithAttribution) => {\n const clsMetric = metric as CLSMetricWithAttribution;\n // A layout shift could cause CLS to change its rating but because the score is cumulative this might not\n // correspond with an updated `largestShiftTarget`. Since we want to tie the attributed URL to the page that\n // the `largestShiftTarget` was on we only update the attributed URL if that target has changed\n if (\n this._largestShiftTargetForCLS !==\n clsMetric.attribution.largestShiftTarget\n ) {\n this._largestShiftTargetForCLS =\n clsMetric.attribution.largestShiftTarget;\n this._attributedPage.CLS = this._currentAttributedPage();\n }\n },\n {\n reportAllChanges: true,\n },\n );\n }\n }\n\n private _getTimeForMetric(metric: MetricWithAttribution): number {\n if (metric.name === 'CLS' && metric.attribution.largestShiftTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.largestShiftTime,\n );\n }\n\n if (metric.name === 'INP' && metric.attribution.interactionTime) {\n return this.perf.epochMillisFromOriginOffset(\n metric.attribution.interactionTime,\n );\n }\n\n return this.perf.getNowMillis();\n }\n\n private _currentAttributedPage(): AttributedPage {\n const attributed: AttributedPage = {\n fullURL: this._urlDocument.URL,\n };\n\n const currentRoute = this._pageManager.getCurrentRoute();\n const currentPageId = this._pageManager.getCurrentPageId();\n if (currentRoute && currentPageId) {\n attributed.path = currentRoute.path;\n attributed.pageID = currentPageId;\n }\n\n const pageLabel = this._pageManager.getPageLabel();\n if (pageLabel) {\n attributed.label = pageLabel;\n }\n\n return attributed;\n }\n\n private _getAttributedPageForMetric(\n metric: MetricWithAttribution,\n ): AttributedPage {\n if (metric.name === 'FCP' && this._attributedPage.FCP) {\n return this._attributedPage.FCP;\n }\n\n if (metric.name === 'TTFB' && this._attributedPage.TTFB) {\n return this._attributedPage.TTFB;\n }\n\n if (metric.name === 'INP' && this._attributedPage.INP) {\n return this._attributedPage.INP;\n }\n\n if (metric.name === 'LCP' && this._attributedPage.LCP) {\n return this._attributedPage.LCP;\n }\n\n if (\n metric.name === 'CLS' &&\n this._attributedPage.CLS &&\n metric.attribution.largestShiftTarget === this._largestShiftTargetForCLS\n ) {\n return this._attributedPage.CLS;\n }\n\n return this._currentAttributedPage();\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.ts
3
+ const KEY_MXL_WEB_VITAL_NAME = "mxl.web_vital.name";
4
+ const KEY_MXL_WEB_VITAL_VALUE = "mxl.web_vital.value";
5
+ const KEY_MXL_WEB_VITAL_RATING = "mxl.web_vital.rating";
6
+ const KEY_MXL_WEB_VITAL_DELTA = "mxl.web_vital.delta";
7
+ const KEY_MXL_WEB_VITAL_ID = "mxl.web_vital.id";
8
+ const KEY_MXL_WEB_VITAL_NAVIGATION_TYPE = "mxl.web_vital.navigation_type";
9
+ const KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX = "mxl.web_vital.attribution.";
10
+ //#endregion
11
+ exports.KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX = KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX;
12
+ exports.KEY_MXL_WEB_VITAL_DELTA = KEY_MXL_WEB_VITAL_DELTA;
13
+ exports.KEY_MXL_WEB_VITAL_ID = KEY_MXL_WEB_VITAL_ID;
14
+ exports.KEY_MXL_WEB_VITAL_NAME = KEY_MXL_WEB_VITAL_NAME;
15
+ exports.KEY_MXL_WEB_VITAL_NAVIGATION_TYPE = KEY_MXL_WEB_VITAL_NAVIGATION_TYPE;
16
+ exports.KEY_MXL_WEB_VITAL_RATING = KEY_MXL_WEB_VITAL_RATING;
17
+ exports.KEY_MXL_WEB_VITAL_VALUE = KEY_MXL_WEB_VITAL_VALUE;
18
+
19
+ //# sourceMappingURL=attributes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.cjs","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.ts"],"sourcesContent":["export const KEY_MXL_WEB_VITAL_NAME = 'mxl.web_vital.name';\nexport const KEY_MXL_WEB_VITAL_VALUE = 'mxl.web_vital.value';\nexport const KEY_MXL_WEB_VITAL_RATING = 'mxl.web_vital.rating';\nexport const KEY_MXL_WEB_VITAL_DELTA = 'mxl.web_vital.delta';\nexport const KEY_MXL_WEB_VITAL_ID = 'mxl.web_vital.id';\nexport const KEY_MXL_WEB_VITAL_NAVIGATION_TYPE =\n 'mxl.web_vital.navigation_type';\nexport const KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX =\n 'mxl.web_vital.attribution.';\n"],"mappings":";;AAAA,MAAa,yBAAyB;AACtC,MAAa,0BAA0B;AACvC,MAAa,2BAA2B;AACxC,MAAa,0BAA0B;AACvC,MAAa,uBAAuB;AACpC,MAAa,oCACX;AACF,MAAa,uCACX"}
@@ -0,0 +1,11 @@
1
+ //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts
2
+ declare const KEY_MXL_WEB_VITAL_NAME = "mxl.web_vital.name";
3
+ declare const KEY_MXL_WEB_VITAL_VALUE = "mxl.web_vital.value";
4
+ declare const KEY_MXL_WEB_VITAL_RATING = "mxl.web_vital.rating";
5
+ declare const KEY_MXL_WEB_VITAL_DELTA = "mxl.web_vital.delta";
6
+ declare const KEY_MXL_WEB_VITAL_ID = "mxl.web_vital.id";
7
+ declare const KEY_MXL_WEB_VITAL_NAVIGATION_TYPE = "mxl.web_vital.navigation_type";
8
+ declare const KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX = "mxl.web_vital.attribution.";
9
+ //#endregion
10
+ export { KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX, KEY_MXL_WEB_VITAL_DELTA, KEY_MXL_WEB_VITAL_ID, KEY_MXL_WEB_VITAL_NAME, KEY_MXL_WEB_VITAL_NAVIGATION_TYPE, KEY_MXL_WEB_VITAL_RATING, KEY_MXL_WEB_VITAL_VALUE };
11
+ //# sourceMappingURL=attributes.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.d.cts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.ts"],"mappings":";cAAa,sBAAA;AAAA,cACA,uBAAA;AAAA,cACA,wBAAA;AAAA,cACA,uBAAA;AAAA,cACA,oBAAA;AAAA,cACA,iCAAA;AAAA,cAEA,oCAAA"}
@@ -0,0 +1,11 @@
1
+ //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts
2
+ declare const KEY_MXL_WEB_VITAL_NAME = "mxl.web_vital.name";
3
+ declare const KEY_MXL_WEB_VITAL_VALUE = "mxl.web_vital.value";
4
+ declare const KEY_MXL_WEB_VITAL_RATING = "mxl.web_vital.rating";
5
+ declare const KEY_MXL_WEB_VITAL_DELTA = "mxl.web_vital.delta";
6
+ declare const KEY_MXL_WEB_VITAL_ID = "mxl.web_vital.id";
7
+ declare const KEY_MXL_WEB_VITAL_NAVIGATION_TYPE = "mxl.web_vital.navigation_type";
8
+ declare const KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX = "mxl.web_vital.attribution.";
9
+ //#endregion
10
+ export { KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX, KEY_MXL_WEB_VITAL_DELTA, KEY_MXL_WEB_VITAL_ID, KEY_MXL_WEB_VITAL_NAME, KEY_MXL_WEB_VITAL_NAVIGATION_TYPE, KEY_MXL_WEB_VITAL_RATING, KEY_MXL_WEB_VITAL_VALUE };
11
+ //# sourceMappingURL=attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.d.ts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.ts"],"mappings":";cAAa,sBAAA;AAAA,cACA,uBAAA;AAAA,cACA,wBAAA;AAAA,cACA,uBAAA;AAAA,cACA,oBAAA;AAAA,cACA,iCAAA;AAAA,cAEA,oCAAA"}
@@ -0,0 +1,12 @@
1
+ //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.ts
2
+ const KEY_MXL_WEB_VITAL_NAME = "mxl.web_vital.name";
3
+ const KEY_MXL_WEB_VITAL_VALUE = "mxl.web_vital.value";
4
+ const KEY_MXL_WEB_VITAL_RATING = "mxl.web_vital.rating";
5
+ const KEY_MXL_WEB_VITAL_DELTA = "mxl.web_vital.delta";
6
+ const KEY_MXL_WEB_VITAL_ID = "mxl.web_vital.id";
7
+ const KEY_MXL_WEB_VITAL_NAVIGATION_TYPE = "mxl.web_vital.navigation_type";
8
+ const KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX = "mxl.web_vital.attribution.";
9
+ //#endregion
10
+ export { KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX, KEY_MXL_WEB_VITAL_DELTA, KEY_MXL_WEB_VITAL_ID, KEY_MXL_WEB_VITAL_NAME, KEY_MXL_WEB_VITAL_NAVIGATION_TYPE, KEY_MXL_WEB_VITAL_RATING, KEY_MXL_WEB_VITAL_VALUE };
11
+
12
+ //# sourceMappingURL=attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.js","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.ts"],"sourcesContent":["export const KEY_MXL_WEB_VITAL_NAME = 'mxl.web_vital.name';\nexport const KEY_MXL_WEB_VITAL_VALUE = 'mxl.web_vital.value';\nexport const KEY_MXL_WEB_VITAL_RATING = 'mxl.web_vital.rating';\nexport const KEY_MXL_WEB_VITAL_DELTA = 'mxl.web_vital.delta';\nexport const KEY_MXL_WEB_VITAL_ID = 'mxl.web_vital.id';\nexport const KEY_MXL_WEB_VITAL_NAVIGATION_TYPE =\n 'mxl.web_vital.navigation_type';\nexport const KEY_MXL_WEB_VITAL_ATTRIBUTION_PREFIX =\n 'mxl.web_vital.attribution.';\n"],"mappings":";AAAA,MAAa,yBAAyB;AACtC,MAAa,0BAA0B;AACvC,MAAa,2BAA2B;AACxC,MAAa,0BAA0B;AACvC,MAAa,uBAAuB;AACpC,MAAa,oCACX;AACF,MAAa,uCACX"}
@@ -1,9 +1,10 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("../../../_virtual/_rolldown/runtime.cjs");
3
3
  let web_vitals_attribution = require("web-vitals/attribution");
4
-
5
4
  //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.ts
6
5
  const MXL_WEB_VITALS_PREFIX = "mxl-web-vitals";
6
+ const MAX_LOAF_SCRIPT_URL_LENGTH = 2048;
7
+ const MAX_LOAF_SCRIPT_ENTRIES = 250;
7
8
  const CORE_WEB_VITALS = [
8
9
  "CLS",
9
10
  "INP",
@@ -17,17 +18,72 @@ const ALL_WEB_VITALS = [
17
18
  "TTFB"
18
19
  ];
19
20
  const WEB_VITALS_ID_TO_LISTENER = {
21
+ /**
22
+ * Cumulative Layout Shift (CLS)
23
+ * https://web.dev/articles/cls
24
+ *
25
+ * Measures _unexpected_ layout shifts throughout the lifespan of a page load. User-initiated shifts, e.g. showing
26
+ * a loading indicator after a user clicked a button that triggered a network request, are excluded since these are
27
+ * expected.
28
+ *
29
+ * onCLS is always called when the page's visibility state changes to hidden and may be called multiple times for
30
+ * a single page load.
31
+ *
32
+ * SPA Note: Since this is cumulative it could be misleading in a SPA, e.g. you might cross the threshold from
33
+ * good -> bad on Page 3 but the largest contributor to your score might have actually occurred on Page 1
34
+ */
20
35
  CLS: web_vitals_attribution.onCLS,
36
+ /**
37
+ * First Contentful Paint (FCP)
38
+ * https://web.dev/articles/fcp
39
+ *
40
+ * Measures from first hard page load to when the first "content" (text, image, svg elements, etc.) is rendered
41
+ *
42
+ * Only measured once per page load
43
+ */
21
44
  FCP: web_vitals_attribution.onFCP,
45
+ /**
46
+ * Largest Contentful Paint (LCP)
47
+ * https://web.dev/articles/lcp
48
+ *
49
+ * Uses heuristics to try and measure when the "main" content has been rendered on the page. Size is a factor, but
50
+ * certain elements that likely represent backgrounds or splash screens are excluded.
51
+ *
52
+ * As the page loads the element considered the largest could change, once the user interacts with the page these
53
+ * entries stop getting reported and the metric is ready
54
+ *
55
+ * Only measured once per page load
56
+ */
22
57
  LCP: web_vitals_attribution.onLCP,
58
+ /**
59
+ * Interaction to Next Paint (INP)
60
+ * https://web.dev/articles/inp
61
+ *
62
+ * Measures how long it takes from a user interaction until the next paint. The final INP value is the longest
63
+ * interaction observed, ignoring outliers.
64
+ *
65
+ * onINP is always called when the page's visibility state changes to hidden and may be called multiple times for
66
+ * a single page load.
67
+ *
68
+ * Each interaction is not reported even when setting reportAllChanges=true, just when an interaction causes an
69
+ * increase to INP.
70
+ */
23
71
  INP: web_vitals_attribution.onINP,
72
+ /**
73
+ * Time to First Byte (TTFB)
74
+ * https://web.dev/articles/ttfb
75
+ *
76
+ * Measures the time between the request for a resource and when the first byte of a response begins to arrive.
77
+ */
24
78
  TTFB: web_vitals_attribution.onTTFB,
25
79
  FID: void 0
26
80
  };
27
-
28
81
  //#endregion
29
82
  exports.ALL_WEB_VITALS = ALL_WEB_VITALS;
30
83
  exports.CORE_WEB_VITALS = CORE_WEB_VITALS;
84
+ exports.MAX_LOAF_SCRIPT_ENTRIES = MAX_LOAF_SCRIPT_ENTRIES;
85
+ exports.MAX_LOAF_SCRIPT_URL_LENGTH = MAX_LOAF_SCRIPT_URL_LENGTH;
31
86
  exports.MXL_WEB_VITALS_PREFIX = MXL_WEB_VITALS_PREFIX;
32
87
  exports.WEB_VITALS_ID_TO_LISTENER = WEB_VITALS_ID_TO_LISTENER;
88
+
33
89
  //# sourceMappingURL=constants.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs","names":["onCLS","onFCP","onLCP","onINP","onTTFB"],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.ts"],"sourcesContent":["import { onCLS, onFCP, onINP, onLCP, onTTFB } from 'web-vitals/attribution';\n\nexport const MXL_WEB_VITALS_PREFIX = 'mxl-web-vitals';\nexport const CORE_WEB_VITALS = ['CLS', 'INP', 'LCP'] as const;\nexport const ALL_WEB_VITALS = ['CLS', 'INP', 'LCP', 'FCP', 'TTFB'] as const;\nexport const WEB_VITALS_ID_TO_LISTENER = {\n /**\n * Cumulative Layout Shift (CLS)\n * https://web.dev/articles/cls\n *\n * Measures _unexpected_ layout shifts throughout the lifespan of a page load. User-initiated shifts, e.g. showing\n * a loading indicator after a user clicked a button that triggered a network request, are excluded since these are\n * expected.\n *\n * onCLS is always called when the page's visibility state changes to hidden and may be called multiple times for\n * a single page load.\n *\n * SPA Note: Since this is cumulative it could be misleading in a SPA, e.g. you might cross the threshold from\n * good -> bad on Page 3 but the largest contributor to your score might have actually occurred on Page 1\n */\n CLS: onCLS,\n\n /**\n * First Contentful Paint (FCP)\n * https://web.dev/articles/fcp\n *\n * Measures from first hard page load to when the first \"content\" (text, image, svg elements, etc.) is rendered\n *\n * Only measured once per page load\n */\n FCP: onFCP,\n\n /**\n * Largest Contentful Paint (LCP)\n * https://web.dev/articles/lcp\n *\n * Uses heuristics to try and measure when the \"main\" content has been rendered on the page. Size is a factor, but\n * certain elements that likely represent backgrounds or splash screens are excluded.\n *\n * As the page loads the element considered the largest could change, once the user interacts with the page these\n * entries stop getting reported and the metric is ready\n *\n * Only measured once per page load\n */\n LCP: onLCP,\n\n /**\n * Interaction to Next Paint (INP)\n * https://web.dev/articles/inp\n *\n * Measures how long it takes from a user interaction until the next paint. The final INP value is the longest\n * interaction observed, ignoring outliers.\n *\n * onINP is always called when the page's visibility state changes to hidden and may be called multiple times for\n * a single page load.\n *\n * Each interaction is not reported even when setting reportAllChanges=true, just when an interaction causes an\n * increase to INP.\n */\n INP: onINP,\n\n /**\n * Time to First Byte (TTFB)\n * https://web.dev/articles/ttfb\n *\n * Measures the time between the request for a resource and when the first byte of a response begins to arrive.\n */\n TTFB: onTTFB,\n\n // Omitting onFID since FID (First Input Delay) has been deprecated\n FID: undefined,\n} as const;\n"],"mappings":";;;;;AAEA,MAAa,wBAAwB;AACrC,MAAa,kBAAkB;CAAC;CAAO;CAAO;CAAM;AACpD,MAAa,iBAAiB;CAAC;CAAO;CAAO;CAAO;CAAO;CAAO;AAClE,MAAa,4BAA4B;CAevC,KAAKA;CAUL,KAAKC;CAcL,KAAKC;CAeL,KAAKC;CAQL,MAAMC;CAGN,KAAK;CACN"}
1
+ {"version":3,"file":"constants.cjs","names":["onCLS","onFCP","onLCP","onINP","onTTFB"],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.ts"],"sourcesContent":["import { onCLS, onFCP, onINP, onLCP, onTTFB } from 'web-vitals/attribution';\n\nexport const MXL_WEB_VITALS_PREFIX = 'mxl-web-vitals';\nexport const MAX_LOAF_SCRIPT_URL_LENGTH = 2048;\nexport const MAX_LOAF_SCRIPT_ENTRIES = 250;\nexport const CORE_WEB_VITALS = ['CLS', 'INP', 'LCP'] as const;\nexport const ALL_WEB_VITALS = ['CLS', 'INP', 'LCP', 'FCP', 'TTFB'] as const;\nexport const WEB_VITALS_ID_TO_LISTENER = {\n /**\n * Cumulative Layout Shift (CLS)\n * https://web.dev/articles/cls\n *\n * Measures _unexpected_ layout shifts throughout the lifespan of a page load. User-initiated shifts, e.g. showing\n * a loading indicator after a user clicked a button that triggered a network request, are excluded since these are\n * expected.\n *\n * onCLS is always called when the page's visibility state changes to hidden and may be called multiple times for\n * a single page load.\n *\n * SPA Note: Since this is cumulative it could be misleading in a SPA, e.g. you might cross the threshold from\n * good -> bad on Page 3 but the largest contributor to your score might have actually occurred on Page 1\n */\n CLS: onCLS,\n\n /**\n * First Contentful Paint (FCP)\n * https://web.dev/articles/fcp\n *\n * Measures from first hard page load to when the first \"content\" (text, image, svg elements, etc.) is rendered\n *\n * Only measured once per page load\n */\n FCP: onFCP,\n\n /**\n * Largest Contentful Paint (LCP)\n * https://web.dev/articles/lcp\n *\n * Uses heuristics to try and measure when the \"main\" content has been rendered on the page. Size is a factor, but\n * certain elements that likely represent backgrounds or splash screens are excluded.\n *\n * As the page loads the element considered the largest could change, once the user interacts with the page these\n * entries stop getting reported and the metric is ready\n *\n * Only measured once per page load\n */\n LCP: onLCP,\n\n /**\n * Interaction to Next Paint (INP)\n * https://web.dev/articles/inp\n *\n * Measures how long it takes from a user interaction until the next paint. The final INP value is the longest\n * interaction observed, ignoring outliers.\n *\n * onINP is always called when the page's visibility state changes to hidden and may be called multiple times for\n * a single page load.\n *\n * Each interaction is not reported even when setting reportAllChanges=true, just when an interaction causes an\n * increase to INP.\n */\n INP: onINP,\n\n /**\n * Time to First Byte (TTFB)\n * https://web.dev/articles/ttfb\n *\n * Measures the time between the request for a resource and when the first byte of a response begins to arrive.\n */\n TTFB: onTTFB,\n\n // Omitting onFID since FID (First Input Delay) has been deprecated\n FID: undefined,\n} as const;\n"],"mappings":";;;;AAEA,MAAa,wBAAwB;AACrC,MAAa,6BAA6B;AAC1C,MAAa,0BAA0B;AACvC,MAAa,kBAAkB;CAAC;CAAO;CAAO;CAAM;AACpD,MAAa,iBAAiB;CAAC;CAAO;CAAO;CAAO;CAAO;CAAO;AAClE,MAAa,4BAA4B;;;;;;;;;;;;;;;CAevC,KAAKA,uBAAAA;;;;;;;;;CAUL,KAAKC,uBAAAA;;;;;;;;;;;;;CAcL,KAAKC,uBAAAA;;;;;;;;;;;;;;CAeL,KAAKC,uBAAAA;;;;;;;CAQL,MAAMC,uBAAAA;CAGN,KAAK,KAAA;CACN"}
@@ -1,7 +1,9 @@
1
- import * as web_vitals_attribution0 from "web-vitals/attribution";
1
+ import * as _$web_vitals0 from "web-vitals";
2
2
 
3
3
  //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts
4
4
  declare const MXL_WEB_VITALS_PREFIX = "mxl-web-vitals";
5
+ declare const MAX_LOAF_SCRIPT_URL_LENGTH = 2048;
6
+ declare const MAX_LOAF_SCRIPT_ENTRIES = 250;
5
7
  declare const CORE_WEB_VITALS: readonly ["CLS", "INP", "LCP"];
6
8
  declare const ALL_WEB_VITALS: readonly ["CLS", "INP", "LCP", "FCP", "TTFB"];
7
9
  declare const WEB_VITALS_ID_TO_LISTENER: {
@@ -19,7 +21,7 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
19
21
  * SPA Note: Since this is cumulative it could be misleading in a SPA, e.g. you might cross the threshold from
20
22
  * good -> bad on Page 3 but the largest contributor to your score might have actually occurred on Page 1
21
23
  */
22
- readonly CLS: (onReport: (metric: web_vitals_attribution0.CLSMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
24
+ readonly CLS: (onReport: (metric: _$web_vitals0.CLSMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
23
25
  /**
24
26
  * First Contentful Paint (FCP)
25
27
  * https://web.dev/articles/fcp
@@ -28,7 +30,7 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
28
30
  *
29
31
  * Only measured once per page load
30
32
  */
31
- readonly FCP: (onReport: (metric: web_vitals_attribution0.FCPMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
33
+ readonly FCP: (onReport: (metric: _$web_vitals0.FCPMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
32
34
  /**
33
35
  * Largest Contentful Paint (LCP)
34
36
  * https://web.dev/articles/lcp
@@ -41,7 +43,7 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
41
43
  *
42
44
  * Only measured once per page load
43
45
  */
44
- readonly LCP: (onReport: (metric: web_vitals_attribution0.LCPMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
46
+ readonly LCP: (onReport: (metric: _$web_vitals0.LCPMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
45
47
  /**
46
48
  * Interaction to Next Paint (INP)
47
49
  * https://web.dev/articles/inp
@@ -55,16 +57,16 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
55
57
  * Each interaction is not reported even when setting reportAllChanges=true, just when an interaction causes an
56
58
  * increase to INP.
57
59
  */
58
- readonly INP: (onReport: (metric: web_vitals_attribution0.INPMetricWithAttribution) => void, opts?: web_vitals_attribution0.INPAttributionReportOpts) => void;
60
+ readonly INP: (onReport: (metric: _$web_vitals0.INPMetricWithAttribution) => void, opts?: _$web_vitals0.INPAttributionReportOpts) => void;
59
61
  /**
60
62
  * Time to First Byte (TTFB)
61
63
  * https://web.dev/articles/ttfb
62
64
  *
63
65
  * Measures the time between the request for a resource and when the first byte of a response begins to arrive.
64
66
  */
65
- readonly TTFB: (onReport: (metric: web_vitals_attribution0.TTFBMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
67
+ readonly TTFB: (onReport: (metric: _$web_vitals0.TTFBMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
66
68
  readonly FID: undefined;
67
69
  };
68
70
  //#endregion
69
- export { ALL_WEB_VITALS, CORE_WEB_VITALS, MXL_WEB_VITALS_PREFIX, WEB_VITALS_ID_TO_LISTENER };
71
+ export { ALL_WEB_VITALS, CORE_WEB_VITALS, MAX_LOAF_SCRIPT_ENTRIES, MAX_LOAF_SCRIPT_URL_LENGTH, MXL_WEB_VITALS_PREFIX, WEB_VITALS_ID_TO_LISTENER };
70
72
  //# sourceMappingURL=constants.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.cts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.ts"],"mappings":";;;cAEa,qBAAA;AAAA,cACA,eAAA;AAAA,cACA,cAAA;AAAA,cACA,yBAAA;EAHqB;;;;AAClC;;;;;AACA;;;;;EAFkC,kCAqExB,uBAAA,CAAA,wBAAA;EAAA;;;;;;;;EAAA"}
1
+ {"version":3,"file":"constants.d.cts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.ts"],"mappings":";;;cAEa,qBAAA;AAAA,cACA,0BAAA;AAAA,cACA,uBAAA;AAAA,cACA,eAAA;AAAA,cACA,cAAA;AAAA,cACA,yBAAA;EALqB;;AAClC;;;;;AACA;;;;;AACA;;EAHkC,kCAuExB,aAAA,CAAA,wBAAA;EApEmD;;AAC7D;;;;;AACA;EAF6D"}
@@ -1,7 +1,9 @@
1
- import * as web_vitals_attribution0 from "web-vitals/attribution";
1
+ import * as _$web_vitals0 from "web-vitals";
2
2
 
3
3
  //#region src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts
4
4
  declare const MXL_WEB_VITALS_PREFIX = "mxl-web-vitals";
5
+ declare const MAX_LOAF_SCRIPT_URL_LENGTH = 2048;
6
+ declare const MAX_LOAF_SCRIPT_ENTRIES = 250;
5
7
  declare const CORE_WEB_VITALS: readonly ["CLS", "INP", "LCP"];
6
8
  declare const ALL_WEB_VITALS: readonly ["CLS", "INP", "LCP", "FCP", "TTFB"];
7
9
  declare const WEB_VITALS_ID_TO_LISTENER: {
@@ -19,7 +21,7 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
19
21
  * SPA Note: Since this is cumulative it could be misleading in a SPA, e.g. you might cross the threshold from
20
22
  * good -> bad on Page 3 but the largest contributor to your score might have actually occurred on Page 1
21
23
  */
22
- readonly CLS: (onReport: (metric: web_vitals_attribution0.CLSMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
24
+ readonly CLS: (onReport: (metric: _$web_vitals0.CLSMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
23
25
  /**
24
26
  * First Contentful Paint (FCP)
25
27
  * https://web.dev/articles/fcp
@@ -28,7 +30,7 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
28
30
  *
29
31
  * Only measured once per page load
30
32
  */
31
- readonly FCP: (onReport: (metric: web_vitals_attribution0.FCPMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
33
+ readonly FCP: (onReport: (metric: _$web_vitals0.FCPMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
32
34
  /**
33
35
  * Largest Contentful Paint (LCP)
34
36
  * https://web.dev/articles/lcp
@@ -41,7 +43,7 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
41
43
  *
42
44
  * Only measured once per page load
43
45
  */
44
- readonly LCP: (onReport: (metric: web_vitals_attribution0.LCPMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
46
+ readonly LCP: (onReport: (metric: _$web_vitals0.LCPMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
45
47
  /**
46
48
  * Interaction to Next Paint (INP)
47
49
  * https://web.dev/articles/inp
@@ -55,16 +57,16 @@ declare const WEB_VITALS_ID_TO_LISTENER: {
55
57
  * Each interaction is not reported even when setting reportAllChanges=true, just when an interaction causes an
56
58
  * increase to INP.
57
59
  */
58
- readonly INP: (onReport: (metric: web_vitals_attribution0.INPMetricWithAttribution) => void, opts?: web_vitals_attribution0.INPAttributionReportOpts) => void;
60
+ readonly INP: (onReport: (metric: _$web_vitals0.INPMetricWithAttribution) => void, opts?: _$web_vitals0.INPAttributionReportOpts) => void;
59
61
  /**
60
62
  * Time to First Byte (TTFB)
61
63
  * https://web.dev/articles/ttfb
62
64
  *
63
65
  * Measures the time between the request for a resource and when the first byte of a response begins to arrive.
64
66
  */
65
- readonly TTFB: (onReport: (metric: web_vitals_attribution0.TTFBMetricWithAttribution) => void, opts?: web_vitals_attribution0.AttributionReportOpts) => void;
67
+ readonly TTFB: (onReport: (metric: _$web_vitals0.TTFBMetricWithAttribution) => void, opts?: _$web_vitals0.AttributionReportOpts) => void;
66
68
  readonly FID: undefined;
67
69
  };
68
70
  //#endregion
69
- export { ALL_WEB_VITALS, CORE_WEB_VITALS, MXL_WEB_VITALS_PREFIX, WEB_VITALS_ID_TO_LISTENER };
71
+ export { ALL_WEB_VITALS, CORE_WEB_VITALS, MAX_LOAF_SCRIPT_ENTRIES, MAX_LOAF_SCRIPT_URL_LENGTH, MXL_WEB_VITALS_PREFIX, WEB_VITALS_ID_TO_LISTENER };
70
72
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.ts"],"mappings":";;;cAEa,qBAAA;AAAA,cACA,eAAA;AAAA,cACA,cAAA;AAAA,cACA,yBAAA;EAHqB;;;;AAClC;;;;;AACA;;;;;EAFkC,kCAqExB,uBAAA,CAAA,wBAAA;EAAA;;;;;;;;EAAA"}
1
+ {"version":3,"file":"constants.d.ts","names":[],"sources":["../../../../src/instrumentations/web-vitals/WebVitalsInstrumentation/constants.ts"],"mappings":";;;cAEa,qBAAA;AAAA,cACA,0BAAA;AAAA,cACA,uBAAA;AAAA,cACA,eAAA;AAAA,cACA,cAAA;AAAA,cACA,yBAAA;EALqB;;AAClC;;;;;AACA;;;;;AACA;;EAHkC,kCAuExB,aAAA,CAAA,wBAAA;EApEmD;;AAC7D;;;;;AACA;EAF6D"}