@openobserve/browser-core 0.2.12-beta.21 → 0.2.12-beta.23

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 (322) hide show
  1. package/cjs/boot/displayAlreadyInitializedError.d.ts +1 -1
  2. package/cjs/boot/init.d.ts +1 -1
  3. package/cjs/boot/init.js +1 -1
  4. package/cjs/browser/addEventListener.d.ts +1 -1
  5. package/cjs/browser/addEventListener.js +1 -1
  6. package/cjs/domain/configuration/configuration.js +5 -4
  7. package/cjs/domain/configuration/configuration.js.map +1 -1
  8. package/cjs/domain/configuration/endpointBuilder.js +21 -12
  9. package/cjs/domain/configuration/endpointBuilder.js.map +1 -1
  10. package/cjs/domain/context/storeContextManager.js +1 -1
  11. package/cjs/domain/tags.js +1 -1
  12. package/cjs/domain/telemetry/telemetry.js +2 -2
  13. package/esm/boot/displayAlreadyInitializedError.d.ts +2 -0
  14. package/esm/boot/displayAlreadyInitializedError.js +7 -0
  15. package/esm/boot/displayAlreadyInitializedError.js.map +1 -0
  16. package/esm/boot/init.d.ts +14 -0
  17. package/esm/boot/init.js +35 -0
  18. package/esm/boot/init.js.map +1 -0
  19. package/esm/browser/addEventListener.d.ts +87 -0
  20. package/esm/browser/addEventListener.js +51 -0
  21. package/esm/browser/addEventListener.js.map +1 -0
  22. package/esm/browser/browser.types.d.ts +51 -0
  23. package/esm/browser/browser.types.js +5 -0
  24. package/esm/browser/browser.types.js.map +1 -0
  25. package/esm/browser/cookie.d.ts +28 -0
  26. package/esm/browser/cookie.js +103 -0
  27. package/esm/browser/cookie.js.map +1 -0
  28. package/esm/browser/fetchObservable.d.ts +38 -0
  29. package/esm/browser/fetchObservable.js +99 -0
  30. package/esm/browser/fetchObservable.js.map +1 -0
  31. package/esm/browser/pageMayExitObservable.d.ts +14 -0
  32. package/esm/browser/pageMayExitObservable.js +40 -0
  33. package/esm/browser/pageMayExitObservable.js.map +1 -0
  34. package/esm/browser/runOnReadyState.d.ts +5 -0
  35. package/esm/browser/runOnReadyState.js +16 -0
  36. package/esm/browser/runOnReadyState.js.map +1 -0
  37. package/esm/browser/xhrObservable.d.ts +24 -0
  38. package/esm/browser/xhrObservable.js +83 -0
  39. package/esm/browser/xhrObservable.js.map +1 -0
  40. package/esm/domain/allowedTrackingOrigins.d.ts +4 -0
  41. package/esm/domain/allowedTrackingOrigins.js +21 -0
  42. package/esm/domain/allowedTrackingOrigins.js.map +1 -0
  43. package/esm/domain/bufferedData.d.ts +14 -0
  44. package/esm/domain/bufferedData.js +19 -0
  45. package/esm/domain/bufferedData.js.map +1 -0
  46. package/esm/domain/configuration/configuration.d.ts +312 -0
  47. package/esm/domain/configuration/configuration.js +132 -0
  48. package/esm/domain/configuration/configuration.js.map +1 -0
  49. package/esm/domain/configuration/endpointBuilder.d.ts +12 -0
  50. package/esm/domain/configuration/endpointBuilder.js +81 -0
  51. package/esm/domain/configuration/endpointBuilder.js.map +1 -0
  52. package/esm/domain/configuration/index.d.ts +5 -0
  53. package/esm/domain/configuration/index.js +4 -0
  54. package/esm/domain/configuration/index.js.map +1 -0
  55. package/esm/domain/configuration/transportConfiguration.d.ts +20 -0
  56. package/esm/domain/configuration/transportConfiguration.js +50 -0
  57. package/esm/domain/configuration/transportConfiguration.js.map +1 -0
  58. package/esm/domain/connectivity/connectivity.d.ts +14 -0
  59. package/esm/domain/connectivity/connectivity.js +11 -0
  60. package/esm/domain/connectivity/connectivity.js.map +1 -0
  61. package/esm/domain/connectivity/index.d.ts +1 -0
  62. package/esm/domain/connectivity/index.js +2 -0
  63. package/esm/domain/connectivity/index.js.map +1 -0
  64. package/esm/domain/console/consoleObservable.d.ts +21 -0
  65. package/esm/domain/console/consoleObservable.js +80 -0
  66. package/esm/domain/console/consoleObservable.js.map +1 -0
  67. package/esm/domain/context/contextConstants.d.ts +21 -0
  68. package/esm/domain/context/contextConstants.js +15 -0
  69. package/esm/domain/context/contextConstants.js.map +1 -0
  70. package/esm/domain/context/contextManager.d.ts +19 -0
  71. package/esm/domain/context/contextManager.js +57 -0
  72. package/esm/domain/context/contextManager.js.map +1 -0
  73. package/esm/domain/context/contextUtils.d.ts +5 -0
  74. package/esm/domain/context/contextUtils.js +13 -0
  75. package/esm/domain/context/contextUtils.js.map +1 -0
  76. package/esm/domain/context/defineContextMethod.d.ts +6 -0
  77. package/esm/domain/context/defineContextMethod.js +17 -0
  78. package/esm/domain/context/defineContextMethod.js.map +1 -0
  79. package/esm/domain/context/storeContextManager.d.ts +6 -0
  80. package/esm/domain/context/storeContextManager.js +35 -0
  81. package/esm/domain/context/storeContextManager.js.map +1 -0
  82. package/esm/domain/contexts/accountContext.d.ts +26 -0
  83. package/esm/domain/contexts/accountContext.js +29 -0
  84. package/esm/domain/contexts/accountContext.js.map +1 -0
  85. package/esm/domain/contexts/globalContext.d.ts +18 -0
  86. package/esm/domain/contexts/globalContext.js +17 -0
  87. package/esm/domain/contexts/globalContext.js.map +1 -0
  88. package/esm/domain/contexts/rumInternalContext.type.d.ts +14 -0
  89. package/esm/domain/contexts/rumInternalContext.type.js +2 -0
  90. package/esm/domain/contexts/rumInternalContext.type.js.map +1 -0
  91. package/esm/domain/contexts/userContext.d.ts +29 -0
  92. package/esm/domain/contexts/userContext.js +41 -0
  93. package/esm/domain/contexts/userContext.js.map +1 -0
  94. package/esm/domain/deflate/deflate.types.d.ts +40 -0
  95. package/esm/domain/deflate/deflate.types.js +2 -0
  96. package/esm/domain/deflate/deflate.types.js.map +1 -0
  97. package/esm/domain/deflate/index.d.ts +1 -0
  98. package/esm/domain/deflate/index.js +2 -0
  99. package/esm/domain/deflate/index.js.map +1 -0
  100. package/esm/domain/error/error.d.ts +23 -0
  101. package/esm/domain/error/error.js +65 -0
  102. package/esm/domain/error/error.js.map +1 -0
  103. package/esm/domain/error/error.types.d.ts +47 -0
  104. package/esm/domain/error/error.types.js +10 -0
  105. package/esm/domain/error/error.types.js.map +1 -0
  106. package/esm/domain/error/trackRuntimeError.d.ts +11 -0
  107. package/esm/domain/error/trackRuntimeError.js +43 -0
  108. package/esm/domain/error/trackRuntimeError.js.map +1 -0
  109. package/esm/domain/eventRateLimiter/createEventRateLimiter.d.ts +5 -0
  110. package/esm/domain/eventRateLimiter/createEventRateLimiter.js +38 -0
  111. package/esm/domain/eventRateLimiter/createEventRateLimiter.js.map +1 -0
  112. package/esm/domain/extension/extensionUtils.d.ts +10 -0
  113. package/esm/domain/extension/extensionUtils.js +25 -0
  114. package/esm/domain/extension/extensionUtils.js.map +1 -0
  115. package/esm/domain/intakeSites.d.ts +8 -0
  116. package/esm/domain/intakeSites.js +8 -0
  117. package/esm/domain/intakeSites.js.map +1 -0
  118. package/esm/domain/report/browser.types.d.ts +34 -0
  119. package/esm/domain/report/browser.types.js +2 -0
  120. package/esm/domain/report/browser.types.js.map +1 -0
  121. package/esm/domain/report/reportObservable.d.ts +14 -0
  122. package/esm/domain/report/reportObservable.js +95 -0
  123. package/esm/domain/report/reportObservable.js.map +1 -0
  124. package/esm/domain/resourceUtils.d.ts +18 -0
  125. package/esm/domain/resourceUtils.js +17 -0
  126. package/esm/domain/resourceUtils.js.map +1 -0
  127. package/esm/domain/session/oldCookiesMigration.d.ts +11 -0
  128. package/esm/domain/session/oldCookiesMigration.js +36 -0
  129. package/esm/domain/session/oldCookiesMigration.js.map +1 -0
  130. package/esm/domain/session/sessionConstants.d.ts +15 -0
  131. package/esm/domain/session/sessionConstants.js +13 -0
  132. package/esm/domain/session/sessionConstants.js.map +1 -0
  133. package/esm/domain/session/sessionManager.d.ts +28 -0
  134. package/esm/domain/session/sessionManager.js +196 -0
  135. package/esm/domain/session/sessionManager.js.map +1 -0
  136. package/esm/domain/session/sessionState.d.ts +16 -0
  137. package/esm/domain/session/sessionState.js +60 -0
  138. package/esm/domain/session/sessionState.js.map +1 -0
  139. package/esm/domain/session/sessionStateValidation.d.ts +3 -0
  140. package/esm/domain/session/sessionStateValidation.js +7 -0
  141. package/esm/domain/session/sessionStateValidation.js.map +1 -0
  142. package/esm/domain/session/sessionStore.d.ts +38 -0
  143. package/esm/domain/session/sessionStore.js +179 -0
  144. package/esm/domain/session/sessionStore.js.map +1 -0
  145. package/esm/domain/session/sessionStoreOperations.d.ts +12 -0
  146. package/esm/domain/session/sessionStoreOperations.js +114 -0
  147. package/esm/domain/session/sessionStoreOperations.js.map +1 -0
  148. package/esm/domain/session/storeStrategies/sessionInCookie.d.ts +12 -0
  149. package/esm/domain/session/storeStrategies/sessionInCookie.js +98 -0
  150. package/esm/domain/session/storeStrategies/sessionInCookie.js.map +1 -0
  151. package/esm/domain/session/storeStrategies/sessionInLocalStorage.d.ts +6 -0
  152. package/esm/domain/session/storeStrategies/sessionInLocalStorage.js +37 -0
  153. package/esm/domain/session/storeStrategies/sessionInLocalStorage.js.map +1 -0
  154. package/esm/domain/session/storeStrategies/sessionStoreStrategy.d.ts +16 -0
  155. package/esm/domain/session/storeStrategies/sessionStoreStrategy.js +2 -0
  156. package/esm/domain/session/storeStrategies/sessionStoreStrategy.js.map +1 -0
  157. package/esm/domain/synthetics/syntheticsWorkerValues.d.ts +12 -0
  158. package/esm/domain/synthetics/syntheticsWorkerValues.js +24 -0
  159. package/esm/domain/synthetics/syntheticsWorkerValues.js.map +1 -0
  160. package/esm/domain/tags.d.ts +6 -0
  161. package/esm/domain/tags.js +60 -0
  162. package/esm/domain/tags.js.map +1 -0
  163. package/esm/domain/telemetry/index.d.ts +4 -0
  164. package/esm/domain/telemetry/index.js +3 -0
  165. package/esm/domain/telemetry/index.js.map +1 -0
  166. package/esm/domain/telemetry/rawTelemetryEvent.types.d.ts +18 -0
  167. package/esm/domain/telemetry/rawTelemetryEvent.types.js +6 -0
  168. package/esm/domain/telemetry/rawTelemetryEvent.types.js.map +1 -0
  169. package/esm/domain/telemetry/telemetry.d.ts +56 -0
  170. package/esm/domain/telemetry/telemetry.js +228 -0
  171. package/esm/domain/telemetry/telemetry.js.map +1 -0
  172. package/esm/domain/telemetry/telemetryEvent.types.d.ts +866 -0
  173. package/esm/domain/telemetry/telemetryEvent.types.js +6 -0
  174. package/esm/domain/telemetry/telemetryEvent.types.js.map +1 -0
  175. package/esm/domain/trackingConsent.d.ts +13 -0
  176. package/esm/domain/trackingConsent.js +24 -0
  177. package/esm/domain/trackingConsent.js.map +1 -0
  178. package/esm/index.d.ts +100 -0
  179. package/esm/index.js +76 -0
  180. package/esm/index.js.map +1 -0
  181. package/esm/tools/abstractHooks.d.ts +24 -0
  182. package/esm/tools/abstractHooks.js +37 -0
  183. package/esm/tools/abstractHooks.js.map +1 -0
  184. package/esm/tools/abstractLifeCycle.d.ts +23 -0
  185. package/esm/tools/abstractLifeCycle.js +24 -0
  186. package/esm/tools/abstractLifeCycle.js.map +1 -0
  187. package/esm/tools/boundedBuffer.d.ts +16 -0
  188. package/esm/tools/boundedBuffer.js +29 -0
  189. package/esm/tools/boundedBuffer.js.map +1 -0
  190. package/esm/tools/catchUserErrors.d.ts +1 -0
  191. package/esm/tools/catchUserErrors.js +12 -0
  192. package/esm/tools/catchUserErrors.js.map +1 -0
  193. package/esm/tools/display.d.ts +38 -0
  194. package/esm/tools/display.js +41 -0
  195. package/esm/tools/display.js.map +1 -0
  196. package/esm/tools/encoder.d.ts +54 -0
  197. package/esm/tools/encoder.js +37 -0
  198. package/esm/tools/encoder.js.map +1 -0
  199. package/esm/tools/experimentalFeatures.d.ts +21 -0
  200. package/esm/tools/experimentalFeatures.js +42 -0
  201. package/esm/tools/experimentalFeatures.js.map +1 -0
  202. package/esm/tools/getZoneJsOriginalValue.d.ts +19 -0
  203. package/esm/tools/getZoneJsOriginalValue.js +26 -0
  204. package/esm/tools/getZoneJsOriginalValue.js.map +1 -0
  205. package/esm/tools/globalObject.d.ts +19 -0
  206. package/esm/tools/globalObject.js +40 -0
  207. package/esm/tools/globalObject.js.map +1 -0
  208. package/esm/tools/instrumentMethod.d.ts +75 -0
  209. package/esm/tools/instrumentMethod.js +114 -0
  210. package/esm/tools/instrumentMethod.js.map +1 -0
  211. package/esm/tools/matchOption.d.ts +8 -0
  212. package/esm/tools/matchOption.js +31 -0
  213. package/esm/tools/matchOption.js.map +1 -0
  214. package/esm/tools/mergeInto.d.ts +25 -0
  215. package/esm/tools/mergeInto.js +93 -0
  216. package/esm/tools/mergeInto.js.map +1 -0
  217. package/esm/tools/monitor.d.ts +9 -0
  218. package/esm/tools/monitor.js +52 -0
  219. package/esm/tools/monitor.js.map +1 -0
  220. package/esm/tools/observable.d.ts +30 -0
  221. package/esm/tools/observable.js +83 -0
  222. package/esm/tools/observable.js.map +1 -0
  223. package/esm/tools/queueMicrotask.d.ts +1 -0
  224. package/esm/tools/queueMicrotask.js +14 -0
  225. package/esm/tools/queueMicrotask.js.map +1 -0
  226. package/esm/tools/readBytesFromStream.d.ts +10 -0
  227. package/esm/tools/readBytesFromStream.js +25 -0
  228. package/esm/tools/readBytesFromStream.js.map +1 -0
  229. package/esm/tools/requestIdleCallback.d.ts +12 -0
  230. package/esm/tools/requestIdleCallback.js +30 -0
  231. package/esm/tools/requestIdleCallback.js.map +1 -0
  232. package/esm/tools/sendToExtension.d.ts +3 -0
  233. package/esm/tools/sendToExtension.js +8 -0
  234. package/esm/tools/sendToExtension.js.map +1 -0
  235. package/esm/tools/serialisation/context.d.ts +9 -0
  236. package/esm/tools/serialisation/context.js +2 -0
  237. package/esm/tools/serialisation/context.js.map +1 -0
  238. package/esm/tools/serialisation/jsonStringify.d.ts +13 -0
  239. package/esm/tools/serialisation/jsonStringify.js +44 -0
  240. package/esm/tools/serialisation/jsonStringify.js.map +1 -0
  241. package/esm/tools/serialisation/sanitize.d.ts +18 -0
  242. package/esm/tools/serialisation/sanitize.js +185 -0
  243. package/esm/tools/serialisation/sanitize.js.map +1 -0
  244. package/esm/tools/stackTrace/computeStackTrace.d.ts +25 -0
  245. package/esm/tools/stackTrace/computeStackTrace.js +183 -0
  246. package/esm/tools/stackTrace/computeStackTrace.js.map +1 -0
  247. package/esm/tools/stackTrace/handlingStack.d.ts +10 -0
  248. package/esm/tools/stackTrace/handlingStack.js +41 -0
  249. package/esm/tools/stackTrace/handlingStack.js.map +1 -0
  250. package/esm/tools/taskQueue.d.ts +15 -0
  251. package/esm/tools/taskQueue.js +50 -0
  252. package/esm/tools/taskQueue.js.map +1 -0
  253. package/esm/tools/timer.d.ts +5 -0
  254. package/esm/tools/timer.js +16 -0
  255. package/esm/tools/timer.js.map +1 -0
  256. package/esm/tools/utils/arrayUtils.d.ts +3 -0
  257. package/esm/tools/utils/arrayUtils.js +15 -0
  258. package/esm/tools/utils/arrayUtils.js.map +1 -0
  259. package/esm/tools/utils/browserDetection.d.ts +8 -0
  260. package/esm/tools/utils/browserDetection.js +28 -0
  261. package/esm/tools/utils/browserDetection.js.map +1 -0
  262. package/esm/tools/utils/byteUtils.d.ts +8 -0
  263. package/esm/tools/utils/byteUtils.js +29 -0
  264. package/esm/tools/utils/byteUtils.js.map +1 -0
  265. package/esm/tools/utils/functionUtils.d.ts +8 -0
  266. package/esm/tools/utils/functionUtils.js +39 -0
  267. package/esm/tools/utils/functionUtils.js.map +1 -0
  268. package/esm/tools/utils/numberUtils.d.ts +9 -0
  269. package/esm/tools/utils/numberUtils.js +18 -0
  270. package/esm/tools/utils/numberUtils.js.map +1 -0
  271. package/esm/tools/utils/objectUtils.d.ts +10 -0
  272. package/esm/tools/utils/objectUtils.js +17 -0
  273. package/esm/tools/utils/objectUtils.js.map +1 -0
  274. package/esm/tools/utils/polyfills.d.ts +7 -0
  275. package/esm/tools/utils/polyfills.js +18 -0
  276. package/esm/tools/utils/polyfills.js.map +1 -0
  277. package/esm/tools/utils/responseUtils.d.ts +2 -0
  278. package/esm/tools/utils/responseUtils.js +13 -0
  279. package/esm/tools/utils/responseUtils.js.map +1 -0
  280. package/esm/tools/utils/stringUtils.d.ts +23 -0
  281. package/esm/tools/utils/stringUtils.js +84 -0
  282. package/esm/tools/utils/stringUtils.js.map +1 -0
  283. package/esm/tools/utils/timeUtils.d.ts +53 -0
  284. package/esm/tools/utils/timeUtils.js +84 -0
  285. package/esm/tools/utils/timeUtils.js.map +1 -0
  286. package/esm/tools/utils/timezone.d.ts +1 -0
  287. package/esm/tools/utils/timezone.js +10 -0
  288. package/esm/tools/utils/timezone.js.map +1 -0
  289. package/esm/tools/utils/typeUtils.d.ts +4 -0
  290. package/esm/tools/utils/typeUtils.js +13 -0
  291. package/esm/tools/utils/typeUtils.js.map +1 -0
  292. package/esm/tools/utils/urlPolyfill.d.ts +5 -0
  293. package/esm/tools/utils/urlPolyfill.js +52 -0
  294. package/esm/tools/utils/urlPolyfill.js.map +1 -0
  295. package/esm/tools/valueHistory.d.ts +27 -0
  296. package/esm/tools/valueHistory.js +100 -0
  297. package/esm/tools/valueHistory.js.map +1 -0
  298. package/esm/transport/batch.d.ts +16 -0
  299. package/esm/transport/batch.js +106 -0
  300. package/esm/transport/batch.js.map +1 -0
  301. package/esm/transport/eventBridge.d.ts +21 -0
  302. package/esm/transport/eventBridge.js +41 -0
  303. package/esm/transport/eventBridge.js.map +1 -0
  304. package/esm/transport/flushController.d.ts +65 -0
  305. package/esm/transport/flushController.js +119 -0
  306. package/esm/transport/flushController.js.map +1 -0
  307. package/esm/transport/httpRequest.d.ts +56 -0
  308. package/esm/transport/httpRequest.js +89 -0
  309. package/esm/transport/httpRequest.js.map +1 -0
  310. package/esm/transport/index.d.ts +7 -0
  311. package/esm/transport/index.js +5 -0
  312. package/esm/transport/index.js.map +1 -0
  313. package/esm/transport/sendWithRetryStrategy.d.ts +41 -0
  314. package/esm/transport/sendWithRetryStrategy.js +158 -0
  315. package/esm/transport/sendWithRetryStrategy.js.map +1 -0
  316. package/package.json +1 -1
  317. package/src/boot/displayAlreadyInitializedError.ts +1 -1
  318. package/src/boot/init.ts +1 -1
  319. package/src/browser/addEventListener.ts +2 -2
  320. package/src/domain/configuration/configuration.ts +6 -5
  321. package/src/domain/configuration/endpointBuilder.ts +25 -15
  322. package/src/domain/context/storeContextManager.ts +1 -1
@@ -0,0 +1,228 @@
1
+ import { ConsoleApiName } from '../../tools/display';
2
+ import { NO_ERROR_STACK_PRESENT_MESSAGE, isError } from '../error/error';
3
+ import { toStackTraceString } from '../../tools/stackTrace/handlingStack';
4
+ import { getExperimentalFeatures } from '../../tools/experimentalFeatures';
5
+ import { buildTags } from '../tags';
6
+ import { INTAKE_SITE_STAGING, INTAKE_SITE_US1_FED } from '../intakeSites';
7
+ import { BufferedObservable, Observable } from '../../tools/observable';
8
+ import { clocksNow } from '../../tools/utils/timeUtils';
9
+ import { displayIfDebugEnabled, startMonitorErrorCollection } from '../../tools/monitor';
10
+ import { sendToExtension } from '../../tools/sendToExtension';
11
+ import { performDraw } from '../../tools/utils/numberUtils';
12
+ import { jsonStringify } from '../../tools/serialisation/jsonStringify';
13
+ import { combine } from '../../tools/mergeInto';
14
+ import { computeStackTrace } from '../../tools/stackTrace/computeStackTrace';
15
+ import { getConnectivity } from '../connectivity';
16
+ import { canUseEventBridge, createFlushController, createHttpRequest, getEventBridge, createBatch, } from '../../transport';
17
+ import { DISCARDED } from '../../tools/abstractHooks';
18
+ import { globalObject, isWorkerEnvironment } from '../../tools/globalObject';
19
+ import { TelemetryType } from './rawTelemetryEvent.types';
20
+ const ALLOWED_FRAME_URLS = [
21
+ 'http://localhost',
22
+ '<anonymous>',
23
+ ];
24
+ const METRIC_SAMPLE_RATE = 1;
25
+ const TELEMETRY_EXCLUDED_SITES = [INTAKE_SITE_US1_FED];
26
+ const MAX_TELEMETRY_EVENTS_PER_PAGE = 15;
27
+ let telemetryObservable;
28
+ export function getTelemetryObservable() {
29
+ if (!telemetryObservable) {
30
+ telemetryObservable = new BufferedObservable(100);
31
+ }
32
+ return telemetryObservable;
33
+ }
34
+ export function startTelemetry(telemetryService, configuration, hooks, reportError, pageMayExitObservable, createEncoder) {
35
+ const observable = new Observable();
36
+ const { stop } = startTelemetryTransport(configuration, reportError, pageMayExitObservable, createEncoder, observable);
37
+ const { enabled, metricsEnabled } = startTelemetryCollection(telemetryService, configuration, hooks, observable);
38
+ return {
39
+ stop,
40
+ enabled,
41
+ metricsEnabled,
42
+ };
43
+ }
44
+ export function startTelemetryCollection(telemetryService, configuration, hooks, observable, metricSampleRate = METRIC_SAMPLE_RATE, maxTelemetryEventsPerPage = MAX_TELEMETRY_EVENTS_PER_PAGE) {
45
+ const alreadySentEventsByKind = {};
46
+ const telemetryEnabled = !TELEMETRY_EXCLUDED_SITES.includes(configuration.site) && performDraw(configuration.telemetrySampleRate);
47
+ const telemetryEnabledPerType = {
48
+ [TelemetryType.LOG]: telemetryEnabled,
49
+ [TelemetryType.CONFIGURATION]: telemetryEnabled && performDraw(configuration.telemetryConfigurationSampleRate),
50
+ [TelemetryType.USAGE]: telemetryEnabled && performDraw(configuration.telemetryUsageSampleRate),
51
+ // not an actual "type" but using a single draw for all metrics
52
+ metric: telemetryEnabled && performDraw(metricSampleRate),
53
+ };
54
+ const runtimeEnvInfo = getRuntimeEnvInfo();
55
+ const telemetryObservable = getTelemetryObservable();
56
+ telemetryObservable.subscribe(({ rawEvent, metricName }) => {
57
+ if ((metricName && !telemetryEnabledPerType['metric']) || !telemetryEnabledPerType[rawEvent.type]) {
58
+ return;
59
+ }
60
+ const kind = metricName || rawEvent.status || rawEvent.type;
61
+ let alreadySentEvents = alreadySentEventsByKind[kind];
62
+ if (!alreadySentEvents) {
63
+ alreadySentEvents = alreadySentEventsByKind[kind] = new Set();
64
+ }
65
+ if (alreadySentEvents.size >= maxTelemetryEventsPerPage) {
66
+ return;
67
+ }
68
+ const stringifiedEvent = jsonStringify(rawEvent);
69
+ if (alreadySentEvents.has(stringifiedEvent)) {
70
+ return;
71
+ }
72
+ const defaultTelemetryEventAttributes = hooks.triggerHook(1 /* HookNames.AssembleTelemetry */, {
73
+ startTime: clocksNow().relative,
74
+ });
75
+ if (defaultTelemetryEventAttributes === DISCARDED) {
76
+ return;
77
+ }
78
+ const event = toTelemetryEvent(defaultTelemetryEventAttributes, telemetryService, rawEvent, runtimeEnvInfo);
79
+ observable.notify(event);
80
+ sendToExtension('telemetry', event);
81
+ alreadySentEvents.add(stringifiedEvent);
82
+ });
83
+ telemetryObservable.unbuffer();
84
+ startMonitorErrorCollection(addTelemetryError);
85
+ return {
86
+ enabled: telemetryEnabled,
87
+ metricsEnabled: telemetryEnabledPerType['metric'],
88
+ };
89
+ function toTelemetryEvent(defaultTelemetryEventAttributes, telemetryService, rawEvent, runtimeEnvInfo) {
90
+ const clockNow = clocksNow();
91
+ const event = {
92
+ type: 'telemetry',
93
+ date: clockNow.timeStamp,
94
+ service: telemetryService,
95
+ version: "0.2.12-beta.23",
96
+ source: 'browser',
97
+ _oo: {
98
+ format_version: 2,
99
+ },
100
+ telemetry: combine(rawEvent, {
101
+ runtime_env: runtimeEnvInfo,
102
+ connectivity: getConnectivity(),
103
+ sdk_setup: "npm",
104
+ }),
105
+ ootags: buildTags(configuration).join(','),
106
+ experimental_features: Array.from(getExperimentalFeatures()),
107
+ };
108
+ return combine(event, defaultTelemetryEventAttributes);
109
+ }
110
+ }
111
+ function startTelemetryTransport(configuration, reportError, pageMayExitObservable, createEncoder, telemetryObservable) {
112
+ const cleanupTasks = [];
113
+ if (canUseEventBridge()) {
114
+ const bridge = getEventBridge();
115
+ const telemetrySubscription = telemetryObservable.subscribe((event) => bridge.send('internal_telemetry', event));
116
+ cleanupTasks.push(telemetrySubscription.unsubscribe);
117
+ }
118
+ else {
119
+ const endpoints = [configuration.rumEndpointBuilder];
120
+ if (configuration.replica && isTelemetryReplicationAllowed(configuration)) {
121
+ endpoints.push(configuration.replica.rumEndpointBuilder);
122
+ }
123
+ const telemetryBatch = createBatch({
124
+ encoder: createEncoder(4 /* DeflateEncoderStreamId.TELEMETRY */),
125
+ request: createHttpRequest(endpoints, reportError),
126
+ flushController: createFlushController({
127
+ pageMayExitObservable,
128
+ // We don't use an actual session expire observable here, to make telemetry collection
129
+ // independent of the session. This allows to start and send telemetry events earlier.
130
+ sessionExpireObservable: new Observable(),
131
+ }),
132
+ });
133
+ cleanupTasks.push(telemetryBatch.stop);
134
+ const telemetrySubscription = telemetryObservable.subscribe(telemetryBatch.add);
135
+ cleanupTasks.push(telemetrySubscription.unsubscribe);
136
+ }
137
+ return {
138
+ stop: () => cleanupTasks.forEach((task) => task()),
139
+ };
140
+ }
141
+ function getRuntimeEnvInfo() {
142
+ var _a;
143
+ return {
144
+ is_local_file: ((_a = globalObject.location) === null || _a === void 0 ? void 0 : _a.protocol) === 'file:',
145
+ is_worker: isWorkerEnvironment,
146
+ };
147
+ }
148
+ export function resetTelemetry() {
149
+ telemetryObservable = undefined;
150
+ }
151
+ /**
152
+ * Avoid mixing telemetry events from different data centers
153
+ * but keep replicating staging events for reliability
154
+ */
155
+ function isTelemetryReplicationAllowed(configuration) {
156
+ return configuration.site === INTAKE_SITE_STAGING;
157
+ }
158
+ export function addTelemetryDebug(message, context) {
159
+ displayIfDebugEnabled(ConsoleApiName.debug, message, context);
160
+ getTelemetryObservable().notify({
161
+ rawEvent: {
162
+ type: TelemetryType.LOG,
163
+ message,
164
+ status: "debug" /* StatusType.debug */,
165
+ ...context,
166
+ },
167
+ });
168
+ }
169
+ export function addTelemetryError(e, context) {
170
+ getTelemetryObservable().notify({
171
+ rawEvent: {
172
+ type: TelemetryType.LOG,
173
+ status: "error" /* StatusType.error */,
174
+ ...formatError(e),
175
+ ...context,
176
+ },
177
+ });
178
+ }
179
+ export function addTelemetryConfiguration(configuration) {
180
+ getTelemetryObservable().notify({
181
+ rawEvent: {
182
+ type: TelemetryType.CONFIGURATION,
183
+ configuration,
184
+ },
185
+ });
186
+ }
187
+ export function addTelemetryMetrics(metricName, context) {
188
+ getTelemetryObservable().notify({
189
+ rawEvent: {
190
+ type: TelemetryType.LOG,
191
+ message: metricName,
192
+ status: "debug" /* StatusType.debug */,
193
+ ...context,
194
+ },
195
+ metricName,
196
+ });
197
+ }
198
+ export function addTelemetryUsage(usage) {
199
+ getTelemetryObservable().notify({
200
+ rawEvent: {
201
+ type: TelemetryType.USAGE,
202
+ usage,
203
+ },
204
+ });
205
+ }
206
+ export function formatError(e) {
207
+ if (isError(e)) {
208
+ const stackTrace = computeStackTrace(e);
209
+ return {
210
+ error: {
211
+ kind: stackTrace.name,
212
+ stack: toStackTraceString(scrubCustomerFrames(stackTrace)),
213
+ },
214
+ message: stackTrace.message,
215
+ };
216
+ }
217
+ return {
218
+ error: {
219
+ stack: NO_ERROR_STACK_PRESENT_MESSAGE,
220
+ },
221
+ message: `${"Uncaught" /* NonErrorPrefix.UNCAUGHT */} ${jsonStringify(e)}`,
222
+ };
223
+ }
224
+ export function scrubCustomerFrames(stackTrace) {
225
+ stackTrace.stack = stackTrace.stack.filter((frame) => !frame.url || ALLOWED_FRAME_URLS.some((allowedFrameUrl) => frame.url.startsWith(allowedFrameUrl)));
226
+ return stackTrace;
227
+ }
228
+ //# sourceMappingURL=telemetry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/domain/telemetry/telemetry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,aAA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