@safaricom-mxl/web-sdk 0.0.15 → 0.0.17

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 (827) hide show
  1. package/DATA_EXPORT.md +2 -3
  2. package/REACT.md +5 -7
  3. package/README.md +94 -57
  4. package/UPGRADING.md +29 -19
  5. package/dist/api-logs/api/LogAPI/LogAPI.cjs +3 -3
  6. package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
  7. package/dist/api-logs/api/LogAPI/LogAPI.js +3 -3
  8. package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
  9. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
  10. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
  11. package/dist/api-logs/manager/types.d.cts +4 -4
  12. package/dist/api-logs/manager/types.d.cts.map +1 -1
  13. package/dist/api-logs/manager/types.d.ts +4 -4
  14. package/dist/api-logs/manager/types.d.ts.map +1 -1
  15. package/dist/api-page/api/PageAPI/PageAPI.cjs +3 -3
  16. package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
  17. package/dist/api-page/api/PageAPI/PageAPI.js +3 -3
  18. package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
  19. package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs +9 -9
  20. package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
  21. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts +5 -7
  22. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts.map +1 -1
  23. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts +5 -7
  24. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts.map +1 -1
  25. package/dist/api-sessions/api/SessionAPI/SessionAPI.js +9 -9
  26. package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
  27. package/dist/api-sessions/index.cjs +4 -4
  28. package/dist/api-sessions/index.d.cts +4 -4
  29. package/dist/api-sessions/index.d.ts +4 -4
  30. package/dist/api-sessions/index.js +3 -3
  31. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs +47 -0
  32. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs.map +1 -0
  33. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts +30 -0
  34. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts.map +1 -0
  35. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts +30 -0
  36. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts.map +1 -0
  37. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js +46 -0
  38. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js.map +1 -0
  39. package/dist/api-sessions/manager/NoOpUserSessionManager/index.cjs +3 -0
  40. package/dist/api-sessions/manager/NoOpUserSessionManager/index.d.cts +2 -0
  41. package/dist/api-sessions/manager/NoOpUserSessionManager/index.d.ts +2 -0
  42. package/dist/api-sessions/manager/NoOpUserSessionManager/index.js +2 -0
  43. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs +81 -0
  44. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs.map +1 -0
  45. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts +35 -0
  46. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts.map +1 -0
  47. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts +35 -0
  48. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts.map +1 -0
  49. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js +81 -0
  50. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js.map +1 -0
  51. package/dist/api-sessions/manager/ProxyUserSessionManager/index.cjs +3 -0
  52. package/dist/api-sessions/manager/ProxyUserSessionManager/index.d.cts +2 -0
  53. package/dist/api-sessions/manager/ProxyUserSessionManager/index.d.ts +2 -0
  54. package/dist/api-sessions/manager/ProxyUserSessionManager/index.js +2 -0
  55. package/dist/api-sessions/manager/index.cjs +4 -4
  56. package/dist/api-sessions/manager/index.d.cts +4 -4
  57. package/dist/api-sessions/manager/index.d.ts +4 -4
  58. package/dist/api-sessions/manager/index.js +3 -3
  59. package/dist/api-sessions/manager/types.d.cts +14 -24
  60. package/dist/api-sessions/manager/types.d.cts.map +1 -1
  61. package/dist/api-sessions/manager/types.d.ts +14 -24
  62. package/dist/api-sessions/manager/types.d.ts.map +1 -1
  63. package/dist/api-traces/api/TraceAPI/TraceAPI.cjs +3 -3
  64. package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
  65. package/dist/api-traces/api/TraceAPI/TraceAPI.js +3 -3
  66. package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
  67. package/dist/api-traces/api/TraceAPI/types.d.cts +2 -2
  68. package/dist/api-traces/api/TraceAPI/types.d.cts.map +1 -1
  69. package/dist/api-traces/api/TraceAPI/types.d.ts +2 -2
  70. package/dist/api-traces/api/TraceAPI/types.d.ts.map +1 -1
  71. package/dist/api-users/api/UserAPI/UserAPI.cjs +3 -3
  72. package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
  73. package/dist/api-users/api/UserAPI/UserAPI.js +3 -3
  74. package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
  75. package/dist/common/types.d.cts +2 -0
  76. package/dist/common/types.d.cts.map +1 -1
  77. package/dist/common/types.d.ts +2 -0
  78. package/dist/common/types.d.ts.map +1 -1
  79. package/dist/constants/attributes.cjs +30 -0
  80. package/dist/constants/attributes.cjs.map +1 -1
  81. package/dist/constants/attributes.d.cts +18 -2
  82. package/dist/constants/attributes.d.cts.map +1 -1
  83. package/dist/constants/attributes.d.ts +18 -2
  84. package/dist/constants/attributes.d.ts.map +1 -1
  85. package/dist/constants/attributes.js +17 -1
  86. package/dist/constants/attributes.js.map +1 -1
  87. package/dist/constants/index.cjs +14 -0
  88. package/dist/constants/index.d.cts +2 -2
  89. package/dist/constants/index.d.ts +2 -2
  90. package/dist/constants/index.js +2 -2
  91. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +1 -2
  92. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
  93. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts +1 -2
  94. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
  95. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +1 -2
  96. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
  97. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +1 -2
  98. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
  99. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
  100. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
  101. package/dist/exporters/constants.cjs +1 -1
  102. package/dist/exporters/constants.cjs.map +1 -1
  103. package/dist/exporters/constants.d.cts +1 -1
  104. package/dist/exporters/constants.d.ts +1 -1
  105. package/dist/exporters/constants.js +1 -1
  106. package/dist/exporters/constants.js.map +1 -1
  107. package/dist/exporters/otlpBrowserFetchExportDelegate.cjs.map +1 -1
  108. package/dist/exporters/otlpBrowserFetchExportDelegate.js.map +1 -1
  109. package/dist/index.cjs +2 -0
  110. package/dist/index.d.cts +2 -1
  111. package/dist/index.d.ts +2 -1
  112. package/dist/index.js +2 -1
  113. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs +2 -2
  114. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs.map +1 -1
  115. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.d.cts.map +1 -1
  116. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.d.ts.map +1 -1
  117. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js +2 -2
  118. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js.map +1 -1
  119. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +6 -7
  120. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
  121. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +4 -5
  122. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
  123. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +4 -5
  124. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
  125. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +6 -7
  126. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
  127. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +8 -8
  128. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
  129. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.cts.map +1 -1
  130. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
  131. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +8 -8
  132. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
  133. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +10 -10
  134. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
  135. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +10 -10
  136. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
  137. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +2 -2
  138. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
  139. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +2 -2
  140. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
  141. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +5 -5
  142. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -1
  143. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +5 -5
  144. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -1
  145. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +4 -4
  146. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
  147. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +4 -4
  148. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
  149. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +7 -7
  150. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
  151. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +7 -7
  152. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
  153. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs +3 -3
  154. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
  155. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.cts +4 -4
  156. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.cts.map +1 -1
  157. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.ts +4 -4
  158. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.ts.map +1 -1
  159. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js +4 -4
  160. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
  161. package/dist/instrumentations/index.cjs +2 -4
  162. package/dist/instrumentations/index.d.cts +4 -6
  163. package/dist/instrumentations/index.d.ts +4 -6
  164. package/dist/instrumentations/index.js +2 -3
  165. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +23 -23
  166. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -1
  167. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +2 -3
  168. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -1
  169. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +2 -3
  170. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -1
  171. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +23 -23
  172. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -1
  173. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +5 -5
  174. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
  175. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.cts.map +1 -1
  176. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
  177. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +5 -5
  178. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
  179. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs.map +1 -1
  180. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js.map +1 -1
  181. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs +1 -1
  182. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs.map +1 -1
  183. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js +1 -1
  184. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js.map +1 -1
  185. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.cts +10 -10
  186. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.cts.map +1 -1
  187. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts +10 -10
  188. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts.map +1 -1
  189. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.cts +2 -2
  190. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.cts.map +1 -1
  191. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts +2 -2
  192. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts.map +1 -1
  193. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs.map +1 -1
  194. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js.map +1 -1
  195. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs +257 -0
  196. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs.map +1 -0
  197. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts +56 -0
  198. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts.map +1 -0
  199. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts +56 -0
  200. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts.map +1 -0
  201. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js +252 -0
  202. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js.map +1 -0
  203. package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs +15 -0
  204. package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs.map +1 -0
  205. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts +9 -0
  206. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts.map +1 -0
  207. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts +9 -0
  208. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts.map +1 -0
  209. package/dist/instrumentations/replay/ReplayInstrumentation/constants.js +10 -0
  210. package/dist/instrumentations/replay/ReplayInstrumentation/constants.js.map +1 -0
  211. package/dist/instrumentations/replay/ReplayInstrumentation/index.cjs +3 -0
  212. package/dist/instrumentations/replay/ReplayInstrumentation/index.d.cts +3 -0
  213. package/dist/instrumentations/replay/ReplayInstrumentation/index.d.ts +3 -0
  214. package/dist/instrumentations/replay/ReplayInstrumentation/index.js +2 -0
  215. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts +17 -0
  216. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts.map +1 -0
  217. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts +17 -0
  218. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts.map +1 -0
  219. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs +18 -0
  220. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs.map +1 -0
  221. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.cts +8 -0
  222. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.cts.map +1 -0
  223. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.ts +8 -0
  224. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.ts.map +1 -0
  225. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js +17 -0
  226. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js.map +1 -0
  227. package/dist/instrumentations/replay/index.cjs +8 -0
  228. package/dist/instrumentations/replay/index.d.cts +4 -0
  229. package/dist/instrumentations/replay/index.d.ts +4 -0
  230. package/dist/instrumentations/replay/index.js +3 -0
  231. package/dist/instrumentations/replay/utils/index.cjs +5 -0
  232. package/dist/instrumentations/replay/utils/index.d.cts +2 -0
  233. package/dist/instrumentations/replay/utils/index.d.ts +2 -0
  234. package/dist/instrumentations/replay/utils/index.js +2 -0
  235. package/dist/instrumentations/replay/utils/session-recording-utils.cjs +79 -0
  236. package/dist/instrumentations/replay/utils/session-recording-utils.cjs.map +1 -0
  237. package/dist/instrumentations/replay/utils/session-recording-utils.d.cts +32 -0
  238. package/dist/instrumentations/replay/utils/session-recording-utils.d.cts.map +1 -0
  239. package/dist/instrumentations/replay/utils/session-recording-utils.d.ts +32 -0
  240. package/dist/instrumentations/replay/utils/session-recording-utils.d.ts.map +1 -0
  241. package/dist/instrumentations/replay/utils/session-recording-utils.js +73 -0
  242. package/dist/instrumentations/replay/utils/session-recording-utils.js.map +1 -0
  243. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +6 -6
  244. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -1
  245. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +6 -6
  246. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -1
  247. package/dist/instrumentations/session/index.cjs +0 -6
  248. package/dist/instrumentations/session/index.d.cts +2 -7
  249. package/dist/instrumentations/session/index.d.ts +2 -7
  250. package/dist/instrumentations/session/index.js +1 -4
  251. package/dist/instrumentations/session/types.d.cts +5 -5
  252. package/dist/instrumentations/session/types.d.cts.map +1 -1
  253. package/dist/instrumentations/session/types.d.ts +5 -5
  254. package/dist/instrumentations/session/types.d.ts.map +1 -1
  255. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +10 -10
  256. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -1
  257. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +10 -10
  258. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -1
  259. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +15 -15
  260. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
  261. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +15 -15
  262. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
  263. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +1 -3
  264. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
  265. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +1 -3
  266. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
  267. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +0 -1
  268. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
  269. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
  270. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
  271. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +0 -1
  272. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
  273. package/dist/managers/MXLConfigManager/constants.cjs +2 -2
  274. package/dist/managers/MXLConfigManager/constants.cjs.map +1 -1
  275. package/dist/managers/MXLConfigManager/constants.js +2 -2
  276. package/dist/managers/MXLConfigManager/constants.js.map +1 -1
  277. package/dist/managers/MXLConfigManager/types.d.cts +8 -7
  278. package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
  279. package/dist/managers/MXLConfigManager/types.d.ts +8 -7
  280. package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
  281. package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +20 -20
  282. package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
  283. package/dist/managers/MXLLimitManager/MXLLimitManager.js +20 -20
  284. package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
  285. package/dist/managers/MXLLimitManager/constants.cjs +20 -20
  286. package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
  287. package/dist/managers/MXLLimitManager/constants.js +20 -20
  288. package/dist/managers/MXLLimitManager/constants.js.map +1 -1
  289. package/dist/managers/MXLLimitManager/types.d.cts +8 -8
  290. package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
  291. package/dist/managers/MXLLimitManager/types.d.ts +8 -8
  292. package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
  293. package/dist/managers/MXLLogManager/MXLLogManager.cjs +22 -20
  294. package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
  295. package/dist/managers/MXLLogManager/MXLLogManager.d.cts +2 -2
  296. package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
  297. package/dist/managers/MXLLogManager/MXLLogManager.d.ts +2 -2
  298. package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
  299. package/dist/managers/MXLLogManager/MXLLogManager.js +23 -21
  300. package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
  301. package/dist/managers/MXLLogManager/types.d.cts +2 -2
  302. package/dist/managers/MXLLogManager/types.d.ts +2 -2
  303. package/dist/managers/MXLPageManager/MXLPageManager.cjs +1 -3
  304. package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
  305. package/dist/managers/MXLPageManager/MXLPageManager.d.cts.map +1 -1
  306. package/dist/managers/MXLPageManager/MXLPageManager.d.ts.map +1 -1
  307. package/dist/managers/MXLPageManager/MXLPageManager.js +1 -3
  308. package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
  309. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs +0 -4
  310. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
  311. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.cts +0 -1
  312. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.cts.map +1 -1
  313. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.ts +0 -1
  314. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.ts.map +1 -1
  315. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js +0 -4
  316. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
  317. package/dist/managers/MXLSDKFeaturesManager/types.d.cts +0 -1
  318. package/dist/managers/MXLSDKFeaturesManager/types.d.cts.map +1 -1
  319. package/dist/managers/MXLSDKFeaturesManager/types.d.ts +0 -1
  320. package/dist/managers/MXLSDKFeaturesManager/types.d.ts.map +1 -1
  321. package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
  322. package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
  323. package/dist/managers/MXLUserManager/MXLUserManager.cjs +14 -14
  324. package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
  325. package/dist/managers/MXLUserManager/MXLUserManager.js +14 -14
  326. package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
  327. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs +574 -0
  328. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs.map +1 -0
  329. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts +142 -0
  330. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts.map +1 -0
  331. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts +142 -0
  332. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts.map +1 -0
  333. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js +572 -0
  334. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js.map +1 -0
  335. package/dist/managers/MXLUserSessionManager/constants.cjs +55 -0
  336. package/dist/managers/MXLUserSessionManager/constants.cjs.map +1 -0
  337. package/dist/managers/MXLUserSessionManager/constants.d.cts +31 -0
  338. package/dist/managers/MXLUserSessionManager/constants.d.cts.map +1 -0
  339. package/dist/managers/MXLUserSessionManager/constants.d.ts +31 -0
  340. package/dist/managers/MXLUserSessionManager/constants.d.ts.map +1 -0
  341. package/dist/managers/MXLUserSessionManager/constants.js +37 -0
  342. package/dist/managers/MXLUserSessionManager/constants.js.map +1 -0
  343. package/dist/managers/MXLUserSessionManager/index.cjs +6 -0
  344. package/dist/managers/MXLUserSessionManager/index.d.cts +4 -0
  345. package/dist/managers/MXLUserSessionManager/index.d.ts +4 -0
  346. package/dist/managers/MXLUserSessionManager/index.js +3 -0
  347. package/dist/managers/MXLUserSessionManager/types.d.cts +84 -0
  348. package/dist/managers/MXLUserSessionManager/types.d.cts.map +1 -0
  349. package/dist/managers/MXLUserSessionManager/types.d.ts +84 -0
  350. package/dist/managers/MXLUserSessionManager/types.d.ts.map +1 -0
  351. package/dist/managers/MXLUserSessionManager/utils/activity.cjs +25 -0
  352. package/dist/managers/MXLUserSessionManager/utils/activity.cjs.map +1 -0
  353. package/dist/managers/MXLUserSessionManager/utils/activity.d.cts +40 -0
  354. package/dist/managers/MXLUserSessionManager/utils/activity.d.cts.map +1 -0
  355. package/dist/managers/MXLUserSessionManager/utils/activity.d.ts +40 -0
  356. package/dist/managers/MXLUserSessionManager/utils/activity.d.ts.map +1 -0
  357. package/dist/managers/MXLUserSessionManager/utils/activity.js +22 -0
  358. package/dist/managers/MXLUserSessionManager/utils/activity.js.map +1 -0
  359. package/dist/managers/MXLUserSessionManager/utils/index.cjs +11 -0
  360. package/dist/managers/MXLUserSessionManager/utils/index.d.cts +3 -0
  361. package/dist/managers/MXLUserSessionManager/utils/index.d.ts +3 -0
  362. package/dist/managers/MXLUserSessionManager/utils/index.js +3 -0
  363. package/dist/managers/MXLUserSessionManager/utils/state.cjs +78 -0
  364. package/dist/managers/MXLUserSessionManager/utils/state.cjs.map +1 -0
  365. package/dist/managers/MXLUserSessionManager/utils/state.d.cts +39 -0
  366. package/dist/managers/MXLUserSessionManager/utils/state.d.cts.map +1 -0
  367. package/dist/managers/MXLUserSessionManager/utils/state.d.ts +39 -0
  368. package/dist/managers/MXLUserSessionManager/utils/state.d.ts.map +1 -0
  369. package/dist/managers/MXLUserSessionManager/utils/state.js +73 -0
  370. package/dist/managers/MXLUserSessionManager/utils/state.js.map +1 -0
  371. package/dist/managers/MXLUserSessionManager/utils/tabTracking.cjs +132 -0
  372. package/dist/managers/MXLUserSessionManager/utils/tabTracking.cjs.map +1 -0
  373. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.cts +33 -0
  374. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.cts.map +1 -0
  375. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.ts +33 -0
  376. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.ts.map +1 -0
  377. package/dist/managers/MXLUserSessionManager/utils/tabTracking.js +127 -0
  378. package/dist/managers/MXLUserSessionManager/utils/tabTracking.js.map +1 -0
  379. package/dist/managers/index.cjs +5 -2
  380. package/dist/managers/index.d.cts +4 -3
  381. package/dist/managers/index.d.ts +4 -3
  382. package/dist/managers/index.js +3 -2
  383. package/dist/mxl-web-sdk.js +1 -58
  384. package/dist/mxl-web-sdk.js.map +1 -1
  385. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs.map +1 -1
  386. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js.map +1 -1
  387. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
  388. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
  389. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs.map +1 -1
  390. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js.map +1 -1
  391. package/dist/processors/LogRecordScrubProcessor/types.d.cts +2 -2
  392. package/dist/processors/LogRecordScrubProcessor/types.d.cts.map +1 -1
  393. package/dist/processors/LogRecordScrubProcessor/types.d.ts +2 -2
  394. package/dist/processors/LogRecordScrubProcessor/types.d.ts.map +1 -1
  395. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
  396. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
  397. package/dist/processors/MXLLogRecordProcessor/types.d.cts +2 -2
  398. package/dist/processors/MXLLogRecordProcessor/types.d.cts.map +1 -1
  399. package/dist/processors/MXLLogRecordProcessor/types.d.ts +2 -2
  400. package/dist/processors/MXLLogRecordProcessor/types.d.ts.map +1 -1
  401. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
  402. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
  403. package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
  404. package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
  405. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs +74 -0
  406. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs.map +1 -0
  407. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts +28 -0
  408. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts.map +1 -0
  409. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts +28 -0
  410. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts.map +1 -0
  411. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js +72 -0
  412. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js.map +1 -0
  413. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.cjs +3 -0
  414. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.d.cts +3 -0
  415. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.d.ts +3 -0
  416. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.js +2 -0
  417. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.cts +15 -0
  418. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.cts.map +1 -0
  419. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.ts +15 -0
  420. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.ts.map +1 -0
  421. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
  422. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
  423. package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
  424. package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
  425. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
  426. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
  427. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs.map +1 -1
  428. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js.map +1 -1
  429. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs +34 -0
  430. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs.map +1 -0
  431. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts +16 -0
  432. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts.map +1 -0
  433. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts +16 -0
  434. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts.map +1 -0
  435. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js +32 -0
  436. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js.map +1 -0
  437. package/dist/processors/UserSessionLogRecordProcessor/index.cjs +3 -0
  438. package/dist/processors/UserSessionLogRecordProcessor/index.d.cts +3 -0
  439. package/dist/processors/UserSessionLogRecordProcessor/index.d.ts +3 -0
  440. package/dist/processors/UserSessionLogRecordProcessor/index.js +2 -0
  441. package/dist/processors/UserSessionLogRecordProcessor/types.d.cts +8 -0
  442. package/dist/processors/UserSessionLogRecordProcessor/types.d.cts.map +1 -0
  443. package/dist/processors/UserSessionLogRecordProcessor/types.d.ts +8 -0
  444. package/dist/processors/UserSessionLogRecordProcessor/types.d.ts.map +1 -0
  445. package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
  446. package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
  447. package/dist/processors/index.cjs +4 -4
  448. package/dist/processors/index.d.cts +3 -3
  449. package/dist/processors/index.d.ts +3 -3
  450. package/dist/processors/index.js +3 -3
  451. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs.map +1 -1
  452. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js.map +1 -1
  453. package/dist/resources/appInstanceId.cjs +4 -4
  454. package/dist/resources/appInstanceId.cjs.map +1 -1
  455. package/dist/resources/appInstanceId.js +4 -4
  456. package/dist/resources/appInstanceId.js.map +1 -1
  457. package/dist/resources/constants/index.cjs +1 -1
  458. package/dist/resources/constants/index.cjs.map +1 -1
  459. package/dist/resources/constants/index.d.cts +1 -1
  460. package/dist/resources/constants/index.d.ts +1 -1
  461. package/dist/resources/constants/index.js +1 -1
  462. package/dist/resources/constants/index.js.map +1 -1
  463. package/dist/resources/webSdkResource.cjs +15 -19
  464. package/dist/resources/webSdkResource.cjs.map +1 -1
  465. package/dist/resources/webSdkResource.d.cts.map +1 -1
  466. package/dist/resources/webSdkResource.d.ts.map +1 -1
  467. package/dist/resources/webSdkResource.js +15 -19
  468. package/dist/resources/webSdkResource.js.map +1 -1
  469. package/dist/sdk/defaultAttributeScrubbers.cjs +8 -8
  470. package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
  471. package/dist/sdk/defaultAttributeScrubbers.js +8 -8
  472. package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
  473. package/dist/sdk/index.d.cts +3 -2
  474. package/dist/sdk/index.d.ts +3 -2
  475. package/dist/sdk/initSDK.cjs +139 -98
  476. package/dist/sdk/initSDK.cjs.map +1 -1
  477. package/dist/sdk/initSDK.d.cts +4 -2
  478. package/dist/sdk/initSDK.d.cts.map +1 -1
  479. package/dist/sdk/initSDK.d.ts +4 -2
  480. package/dist/sdk/initSDK.d.ts.map +1 -1
  481. package/dist/sdk/initSDK.js +139 -98
  482. package/dist/sdk/initSDK.js.map +1 -1
  483. package/dist/sdk/noopSessionRecording.cjs +10 -0
  484. package/dist/sdk/noopSessionRecording.cjs.map +1 -0
  485. package/dist/sdk/noopSessionRecording.d.cts +7 -0
  486. package/dist/sdk/noopSessionRecording.d.cts.map +1 -0
  487. package/dist/sdk/noopSessionRecording.d.ts +7 -0
  488. package/dist/sdk/noopSessionRecording.d.ts.map +1 -0
  489. package/dist/sdk/noopSessionRecording.js +9 -0
  490. package/dist/sdk/noopSessionRecording.js.map +1 -0
  491. package/dist/sdk/registry.cjs +1 -3
  492. package/dist/sdk/registry.cjs.map +1 -1
  493. package/dist/sdk/registry.d.cts.map +1 -1
  494. package/dist/sdk/registry.d.ts.map +1 -1
  495. package/dist/sdk/registry.js +1 -3
  496. package/dist/sdk/registry.js.map +1 -1
  497. package/dist/sdk/setupDefaultInstrumentations.cjs +9 -5
  498. package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
  499. package/dist/sdk/setupDefaultInstrumentations.d.cts +5 -2
  500. package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
  501. package/dist/sdk/setupDefaultInstrumentations.d.ts +5 -2
  502. package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
  503. package/dist/sdk/setupDefaultInstrumentations.js +9 -5
  504. package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
  505. package/dist/sdk/types.d.cts +68 -56
  506. package/dist/sdk/types.d.cts.map +1 -1
  507. package/dist/sdk/types.d.ts +69 -57
  508. package/dist/sdk/types.d.ts.map +1 -1
  509. package/dist/sdk/utils.cjs +1 -1
  510. package/dist/sdk/utils.cjs.map +1 -1
  511. package/dist/sdk/utils.d.cts.map +1 -1
  512. package/dist/sdk/utils.d.ts.map +1 -1
  513. package/dist/sdk/utils.js +1 -1
  514. package/dist/sdk/utils.js.map +1 -1
  515. package/dist/transport/FetchTransport/FetchTransport.cjs +13 -13
  516. package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
  517. package/dist/transport/FetchTransport/FetchTransport.js +13 -13
  518. package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
  519. package/dist/transport/RetryingTransport/RetryingTransport.cjs +1 -1
  520. package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
  521. package/dist/transport/RetryingTransport/RetryingTransport.js +1 -1
  522. package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
  523. package/dist/utils/NamespacedStorage/NamespacedStorage.cjs +69 -24
  524. package/dist/utils/NamespacedStorage/NamespacedStorage.cjs.map +1 -1
  525. package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts +27 -13
  526. package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts.map +1 -1
  527. package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts +27 -13
  528. package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts.map +1 -1
  529. package/dist/utils/NamespacedStorage/NamespacedStorage.js +68 -24
  530. package/dist/utils/NamespacedStorage/NamespacedStorage.js.map +1 -1
  531. package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
  532. package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
  533. package/dist/utils/clampNumber.cjs +23 -0
  534. package/dist/utils/clampNumber.cjs.map +1 -0
  535. package/dist/utils/clampNumber.d.cts +24 -0
  536. package/dist/utils/clampNumber.d.cts.map +1 -0
  537. package/dist/utils/clampNumber.d.ts +24 -0
  538. package/dist/utils/clampNumber.d.ts.map +1 -0
  539. package/dist/utils/clampNumber.js +22 -0
  540. package/dist/utils/clampNumber.js.map +1 -0
  541. package/dist/utils/createSafeProxy/createSafeProxy.cjs +2 -2
  542. package/dist/utils/createSafeProxy/createSafeProxy.cjs.map +1 -1
  543. package/dist/utils/createSafeProxy/createSafeProxy.d.cts.map +1 -1
  544. package/dist/utils/createSafeProxy/createSafeProxy.d.ts.map +1 -1
  545. package/dist/utils/createSafeProxy/createSafeProxy.js +2 -2
  546. package/dist/utils/createSafeProxy/createSafeProxy.js.map +1 -1
  547. package/dist/utils/generateWebVitalID.cjs +1 -3
  548. package/dist/utils/generateWebVitalID.cjs.map +1 -1
  549. package/dist/utils/generateWebVitalID.js +1 -3
  550. package/dist/utils/generateWebVitalID.js.map +1 -1
  551. package/dist/utils/getIncrementedCount.cjs +2 -2
  552. package/dist/utils/getIncrementedCount.cjs.map +1 -1
  553. package/dist/utils/getIncrementedCount.js +2 -2
  554. package/dist/utils/getIncrementedCount.js.map +1 -1
  555. package/dist/utils/globalConfig.cjs.map +1 -1
  556. package/dist/utils/globalConfig.d.cts +2 -2
  557. package/dist/utils/globalConfig.d.cts.map +1 -1
  558. package/dist/utils/globalConfig.d.ts +2 -2
  559. package/dist/utils/globalConfig.d.ts.map +1 -1
  560. package/dist/utils/globalConfig.js.map +1 -1
  561. package/dist/utils/index.cjs +2 -2
  562. package/dist/utils/index.d.cts +3 -3
  563. package/dist/utils/index.d.ts +3 -3
  564. package/dist/utils/index.js +2 -2
  565. package/dist/utils/isDeviceIdEnabled.cjs.map +1 -1
  566. package/dist/utils/isDeviceIdEnabled.js.map +1 -1
  567. package/dist/utils/performanceObserver/performanceObserver.cjs +3 -3
  568. package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -1
  569. package/dist/utils/performanceObserver/performanceObserver.js +3 -3
  570. package/dist/utils/performanceObserver/performanceObserver.js.map +1 -1
  571. package/dist/utils/throttle.cjs +13 -9
  572. package/dist/utils/throttle.cjs.map +1 -1
  573. package/dist/utils/throttle.d.cts +6 -3
  574. package/dist/utils/throttle.d.cts.map +1 -1
  575. package/dist/utils/throttle.d.ts +6 -3
  576. package/dist/utils/throttle.d.ts.map +1 -1
  577. package/dist/utils/throttle.js +13 -9
  578. package/dist/utils/throttle.js.map +1 -1
  579. package/package.json +56 -56
  580. package/dist/api-sessions/api/SessionAPI/types.d.cts +0 -8
  581. package/dist/api-sessions/api/SessionAPI/types.d.cts.map +0 -1
  582. package/dist/api-sessions/api/SessionAPI/types.d.ts +0 -8
  583. package/dist/api-sessions/api/SessionAPI/types.d.ts.map +0 -1
  584. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs +0 -31
  585. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs.map +0 -1
  586. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.cts +0 -24
  587. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.cts.map +0 -1
  588. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts +0 -24
  589. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts.map +0 -1
  590. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js +0 -30
  591. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js.map +0 -1
  592. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.cjs +0 -3
  593. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.d.cts +0 -2
  594. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.d.ts +0 -2
  595. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.js +0 -2
  596. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs +0 -55
  597. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs.map +0 -1
  598. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.cts +0 -27
  599. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.cts.map +0 -1
  600. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts +0 -27
  601. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts.map +0 -1
  602. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js +0 -55
  603. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js.map +0 -1
  604. package/dist/api-sessions/manager/ProxySpanSessionManager/index.cjs +0 -3
  605. package/dist/api-sessions/manager/ProxySpanSessionManager/index.d.cts +0 -2
  606. package/dist/api-sessions/manager/ProxySpanSessionManager/index.d.ts +0 -2
  607. package/dist/api-sessions/manager/ProxySpanSessionManager/index.js +0 -2
  608. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs +0 -27
  609. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs.map +0 -1
  610. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.cts +0 -15
  611. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.cts.map +0 -1
  612. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.ts +0 -15
  613. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.ts.map +0 -1
  614. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js +0 -25
  615. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js.map +0 -1
  616. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.cjs +0 -3
  617. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.d.cts +0 -2
  618. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.d.ts +0 -2
  619. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.js +0 -2
  620. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.cts +0 -9
  621. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.cts.map +0 -1
  622. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.ts +0 -9
  623. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.ts.map +0 -1
  624. package/dist/instrumentations/fetch/index.cjs +0 -3
  625. package/dist/instrumentations/fetch/index.d.cts +0 -3
  626. package/dist/instrumentations/fetch/index.d.ts +0 -3
  627. package/dist/instrumentations/fetch/index.js +0 -2
  628. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs +0 -60
  629. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs.map +0 -1
  630. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts +0 -24
  631. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts.map +0 -1
  632. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts +0 -24
  633. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts.map +0 -1
  634. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js +0 -59
  635. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js.map +0 -1
  636. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs +0 -19
  637. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs.map +0 -1
  638. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.cts +0 -10
  639. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.cts.map +0 -1
  640. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.ts +0 -10
  641. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.ts.map +0 -1
  642. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js +0 -16
  643. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js.map +0 -1
  644. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.cjs +0 -3
  645. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.d.cts +0 -3
  646. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.d.ts +0 -3
  647. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.js +0 -2
  648. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts +0 -6
  649. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts.map +0 -1
  650. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts +0 -6
  651. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts.map +0 -1
  652. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs +0 -24
  653. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs.map +0 -1
  654. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.cts +0 -14
  655. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.cts.map +0 -1
  656. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts +0 -14
  657. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts.map +0 -1
  658. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js +0 -23
  659. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js.map +0 -1
  660. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.cjs +0 -3
  661. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.d.cts +0 -3
  662. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.d.ts +0 -3
  663. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.js +0 -2
  664. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts +0 -6
  665. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts.map +0 -1
  666. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts +0 -6
  667. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts.map +0 -1
  668. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs +0 -55
  669. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs.map +0 -1
  670. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts +0 -22
  671. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts.map +0 -1
  672. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts +0 -22
  673. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts.map +0 -1
  674. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js +0 -54
  675. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js.map +0 -1
  676. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs +0 -7
  677. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs.map +0 -1
  678. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.cts +0 -5
  679. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.cts.map +0 -1
  680. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.ts +0 -5
  681. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.ts.map +0 -1
  682. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js +0 -6
  683. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js.map +0 -1
  684. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.cjs +0 -3
  685. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.d.cts +0 -3
  686. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.d.ts +0 -3
  687. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.js +0 -2
  688. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.cjs +0 -0
  689. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts +0 -6
  690. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts.map +0 -1
  691. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts +0 -6
  692. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts.map +0 -1
  693. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.js +0 -0
  694. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs +0 -38
  695. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs.map +0 -1
  696. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts +0 -17
  697. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts.map +0 -1
  698. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts +0 -17
  699. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts.map +0 -1
  700. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js +0 -37
  701. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js.map +0 -1
  702. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.cjs +0 -3
  703. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.d.cts +0 -3
  704. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.d.ts +0 -3
  705. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.js +0 -2
  706. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.cjs +0 -0
  707. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts +0 -10
  708. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts.map +0 -1
  709. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts +0 -10
  710. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts.map +0 -1
  711. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.js +0 -0
  712. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs +0 -27
  713. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs.map +0 -1
  714. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.cts +0 -15
  715. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.cts.map +0 -1
  716. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.ts +0 -15
  717. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.ts.map +0 -1
  718. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js +0 -25
  719. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js.map +0 -1
  720. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.cjs +0 -3
  721. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.d.cts +0 -2
  722. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.d.ts +0 -2
  723. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.js +0 -2
  724. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.cjs +0 -0
  725. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.cts +0 -9
  726. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.cts.map +0 -1
  727. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.ts +0 -9
  728. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.ts.map +0 -1
  729. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.js +0 -0
  730. package/dist/instrumentations/xhr/index.cjs +0 -3
  731. package/dist/instrumentations/xhr/index.d.cts +0 -3
  732. package/dist/instrumentations/xhr/index.d.ts +0 -3
  733. package/dist/instrumentations/xhr/index.js +0 -2
  734. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs +0 -350
  735. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs.map +0 -1
  736. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts +0 -72
  737. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts.map +0 -1
  738. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts +0 -72
  739. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts.map +0 -1
  740. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js +0 -348
  741. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js.map +0 -1
  742. package/dist/managers/MXLSpanSessionManager/constants.cjs +0 -11
  743. package/dist/managers/MXLSpanSessionManager/constants.cjs.map +0 -1
  744. package/dist/managers/MXLSpanSessionManager/constants.d.cts +0 -7
  745. package/dist/managers/MXLSpanSessionManager/constants.d.cts.map +0 -1
  746. package/dist/managers/MXLSpanSessionManager/constants.d.ts +0 -7
  747. package/dist/managers/MXLSpanSessionManager/constants.d.ts.map +0 -1
  748. package/dist/managers/MXLSpanSessionManager/constants.js +0 -8
  749. package/dist/managers/MXLSpanSessionManager/constants.js.map +0 -1
  750. package/dist/managers/MXLSpanSessionManager/index.cjs +0 -3
  751. package/dist/managers/MXLSpanSessionManager/index.d.cts +0 -3
  752. package/dist/managers/MXLSpanSessionManager/index.d.ts +0 -3
  753. package/dist/managers/MXLSpanSessionManager/index.js +0 -2
  754. package/dist/managers/MXLSpanSessionManager/types.cjs +0 -0
  755. package/dist/managers/MXLSpanSessionManager/types.d.cts +0 -41
  756. package/dist/managers/MXLSpanSessionManager/types.d.cts.map +0 -1
  757. package/dist/managers/MXLSpanSessionManager/types.d.ts +0 -41
  758. package/dist/managers/MXLSpanSessionManager/types.d.ts.map +0 -1
  759. package/dist/managers/MXLSpanSessionManager/types.js +0 -0
  760. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs +0 -28
  761. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs.map +0 -1
  762. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.cts +0 -16
  763. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.cts.map +0 -1
  764. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.ts +0 -16
  765. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.ts.map +0 -1
  766. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js +0 -26
  767. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js.map +0 -1
  768. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.cjs +0 -3
  769. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.d.cts +0 -2
  770. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.d.ts +0 -2
  771. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.js +0 -2
  772. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.cjs +0 -0
  773. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.cts +0 -9
  774. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.cts.map +0 -1
  775. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts +0 -9
  776. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts.map +0 -1
  777. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.js +0 -0
  778. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs +0 -95
  779. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs.map +0 -1
  780. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.cts +0 -34
  781. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.cts.map +0 -1
  782. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.ts +0 -34
  783. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.ts.map +0 -1
  784. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js +0 -93
  785. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js.map +0 -1
  786. package/dist/processors/MXLSessionBatchedSpanProcessor/index.cjs +0 -3
  787. package/dist/processors/MXLSessionBatchedSpanProcessor/index.d.cts +0 -2
  788. package/dist/processors/MXLSessionBatchedSpanProcessor/index.d.ts +0 -2
  789. package/dist/processors/MXLSessionBatchedSpanProcessor/index.js +0 -2
  790. package/dist/processors/MXLSessionBatchedSpanProcessor/types.cjs +0 -0
  791. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.cts +0 -19
  792. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.cts.map +0 -1
  793. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts +0 -19
  794. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts.map +0 -1
  795. package/dist/processors/MXLSessionBatchedSpanProcessor/types.js +0 -0
  796. package/dist/sdk/setupSessionRecorder.cjs +0 -45
  797. package/dist/sdk/setupSessionRecorder.cjs.map +0 -1
  798. package/dist/sdk/setupSessionRecorder.d.cts +0 -21
  799. package/dist/sdk/setupSessionRecorder.d.cts.map +0 -1
  800. package/dist/sdk/setupSessionRecorder.d.ts +0 -21
  801. package/dist/sdk/setupSessionRecorder.d.ts.map +0 -1
  802. package/dist/sdk/setupSessionRecorder.js +0 -42
  803. package/dist/sdk/setupSessionRecorder.js.map +0 -1
  804. package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs +0 -116
  805. package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs.map +0 -1
  806. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.cts +0 -42
  807. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.cts.map +0 -1
  808. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts +0 -42
  809. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts.map +0 -1
  810. package/dist/utils/MXLSpanStorage/MXLSpanStorage.js +0 -114
  811. package/dist/utils/MXLSpanStorage/MXLSpanStorage.js.map +0 -1
  812. package/dist/utils/MXLSpanStorage/index.cjs +0 -3
  813. package/dist/utils/MXLSpanStorage/index.d.cts +0 -2
  814. package/dist/utils/MXLSpanStorage/index.d.ts +0 -2
  815. package/dist/utils/MXLSpanStorage/index.js +0 -2
  816. package/dist/utils/MXLSpanStorage/types.cjs +0 -0
  817. package/dist/utils/MXLSpanStorage/types.d.cts +0 -2
  818. package/dist/utils/MXLSpanStorage/types.d.ts +0 -2
  819. package/dist/utils/MXLSpanStorage/types.js +0 -0
  820. /package/dist/{api-sessions/api/SessionAPI → instrumentations/replay/ReplayInstrumentation}/types.cjs +0 -0
  821. /package/dist/{api-sessions/api/SessionAPI → instrumentations/replay/ReplayInstrumentation}/types.js +0 -0
  822. /package/dist/{instrumentations/fetch/MXLFetchInstrumentation → managers/MXLUserSessionManager}/types.cjs +0 -0
  823. /package/dist/{instrumentations/fetch/MXLFetchInstrumentation → managers/MXLUserSessionManager}/types.js +0 -0
  824. /package/dist/{instrumentations/session/SpanSessionBrowserActivityInstrumentation → processors/MXLSessionPartBatchedSpanProcessor}/types.cjs +0 -0
  825. /package/dist/{instrumentations/session/SpanSessionBrowserActivityInstrumentation → processors/MXLSessionPartBatchedSpanProcessor}/types.js +0 -0
  826. /package/dist/{instrumentations/session/SpanSessionOnLoadInstrumentation → processors/UserSessionLogRecordProcessor}/types.cjs +0 -0
  827. /package/dist/{instrumentations/session/SpanSessionOnLoadInstrumentation → processors/UserSessionLogRecordProcessor}/types.js +0 -0
package/DATA_EXPORT.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## When is data sent?
4
4
 
5
5
  Telemetry data for Spans and Logs are exported from the SDK independently. Spans are sent as a batch whenever a session
6
- ends, this is managed by the [MXLSessionBatchedSpanProcessor](./src/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.ts).
6
+ ends, this is managed by the [MXLSessionPartBatchedSpanProcessor](./src/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.ts).
7
7
  Logs are also batched but can be sent throughout a session, this is managed by a [BatchLogRecordProcessor](https://github.com/open-telemetry/opentelemetry-js/blob/experimental/v0.57.0/experimental/packages/sdk-logs/src/platform/browser/export/BatchLogRecordProcessor.ts).
8
8
 
9
9
  ## How is data sent?
@@ -13,7 +13,7 @@ Data from the SDK is sent to MXL using a CORS HTTP POST request. The data is gzi
13
13
  [keepalive property](https://developer.mozilla.org/en-US/docs/Web/API/Request/keepalive) of the browser's Fetch API to
14
14
  help ensure the transmission of data even if the page has been closed. If possible we will attempt to retry request
15
15
  failures following an exponential backoff. See [FetchTransport](./src/transport/FetchTransport/FetchTransport.ts) and
16
- [RetryingTransport](./src/transport/RetryingTransport/RetryingTransport.ts) for more details.
16
+ [RetryingTransport](./src/transport/RetryingTransport/RetryingTransport.ts) for more details.
17
17
 
18
18
  > [!NOTE]
19
19
  > The Fetch API's `keepalive` property is supported by all modern browsers, however it was a relatively recent addition
@@ -26,4 +26,3 @@ If you [provide your own custom exporter](./README.md#custom-exporters) then bat
26
26
  [BatchLogRecordProcessor](https://github.com/open-telemetry/opentelemetry-js/blob/experimental/v0.57.0/experimental/packages/sdk-logs/src/platform/browser/export/BatchLogRecordProcessor.ts)
27
27
  and [BatchSpanProcessor](https://github.com/open-telemetry/opentelemetry-js/blob/v1.30.0/packages/opentelemetry-sdk-trace-base/src/platform/browser/export/BatchSpanProcessor.ts)
28
28
  respectively.
29
-
package/REACT.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Instrumenting a React app with the MXL Web SDK
2
2
 
3
- You can use any of the MXL Web SDK features in your React application. However, we provide some additional automatic
3
+ You can use any of the MXL Web SDK features in your React application. However, we provide some additional automatic
4
4
  instrumentation to make it easier to instrument some common React libraries and patterns.
5
5
 
6
6
  > [!TIP]
@@ -16,10 +16,8 @@ import { createReactRouterNavigationInstrumentation } from '@safaricom-mxl/web-s
16
16
 
17
17
  initSDK({
18
18
  // ...Other configs
19
- instrumentations: [
20
- createReactRouterNavigationInstrumentation(),
21
- ],
22
- })
19
+ instrumentations: [createReactRouterNavigationInstrumentation()],
20
+ });
23
21
  ```
24
22
 
25
23
  ### React Router V4/V5
@@ -47,7 +45,7 @@ const App = () => {
47
45
 
48
46
  ### React Router V6+ in declarative mode
49
47
 
50
- If you're using React Router V6 or later, you can use the `withMXLRouting` higher-order component (HOC) to wrap your `Routes` components. This will automatically track route changes.
48
+ If you're using React Router V6 or later, you can use the `withMXLRouting` higher-order component (HOC) to wrap your `Routes` components. This will automatically track route changes.
51
49
 
52
50
  ```typescript jsx
53
51
  import { withMXLRouting } from '@safaricom-mxl/web-sdk/react-instrumentation';
@@ -140,4 +138,4 @@ const App = () => {
140
138
  </MXLErrorBoundary>
141
139
  );
142
140
  }
143
- ```
141
+ ```
package/README.md CHANGED
@@ -49,14 +49,14 @@ capturing telemetry:
49
49
  import { initSDK } from '@safaricom-mxl/web-sdk';
50
50
 
51
51
  const result = initSDK({
52
- appID: "YOUR_MXL_APP_ID",
53
- appVersion: "YOUR_APP_VERSION",
52
+ appID: 'YOUR_MXL_APP_ID',
53
+ appVersion: 'YOUR_APP_VERSION',
54
54
  });
55
55
 
56
56
  if (!!result) {
57
- console.log("Successfully initialized the MXL SDK");
57
+ console.log('Successfully initialized the MXL SDK');
58
58
  } else {
59
- console.log("Failed to initialize the MXL SDK");
59
+ console.log('Failed to initialize the MXL SDK');
60
60
  }
61
61
  ```
62
62
 
@@ -75,7 +75,7 @@ For the most basic usage simply start a span and end it after some operation com
75
75
  ```typescript
76
76
  import { trace } from '@safaricom-mxl/web-sdk';
77
77
 
78
- const span = trace.startSpan("span-name");
78
+ const span = trace.startSpan('span-name');
79
79
 
80
80
  someAsyncOperation()
81
81
  .then(() => span.end())
@@ -97,7 +97,7 @@ You can add basic context to sessions by emitting a breadcrumb that will be visi
97
97
  ```typescript
98
98
  import { session } from '@safaricom-mxl/web-sdk';
99
99
 
100
- session.addBreadcrumb("something happened");
100
+ session.addBreadcrumb('something happened');
101
101
  ```
102
102
 
103
103
  A full log message can also be emitted. Note that unlike emitting a breadcrumb a log is more heavy-weight and may
@@ -109,8 +109,8 @@ import { log } from '@safaricom-mxl/web-sdk';
109
109
  log.message('Loading not finished in time.', 'error', {
110
110
  attributes: {
111
111
  propertyA: 'valueA',
112
- propertyB: 'valueB'
113
- }
112
+ propertyB: 'valueB',
113
+ },
114
114
  });
115
115
  ```
116
116
 
@@ -130,8 +130,8 @@ try {
130
130
  handled: true,
131
131
  attributes: {
132
132
  propertyA: 'valueA',
133
- propertyB: 'valueB'
134
- }
133
+ propertyB: 'valueB',
134
+ },
135
135
  });
136
136
  }
137
137
  ```
@@ -147,14 +147,14 @@ You can add custom properties to be included as part of the current session:
147
147
  ```typescript
148
148
  import { session } from '@safaricom-mxl/web-sdk';
149
149
 
150
- session.addProperty("my-custom-property", "some value");
150
+ session.addProperty('my-custom-property', 'some value');
151
151
  ```
152
152
 
153
153
  These properties will, by default, only be included in the current session.
154
154
  If you want to add permanent properties that are sent across all sessions, you can configure the lifespan option:
155
155
 
156
156
  ```typescript
157
- session.addProperty("my-custom-property", "some value", {
157
+ session.addProperty('my-custom-property', 'some value', {
158
158
  lifespan: 'permanent',
159
159
  });
160
160
  ```
@@ -167,10 +167,10 @@ you use your `package.json` to track versions of your app then a way to keep thi
167
167
  value when initializing the SDK (assuming that your bundler provides a method for importing json files):
168
168
 
169
169
  ```typescript
170
- import * as packageInfo from "../<some-path>/package.json";
170
+ import * as packageInfo from '../<some-path>/package.json';
171
171
 
172
172
  initSDK({
173
- appID: "YOUR_MXL_APP_ID",
173
+ appID: 'YOUR_MXL_APP_ID',
174
174
  appVersion: packageInfo.version,
175
175
  });
176
176
  ```
@@ -211,7 +211,6 @@ npx mxl-web-cli upload -a "YOUR_MXL_APP_ID" -t "YOUR_MXL_UPLOAD_API_TOKEN" -p "J
211
211
  > The CLI injects a comment and a short function to the end of bundle files to enable symbolication, so it needs to
212
212
  > happen before packaging.
213
213
 
214
-
215
214
  Additionally, if your app version is only known at build-time you can include it in the same command to have it injected
216
215
  into the bundle. If you follow this method do not also include appVersion when calling `initSDK` as that value will take
217
216
  precedence:
@@ -234,8 +233,8 @@ ones altogether) you can pass a `defaultInstrumentationConfig` object when initi
234
233
  import { initSDK } from '@safaricom-mxl/web-sdk';
235
234
 
236
235
  initSDK({
237
- appID: "YOUR_MXL_APP_ID",
238
- appVersion: "YOUR_APP_VERSION",
236
+ appID: 'YOUR_MXL_APP_ID',
237
+ appVersion: 'YOUR_APP_VERSION',
239
238
  defaultInstrumentationConfig: {
240
239
  omit: new Set(['@opentelemetry/instrumentation-fetch']),
241
240
  },
@@ -251,8 +250,8 @@ For more advanced customization you can also include additional instrumentations
251
250
  import { initSDK } from '@safaricom-mxl/web-sdk';
252
251
 
253
252
  initSDK({
254
- appID: "YOUR_MXL_APP_ID",
255
- appVersion: "YOUR_APP_VERSION",
253
+ appID: 'YOUR_MXL_APP_ID',
254
+ appVersion: 'YOUR_APP_VERSION',
256
255
  instrumentations: [myCustomInstrumentation],
257
256
  });
258
257
  ```
@@ -269,27 +268,30 @@ import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
269
268
  import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
270
269
 
271
270
  initSDK({
272
- appID: "YOUR_MXL_APP_ID",
273
- appVersion: "YOUR_APP_VERSION",
271
+ appID: 'YOUR_MXL_APP_ID',
272
+ appVersion: 'YOUR_APP_VERSION',
274
273
  spanExporters: [
275
274
  new OTLPTraceExporter({
276
275
  url: 'https://example.com/endpoint/for/traces',
277
276
  headers: {
278
- 'Authorization': 'Basic TOKEN'
279
- }
277
+ Authorization: 'Basic TOKEN',
278
+ },
280
279
  }),
281
280
  ],
282
281
  logExporters: [
283
282
  new OTLPLogExporter({
284
283
  url: 'https://example.com/endpoint/for/logs',
285
284
  headers: {
286
- 'Authorization': 'Basic TOKEN'
287
- }
285
+ Authorization: 'Basic TOKEN',
286
+ },
288
287
  }),
289
288
  ],
290
289
  defaultInstrumentationConfig: {
291
290
  network: {
292
- ignoreUrls: ['https://example.com/endpoint/for/traces', 'https://example.com/endpoint/for/logs'],
291
+ ignoreUrls: [
292
+ 'https://example.com/endpoint/for/traces',
293
+ 'https://example.com/endpoint/for/logs',
294
+ ],
293
295
  },
294
296
  },
295
297
  });
@@ -309,13 +311,19 @@ We recommend you include our SDK as a regular npm dependency (see [Quick Start](
309
311
  the SDK as a code snippet from CDN, you can do so by adding the following script tag to your generated HTML file:
310
312
 
311
313
  ```html
312
- <script src="https://cdn.jsdelivr.net/npm/-mxl/web-sdk" crossorigin="anonymous"></script>
314
+ <script
315
+ src="https://cdn.jsdelivr.net/npm/-mxl/web-sdk"
316
+ crossorigin="anonymous"
317
+ ></script>
313
318
  ```
314
319
 
315
320
  Note: we recommend you pin specific versions to avoid breaking changes. Like:
316
321
 
317
322
  ```html
318
- <script src="https://cdn.jsdelivr.net/npm/-mxl/web-sdk@X.X.X" crossorigin="anonymous"></script>
323
+ <script
324
+ src="https://cdn.jsdelivr.net/npm/-mxl/web-sdk@X.X.X"
325
+ crossorigin="anonymous"
326
+ ></script>
319
327
  ```
320
328
 
321
329
  Replacing `X.X.X` with the version of the SDK you wish to include. Check available versions
@@ -328,14 +336,14 @@ that makes use of the sdk.
328
336
  The rest of this README assumes using the SDK from an NPM installation, here are some required changes to keep in mind
329
337
  as you refer to that documentation:
330
338
 
331
- 1) Importing the sdk from node modules is no longer valid. Instead, reference it from the global `window` object:
339
+ 1. Importing the sdk from node modules is no longer valid. Instead, reference it from the global `window` object:
332
340
 
333
341
  ```diff
334
342
  - import { initSDK, log, page, session, trace, user } from '@safaricom-mxl/web-sdk';
335
343
  + const { initSDK, log, page, session, trace, user } = window.MXLWebSdk;
336
344
  ```
337
345
 
338
- 2) Our CLI tool does not support injecting an app version when loading from CDN since in that case our SDK is not
346
+ 2. Our CLI tool does not support injecting an app version when loading from CDN since in that case our SDK is not
339
347
  bundled with your code, instead you will need to make sure to pass in your app version when initializing the sdk as
340
348
  in the following example:
341
349
 
@@ -353,7 +361,27 @@ following snippet to your HTML file. Remmxler to replace `X.X.X` with the versio
353
361
 
354
362
  ```html
355
363
  <script>
356
- !function(){window.MXLWebSdkOnReady=window.MXLWebSdkOnReady||{q:[],onReady:function(e){window.MXLWebSdkOnReady.q.push(e)}};let e=document.createElement("script");e.async=!0,e.crossOrigin="anonymous",e.src="https://cdn.jsdelivr.net/npm/-mxl/web-sdk@X.X.X",e.onload=function(){window.MXLWebSdkOnReady.q.forEach(e=>e()),window.MXLWebSdkOnReady.q=[],window.MXLWebSdkOnReady.onReady=function(e){e()}};let n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)}();
364
+ !(function () {
365
+ window.MXLWebSdkOnReady = window.MXLWebSdkOnReady || {
366
+ q: [],
367
+ onReady: function (e) {
368
+ window.MXLWebSdkOnReady.q.push(e);
369
+ },
370
+ };
371
+ let e = document.createElement('script');
372
+ ((e.async = !0),
373
+ (e.crossOrigin = 'anonymous'),
374
+ (e.src = 'https://cdn.jsdelivr.net/npm/-mxl/web-sdk@X.X.X'),
375
+ (e.onload = function () {
376
+ (window.MXLWebSdkOnReady.q.forEach((e) => e()),
377
+ (window.MXLWebSdkOnReady.q = []),
378
+ (window.MXLWebSdkOnReady.onReady = function (e) {
379
+ e();
380
+ }));
381
+ }));
382
+ let n = document.getElementsByTagName('script')[0];
383
+ n.parentNode.insertBefore(e, n);
384
+ })();
357
385
  </script>
358
386
  ```
359
387
 
@@ -365,7 +393,7 @@ window.MXLWebSdkOnReady.onReady(() => {
365
393
  appVersion: '0.0.1',
366
394
  /*...*/
367
395
  });
368
- })
396
+ });
369
397
  ```
370
398
 
371
399
  This is necessary to ensure that the SDK is fully loaded before you start using it.
@@ -383,8 +411,8 @@ initializing the SDK.
383
411
  import { initSDK } from '@safaricom-mxl/web-sdk';
384
412
 
385
413
  const mxlSDK = initSDK({
386
- appID: "YOUR_MXL_APP_ID",
387
- appVersion: "YOUR_APP_VERSION",
414
+ appID: 'YOUR_MXL_APP_ID',
415
+ appVersion: 'YOUR_APP_VERSION',
388
416
  registerGlobally: false, // Prevents the SDK from registering itself globally
389
417
  });
390
418
  ```
@@ -396,8 +424,8 @@ and properties.
396
424
  import { initSDK } from '@safaricom-mxl/web-sdk';
397
425
 
398
426
  const mxlSDK = initSDK({
399
- appID: "YOUR_MXL_APP_ID",
400
- appVersion: "YOUR_APP_VERSION",
427
+ appID: 'YOUR_MXL_APP_ID',
428
+ appVersion: 'YOUR_APP_VERSION',
401
429
  registerGlobally: false, // Prevents the SDK from registering itself globally
402
430
  });
403
431
 
@@ -412,10 +440,10 @@ log.message('This is a log message', 'info');
412
440
 
413
441
  Some instrumentation is still being registered globally and we're actively working on making it local for each instance:
414
442
 
415
- * Fetch and XHR instrumentations patch global functions (`globalThis.fetch` and `XMLHttpRequest.prototype`). When
443
+ - Fetch and XHR instrumentations patch global functions (`globalThis.fetch` and `XMLHttpRequest.prototype`). When
416
444
  multiple SDK instances run on the same page each one installs its own wrapper and every instance produces spans for
417
445
  every network request.
418
- * Global error handler listens to all unhandled errors and rejections, all SDKs are going to report all the errors that
446
+ - Global error handler listens to all unhandled errors and rejections, all SDKs are going to report all the errors that
419
447
  are not caught.
420
448
 
421
449
  ## Network span forwarding
@@ -440,19 +468,19 @@ the additional header by configuring the fetch or XHR instrumentations with an a
440
468
  import { sdk } from '@safaricom-mxl/web-sdk';
441
469
 
442
470
  sdk.initSDK({
443
- appID: "YOUR_MXL_APP_ID",
444
- appVersion: "YOUR_APP_VERSION",
471
+ appID: 'YOUR_MXL_APP_ID',
472
+ appVersion: 'YOUR_APP_VERSION',
445
473
  defaultInstrumentationConfig: {
446
474
  '@opentelemetry/instrumentation-fetch': {
447
475
  propagateTraceHeaderCorsUrls: [
448
476
  /example\.com/, // propagates for any CORS requests with URLs that match the regex
449
- "https://www.example.com/foo", // propagates for CORS requests to URLs that exactly match the string
477
+ 'https://www.example.com/foo', // propagates for CORS requests to URLs that exactly match the string
450
478
  ],
451
479
  },
452
480
  '@opentelemetry/instrumentation-xml-http-request': {
453
481
  propagateTraceHeaderCorsUrls: [
454
482
  /example\.com/, // propagates for any CORS requests with URLs that match the regex
455
- "https://www.example.com/foo", // propagates for CORS requests to URLs that exactly match the string
483
+ 'https://www.example.com/foo', // propagates for CORS requests to URLs that exactly match the string
456
484
  ],
457
485
  },
458
486
  },
@@ -468,8 +496,8 @@ turned off if set:
468
496
  import { sdk } from '@safaricom-mxl/web-sdk';
469
497
 
470
498
  sdk.initSDK({
471
- appID: "YOUR_MXL_APP_ID",
472
- appVersion: "YOUR_APP_VERSION",
499
+ appID: 'YOUR_MXL_APP_ID',
500
+ appVersion: 'YOUR_APP_VERSION',
473
501
 
474
502
  // The following are not supported alongside Network Span Forwarding and will cause that feature to turn off:
475
503
  // 1. Setting registerGlobally to false
@@ -477,7 +505,10 @@ sdk.initSDK({
477
505
  // 2. Providing a custom propagator
478
506
  propagator: myCustomPropagator,
479
507
  // 3. Omitting both network instrumentations
480
- omit: new Set(['@opentelemetry/instrumentation-fetch', '@opentelemetry/instrumentation-xml-http-request']),
508
+ omit: new Set([
509
+ '@opentelemetry/instrumentation-fetch',
510
+ '@opentelemetry/instrumentation-xml-http-request',
511
+ ]),
481
512
  });
482
513
  ```
483
514
 
@@ -490,8 +521,8 @@ of what has been configured server-side:
490
521
  import { sdk } from '@safaricom-mxl/web-sdk';
491
522
 
492
523
  sdk.initSDK({
493
- appID: "YOUR_MXL_APP_ID",
494
- appVersion: "YOUR_APP_VERSION",
524
+ appID: 'YOUR_MXL_APP_ID',
525
+ appVersion: 'YOUR_APP_VERSION',
495
526
 
496
527
  blockNetworkSpanForwarding: true,
497
528
  });
@@ -528,9 +559,9 @@ If you wish to customize the SDK behavior by configuring custom resources, expor
528
559
  you must ensure that you are using versions of the OTel packages that are compatible with our SDK:
529
560
 
530
561
  | MXL Web SDK | Open Telemetry APIs | Core | Instrumentations & Contrib |
531
- |-----------------|---------------------|--------|----------------------------|
532
- | ^2.0.0 | ^1.9.0 | ^2.0.3 | >=0.203.0 <0.300.0 |
533
- | 1.8.2 | ^1.9.0 | 1.30.1 | 0.57.2 |
562
+ | ----------- | ------------------- | ------ | -------------------------- |
563
+ | ^2.0.0 | ^1.9.0 | ^2.0.3 | >=0.203.0 <0.300.0 |
564
+ | 1.8.2 | ^1.9.0 | 1.30.1 | 0.57.2 |
534
565
 
535
566
  For a full list of dependencies used by the SDK, please refer to [package.json](./package.json).
536
567
 
@@ -543,8 +574,8 @@ initializing as follows:
543
574
  import { initSDK, DiagLogLevel } from '@safaricom-mxl/web-sdk';
544
575
 
545
576
  initSDK({
546
- appID: "YOUR_MXL_APP_ID",
547
- appVersion: "YOUR_APP_VERSION",
577
+ appID: 'YOUR_MXL_APP_ID',
578
+ appVersion: 'YOUR_APP_VERSION',
548
579
  logLevel: DiagLogLevel.ALL,
549
580
  });
550
581
  ```
@@ -556,12 +587,18 @@ emitted:
556
587
 
557
588
  ```typescript
558
589
  import { initSDK, DiagLogLevel } from '@safaricom-mxl/web-sdk';
559
- import { ConsoleLogRecordExporter, SimpleLogRecordProcessor } from '@opentelemetry/sdk-logs';
560
- import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-web'
590
+ import {
591
+ ConsoleLogRecordExporter,
592
+ SimpleLogRecordProcessor,
593
+ } from '@opentelemetry/sdk-logs';
594
+ import {
595
+ ConsoleSpanExporter,
596
+ SimpleSpanProcessor,
597
+ } from '@opentelemetry/sdk-trace-web';
561
598
 
562
599
  initSDK({
563
- appID: "YOUR_MXL_APP_ID",
564
- appVersion: "YOUR_APP_VERSION",
600
+ appID: 'YOUR_MXL_APP_ID',
601
+ appVersion: 'YOUR_APP_VERSION',
565
602
  logLevel: DiagLogLevel.INFO,
566
603
 
567
604
  // setup as exporters to output with the same batching as when exporting to a collector endpoint
@@ -588,7 +625,7 @@ module.exports = {
588
625
  alias: {
589
626
  '@opentelemetry/semantic-conventions/incubating': path.resolve(
590
627
  __dirname,
591
- './node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js'
628
+ './node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js',
592
629
  ),
593
630
  },
594
631
  },
package/UPGRADING.md CHANGED
@@ -15,12 +15,14 @@ If your app has direct dependencies on OTel JS packages ensure they are updated
15
15
  import { sdk } from '@safaricom-mxl/web-sdk';
16
16
 
17
17
  sdk.initSDK({
18
- appID: "YOUR_MXL_APP_ID",
19
- appVersion: "YOUR_APP_VERSION",
18
+ appID: 'YOUR_MXL_APP_ID',
19
+ appVersion: 'YOUR_APP_VERSION',
20
20
  logLevel: sdk.DiagLogLevel.INFO,
21
21
  });
22
22
 
23
- const myMethod = (span: sdk.Span) => { /* ... */ };
23
+ const myMethod = (span: sdk.Span) => {
24
+ /* ... */
25
+ };
24
26
  ```
25
27
 
26
28
  2.x version:
@@ -29,12 +31,14 @@ const myMethod = (span: sdk.Span) => { /* ... */ };
29
31
  import { initSDK, DiagLogLevel, Span } from '@safaricom-mxl/web-sdk';
30
32
 
31
33
  initSDK({
32
- appID: "YOUR_MXL_APP_ID",
33
- appVersion: "YOUR_APP_VERSION",
34
+ appID: 'YOUR_MXL_APP_ID',
35
+ appVersion: 'YOUR_APP_VERSION',
34
36
  logLevel: DiagLogLevel.INFO,
35
37
  });
36
38
 
37
- const myMethod = (span: Span) => { /* ... */ };
39
+ const myMethod = (span: Span) => {
40
+ /* ... */
41
+ };
38
42
  ```
39
43
 
40
44
  ### CLI now operates on a build folder rather than individual files
@@ -56,8 +60,9 @@ npx mxl-web-cli upload --app-version "APP_VERSION" -a "YOUR_MXL_APP_ID" -t "YOUR
56
60
  See the breaking changes outlined in the [1.0.0 Release notes](https://github.com/mxl-io/mxl-web-sdk/releases/tag/1.0.0).
57
61
 
58
62
  In order to upgrade you will need to:
59
- * Update MXL trace API calls from `startPerformanceSpan` to `startSpan`
60
- * Update any optional arguments being passed to `log.message` or `log.logException`
63
+
64
+ - Update MXL trace API calls from `startPerformanceSpan` to `startSpan`
65
+ - Update any optional arguments being passed to `log.message` or `log.logException`
61
66
 
62
67
  ### Update start span calls
63
68
 
@@ -66,7 +71,7 @@ In order to upgrade you will need to:
66
71
  ```typescript
67
72
  import { trace } from '@safaricom-mxl/web-sdk';
68
73
 
69
- const span = trace.startPerformanceSpan("span-name");
74
+ const span = trace.startPerformanceSpan('span-name');
70
75
  ```
71
76
 
72
77
  1.x version:
@@ -74,7 +79,7 @@ const span = trace.startPerformanceSpan("span-name");
74
79
  ```typescript
75
80
  import { trace } from '@safaricom-mxl/web-sdk';
76
81
 
77
- const span = trace.startSpan("span-name");
82
+ const span = trace.startSpan('span-name');
78
83
  ```
79
84
 
80
85
  ### Update logging arguments
@@ -84,12 +89,17 @@ const span = trace.startSpan("span-name");
84
89
  ```typescript
85
90
  import { log } from '@safaricom-mxl/web-sdk';
86
91
 
87
- log.message('Loading not finished in time.', 'error', {
88
- keyA: 'valueA',
89
- keYB: 'valueB'
90
- }, true);
92
+ log.message(
93
+ 'Loading not finished in time.',
94
+ 'error',
95
+ {
96
+ keyA: 'valueA',
97
+ keYB: 'valueB',
98
+ },
99
+ true,
100
+ );
91
101
 
92
- // ...
102
+ // ...
93
103
 
94
104
  log.logException(err, true, { keyA: 'valueA' }, ts);
95
105
  ```
@@ -102,16 +112,16 @@ import { log } from '@safaricom-mxl/web-sdk';
102
112
  log.message('Loading not finished in time.', 'error', {
103
113
  attributes: {
104
114
  keyA: 'valueA',
105
- keYB: 'valueB'
115
+ keYB: 'valueB',
106
116
  },
107
- includeStacktrace: true
117
+ includeStacktrace: true,
108
118
  });
109
119
 
110
- // ...
120
+ // ...
111
121
 
112
122
  log.logException(err, {
113
123
  handled: true,
114
124
  attributes: { keyA: 'valueA' },
115
125
  timestamp: ts,
116
126
  });
117
- ```
127
+ ```
@@ -14,11 +14,11 @@ var LogAPI = class LogAPI {
14
14
  const proxyManager = new require_api_logs_manager_ProxyLogManager_ProxyLogManager.ProxyLogManager();
15
15
  const safeManager = require_utils_createSafeProxy_createSafeProxy.createSafeProxy(proxyManager, NOOP_LOG_MANAGER, _opentelemetry_api.diag.createComponentLogger({ namespace: "LogAPI" }), INTERNAL_METHODS);
16
16
  LogAPI._instance = Object.assign(safeManager, {
17
- setGlobalLogManager(logManager) {
18
- proxyManager.setDelegate(logManager);
19
- },
20
17
  getLogManager() {
21
18
  return proxyManager;
19
+ },
20
+ setGlobalLogManager(logManager) {
21
+ proxyManager.setDelegate(logManager);
22
22
  }
23
23
  });
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LogAPI.cjs","names":["NoOpLogManager","ProxyLogManager","createSafeProxy","diag"],"sources":["../../../../src/api-logs/api/LogAPI/LogAPI.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\nimport { createSafeProxy } from '../../../utils';\nimport type { LogManager } from '../../manager';\nimport { NoOpLogManager, ProxyLogManager } from '../../manager';\n\n/**\n * Public interface for LogAPI including SDK-internal methods.\n */\nexport interface LogAPIInstance extends LogManager {\n /** @internal SDK use only */\n setGlobalLogManager(logManager: LogManager): void;\n /** @internal SDK use only */\n getLogManager(): LogManager;\n}\n\nconst NOOP_LOG_MANAGER = new NoOpLogManager();\nconst INTERNAL_METHODS = new Set(['setDelegate', 'getDelegate']);\n\nexport class LogAPI {\n private static _instance?: LogAPIInstance;\n\n public static getInstance(): LogAPIInstance {\n if (!LogAPI._instance) {\n const proxyManager = new ProxyLogManager();\n\n const safeManager = createSafeProxy(\n proxyManager,\n NOOP_LOG_MANAGER,\n diag.createComponentLogger({ namespace: 'LogAPI' }),\n INTERNAL_METHODS,\n );\n\n LogAPI._instance = Object.assign(safeManager, {\n setGlobalLogManager(logManager: LogManager): void {\n proxyManager.setDelegate(logManager);\n },\n getLogManager(): LogManager {\n return proxyManager;\n },\n }) as LogAPIInstance;\n }\n\n return LogAPI._instance;\n }\n\n public static resetInstance(): void {\n LogAPI._instance = undefined;\n }\n}\n"],"mappings":";;;;;;;AAeA,MAAM,mBAAmB,IAAIA,uDAAAA,gBAAgB;AAC7C,MAAM,mBAAmB,IAAI,IAAI,CAAC,eAAe,cAAc,CAAC;AAEhE,IAAa,SAAb,MAAa,OAAO;CAClB,OAAe;CAEf,OAAc,cAA8B;AAC1C,MAAI,CAAC,OAAO,WAAW;GACrB,MAAM,eAAe,IAAIC,yDAAAA,iBAAiB;GAE1C,MAAM,cAAcC,8CAAAA,gBAClB,cACA,kBACAC,mBAAAA,KAAK,sBAAsB,EAAE,WAAW,UAAU,CAAC,EACnD,iBACD;AAED,UAAO,YAAY,OAAO,OAAO,aAAa;IAC5C,oBAAoB,YAA8B;AAChD,kBAAa,YAAY,WAAW;;IAEtC,gBAA4B;AAC1B,YAAO;;IAEV,CAAC;;AAGJ,SAAO,OAAO;;CAGhB,OAAc,gBAAsB;AAClC,SAAO,YAAY,KAAA"}
1
+ {"version":3,"file":"LogAPI.cjs","names":["NoOpLogManager","ProxyLogManager","createSafeProxy","diag"],"sources":["../../../../src/api-logs/api/LogAPI/LogAPI.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\nimport { createSafeProxy } from '../../../utils';\nimport type { LogManager } from '../../manager';\nimport { NoOpLogManager, ProxyLogManager } from '../../manager';\n\n/**\n * Public interface for LogAPI including SDK-internal methods.\n */\nexport interface LogAPIInstance extends LogManager {\n /** @internal SDK use only */\n setGlobalLogManager(logManager: LogManager): void;\n /** @internal SDK use only */\n getLogManager(): LogManager;\n}\n\nconst NOOP_LOG_MANAGER = new NoOpLogManager();\nconst INTERNAL_METHODS = new Set(['setDelegate', 'getDelegate']);\n\nexport class LogAPI {\n private static _instance?: LogAPIInstance;\n\n public static getInstance(): LogAPIInstance {\n if (!LogAPI._instance) {\n const proxyManager = new ProxyLogManager();\n\n const safeManager = createSafeProxy(\n proxyManager,\n NOOP_LOG_MANAGER,\n diag.createComponentLogger({ namespace: 'LogAPI' }),\n INTERNAL_METHODS,\n );\n\n LogAPI._instance = Object.assign(safeManager, {\n getLogManager(): LogManager {\n return proxyManager;\n },\n setGlobalLogManager(logManager: LogManager): void {\n proxyManager.setDelegate(logManager);\n },\n }) as LogAPIInstance;\n }\n\n return LogAPI._instance;\n }\n\n public static resetInstance(): void {\n LogAPI._instance = undefined;\n }\n}\n"],"mappings":";;;;;;;AAeA,MAAM,mBAAmB,IAAIA,uDAAAA,gBAAgB;AAC7C,MAAM,mBAAmB,IAAI,IAAI,CAAC,eAAe,cAAc,CAAC;AAEhE,IAAa,SAAb,MAAa,OAAO;CAClB,OAAe;CAEf,OAAc,cAA8B;AAC1C,MAAI,CAAC,OAAO,WAAW;GACrB,MAAM,eAAe,IAAIC,yDAAAA,iBAAiB;GAE1C,MAAM,cAAcC,8CAAAA,gBAClB,cACA,kBACAC,mBAAAA,KAAK,sBAAsB,EAAE,WAAW,UAAU,CAAC,EACnD,iBACD;AAED,UAAO,YAAY,OAAO,OAAO,aAAa;IAC5C,gBAA4B;AAC1B,YAAO;;IAET,oBAAoB,YAA8B;AAChD,kBAAa,YAAY,WAAW;;IAEvC,CAAC;;AAGJ,SAAO,OAAO;;CAGhB,OAAc,gBAAsB;AAClC,SAAO,YAAY,KAAA"}
@@ -12,11 +12,11 @@ var LogAPI = class LogAPI {
12
12
  const proxyManager = new ProxyLogManager();
13
13
  const safeManager = createSafeProxy(proxyManager, NOOP_LOG_MANAGER, diag.createComponentLogger({ namespace: "LogAPI" }), INTERNAL_METHODS);
14
14
  LogAPI._instance = Object.assign(safeManager, {
15
- setGlobalLogManager(logManager) {
16
- proxyManager.setDelegate(logManager);
17
- },
18
15
  getLogManager() {
19
16
  return proxyManager;
17
+ },
18
+ setGlobalLogManager(logManager) {
19
+ proxyManager.setDelegate(logManager);
20
20
  }
21
21
  });
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LogAPI.js","names":[],"sources":["../../../../src/api-logs/api/LogAPI/LogAPI.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\nimport { createSafeProxy } from '../../../utils';\nimport type { LogManager } from '../../manager';\nimport { NoOpLogManager, ProxyLogManager } from '../../manager';\n\n/**\n * Public interface for LogAPI including SDK-internal methods.\n */\nexport interface LogAPIInstance extends LogManager {\n /** @internal SDK use only */\n setGlobalLogManager(logManager: LogManager): void;\n /** @internal SDK use only */\n getLogManager(): LogManager;\n}\n\nconst NOOP_LOG_MANAGER = new NoOpLogManager();\nconst INTERNAL_METHODS = new Set(['setDelegate', 'getDelegate']);\n\nexport class LogAPI {\n private static _instance?: LogAPIInstance;\n\n public static getInstance(): LogAPIInstance {\n if (!LogAPI._instance) {\n const proxyManager = new ProxyLogManager();\n\n const safeManager = createSafeProxy(\n proxyManager,\n NOOP_LOG_MANAGER,\n diag.createComponentLogger({ namespace: 'LogAPI' }),\n INTERNAL_METHODS,\n );\n\n LogAPI._instance = Object.assign(safeManager, {\n setGlobalLogManager(logManager: LogManager): void {\n proxyManager.setDelegate(logManager);\n },\n getLogManager(): LogManager {\n return proxyManager;\n },\n }) as LogAPIInstance;\n }\n\n return LogAPI._instance;\n }\n\n public static resetInstance(): void {\n LogAPI._instance = undefined;\n }\n}\n"],"mappings":";;;;;AAeA,MAAM,mBAAmB,IAAI,gBAAgB;AAC7C,MAAM,mBAAmB,IAAI,IAAI,CAAC,eAAe,cAAc,CAAC;AAEhE,IAAa,SAAb,MAAa,OAAO;CAClB,OAAe;CAEf,OAAc,cAA8B;AAC1C,MAAI,CAAC,OAAO,WAAW;GACrB,MAAM,eAAe,IAAI,iBAAiB;GAE1C,MAAM,cAAc,gBAClB,cACA,kBACA,KAAK,sBAAsB,EAAE,WAAW,UAAU,CAAC,EACnD,iBACD;AAED,UAAO,YAAY,OAAO,OAAO,aAAa;IAC5C,oBAAoB,YAA8B;AAChD,kBAAa,YAAY,WAAW;;IAEtC,gBAA4B;AAC1B,YAAO;;IAEV,CAAC;;AAGJ,SAAO,OAAO;;CAGhB,OAAc,gBAAsB;AAClC,SAAO,YAAY,KAAA"}
1
+ {"version":3,"file":"LogAPI.js","names":[],"sources":["../../../../src/api-logs/api/LogAPI/LogAPI.ts"],"sourcesContent":["import { diag } from '@opentelemetry/api';\nimport { createSafeProxy } from '../../../utils';\nimport type { LogManager } from '../../manager';\nimport { NoOpLogManager, ProxyLogManager } from '../../manager';\n\n/**\n * Public interface for LogAPI including SDK-internal methods.\n */\nexport interface LogAPIInstance extends LogManager {\n /** @internal SDK use only */\n setGlobalLogManager(logManager: LogManager): void;\n /** @internal SDK use only */\n getLogManager(): LogManager;\n}\n\nconst NOOP_LOG_MANAGER = new NoOpLogManager();\nconst INTERNAL_METHODS = new Set(['setDelegate', 'getDelegate']);\n\nexport class LogAPI {\n private static _instance?: LogAPIInstance;\n\n public static getInstance(): LogAPIInstance {\n if (!LogAPI._instance) {\n const proxyManager = new ProxyLogManager();\n\n const safeManager = createSafeProxy(\n proxyManager,\n NOOP_LOG_MANAGER,\n diag.createComponentLogger({ namespace: 'LogAPI' }),\n INTERNAL_METHODS,\n );\n\n LogAPI._instance = Object.assign(safeManager, {\n getLogManager(): LogManager {\n return proxyManager;\n },\n setGlobalLogManager(logManager: LogManager): void {\n proxyManager.setDelegate(logManager);\n },\n }) as LogAPIInstance;\n }\n\n return LogAPI._instance;\n }\n\n public static resetInstance(): void {\n LogAPI._instance = undefined;\n }\n}\n"],"mappings":";;;;;AAeA,MAAM,mBAAmB,IAAI,gBAAgB;AAC7C,MAAM,mBAAmB,IAAI,IAAI,CAAC,eAAe,cAAc,CAAC;AAEhE,IAAa,SAAb,MAAa,OAAO;CAClB,OAAe;CAEf,OAAc,cAA8B;AAC1C,MAAI,CAAC,OAAO,WAAW;GACrB,MAAM,eAAe,IAAI,iBAAiB;GAE1C,MAAM,cAAc,gBAClB,cACA,kBACA,KAAK,sBAAsB,EAAE,WAAW,UAAU,CAAC,EACnD,iBACD;AAED,UAAO,YAAY,OAAO,OAAO,aAAa;IAC5C,gBAA4B;AAC1B,YAAO;;IAET,oBAAoB,YAA8B;AAChD,kBAAa,YAAY,WAAW;;IAEvC,CAAC;;AAGJ,SAAO,OAAO;;CAGhB,OAAc,gBAAsB;AAClC,SAAO,YAAY,KAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"NoOpLogManager.cjs","names":[],"sources":["../../../../src/api-logs/manager/NoOpLogManager/NoOpLogManager.ts"],"sourcesContent":["import type {\n LogExceptionOptions,\n LogManager,\n LogMessageOptions,\n LogSeverity,\n} from '../index';\n\nexport class NoOpLogManager implements LogManager {\n public logException(_error: unknown, _options?: LogExceptionOptions) {\n // no op\n }\n\n public message(\n _message: string,\n _level: LogSeverity,\n _options?: LogMessageOptions,\n ) {\n // no op\n }\n}\n"],"mappings":";;AAOA,IAAa,iBAAb,MAAkD;CAChD,aAAoB,QAAiB,UAAgC;CAIrE,QACE,UACA,QACA,UACA"}
1
+ {"version":3,"file":"NoOpLogManager.cjs","names":[],"sources":["../../../../src/api-logs/manager/NoOpLogManager/NoOpLogManager.ts"],"sourcesContent":["import type {\n LogExceptionOptions,\n LogManager,\n LogMessageOptions,\n LogSeverity,\n} from '../index';\n\nexport class NoOpLogManager implements LogManager {\n public logException(_error: unknown, _options?: LogExceptionOptions) {\n // No op\n }\n\n public message(\n _message: string,\n _level: LogSeverity,\n _options?: LogMessageOptions,\n ) {\n // No op\n }\n}\n"],"mappings":";;AAOA,IAAa,iBAAb,MAAkD;CAChD,aAAoB,QAAiB,UAAgC;CAIrE,QACE,UACA,QACA,UACA"}
@@ -1 +1 @@
1
- {"version":3,"file":"NoOpLogManager.js","names":[],"sources":["../../../../src/api-logs/manager/NoOpLogManager/NoOpLogManager.ts"],"sourcesContent":["import type {\n LogExceptionOptions,\n LogManager,\n LogMessageOptions,\n LogSeverity,\n} from '../index';\n\nexport class NoOpLogManager implements LogManager {\n public logException(_error: unknown, _options?: LogExceptionOptions) {\n // no op\n }\n\n public message(\n _message: string,\n _level: LogSeverity,\n _options?: LogMessageOptions,\n ) {\n // no op\n }\n}\n"],"mappings":";AAOA,IAAa,iBAAb,MAAkD;CAChD,aAAoB,QAAiB,UAAgC;CAIrE,QACE,UACA,QACA,UACA"}
1
+ {"version":3,"file":"NoOpLogManager.js","names":[],"sources":["../../../../src/api-logs/manager/NoOpLogManager/NoOpLogManager.ts"],"sourcesContent":["import type {\n LogExceptionOptions,\n LogManager,\n LogMessageOptions,\n LogSeverity,\n} from '../index';\n\nexport class NoOpLogManager implements LogManager {\n public logException(_error: unknown, _options?: LogExceptionOptions) {\n // No op\n }\n\n public message(\n _message: string,\n _level: LogSeverity,\n _options?: LogMessageOptions,\n ) {\n // No op\n }\n}\n"],"mappings":";AAOA,IAAa,iBAAb,MAAkD;CAChD,aAAoB,QAAiB,UAAgC;CAIrE,QACE,UACA,QACA,UACA"}
@@ -1,17 +1,17 @@
1
1
  import { AttributeValue } from "@opentelemetry/api";
2
2
 
3
3
  //#region src/api-logs/manager/types.d.ts
4
- type LogMessageOptions = {
4
+ interface LogMessageOptions {
5
5
  attributes?: Record<string, AttributeValue | undefined>;
6
6
  includeStacktrace?: boolean;
7
7
  stacktrace?: string;
8
- };
9
- type LogExceptionOptions = {
8
+ }
9
+ interface LogExceptionOptions {
10
10
  handled?: boolean;
11
11
  attributes?: Record<string, AttributeValue | undefined>;
12
12
  timestamp?: number;
13
13
  handler?: ExceptionHandlerType;
14
- };
14
+ }
15
15
  interface LogManager {
16
16
  message: (message: string, level: LogSeverity, options?: LogMessageOptions) => void;
17
17
  logException: (error: unknown, options?: LogExceptionOptions) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/api-logs/manager/types.ts"],"mappings":";;;KAEY,iBAAA;EACV,UAAA,GAAa,MAAA,SAAe,cAAA;EAC5B,iBAAA;EACA,UAAA;AAAA;AAAA,KAGU,mBAAA;EACV,OAAA;EACA,UAAA,GAAa,MAAA,SAAe,cAAA;EAC5B,SAAA;EACA,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,UAAA;EACf,OAAA,GACE,OAAA,UACA,KAAA,EAAO,WAAA,EACP,OAAA,GAAU,iBAAA;EAGZ,YAAA,GAAe,KAAA,WAAgB,OAAA,GAAU,mBAAA;AAAA;AAAA,KAG/B,WAAA;AAAA,KAEA,oBAAA"}
1
+ {"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/api-logs/manager/types.ts"],"mappings":";;;UAEiB,iBAAA;EACf,UAAA,GAAa,MAAA,SAAe,cAAA;EAC5B,iBAAA;EACA,UAAA;AAAA;AAAA,UAGe,mBAAA;EACf,OAAA;EACA,UAAA,GAAa,MAAA,SAAe,cAAA;EAC5B,SAAA;EACA,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,UAAA;EACf,OAAA,GACE,OAAA,UACA,KAAA,EAAO,WAAA,EACP,OAAA,GAAU,iBAAA;EAGZ,YAAA,GAAe,KAAA,WAAgB,OAAA,GAAU,mBAAA;AAAA;AAAA,KAG/B,WAAA;AAAA,KAEA,oBAAA"}