@openobserve/browser-core 0.2.11-rc1 → 0.2.12-beta.1

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 (626) hide show
  1. package/package.json +6 -5
  2. package/src/boot/displayAlreadyInitializedError.ts +8 -0
  3. package/src/boot/init.ts +29 -15
  4. package/src/browser/addEventListener.ts +13 -10
  5. package/src/browser/{types.ts → browser.types.ts} +42 -0
  6. package/src/browser/cookie.ts +49 -14
  7. package/src/browser/fetchObservable.ts +80 -21
  8. package/src/browser/{pageExitObservable.ts → pageMayExitObservable.ts} +11 -22
  9. package/src/browser/runOnReadyState.ts +14 -4
  10. package/src/browser/xhrObservable.ts +17 -4
  11. package/src/domain/allowedTrackingOrigins.ts +30 -0
  12. package/src/domain/bufferedData.ts +32 -0
  13. package/src/domain/configuration/configuration.ts +352 -83
  14. package/src/domain/configuration/endpointBuilder.ts +29 -32
  15. package/src/domain/configuration/index.ts +6 -5
  16. package/src/domain/configuration/transportConfiguration.ts +42 -35
  17. package/src/domain/connectivity/connectivity.ts +5 -1
  18. package/src/domain/console/consoleObservable.ts +57 -21
  19. package/src/domain/context/contextConstants.ts +22 -0
  20. package/src/domain/context/contextManager.ts +48 -11
  21. package/src/domain/context/contextUtils.ts +14 -0
  22. package/src/domain/context/defineContextMethod.ts +31 -0
  23. package/src/domain/context/storeContextManager.ts +7 -3
  24. package/src/domain/contexts/accountContext.ts +47 -0
  25. package/src/domain/contexts/globalContext.ts +30 -0
  26. package/src/domain/contexts/rumInternalContext.type.ts +15 -0
  27. package/src/domain/contexts/userContext.ts +64 -0
  28. package/src/domain/deflate/{types.ts → deflate.types.ts} +6 -4
  29. package/src/domain/deflate/index.ts +1 -1
  30. package/src/domain/error/error.ts +28 -84
  31. package/src/domain/error/error.types.ts +10 -2
  32. package/src/domain/error/trackRuntimeError.ts +29 -32
  33. package/src/domain/eventRateLimiter/createEventRateLimiter.ts +5 -2
  34. package/src/domain/extension/extensionUtils.ts +28 -0
  35. package/src/domain/intakeSites.ts +18 -0
  36. package/src/domain/report/reportObservable.ts +35 -30
  37. package/src/domain/resourceUtils.ts +20 -16
  38. package/src/domain/session/README.md +193 -0
  39. package/src/domain/session/oldCookiesMigration.ts +2 -2
  40. package/src/domain/session/sessionConstants.ts +16 -1
  41. package/src/domain/session/sessionManager.ts +179 -15
  42. package/src/domain/session/sessionState.ts +49 -17
  43. package/src/domain/session/sessionStateValidation.ts +9 -0
  44. package/src/domain/session/sessionStore.ts +118 -55
  45. package/src/domain/session/sessionStoreOperations.ts +47 -20
  46. package/src/domain/session/storeStrategies/sessionInCookie.ts +105 -26
  47. package/src/domain/session/storeStrategies/sessionInLocalStorage.ts +10 -8
  48. package/src/domain/session/storeStrategies/sessionStoreStrategy.ts +5 -2
  49. package/src/domain/synthetics/syntheticsWorkerValues.ts +13 -2
  50. package/src/domain/tags.ts +76 -0
  51. package/src/domain/telemetry/index.ts +12 -4
  52. package/src/domain/telemetry/rawTelemetryEvent.types.ts +6 -3
  53. package/src/domain/telemetry/telemetry.ts +235 -106
  54. package/src/domain/telemetry/telemetryEvent.types.ts +514 -5
  55. package/src/domain/trackingConsent.ts +34 -0
  56. package/src/index.ts +90 -59
  57. package/src/tools/abstractHooks.ts +72 -0
  58. package/src/tools/abstractLifeCycle.ts +1 -0
  59. package/src/tools/boundedBuffer.ts +36 -8
  60. package/src/tools/display.ts +4 -0
  61. package/src/tools/encoder.ts +3 -2
  62. package/src/tools/experimentalFeatures.ts +18 -7
  63. package/src/tools/getZoneJsOriginalValue.ts +1 -1
  64. package/src/tools/{getGlobalObject.ts → globalObject.ts} +20 -0
  65. package/src/tools/instrumentMethod.ts +58 -41
  66. package/src/tools/matchOption.ts +1 -2
  67. package/src/tools/monitor.ts +11 -7
  68. package/src/tools/observable.ts +78 -12
  69. package/src/tools/queueMicrotask.ts +13 -0
  70. package/src/tools/readBytesFromStream.ts +24 -64
  71. package/src/tools/requestIdleCallback.ts +40 -0
  72. package/src/tools/sendToExtension.ts +3 -1
  73. package/src/tools/serialisation/context.ts +4 -1
  74. package/src/tools/serialisation/sanitize.ts +32 -14
  75. package/src/{domain/error → tools/stackTrace}/computeStackTrace.ts +72 -8
  76. package/src/tools/stackTrace/handlingStack.ts +48 -0
  77. package/src/tools/taskQueue.ts +63 -0
  78. package/src/tools/timer.ts +1 -1
  79. package/src/tools/utils/arrayUtils.ts +11 -3
  80. package/src/tools/utils/browserDetection.ts +0 -9
  81. package/src/tools/utils/byteUtils.ts +13 -2
  82. package/src/tools/utils/functionUtils.ts +0 -2
  83. package/src/tools/utils/numberUtils.ts +2 -1
  84. package/src/tools/utils/objectUtils.ts +1 -3
  85. package/src/tools/utils/polyfills.ts +6 -107
  86. package/src/tools/utils/responseUtils.ts +1 -1
  87. package/src/tools/utils/stringUtils.ts +34 -2
  88. package/src/tools/utils/timeUtils.ts +18 -13
  89. package/src/tools/utils/timezone.ts +9 -0
  90. package/src/tools/utils/urlPolyfill.ts +29 -59
  91. package/src/tools/valueHistory.ts +66 -35
  92. package/src/transport/batch.ts +77 -80
  93. package/src/transport/eventBridge.ts +24 -5
  94. package/src/transport/flushController.ts +27 -21
  95. package/src/transport/httpRequest.ts +92 -71
  96. package/src/transport/index.ts +7 -4
  97. package/src/transport/sendWithRetryStrategy.ts +55 -36
  98. package/cjs/boot/init.d.ts +0 -5
  99. package/cjs/boot/init.js +0 -36
  100. package/cjs/boot/init.js.map +0 -1
  101. package/cjs/browser/addEventListener.d.ts +0 -84
  102. package/cjs/browser/addEventListener.js +0 -94
  103. package/cjs/browser/addEventListener.js.map +0 -1
  104. package/cjs/browser/cookie.d.ts +0 -17
  105. package/cjs/browser/cookie.js +0 -86
  106. package/cjs/browser/cookie.js.map +0 -1
  107. package/cjs/browser/fetchObservable.d.ts +0 -23
  108. package/cjs/browser/fetchObservable.js +0 -69
  109. package/cjs/browser/fetchObservable.js.map +0 -1
  110. package/cjs/browser/pageExitObservable.d.ts +0 -14
  111. package/cjs/browser/pageExitObservable.js +0 -57
  112. package/cjs/browser/pageExitObservable.js.map +0 -1
  113. package/cjs/browser/runOnReadyState.d.ts +0 -2
  114. package/cjs/browser/runOnReadyState.js +0 -15
  115. package/cjs/browser/runOnReadyState.js.map +0 -1
  116. package/cjs/browser/types.d.ts +0 -19
  117. package/cjs/browser/types.js +0 -6
  118. package/cjs/browser/types.js.map +0 -1
  119. package/cjs/browser/xhrObservable.d.ts +0 -21
  120. package/cjs/browser/xhrObservable.js +0 -85
  121. package/cjs/browser/xhrObservable.js.map +0 -1
  122. package/cjs/domain/configuration/configuration.d.ts +0 -72
  123. package/cjs/domain/configuration/configuration.js +0 -94
  124. package/cjs/domain/configuration/configuration.js.map +0 -1
  125. package/cjs/domain/configuration/endpointBuilder.d.ts +0 -10
  126. package/cjs/domain/configuration/endpointBuilder.js +0 -84
  127. package/cjs/domain/configuration/endpointBuilder.js.map +0 -1
  128. package/cjs/domain/configuration/index.d.ts +0 -4
  129. package/cjs/domain/configuration/index.js +0 -27
  130. package/cjs/domain/configuration/index.js.map +0 -1
  131. package/cjs/domain/configuration/intakeSites.d.ts +0 -5
  132. package/cjs/domain/configuration/intakeSites.js +0 -9
  133. package/cjs/domain/configuration/intakeSites.js.map +0 -1
  134. package/cjs/domain/configuration/tags.d.ts +0 -4
  135. package/cjs/domain/configuration/tags.js +0 -39
  136. package/cjs/domain/configuration/tags.js.map +0 -1
  137. package/cjs/domain/configuration/transportConfiguration.d.ts +0 -16
  138. package/cjs/domain/configuration/transportConfiguration.js +0 -42
  139. package/cjs/domain/configuration/transportConfiguration.js.map +0 -1
  140. package/cjs/domain/connectivity/connectivity.d.ts +0 -13
  141. package/cjs/domain/connectivity/connectivity.js +0 -14
  142. package/cjs/domain/connectivity/connectivity.js.map +0 -1
  143. package/cjs/domain/connectivity/index.d.ts +0 -1
  144. package/cjs/domain/connectivity/index.js +0 -18
  145. package/cjs/domain/connectivity/index.js.map +0 -1
  146. package/cjs/domain/console/consoleObservable.d.ts +0 -11
  147. package/cjs/domain/console/consoleObservable.js +0 -72
  148. package/cjs/domain/console/consoleObservable.js.map +0 -1
  149. package/cjs/domain/context/contextConstants.d.ts +0 -5
  150. package/cjs/domain/context/contextConstants.js +0 -3
  151. package/cjs/domain/context/contextConstants.js.map +0 -1
  152. package/cjs/domain/context/contextManager.d.ts +0 -12
  153. package/cjs/domain/context/contextManager.js +0 -43
  154. package/cjs/domain/context/contextManager.js.map +0 -1
  155. package/cjs/domain/context/customerDataTracker.d.ts +0 -45
  156. package/cjs/domain/context/customerDataTracker.js +0 -107
  157. package/cjs/domain/context/customerDataTracker.js.map +0 -1
  158. package/cjs/domain/context/storeContextManager.d.ts +0 -6
  159. package/cjs/domain/context/storeContextManager.js +0 -38
  160. package/cjs/domain/context/storeContextManager.js.map +0 -1
  161. package/cjs/domain/deflate/types.d.ts +0 -0
  162. package/cjs/domain/deflate/types.js +0 -3
  163. package/cjs/domain/deflate/types.js.map +0 -1
  164. package/cjs/domain/error/computeStackTrace.d.ts +0 -33
  165. package/cjs/domain/error/computeStackTrace.js +0 -142
  166. package/cjs/domain/error/computeStackTrace.js.map +0 -1
  167. package/cjs/domain/error/error.d.ts +0 -28
  168. package/cjs/domain/error/error.js +0 -131
  169. package/cjs/domain/error/error.js.map +0 -1
  170. package/cjs/domain/error/error.types.d.ts +0 -40
  171. package/cjs/domain/error/error.types.js +0 -13
  172. package/cjs/domain/error/error.types.js.map +0 -1
  173. package/cjs/domain/error/trackRuntimeError.d.ts +0 -13
  174. package/cjs/domain/error/trackRuntimeError.js +0 -54
  175. package/cjs/domain/error/trackRuntimeError.js.map +0 -1
  176. package/cjs/domain/eventRateLimiter/createEventRateLimiter.d.ts +0 -5
  177. package/cjs/domain/eventRateLimiter/createEventRateLimiter.js +0 -40
  178. package/cjs/domain/eventRateLimiter/createEventRateLimiter.js.map +0 -1
  179. package/cjs/domain/report/browser.types.d.ts +0 -34
  180. package/cjs/domain/report/browser.types.js +0 -3
  181. package/cjs/domain/report/browser.types.js.map +0 -1
  182. package/cjs/domain/report/reportObservable.d.ts +0 -17
  183. package/cjs/domain/report/reportObservable.js +0 -94
  184. package/cjs/domain/report/reportObservable.js.map +0 -1
  185. package/cjs/domain/resourceUtils.d.ts +0 -16
  186. package/cjs/domain/resourceUtils.js +0 -3
  187. package/cjs/domain/resourceUtils.js.map +0 -1
  188. package/cjs/domain/session/oldCookiesMigration.d.ts +0 -11
  189. package/cjs/domain/session/oldCookiesMigration.js +0 -40
  190. package/cjs/domain/session/oldCookiesMigration.js.map +0 -1
  191. package/cjs/domain/session/sessionConstants.d.ts +0 -2
  192. package/cjs/domain/session/sessionConstants.js +0 -7
  193. package/cjs/domain/session/sessionConstants.js.map +0 -1
  194. package/cjs/domain/session/sessionManager.d.ts +0 -20
  195. package/cjs/domain/session/sessionManager.js +0 -65
  196. package/cjs/domain/session/sessionManager.js.map +0 -1
  197. package/cjs/domain/session/sessionState.d.ts +0 -11
  198. package/cjs/domain/session/sessionState.js +0 -45
  199. package/cjs/domain/session/sessionState.js.map +0 -1
  200. package/cjs/domain/session/sessionStore.d.ts +0 -34
  201. package/cjs/domain/session/sessionStore.js +0 -144
  202. package/cjs/domain/session/sessionStore.js.map +0 -1
  203. package/cjs/domain/session/sessionStoreOperations.d.ts +0 -10
  204. package/cjs/domain/session/sessionStoreOperations.js +0 -96
  205. package/cjs/domain/session/sessionStoreOperations.js.map +0 -1
  206. package/cjs/domain/session/storeStrategies/sessionInCookie.d.ts +0 -6
  207. package/cjs/domain/session/storeStrategies/sessionInCookie.js +0 -59
  208. package/cjs/domain/session/storeStrategies/sessionInCookie.js.map +0 -1
  209. package/cjs/domain/session/storeStrategies/sessionInLocalStorage.d.ts +0 -3
  210. package/cjs/domain/session/storeStrategies/sessionInLocalStorage.js +0 -41
  211. package/cjs/domain/session/storeStrategies/sessionInLocalStorage.js.map +0 -1
  212. package/cjs/domain/session/storeStrategies/sessionStoreStrategy.d.ts +0 -15
  213. package/cjs/domain/session/storeStrategies/sessionStoreStrategy.js +0 -5
  214. package/cjs/domain/session/storeStrategies/sessionStoreStrategy.js.map +0 -1
  215. package/cjs/domain/synthetics/syntheticsWorkerValues.d.ts +0 -11
  216. package/cjs/domain/synthetics/syntheticsWorkerValues.js +0 -22
  217. package/cjs/domain/synthetics/syntheticsWorkerValues.js.map +0 -1
  218. package/cjs/domain/telemetry/index.d.ts +0 -3
  219. package/cjs/domain/telemetry/index.js +0 -28
  220. package/cjs/domain/telemetry/index.js.map +0 -1
  221. package/cjs/domain/telemetry/rawTelemetryEvent.types.d.ts +0 -15
  222. package/cjs/domain/telemetry/rawTelemetryEvent.types.js +0 -8
  223. package/cjs/domain/telemetry/rawTelemetryEvent.types.js.map +0 -1
  224. package/cjs/domain/telemetry/telemetry.d.ts +0 -116
  225. package/cjs/domain/telemetry/telemetry.js +0 -157
  226. package/cjs/domain/telemetry/telemetry.js.map +0 -1
  227. package/cjs/domain/telemetry/telemetryEvent.types.d.ts +0 -391
  228. package/cjs/domain/telemetry/telemetryEvent.types.js +0 -7
  229. package/cjs/domain/telemetry/telemetryEvent.types.js.map +0 -1
  230. package/cjs/domain/user/index.d.ts +0 -2
  231. package/cjs/domain/user/index.js +0 -19
  232. package/cjs/domain/user/index.js.map +0 -1
  233. package/cjs/domain/user/user.d.ts +0 -12
  234. package/cjs/domain/user/user.js +0 -35
  235. package/cjs/domain/user/user.js.map +0 -1
  236. package/cjs/domain/user/user.types.d.ts +0 -6
  237. package/cjs/domain/user/user.types.js +0 -3
  238. package/cjs/domain/user/user.types.js.map +0 -1
  239. package/cjs/tools/abstractLifeCycle.d.ts +0 -23
  240. package/cjs/tools/abstractLifeCycle.js +0 -29
  241. package/cjs/tools/abstractLifeCycle.js.map +0 -1
  242. package/cjs/tools/boundedBuffer.d.ts +0 -5
  243. package/cjs/tools/boundedBuffer.js +0 -22
  244. package/cjs/tools/boundedBuffer.js.map +0 -1
  245. package/cjs/tools/catchUserErrors.d.ts +0 -1
  246. package/cjs/tools/catchUserErrors.js +0 -20
  247. package/cjs/tools/catchUserErrors.js.map +0 -1
  248. package/cjs/tools/display.d.ts +0 -35
  249. package/cjs/tools/display.js +0 -41
  250. package/cjs/tools/display.js.map +0 -1
  251. package/cjs/tools/encoder.d.ts +0 -53
  252. package/cjs/tools/encoder.js +0 -41
  253. package/cjs/tools/encoder.js.map +0 -1
  254. package/cjs/tools/experimentalFeatures.d.ts +0 -22
  255. package/cjs/tools/experimentalFeatures.js +0 -45
  256. package/cjs/tools/experimentalFeatures.js.map +0 -1
  257. package/cjs/tools/getGlobalObject.d.ts +0 -4
  258. package/cjs/tools/getGlobalObject.js +0 -37
  259. package/cjs/tools/getGlobalObject.js.map +0 -1
  260. package/cjs/tools/getZoneJsOriginalValue.d.ts +0 -19
  261. package/cjs/tools/getZoneJsOriginalValue.js +0 -30
  262. package/cjs/tools/getZoneJsOriginalValue.js.map +0 -1
  263. package/cjs/tools/instrumentMethod.d.ts +0 -59
  264. package/cjs/tools/instrumentMethod.js +0 -106
  265. package/cjs/tools/instrumentMethod.js.map +0 -1
  266. package/cjs/tools/matchOption.d.ts +0 -8
  267. package/cjs/tools/matchOption.js +0 -38
  268. package/cjs/tools/matchOption.js.map +0 -1
  269. package/cjs/tools/mergeInto.d.ts +0 -25
  270. package/cjs/tools/mergeInto.js +0 -105
  271. package/cjs/tools/mergeInto.js.map +0 -1
  272. package/cjs/tools/monitor.d.ts +0 -8
  273. package/cjs/tools/monitor.js +0 -76
  274. package/cjs/tools/monitor.js.map +0 -1
  275. package/cjs/tools/observable.d.ts +0 -12
  276. package/cjs/tools/observable.js +0 -43
  277. package/cjs/tools/observable.js.map +0 -1
  278. package/cjs/tools/readBytesFromStream.d.ts +0 -11
  279. package/cjs/tools/readBytesFromStream.js +0 -64
  280. package/cjs/tools/readBytesFromStream.js.map +0 -1
  281. package/cjs/tools/sendToExtension.d.ts +0 -3
  282. package/cjs/tools/sendToExtension.js +0 -11
  283. package/cjs/tools/sendToExtension.js.map +0 -1
  284. package/cjs/tools/serialisation/context.d.ts +0 -6
  285. package/cjs/tools/serialisation/context.js +0 -3
  286. package/cjs/tools/serialisation/context.js.map +0 -1
  287. package/cjs/tools/serialisation/jsonStringify.d.ts +0 -13
  288. package/cjs/tools/serialisation/jsonStringify.js +0 -49
  289. package/cjs/tools/serialisation/jsonStringify.js.map +0 -1
  290. package/cjs/tools/serialisation/sanitize.d.ts +0 -18
  291. package/cjs/tools/serialisation/sanitize.js +0 -185
  292. package/cjs/tools/serialisation/sanitize.js.map +0 -1
  293. package/cjs/tools/timer.d.ts +0 -5
  294. package/cjs/tools/timer.js +0 -23
  295. package/cjs/tools/timer.js.map +0 -1
  296. package/cjs/tools/utils/arrayUtils.d.ts +0 -1
  297. package/cjs/tools/utils/arrayUtils.js +0 -11
  298. package/cjs/tools/utils/arrayUtils.js.map +0 -1
  299. package/cjs/tools/utils/browserDetection.d.ts +0 -10
  300. package/cjs/tools/utils/browserDetection.js +0 -42
  301. package/cjs/tools/utils/browserDetection.js.map +0 -1
  302. package/cjs/tools/utils/byteUtils.d.ts +0 -4
  303. package/cjs/tools/utils/byteUtils.js +0 -31
  304. package/cjs/tools/utils/byteUtils.js.map +0 -1
  305. package/cjs/tools/utils/functionUtils.d.ts +0 -9
  306. package/cjs/tools/utils/functionUtils.js +0 -48
  307. package/cjs/tools/utils/functionUtils.js.map +0 -1
  308. package/cjs/tools/utils/numberUtils.d.ts +0 -8
  309. package/cjs/tools/utils/numberUtils.js +0 -24
  310. package/cjs/tools/utils/numberUtils.js.map +0 -1
  311. package/cjs/tools/utils/objectUtils.d.ts +0 -10
  312. package/cjs/tools/utils/objectUtils.js +0 -26
  313. package/cjs/tools/utils/objectUtils.js.map +0 -1
  314. package/cjs/tools/utils/polyfills.d.ts +0 -24
  315. package/cjs/tools/utils/polyfills.js +0 -110
  316. package/cjs/tools/utils/polyfills.js.map +0 -1
  317. package/cjs/tools/utils/responseUtils.d.ts +0 -2
  318. package/cjs/tools/utils/responseUtils.js +0 -18
  319. package/cjs/tools/utils/responseUtils.js.map +0 -1
  320. package/cjs/tools/utils/stringUtils.d.ts +0 -8
  321. package/cjs/tools/utils/stringUtils.js +0 -59
  322. package/cjs/tools/utils/stringUtils.js.map +0 -1
  323. package/cjs/tools/utils/timeUtils.d.ts +0 -57
  324. package/cjs/tools/utils/timeUtils.js +0 -99
  325. package/cjs/tools/utils/timeUtils.js.map +0 -1
  326. package/cjs/tools/utils/typeUtils.d.ts +0 -4
  327. package/cjs/tools/utils/typeUtils.js +0 -17
  328. package/cjs/tools/utils/typeUtils.js.map +0 -1
  329. package/cjs/tools/utils/urlPolyfill.d.ts +0 -14
  330. package/cjs/tools/utils/urlPolyfill.js +0 -92
  331. package/cjs/tools/utils/urlPolyfill.js.map +0 -1
  332. package/cjs/tools/valueHistory.d.ts +0 -50
  333. package/cjs/tools/valueHistory.js +0 -106
  334. package/cjs/tools/valueHistory.js.map +0 -1
  335. package/cjs/transport/batch.d.ts +0 -21
  336. package/cjs/transport/batch.js +0 -123
  337. package/cjs/transport/batch.js.map +0 -1
  338. package/cjs/transport/eventBridge.d.ts +0 -12
  339. package/cjs/transport/eventBridge.js +0 -34
  340. package/cjs/transport/eventBridge.js.map +0 -1
  341. package/cjs/transport/flushController.d.ts +0 -58
  342. package/cjs/transport/flushController.js +0 -112
  343. package/cjs/transport/flushController.js.map +0 -1
  344. package/cjs/transport/httpRequest.d.ts +0 -38
  345. package/cjs/transport/httpRequest.js +0 -95
  346. package/cjs/transport/httpRequest.js.map +0 -1
  347. package/cjs/transport/index.d.ts +0 -4
  348. package/cjs/transport/index.js +0 -13
  349. package/cjs/transport/index.js.map +0 -1
  350. package/cjs/transport/sendWithRetryStrategy.d.ts +0 -39
  351. package/cjs/transport/sendWithRetryStrategy.js +0 -151
  352. package/cjs/transport/sendWithRetryStrategy.js.map +0 -1
  353. package/cjs/transport/startBatchWithReplica.d.ts +0 -20
  354. package/cjs/transport/startBatchWithReplica.js +0 -42
  355. package/cjs/transport/startBatchWithReplica.js.map +0 -1
  356. package/esm/boot/init.d.ts +0 -5
  357. package/esm/boot/init.js +0 -31
  358. package/esm/boot/init.js.map +0 -1
  359. package/esm/browser/addEventListener.d.ts +0 -84
  360. package/esm/browser/addEventListener.js +0 -89
  361. package/esm/browser/addEventListener.js.map +0 -1
  362. package/esm/browser/cookie.d.ts +0 -17
  363. package/esm/browser/cookie.js +0 -76
  364. package/esm/browser/cookie.js.map +0 -1
  365. package/esm/browser/fetchObservable.d.ts +0 -23
  366. package/esm/browser/fetchObservable.js +0 -65
  367. package/esm/browser/fetchObservable.js.map +0 -1
  368. package/esm/browser/pageExitObservable.d.ts +0 -14
  369. package/esm/browser/pageExitObservable.js +0 -52
  370. package/esm/browser/pageExitObservable.js.map +0 -1
  371. package/esm/browser/runOnReadyState.d.ts +0 -2
  372. package/esm/browser/runOnReadyState.js +0 -11
  373. package/esm/browser/runOnReadyState.js.map +0 -1
  374. package/esm/browser/types.d.ts +0 -19
  375. package/esm/browser/types.js +0 -5
  376. package/esm/browser/types.js.map +0 -1
  377. package/esm/browser/xhrObservable.d.ts +0 -21
  378. package/esm/browser/xhrObservable.js +0 -81
  379. package/esm/browser/xhrObservable.js.map +0 -1
  380. package/esm/domain/configuration/configuration.d.ts +0 -72
  381. package/esm/domain/configuration/configuration.js +0 -89
  382. package/esm/domain/configuration/configuration.js.map +0 -1
  383. package/esm/domain/configuration/endpointBuilder.d.ts +0 -10
  384. package/esm/domain/configuration/endpointBuilder.js +0 -80
  385. package/esm/domain/configuration/endpointBuilder.js.map +0 -1
  386. package/esm/domain/configuration/index.d.ts +0 -4
  387. package/esm/domain/configuration/index.js +0 -5
  388. package/esm/domain/configuration/index.js.map +0 -1
  389. package/esm/domain/configuration/intakeSites.d.ts +0 -5
  390. package/esm/domain/configuration/intakeSites.js +0 -6
  391. package/esm/domain/configuration/intakeSites.js.map +0 -1
  392. package/esm/domain/configuration/tags.d.ts +0 -4
  393. package/esm/domain/configuration/tags.js +0 -34
  394. package/esm/domain/configuration/tags.js.map +0 -1
  395. package/esm/domain/configuration/transportConfiguration.d.ts +0 -16
  396. package/esm/domain/configuration/transportConfiguration.js +0 -38
  397. package/esm/domain/configuration/transportConfiguration.js.map +0 -1
  398. package/esm/domain/connectivity/connectivity.d.ts +0 -13
  399. package/esm/domain/connectivity/connectivity.js +0 -10
  400. package/esm/domain/connectivity/connectivity.js.map +0 -1
  401. package/esm/domain/connectivity/index.d.ts +0 -1
  402. package/esm/domain/connectivity/index.js +0 -2
  403. package/esm/domain/connectivity/index.js.map +0 -1
  404. package/esm/domain/console/consoleObservable.d.ts +0 -11
  405. package/esm/domain/console/consoleObservable.js +0 -67
  406. package/esm/domain/console/consoleObservable.js.map +0 -1
  407. package/esm/domain/context/contextConstants.d.ts +0 -5
  408. package/esm/domain/context/contextConstants.js +0 -2
  409. package/esm/domain/context/contextConstants.js.map +0 -1
  410. package/esm/domain/context/contextManager.d.ts +0 -12
  411. package/esm/domain/context/contextManager.js +0 -39
  412. package/esm/domain/context/contextManager.js.map +0 -1
  413. package/esm/domain/context/customerDataTracker.d.ts +0 -45
  414. package/esm/domain/context/customerDataTracker.js +0 -102
  415. package/esm/domain/context/customerDataTracker.js.map +0 -1
  416. package/esm/domain/context/storeContextManager.d.ts +0 -6
  417. package/esm/domain/context/storeContextManager.js +0 -32
  418. package/esm/domain/context/storeContextManager.js.map +0 -1
  419. package/esm/domain/deflate/index.d.ts +0 -1
  420. package/esm/domain/deflate/index.js +0 -2
  421. package/esm/domain/deflate/index.js.map +0 -1
  422. package/esm/domain/deflate/types.d.ts +0 -38
  423. package/esm/domain/deflate/types.js +0 -2
  424. package/esm/domain/deflate/types.js.map +0 -1
  425. package/esm/domain/error/computeStackTrace.d.ts +0 -33
  426. package/esm/domain/error/computeStackTrace.js +0 -137
  427. package/esm/domain/error/computeStackTrace.js.map +0 -1
  428. package/esm/domain/error/error.d.ts +0 -28
  429. package/esm/domain/error/error.js +0 -121
  430. package/esm/domain/error/error.js.map +0 -1
  431. package/esm/domain/error/error.types.d.ts +0 -40
  432. package/esm/domain/error/error.types.js +0 -10
  433. package/esm/domain/error/error.types.js.map +0 -1
  434. package/esm/domain/error/trackRuntimeError.d.ts +0 -13
  435. package/esm/domain/error/trackRuntimeError.js +0 -48
  436. package/esm/domain/error/trackRuntimeError.js.map +0 -1
  437. package/esm/domain/eventRateLimiter/createEventRateLimiter.d.ts +0 -5
  438. package/esm/domain/eventRateLimiter/createEventRateLimiter.js +0 -36
  439. package/esm/domain/eventRateLimiter/createEventRateLimiter.js.map +0 -1
  440. package/esm/domain/report/browser.types.d.ts +0 -34
  441. package/esm/domain/report/browser.types.js +0 -2
  442. package/esm/domain/report/browser.types.js.map +0 -1
  443. package/esm/domain/report/reportObservable.d.ts +0 -17
  444. package/esm/domain/report/reportObservable.js +0 -90
  445. package/esm/domain/report/reportObservable.js.map +0 -1
  446. package/esm/domain/resourceUtils.d.ts +0 -16
  447. package/esm/domain/resourceUtils.js +0 -2
  448. package/esm/domain/resourceUtils.js.map +0 -1
  449. package/esm/domain/session/oldCookiesMigration.d.ts +0 -11
  450. package/esm/domain/session/oldCookiesMigration.js +0 -36
  451. package/esm/domain/session/oldCookiesMigration.js.map +0 -1
  452. package/esm/domain/session/sessionConstants.d.ts +0 -2
  453. package/esm/domain/session/sessionConstants.js +0 -4
  454. package/esm/domain/session/sessionConstants.js.map +0 -1
  455. package/esm/domain/session/sessionManager.d.ts +0 -20
  456. package/esm/domain/session/sessionManager.js +0 -60
  457. package/esm/domain/session/sessionManager.js.map +0 -1
  458. package/esm/domain/session/sessionState.d.ts +0 -11
  459. package/esm/domain/session/sessionState.js +0 -38
  460. package/esm/domain/session/sessionState.js.map +0 -1
  461. package/esm/domain/session/sessionStore.d.ts +0 -34
  462. package/esm/domain/session/sessionStore.js +0 -139
  463. package/esm/domain/session/sessionStore.js.map +0 -1
  464. package/esm/domain/session/sessionStoreOperations.d.ts +0 -10
  465. package/esm/domain/session/sessionStoreOperations.js +0 -92
  466. package/esm/domain/session/sessionStoreOperations.js.map +0 -1
  467. package/esm/domain/session/storeStrategies/sessionInCookie.d.ts +0 -6
  468. package/esm/domain/session/storeStrategies/sessionInCookie.js +0 -53
  469. package/esm/domain/session/storeStrategies/sessionInCookie.js.map +0 -1
  470. package/esm/domain/session/storeStrategies/sessionInLocalStorage.d.ts +0 -3
  471. package/esm/domain/session/storeStrategies/sessionInLocalStorage.js +0 -36
  472. package/esm/domain/session/storeStrategies/sessionInLocalStorage.js.map +0 -1
  473. package/esm/domain/session/storeStrategies/sessionStoreStrategy.d.ts +0 -15
  474. package/esm/domain/session/storeStrategies/sessionStoreStrategy.js +0 -2
  475. package/esm/domain/session/storeStrategies/sessionStoreStrategy.js.map +0 -1
  476. package/esm/domain/synthetics/syntheticsWorkerValues.d.ts +0 -11
  477. package/esm/domain/synthetics/syntheticsWorkerValues.js +0 -16
  478. package/esm/domain/synthetics/syntheticsWorkerValues.js.map +0 -1
  479. package/esm/domain/telemetry/index.d.ts +0 -3
  480. package/esm/domain/telemetry/index.js +0 -4
  481. package/esm/domain/telemetry/index.js.map +0 -1
  482. package/esm/domain/telemetry/rawTelemetryEvent.types.d.ts +0 -15
  483. package/esm/domain/telemetry/rawTelemetryEvent.types.js +0 -5
  484. package/esm/domain/telemetry/rawTelemetryEvent.types.js.map +0 -1
  485. package/esm/domain/telemetry/telemetry.d.ts +0 -116
  486. package/esm/domain/telemetry/telemetry.js +0 -145
  487. package/esm/domain/telemetry/telemetry.js.map +0 -1
  488. package/esm/domain/telemetry/telemetryEvent.types.d.ts +0 -391
  489. package/esm/domain/telemetry/telemetryEvent.types.js +0 -6
  490. package/esm/domain/telemetry/telemetryEvent.types.js.map +0 -1
  491. package/esm/domain/user/index.d.ts +0 -2
  492. package/esm/domain/user/index.js +0 -3
  493. package/esm/domain/user/index.js.map +0 -1
  494. package/esm/domain/user/user.d.ts +0 -12
  495. package/esm/domain/user/user.js +0 -30
  496. package/esm/domain/user/user.js.map +0 -1
  497. package/esm/domain/user/user.types.d.ts +0 -6
  498. package/esm/domain/user/user.types.js +0 -2
  499. package/esm/domain/user/user.types.js.map +0 -1
  500. package/esm/index.d.ts +0 -67
  501. package/esm/index.js +0 -64
  502. package/esm/index.js.map +0 -1
  503. package/esm/tools/abstractLifeCycle.d.ts +0 -23
  504. package/esm/tools/abstractLifeCycle.js +0 -26
  505. package/esm/tools/abstractLifeCycle.js.map +0 -1
  506. package/esm/tools/boundedBuffer.d.ts +0 -5
  507. package/esm/tools/boundedBuffer.js +0 -19
  508. package/esm/tools/boundedBuffer.js.map +0 -1
  509. package/esm/tools/catchUserErrors.d.ts +0 -1
  510. package/esm/tools/catchUserErrors.js +0 -16
  511. package/esm/tools/catchUserErrors.js.map +0 -1
  512. package/esm/tools/display.d.ts +0 -35
  513. package/esm/tools/display.js +0 -38
  514. package/esm/tools/display.js.map +0 -1
  515. package/esm/tools/encoder.d.ts +0 -53
  516. package/esm/tools/encoder.js +0 -37
  517. package/esm/tools/encoder.js.map +0 -1
  518. package/esm/tools/experimentalFeatures.d.ts +0 -22
  519. package/esm/tools/experimentalFeatures.js +0 -38
  520. package/esm/tools/experimentalFeatures.js.map +0 -1
  521. package/esm/tools/getGlobalObject.d.ts +0 -4
  522. package/esm/tools/getGlobalObject.js +0 -33
  523. package/esm/tools/getGlobalObject.js.map +0 -1
  524. package/esm/tools/getZoneJsOriginalValue.d.ts +0 -19
  525. package/esm/tools/getZoneJsOriginalValue.js +0 -26
  526. package/esm/tools/getZoneJsOriginalValue.js.map +0 -1
  527. package/esm/tools/instrumentMethod.d.ts +0 -59
  528. package/esm/tools/instrumentMethod.js +0 -101
  529. package/esm/tools/instrumentMethod.js.map +0 -1
  530. package/esm/tools/matchOption.d.ts +0 -8
  531. package/esm/tools/matchOption.js +0 -33
  532. package/esm/tools/matchOption.js.map +0 -1
  533. package/esm/tools/mergeInto.d.ts +0 -25
  534. package/esm/tools/mergeInto.js +0 -99
  535. package/esm/tools/mergeInto.js.map +0 -1
  536. package/esm/tools/monitor.d.ts +0 -8
  537. package/esm/tools/monitor.js +0 -66
  538. package/esm/tools/monitor.js.map +0 -1
  539. package/esm/tools/observable.d.ts +0 -12
  540. package/esm/tools/observable.js +0 -39
  541. package/esm/tools/observable.js.map +0 -1
  542. package/esm/tools/readBytesFromStream.d.ts +0 -11
  543. package/esm/tools/readBytesFromStream.js +0 -60
  544. package/esm/tools/readBytesFromStream.js.map +0 -1
  545. package/esm/tools/sendToExtension.d.ts +0 -3
  546. package/esm/tools/sendToExtension.js +0 -7
  547. package/esm/tools/sendToExtension.js.map +0 -1
  548. package/esm/tools/serialisation/context.d.ts +0 -6
  549. package/esm/tools/serialisation/context.js +0 -2
  550. package/esm/tools/serialisation/context.js.map +0 -1
  551. package/esm/tools/serialisation/jsonStringify.d.ts +0 -13
  552. package/esm/tools/serialisation/jsonStringify.js +0 -44
  553. package/esm/tools/serialisation/jsonStringify.js.map +0 -1
  554. package/esm/tools/serialisation/sanitize.d.ts +0 -18
  555. package/esm/tools/serialisation/sanitize.js +0 -181
  556. package/esm/tools/serialisation/sanitize.js.map +0 -1
  557. package/esm/tools/timer.d.ts +0 -5
  558. package/esm/tools/timer.js +0 -16
  559. package/esm/tools/timer.js.map +0 -1
  560. package/esm/tools/utils/arrayUtils.d.ts +0 -1
  561. package/esm/tools/utils/arrayUtils.js +0 -7
  562. package/esm/tools/utils/arrayUtils.js.map +0 -1
  563. package/esm/tools/utils/browserDetection.d.ts +0 -10
  564. package/esm/tools/utils/browserDetection.js +0 -35
  565. package/esm/tools/utils/browserDetection.js.map +0 -1
  566. package/esm/tools/utils/byteUtils.d.ts +0 -4
  567. package/esm/tools/utils/byteUtils.js +0 -26
  568. package/esm/tools/utils/byteUtils.js.map +0 -1
  569. package/esm/tools/utils/functionUtils.d.ts +0 -9
  570. package/esm/tools/utils/functionUtils.js +0 -43
  571. package/esm/tools/utils/functionUtils.js.map +0 -1
  572. package/esm/tools/utils/numberUtils.d.ts +0 -8
  573. package/esm/tools/utils/numberUtils.js +0 -17
  574. package/esm/tools/utils/numberUtils.js.map +0 -1
  575. package/esm/tools/utils/objectUtils.d.ts +0 -10
  576. package/esm/tools/utils/objectUtils.js +0 -19
  577. package/esm/tools/utils/objectUtils.js.map +0 -1
  578. package/esm/tools/utils/polyfills.d.ts +0 -24
  579. package/esm/tools/utils/polyfills.js +0 -95
  580. package/esm/tools/utils/polyfills.js.map +0 -1
  581. package/esm/tools/utils/responseUtils.d.ts +0 -2
  582. package/esm/tools/utils/responseUtils.js +0 -13
  583. package/esm/tools/utils/responseUtils.js.map +0 -1
  584. package/esm/tools/utils/stringUtils.d.ts +0 -8
  585. package/esm/tools/utils/stringUtils.js +0 -52
  586. package/esm/tools/utils/stringUtils.js.map +0 -1
  587. package/esm/tools/utils/timeUtils.d.ts +0 -57
  588. package/esm/tools/utils/timeUtils.js +0 -82
  589. package/esm/tools/utils/timeUtils.js.map +0 -1
  590. package/esm/tools/utils/typeUtils.d.ts +0 -4
  591. package/esm/tools/utils/typeUtils.js +0 -13
  592. package/esm/tools/utils/typeUtils.js.map +0 -1
  593. package/esm/tools/utils/urlPolyfill.d.ts +0 -14
  594. package/esm/tools/utils/urlPolyfill.js +0 -80
  595. package/esm/tools/utils/urlPolyfill.js.map +0 -1
  596. package/esm/tools/valueHistory.d.ts +0 -50
  597. package/esm/tools/valueHistory.js +0 -103
  598. package/esm/tools/valueHistory.js.map +0 -1
  599. package/esm/transport/batch.d.ts +0 -21
  600. package/esm/transport/batch.js +0 -120
  601. package/esm/transport/batch.js.map +0 -1
  602. package/esm/transport/eventBridge.d.ts +0 -12
  603. package/esm/transport/eventBridge.js +0 -29
  604. package/esm/transport/eventBridge.js.map +0 -1
  605. package/esm/transport/flushController.d.ts +0 -58
  606. package/esm/transport/flushController.js +0 -108
  607. package/esm/transport/flushController.js.map +0 -1
  608. package/esm/transport/httpRequest.d.ts +0 -38
  609. package/esm/transport/httpRequest.js +0 -89
  610. package/esm/transport/httpRequest.js.map +0 -1
  611. package/esm/transport/index.d.ts +0 -4
  612. package/esm/transport/index.js +0 -5
  613. package/esm/transport/index.js.map +0 -1
  614. package/esm/transport/sendWithRetryStrategy.d.ts +0 -39
  615. package/esm/transport/sendWithRetryStrategy.js +0 -146
  616. package/esm/transport/sendWithRetryStrategy.js.map +0 -1
  617. package/esm/transport/startBatchWithReplica.d.ts +0 -20
  618. package/esm/transport/startBatchWithReplica.js +0 -38
  619. package/esm/transport/startBatchWithReplica.js.map +0 -1
  620. package/src/domain/configuration/intakeSites.ts +0 -5
  621. package/src/domain/configuration/tags.ts +0 -43
  622. package/src/domain/context/customerDataTracker.ts +0 -134
  623. package/src/domain/user/index.ts +0 -2
  624. package/src/domain/user/user.ts +0 -33
  625. package/src/domain/user/user.types.ts +0 -6
  626. package/src/transport/startBatchWithReplica.ts +0 -68
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/domain/telemetry/telemetry.ts"],"names":[],"mappings":"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"}
@@ -1,391 +0,0 @@
1
- /**
2
- * DO NOT MODIFY IT BY HAND. Run `yarn rum-events-format:sync` instead.
3
- */
4
- /**
5
- * Schema of all properties of a telemetry event
6
- */
7
- export type TelemetryEvent = TelemetryErrorEvent | TelemetryDebugEvent | TelemetryConfigurationEvent;
8
- /**
9
- * Schema of all properties of a telemetry error event
10
- */
11
- export type TelemetryErrorEvent = CommonTelemetryProperties & {
12
- /**
13
- * The telemetry log information
14
- */
15
- telemetry: {
16
- /**
17
- * Telemetry type
18
- */
19
- type?: 'log';
20
- /**
21
- * Level/severity of the log
22
- */
23
- status: 'error';
24
- /**
25
- * Body of the log
26
- */
27
- message: string;
28
- /**
29
- * Error properties
30
- */
31
- error?: {
32
- /**
33
- * The stack trace or the complementary information about the error
34
- */
35
- stack?: string;
36
- /**
37
- * The error type or kind (or code in some cases)
38
- */
39
- kind?: string;
40
- [k: string]: unknown;
41
- };
42
- [k: string]: unknown;
43
- };
44
- [k: string]: unknown;
45
- };
46
- /**
47
- * Schema of all properties of a telemetry debug event
48
- */
49
- export type TelemetryDebugEvent = CommonTelemetryProperties & {
50
- /**
51
- * The telemetry log information
52
- */
53
- telemetry: {
54
- /**
55
- * Telemetry type
56
- */
57
- type?: 'log';
58
- /**
59
- * Level/severity of the log
60
- */
61
- status: 'debug';
62
- /**
63
- * Body of the log
64
- */
65
- message: string;
66
- [k: string]: unknown;
67
- };
68
- [k: string]: unknown;
69
- };
70
- /**
71
- * Schema of all properties of a telemetry configuration event
72
- */
73
- export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
74
- /**
75
- * The telemetry configuration information
76
- */
77
- telemetry: {
78
- /**
79
- * Telemetry type
80
- */
81
- type: 'configuration';
82
- /**
83
- * Configuration properties
84
- */
85
- configuration: {
86
- /**
87
- * The percentage of sessions tracked
88
- */
89
- session_sample_rate?: number;
90
- /**
91
- * The percentage of telemetry events sent
92
- */
93
- telemetry_sample_rate?: number;
94
- /**
95
- * The percentage of telemetry configuration events sent after being sampled by telemetry_sample_rate
96
- */
97
- telemetry_configuration_sample_rate?: number;
98
- /**
99
- * The percentage of requests traced
100
- */
101
- trace_sample_rate?: number;
102
- /**
103
- * The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
104
- */
105
- premium_sample_rate?: number;
106
- /**
107
- * The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
108
- */
109
- replay_sample_rate?: number;
110
- /**
111
- * The percentage of sessions with RUM & Session Replay pricing tracked
112
- */
113
- session_replay_sample_rate?: number;
114
- /**
115
- * Whether the session replay start is handled manually
116
- */
117
- start_session_replay_recording_manually?: boolean;
118
- /**
119
- * Whether a proxy is used
120
- */
121
- use_proxy?: boolean;
122
- /**
123
- * Whether beforeSend callback function is used
124
- */
125
- use_before_send?: boolean;
126
- /**
127
- * Whether initialization fails silently if the SDK is already initialized
128
- */
129
- silent_multiple_init?: boolean;
130
- /**
131
- * Whether sessions across subdomains for the same site are tracked
132
- */
133
- track_session_across_subdomains?: boolean;
134
- /**
135
- * Whether resources are tracked
136
- */
137
- track_resources?: boolean;
138
- /**
139
- * Whether long tasks are tracked
140
- */
141
- track_long_task?: boolean;
142
- /**
143
- * Whether a secure cross-site session cookie is used (deprecated)
144
- */
145
- use_cross_site_session_cookie?: boolean;
146
- /**
147
- * Whether a partitioned secure cross-site session cookie is used
148
- */
149
- use_partitioned_cross_site_session_cookie?: boolean;
150
- /**
151
- * Whether a secure session cookie is used
152
- */
153
- use_secure_session_cookie?: boolean;
154
- /**
155
- * Whether it is allowed to use LocalStorage when cookies are not available
156
- */
157
- allow_fallback_to_local_storage?: boolean;
158
- /**
159
- * Whether contexts are stored in local storage
160
- */
161
- store_contexts_across_pages?: boolean;
162
- /**
163
- * Whether untrusted events are allowed
164
- */
165
- allow_untrusted_events?: boolean;
166
- /**
167
- * Attribute to be used to name actions
168
- */
169
- action_name_attribute?: string;
170
- /**
171
- * Whether the allowed tracing origins list is used (deprecated in favor of use_allowed_tracing_urls)
172
- */
173
- use_allowed_tracing_origins?: boolean;
174
- /**
175
- * Whether the allowed tracing urls list is used
176
- */
177
- use_allowed_tracing_urls?: boolean;
178
- /**
179
- * A list of selected tracing propagators
180
- */
181
- selected_tracing_propagators?: ('tracecontext' | 'b3' | 'b3multi')[];
182
- /**
183
- * Session replay default privacy level
184
- */
185
- default_privacy_level?: string;
186
- /**
187
- * Whether the request origins list to ignore when computing the page activity is used
188
- */
189
- use_excluded_activity_urls?: boolean;
190
- /**
191
- * Whether the Worker is loaded from an external URL
192
- */
193
- use_worker_url?: boolean;
194
- /**
195
- * Whether user frustrations are tracked
196
- */
197
- track_frustrations?: boolean;
198
- /**
199
- * Whether the RUM views creation is handled manually
200
- */
201
- track_views_manually?: boolean;
202
- /**
203
- * Whether user actions are tracked (deprecated in favor of track_user_interactions)
204
- */
205
- track_interactions?: boolean;
206
- /**
207
- * Whether user actions are tracked
208
- */
209
- track_user_interactions?: boolean;
210
- /**
211
- * Whether console.error logs, uncaught exceptions and network errors are tracked
212
- */
213
- forward_errors_to_logs?: boolean;
214
- /**
215
- * The console.* tracked
216
- */
217
- forward_console_logs?: string[] | 'all';
218
- /**
219
- * The reports from the Reporting API tracked
220
- */
221
- forward_reports?: string[] | 'all';
222
- /**
223
- * Whether local encryption is used
224
- */
225
- use_local_encryption?: boolean;
226
- /**
227
- * View tracking strategy
228
- */
229
- view_tracking_strategy?: 'ActivityViewTrackingStrategy' | 'FragmentViewTrackingStrategy' | 'MixedViewTrackingStrategy' | 'NavigationViewTrackingStrategy';
230
- /**
231
- * Whether RUM events are tracked when the application is in Background
232
- */
233
- track_background_events?: boolean;
234
- /**
235
- * The period between each Mobile Vital sample (in milliseconds)
236
- */
237
- mobile_vitals_update_period?: number;
238
- /**
239
- * Whether error monitoring & crash reporting is enabled for the source platform
240
- */
241
- track_errors?: boolean;
242
- /**
243
- * Whether automatic collection of network requests is enabled
244
- */
245
- track_network_requests?: boolean;
246
- /**
247
- * Whether tracing features are enabled
248
- */
249
- use_tracing?: boolean;
250
- /**
251
- * Whether native views are tracked (for cross platform SDKs)
252
- */
253
- track_native_views?: boolean;
254
- /**
255
- * Whether native error monitoring & crash reporting is enabled (for cross platform SDKs)
256
- */
257
- track_native_errors?: boolean;
258
- /**
259
- * Whether long task tracking is performed automatically
260
- */
261
- track_native_long_tasks?: boolean;
262
- /**
263
- * Whether long task tracking is performed automatically for cross platform SDKs
264
- */
265
- track_cross_platform_long_tasks?: boolean;
266
- /**
267
- * Whether the client has provided a list of first party hosts
268
- */
269
- use_first_party_hosts?: boolean;
270
- /**
271
- * The type of initialization the SDK used, in case multiple are supported
272
- */
273
- initialization_type?: string;
274
- /**
275
- * Whether Flutter build and raster time tracking is enabled
276
- */
277
- track_flutter_performance?: boolean;
278
- /**
279
- * The window duration for batches sent by the SDK (in milliseconds)
280
- */
281
- batch_size?: number;
282
- /**
283
- * The upload frequency of batches (in milliseconds)
284
- */
285
- batch_upload_frequency?: number;
286
- /**
287
- * Maximum number of batches processed sequencially without a delay
288
- */
289
- batch_processing_level?: number;
290
- /**
291
- * Whether UIApplication background tasks are enabled
292
- */
293
- background_tasks_enabled?: boolean;
294
- /**
295
- * The version of React used in a ReactNative application
296
- */
297
- react_version?: string;
298
- /**
299
- * The version of ReactNative used in a ReactNative application
300
- */
301
- react_native_version?: string;
302
- /**
303
- * The version of Dart used in a Flutter application
304
- */
305
- dart_version?: string;
306
- [k: string]: unknown;
307
- };
308
- [k: string]: unknown;
309
- };
310
- [k: string]: unknown;
311
- };
312
- /**
313
- * Schema of common properties of Telemetry events
314
- */
315
- export interface CommonTelemetryProperties {
316
- /**
317
- * Internal properties
318
- */
319
- _oo: {
320
- /**
321
- * Version of the RUM event format
322
- */
323
- readonly format_version: 2;
324
- [k: string]: unknown;
325
- };
326
- /**
327
- * Telemetry event type. Should specify telemetry only.
328
- */
329
- readonly type: 'telemetry';
330
- /**
331
- * Start of the event in ms from epoch
332
- */
333
- date: number;
334
- /**
335
- * The SDK generating the telemetry event
336
- */
337
- service: string;
338
- /**
339
- * The source of this event
340
- */
341
- readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity';
342
- /**
343
- * The version of the SDK generating the telemetry event
344
- */
345
- version: string;
346
- /**
347
- * Application properties
348
- */
349
- readonly application?: {
350
- /**
351
- * UUID of the application
352
- */
353
- id: string;
354
- [k: string]: unknown;
355
- };
356
- /**
357
- * Session properties
358
- */
359
- session?: {
360
- /**
361
- * UUID of the session
362
- */
363
- id: string;
364
- [k: string]: unknown;
365
- };
366
- /**
367
- * View properties
368
- */
369
- view?: {
370
- /**
371
- * UUID of the view
372
- */
373
- id: string;
374
- [k: string]: unknown;
375
- };
376
- /**
377
- * Action properties
378
- */
379
- action?: {
380
- /**
381
- * UUID of the action
382
- */
383
- id: string;
384
- [k: string]: unknown;
385
- };
386
- /**
387
- * Enabled experimental features
388
- */
389
- readonly experimental_features?: string[];
390
- [k: string]: unknown;
391
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /**
4
- * DO NOT MODIFY IT BY HAND. Run `yarn rum-events-format:sync` instead.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- //# sourceMappingURL=telemetryEvent.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetryEvent.types.js","sourceRoot":"","sources":["../../../src/domain/telemetry/telemetryEvent.types.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;GAEG"}
@@ -1,2 +0,0 @@
1
- export * from './user.types';
2
- export * from './user';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./user.types"), exports);
18
- __exportStar(require("./user"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yCAAsB"}
@@ -1,12 +0,0 @@
1
- import type { Context } from '../../tools/serialisation/context';
2
- import type { User } from './user.types';
3
- /**
4
- * Clone input data and ensure known user properties (id, name, email)
5
- * are strings, as defined here:
6
- * https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#user-related-attributes
7
- */
8
- export declare function sanitizeUser(newUser: Context): Context;
9
- /**
10
- * Simple check to ensure user is valid
11
- */
12
- export declare function checkUser(newUser: User): boolean;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkUser = exports.sanitizeUser = void 0;
4
- var display_1 = require("../../tools/display");
5
- var typeUtils_1 = require("../../tools/utils/typeUtils");
6
- var polyfills_1 = require("../../tools/utils/polyfills");
7
- /**
8
- * Clone input data and ensure known user properties (id, name, email)
9
- * are strings, as defined here:
10
- * https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#user-related-attributes
11
- */
12
- function sanitizeUser(newUser) {
13
- // We shallow clone only to prevent mutation of user data.
14
- var user = (0, polyfills_1.assign)({}, newUser);
15
- var keys = ['id', 'name', 'email'];
16
- keys.forEach(function (key) {
17
- if (key in user) {
18
- user[key] = String(user[key]);
19
- }
20
- });
21
- return user;
22
- }
23
- exports.sanitizeUser = sanitizeUser;
24
- /**
25
- * Simple check to ensure user is valid
26
- */
27
- function checkUser(newUser) {
28
- var isValid = (0, typeUtils_1.getType)(newUser) === 'object';
29
- if (!isValid) {
30
- display_1.display.error('Unsupported user:', newUser);
31
- }
32
- return isValid;
33
- }
34
- exports.checkUser = checkUser;
35
- //# sourceMappingURL=user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/domain/user/user.ts"],"names":[],"mappings":";;;AACA,+CAA6C;AAC7C,yDAAqD;AACrD,yDAAoD;AAGpD;;;;GAIG;AACH,SAAgB,YAAY,CAAC,OAAgB;IAC3C,0DAA0D;IAC1D,IAAM,IAAI,GAAG,IAAA,kBAAM,EAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAChC,IAAM,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,IAAI,CAAC,OAAO,CAAC,UAAC,GAAG;QACf,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YAChB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QAC/B,CAAC;IACH,CAAC,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC;AAVD,oCAUC;AAED;;GAEG;AACH,SAAgB,SAAS,CAAC,OAAa;IACrC,IAAM,OAAO,GAAG,IAAA,mBAAO,EAAC,OAAO,CAAC,KAAK,QAAQ,CAAA;IAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,iBAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC7C,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAND,8BAMC"}
@@ -1,6 +0,0 @@
1
- export interface User {
2
- id?: string | undefined;
3
- email?: string | undefined;
4
- name?: string | undefined;
5
- [key: string]: unknown;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=user.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.types.js","sourceRoot":"","sources":["../../../src/domain/user/user.types.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import type { Subscription } from './observable';
2
- /**
3
- * Type helper to extract event types that have "void" data. This allows to call `notify` without a
4
- * second argument. Ex:
5
- *
6
- * ```
7
- * interface EventMap {
8
- * foo: void
9
- * }
10
- * const LifeCycle = AbstractLifeCycle<EventMap>
11
- * new LifeCycle().notify('foo')
12
- * ```
13
- */
14
- type EventTypesWithoutData<EventMap> = {
15
- [K in keyof EventMap]: EventMap[K] extends void ? K : never;
16
- }[keyof EventMap];
17
- export declare class AbstractLifeCycle<EventMap> {
18
- private callbacks;
19
- notify<EventType extends EventTypesWithoutData<EventMap>>(eventType: EventType): void;
20
- notify<EventType extends keyof EventMap>(eventType: EventType, data: EventMap[EventType]): void;
21
- subscribe<EventType extends keyof EventMap>(eventType: EventType, callback: (data: EventMap[EventType]) => void): Subscription;
22
- }
23
- export {};
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AbstractLifeCycle = void 0;
4
- var AbstractLifeCycle = /** @class */ (function () {
5
- function AbstractLifeCycle() {
6
- this.callbacks = {};
7
- }
8
- AbstractLifeCycle.prototype.notify = function (eventType, data) {
9
- var eventCallbacks = this.callbacks[eventType];
10
- if (eventCallbacks) {
11
- eventCallbacks.forEach(function (callback) { return callback(data); });
12
- }
13
- };
14
- AbstractLifeCycle.prototype.subscribe = function (eventType, callback) {
15
- var _this = this;
16
- if (!this.callbacks[eventType]) {
17
- this.callbacks[eventType] = [];
18
- }
19
- this.callbacks[eventType].push(callback);
20
- return {
21
- unsubscribe: function () {
22
- _this.callbacks[eventType] = _this.callbacks[eventType].filter(function (other) { return callback !== other; });
23
- },
24
- };
25
- };
26
- return AbstractLifeCycle;
27
- }());
28
- exports.AbstractLifeCycle = AbstractLifeCycle;
29
- //# sourceMappingURL=abstractLifeCycle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"abstractLifeCycle.js","sourceRoot":"","sources":["../../src/tools/abstractLifeCycle.ts"],"names":[],"mappings":";;;AAkBA;IAAA;QACU,cAAS,GAA6D,EAAE,CAAA;IAyBlF,CAAC;IArBC,kCAAM,GAAN,UAAO,SAAyB,EAAE,IAAc;QAC9C,IAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;QAChD,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,CAAC,CAAA;QACtD,CAAC;IACH,CAAC;IAED,qCAAS,GAAT,UACE,SAAoB,EACpB,QAA6C;QAF/C,iBAaC;QATC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;YAC/B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,CAAA;QAChC,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACzC,OAAO;YACL,WAAW,EAAE;gBACX,KAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,KAAI,CAAC,SAAS,CAAC,SAAS,CAAE,CAAC,MAAM,CAAC,UAAC,KAAK,IAAK,OAAA,QAAQ,KAAK,KAAK,EAAlB,CAAkB,CAAC,CAAA;YAC9F,CAAC;SACF,CAAA;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,8CAAiB"}
@@ -1,5 +0,0 @@
1
- export declare class BoundedBuffer {
2
- private buffer;
3
- add(callback: () => void): void;
4
- drain(): void;
5
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoundedBuffer = void 0;
4
- var BUFFER_LIMIT = 500;
5
- var BoundedBuffer = /** @class */ (function () {
6
- function BoundedBuffer() {
7
- this.buffer = [];
8
- }
9
- BoundedBuffer.prototype.add = function (callback) {
10
- var length = this.buffer.push(callback);
11
- if (length > BUFFER_LIMIT) {
12
- this.buffer.splice(0, 1);
13
- }
14
- };
15
- BoundedBuffer.prototype.drain = function () {
16
- this.buffer.forEach(function (callback) { return callback(); });
17
- this.buffer.length = 0;
18
- };
19
- return BoundedBuffer;
20
- }());
21
- exports.BoundedBuffer = BoundedBuffer;
22
- //# sourceMappingURL=boundedBuffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boundedBuffer.js","sourceRoot":"","sources":["../../src/tools/boundedBuffer.ts"],"names":[],"mappings":";;;AAAA,IAAM,YAAY,GAAG,GAAG,CAAA;AAExB;IAAA;QACU,WAAM,GAAsB,EAAE,CAAA;IAaxC,CAAC;IAXC,2BAAG,GAAH,UAAI,QAAoB;QACtB,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACzC,IAAI,MAAM,GAAG,YAAY,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC;IAED,6BAAK,GAAL;QACE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,EAAE,EAAV,CAAU,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;IACxB,CAAC;IACH,oBAAC;AAAD,CAAC,AAdD,IAcC;AAdY,sCAAa"}
@@ -1 +0,0 @@
1
- export declare function catchUserErrors<Args extends any[], R>(fn: (...args: Args) => R, errorMsg: string): (...args: Args) => R | undefined;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.catchUserErrors = void 0;
4
- var display_1 = require("./display");
5
- function catchUserErrors(fn, errorMsg) {
6
- return function () {
7
- var args = [];
8
- for (var _i = 0; _i < arguments.length; _i++) {
9
- args[_i] = arguments[_i];
10
- }
11
- try {
12
- return fn.apply(void 0, args);
13
- }
14
- catch (err) {
15
- display_1.display.error(errorMsg, err);
16
- }
17
- };
18
- }
19
- exports.catchUserErrors = catchUserErrors;
20
- //# sourceMappingURL=catchUserErrors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"catchUserErrors.js","sourceRoot":"","sources":["../../src/tools/catchUserErrors.ts"],"names":[],"mappings":";;;AAAA,qCAAmC;AAEnC,SAAgB,eAAe,CAAwB,EAAwB,EAAE,QAAgB;IAC/F,OAAO;QAAC,cAAa;aAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;YAAb,yBAAa;;QACnB,IAAI,CAAC;YACH,OAAO,EAAE,eAAI,IAAI,EAAC;QACpB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,iBAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;QAC9B,CAAC;IACH,CAAC,CAAA;AACH,CAAC;AARD,0CAQC"}
@@ -1,35 +0,0 @@
1
- /**
2
- * Keep references on console methods to avoid triggering patched behaviors
3
- *
4
- * NB: in some setup, console could already be patched by another SDK.
5
- * In this case, some display messages can be sent by the other SDK
6
- * but we should be safe from infinite loop nonetheless.
7
- */
8
- export declare const ConsoleApiName: {
9
- readonly log: "log";
10
- readonly debug: "debug";
11
- readonly info: "info";
12
- readonly warn: "warn";
13
- readonly error: "error";
14
- };
15
- export type ConsoleApiName = (typeof ConsoleApiName)[keyof typeof ConsoleApiName];
16
- interface Display {
17
- debug: typeof console.debug;
18
- log: typeof console.log;
19
- info: typeof console.info;
20
- warn: typeof console.warn;
21
- error: typeof console.error;
22
- }
23
- /**
24
- * When building JS bundles, some users might use a plugin[1] or configuration[2] to remove
25
- * "console.*" references. This causes some issue as we expect `console.*` to be defined.
26
- * As a workaround, let's use a variable alias, so those expressions won't be taken into account by
27
- * simple static analysis.
28
- *
29
- * [1]: https://babeljs.io/docs/babel-plugin-transform-remove-console/
30
- * [2]: https://github.com/terser/terser#compress-options (look for drop_console)
31
- */
32
- export declare const globalConsole: Console;
33
- export declare const originalConsoleMethods: Display;
34
- export declare const display: Display;
35
- export {};