@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,866 @@
1
+ /**
2
+ * DO NOT MODIFY IT BY HAND. Run `yarn json-schemas:sync` instead.
3
+ */
4
+ /**
5
+ * Schema of all properties of a telemetry event
6
+ */
7
+ export type TelemetryEvent = TelemetryErrorEvent | TelemetryDebugEvent | TelemetryConfigurationEvent | TelemetryUsageEvent;
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 telemetry usage events sent after being sampled by telemetry_sample_rate
100
+ */
101
+ telemetry_usage_sample_rate?: number;
102
+ /**
103
+ * The percentage of requests traced
104
+ */
105
+ trace_sample_rate?: number;
106
+ /**
107
+ * The opt-in configuration to add trace context
108
+ */
109
+ trace_context_injection?: 'all' | 'sampled';
110
+ /**
111
+ * The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
112
+ */
113
+ premium_sample_rate?: number;
114
+ /**
115
+ * The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
116
+ */
117
+ replay_sample_rate?: number;
118
+ /**
119
+ * The percentage of sessions with RUM & Session Replay pricing tracked
120
+ */
121
+ session_replay_sample_rate?: number;
122
+ /**
123
+ * The initial tracking consent value
124
+ */
125
+ tracking_consent?: 'granted' | 'not-granted' | 'pending';
126
+ /**
127
+ * Whether the session replay start is handled manually
128
+ */
129
+ start_session_replay_recording_manually?: boolean;
130
+ /**
131
+ * Whether Session Replay should automatically start a recording when enabled
132
+ */
133
+ start_recording_immediately?: boolean;
134
+ /**
135
+ * Whether a proxy is used
136
+ */
137
+ use_proxy?: boolean;
138
+ /**
139
+ * Whether beforeSend callback function is used
140
+ */
141
+ use_before_send?: boolean;
142
+ /**
143
+ * Whether initialization fails silently if the SDK is already initialized
144
+ */
145
+ silent_multiple_init?: boolean;
146
+ /**
147
+ * Whether sessions across subdomains for the same site are tracked
148
+ */
149
+ track_session_across_subdomains?: boolean;
150
+ /**
151
+ * Whether resources are tracked
152
+ */
153
+ track_resources?: boolean;
154
+ /**
155
+ * Whether early requests are tracked
156
+ */
157
+ track_early_requests?: boolean;
158
+ /**
159
+ * Whether long tasks are tracked
160
+ */
161
+ track_long_task?: boolean;
162
+ /**
163
+ * Whether views loaded from the bfcache are tracked
164
+ */
165
+ track_bfcache_views?: boolean;
166
+ /**
167
+ * Whether a secure cross-site session cookie is used (deprecated)
168
+ */
169
+ use_cross_site_session_cookie?: boolean;
170
+ /**
171
+ * Whether a partitioned secure cross-site session cookie is used
172
+ */
173
+ use_partitioned_cross_site_session_cookie?: boolean;
174
+ /**
175
+ * Whether a secure session cookie is used
176
+ */
177
+ use_secure_session_cookie?: boolean;
178
+ /**
179
+ * Whether it is allowed to use LocalStorage when cookies are not available (deprecated in favor of session_persistence)
180
+ */
181
+ allow_fallback_to_local_storage?: boolean;
182
+ /**
183
+ * Configure the storage strategy for persisting sessions
184
+ */
185
+ session_persistence?: 'local-storage' | 'cookie';
186
+ /**
187
+ * Whether contexts are stored in local storage
188
+ */
189
+ store_contexts_across_pages?: boolean;
190
+ /**
191
+ * Whether untrusted events are allowed
192
+ */
193
+ allow_untrusted_events?: boolean;
194
+ /**
195
+ * Attribute to be used to name actions
196
+ */
197
+ action_name_attribute?: string;
198
+ /**
199
+ * Whether the allowed tracing origins list is used (deprecated in favor of use_allowed_tracing_urls)
200
+ */
201
+ use_allowed_tracing_origins?: boolean;
202
+ /**
203
+ * Whether the allowed tracing urls list is used
204
+ */
205
+ use_allowed_tracing_urls?: boolean;
206
+ /**
207
+ * Whether the allowed GraphQL urls list is used
208
+ */
209
+ use_allowed_graph_ql_urls?: boolean;
210
+ /**
211
+ * Whether GraphQL payload tracking is used for at least one GraphQL endpoint
212
+ */
213
+ use_track_graph_ql_payload?: boolean;
214
+ /**
215
+ * Whether GraphQL response errors tracking is used for at least one GraphQL endpoint
216
+ */
217
+ use_track_graph_ql_response_errors?: boolean;
218
+ /**
219
+ * A list of selected tracing propagators
220
+ */
221
+ selected_tracing_propagators?: ('tracecontext' | 'b3' | 'b3multi')[];
222
+ /**
223
+ * Session replay default privacy level
224
+ */
225
+ default_privacy_level?: string;
226
+ /**
227
+ * Session replay text and input privacy level
228
+ */
229
+ text_and_input_privacy_level?: string;
230
+ /**
231
+ * Session replay image privacy level
232
+ */
233
+ image_privacy_level?: string;
234
+ /**
235
+ * Session replay touch privacy level
236
+ */
237
+ touch_privacy_level?: string;
238
+ /**
239
+ * Privacy control for action name
240
+ */
241
+ enable_privacy_for_action_name?: boolean;
242
+ /**
243
+ * Whether the request origins list to ignore when computing the page activity is used
244
+ */
245
+ use_excluded_activity_urls?: boolean;
246
+ /**
247
+ * Whether the Worker is loaded from an external URL
248
+ */
249
+ use_worker_url?: boolean;
250
+ /**
251
+ * Whether intake requests are compressed
252
+ */
253
+ compress_intake_requests?: boolean;
254
+ /**
255
+ * Whether user frustrations are tracked
256
+ */
257
+ track_frustrations?: boolean;
258
+ /**
259
+ * Whether the RUM views creation is handled manually
260
+ */
261
+ track_views_manually?: boolean;
262
+ /**
263
+ * Whether user actions are tracked (deprecated in favor of track_user_interactions)
264
+ */
265
+ track_interactions?: boolean;
266
+ /**
267
+ * Whether user actions are tracked
268
+ */
269
+ track_user_interactions?: boolean;
270
+ /**
271
+ * Whether console.error logs, uncaught exceptions and network errors are tracked
272
+ */
273
+ forward_errors_to_logs?: boolean;
274
+ /**
275
+ * The number of displays available to the device
276
+ */
277
+ number_of_displays?: number;
278
+ /**
279
+ * The console.* tracked
280
+ */
281
+ forward_console_logs?: string[] | 'all';
282
+ /**
283
+ * The reports from the Reporting API tracked
284
+ */
285
+ forward_reports?: string[] | 'all';
286
+ /**
287
+ * Whether local encryption is used
288
+ */
289
+ use_local_encryption?: boolean;
290
+ /**
291
+ * View tracking strategy
292
+ */
293
+ view_tracking_strategy?: 'ActivityViewTrackingStrategy' | 'FragmentViewTrackingStrategy' | 'MixedViewTrackingStrategy' | 'NavigationViewTrackingStrategy';
294
+ /**
295
+ * Whether SwiftUI view instrumentation is enabled
296
+ */
297
+ swiftui_view_tracking_enabled?: boolean;
298
+ /**
299
+ * Whether SwiftUI action instrumentation is enabled
300
+ */
301
+ swiftui_action_tracking_enabled?: boolean;
302
+ /**
303
+ * Whether RUM events are tracked when the application is in Background
304
+ */
305
+ track_background_events?: boolean;
306
+ /**
307
+ * The period between each Mobile Vital sample (in milliseconds)
308
+ */
309
+ mobile_vitals_update_period?: number;
310
+ /**
311
+ * Whether error monitoring & crash reporting is enabled for the source platform
312
+ */
313
+ track_errors?: boolean;
314
+ /**
315
+ * Whether automatic collection of network requests is enabled
316
+ */
317
+ track_network_requests?: boolean;
318
+ /**
319
+ * Whether tracing features are enabled
320
+ */
321
+ use_tracing?: boolean;
322
+ /**
323
+ * Whether native views are tracked (for cross platform SDKs)
324
+ */
325
+ track_native_views?: boolean;
326
+ /**
327
+ * Whether native error monitoring & crash reporting is enabled (for cross platform SDKs)
328
+ */
329
+ track_native_errors?: boolean;
330
+ /**
331
+ * Whether long task tracking is performed automatically
332
+ */
333
+ track_native_long_tasks?: boolean;
334
+ /**
335
+ * Whether long task tracking is performed automatically for cross platform SDKs
336
+ */
337
+ track_cross_platform_long_tasks?: boolean;
338
+ /**
339
+ * Whether the client has provided a list of first party hosts
340
+ */
341
+ use_first_party_hosts?: boolean;
342
+ /**
343
+ * The type of initialization the SDK used, in case multiple are supported
344
+ */
345
+ initialization_type?: string;
346
+ /**
347
+ * Whether Flutter build and raster time tracking is enabled
348
+ */
349
+ track_flutter_performance?: boolean;
350
+ /**
351
+ * The window duration for batches sent by the SDK (in milliseconds)
352
+ */
353
+ batch_size?: number;
354
+ /**
355
+ * The upload frequency of batches (in milliseconds)
356
+ */
357
+ batch_upload_frequency?: number;
358
+ /**
359
+ * Maximum number of batches processed sequentially without a delay
360
+ */
361
+ batch_processing_level?: number;
362
+ /**
363
+ * Whether UIApplication background tasks are enabled
364
+ */
365
+ background_tasks_enabled?: boolean;
366
+ /**
367
+ * The version of React used in a ReactNative application
368
+ */
369
+ react_version?: string;
370
+ /**
371
+ * The version of ReactNative used in a ReactNative application
372
+ */
373
+ react_native_version?: string;
374
+ /**
375
+ * The version of Dart used in a Flutter application
376
+ */
377
+ dart_version?: string;
378
+ /**
379
+ * The version of Unity used in a Unity application
380
+ */
381
+ unity_version?: string;
382
+ /**
383
+ * The threshold used for iOS App Hangs monitoring (in milliseconds)
384
+ */
385
+ app_hang_threshold?: number;
386
+ /**
387
+ * Whether logs are sent to the PCI-compliant intake
388
+ */
389
+ use_pci_intake?: boolean;
390
+ /**
391
+ * The tracer API used by the SDK. Possible values: 'Datadog', 'OpenTelemetry', 'OpenTracing'
392
+ */
393
+ tracer_api?: string;
394
+ /**
395
+ * The version of the tracer API used by the SDK. Eg. '0.1.0'
396
+ */
397
+ tracer_api_version?: string;
398
+ /**
399
+ * Whether logs are sent after the session expiration
400
+ */
401
+ send_logs_after_session_expiration?: boolean;
402
+ /**
403
+ * The list of plugins enabled
404
+ */
405
+ plugins?: {
406
+ /**
407
+ * The name of the plugin
408
+ */
409
+ name: string;
410
+ [k: string]: unknown;
411
+ }[];
412
+ /**
413
+ * Whether the SDK is initialised on the application's main or a secondary process
414
+ */
415
+ is_main_process?: boolean;
416
+ /**
417
+ * Interval in milliseconds when the last action is considered as the action that created the next view. Only sent if a time based strategy has been used
418
+ */
419
+ inv_time_threshold_ms?: number;
420
+ /**
421
+ * The interval in milliseconds during which all network requests will be considered as initial, i.e. caused by the creation of this view. Only sent if a time based strategy has been used
422
+ */
423
+ tns_time_threshold_ms?: number;
424
+ /**
425
+ * The list of events that include feature flags collection. The tracking is always enabled for views and errors.
426
+ */
427
+ track_feature_flags_for_events?: ('vital' | 'resource' | 'action' | 'long_task')[];
428
+ /**
429
+ * Whether the anonymous users are tracked
430
+ */
431
+ track_anonymous_user?: boolean;
432
+ /**
433
+ * Whether a list of allowed origins is used to control SDK execution in browser extension contexts. When enabled, the SDK will check if the current origin matches the allowed origins list before running.
434
+ */
435
+ use_allowed_tracking_origins?: boolean;
436
+ /**
437
+ * The version of the SDK that is running.
438
+ */
439
+ sdk_version?: string;
440
+ /**
441
+ * The source of the SDK, e.g., 'browser', 'ios', 'android', 'flutter', 'react-native', 'unity', 'kotlin-multiplatform'.
442
+ */
443
+ source?: string;
444
+ /**
445
+ * The variant of the SDK build (e.g., standard, lite, etc.).
446
+ */
447
+ variant?: string;
448
+ /**
449
+ * The id of the remote configuration
450
+ */
451
+ remote_configuration_id?: string;
452
+ /**
453
+ * Whether a proxy is used for remote configuration
454
+ */
455
+ use_remote_configuration_proxy?: boolean;
456
+ /**
457
+ * The percentage of sessions with Profiling enabled
458
+ */
459
+ profiling_sample_rate?: number;
460
+ /**
461
+ * Whether trace baggage is propagated to child spans
462
+ */
463
+ propagate_trace_baggage?: boolean;
464
+ /**
465
+ * Whether the beta encode cookie options is enabled
466
+ */
467
+ beta_encode_cookie_options?: boolean;
468
+ [k: string]: unknown;
469
+ };
470
+ [k: string]: unknown;
471
+ };
472
+ [k: string]: unknown;
473
+ };
474
+ /**
475
+ * Schema of all properties of a telemetry usage event
476
+ */
477
+ export type TelemetryUsageEvent = CommonTelemetryProperties & {
478
+ /**
479
+ * The telemetry usage information
480
+ */
481
+ telemetry: {
482
+ /**
483
+ * Telemetry type
484
+ */
485
+ type: 'usage';
486
+ usage: TelemetryCommonFeaturesUsage | TelemetryBrowserFeaturesUsage | TelemetryMobileFeaturesUsage;
487
+ [k: string]: unknown;
488
+ };
489
+ [k: string]: unknown;
490
+ };
491
+ /**
492
+ * Schema of features usage common across SDKs
493
+ */
494
+ export type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation | AddOperationStepVital;
495
+ /**
496
+ * Schema of browser specific features usage
497
+ */
498
+ export type TelemetryBrowserFeaturesUsage = StartSessionReplayRecording | StartDurationVital | StopDurationVital | AddDurationVital;
499
+ /**
500
+ * Schema of mobile specific features usage
501
+ */
502
+ export type TelemetryMobileFeaturesUsage = AddViewLoadingTime;
503
+ /**
504
+ * Schema of common properties of Telemetry events
505
+ */
506
+ export interface CommonTelemetryProperties {
507
+ /**
508
+ * Internal properties
509
+ */
510
+ _oo: {
511
+ /**
512
+ * Version of the RUM event format
513
+ */
514
+ readonly format_version: 2;
515
+ [k: string]: unknown;
516
+ };
517
+ /**
518
+ * Telemetry event type. Should specify telemetry only.
519
+ */
520
+ readonly type: 'telemetry';
521
+ /**
522
+ * Start of the event in ms from epoch
523
+ */
524
+ date: number;
525
+ /**
526
+ * The SDK generating the telemetry event
527
+ */
528
+ service: string;
529
+ /**
530
+ * The source of this event
531
+ */
532
+ readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity' | 'kotlin-multiplatform';
533
+ /**
534
+ * The version of the SDK generating the telemetry event
535
+ */
536
+ version: string;
537
+ /**
538
+ * Application properties
539
+ */
540
+ readonly application?: {
541
+ /**
542
+ * UUID of the application
543
+ */
544
+ id: string;
545
+ [k: string]: unknown;
546
+ };
547
+ /**
548
+ * Session properties
549
+ */
550
+ session?: {
551
+ /**
552
+ * UUID of the session
553
+ */
554
+ id: string;
555
+ [k: string]: unknown;
556
+ };
557
+ /**
558
+ * View properties
559
+ */
560
+ view?: {
561
+ /**
562
+ * UUID of the view
563
+ */
564
+ id: string;
565
+ [k: string]: unknown;
566
+ };
567
+ /**
568
+ * Action properties
569
+ */
570
+ action?: {
571
+ /**
572
+ * UUID of the action
573
+ */
574
+ id: string;
575
+ [k: string]: unknown;
576
+ };
577
+ /**
578
+ * The actual percentage of telemetry usage per event
579
+ */
580
+ effective_sample_rate?: number;
581
+ /**
582
+ * Enabled experimental features
583
+ */
584
+ readonly experimental_features?: string[];
585
+ telemetry?: {
586
+ /**
587
+ * Device properties
588
+ */
589
+ device?: {
590
+ /**
591
+ * Architecture of the device
592
+ */
593
+ architecture?: string;
594
+ /**
595
+ * Brand of the device
596
+ */
597
+ brand?: string;
598
+ /**
599
+ * Model of the device
600
+ */
601
+ model?: string;
602
+ [k: string]: unknown;
603
+ };
604
+ /**
605
+ * OS properties
606
+ */
607
+ os?: {
608
+ /**
609
+ * Build of the OS
610
+ */
611
+ build?: string;
612
+ /**
613
+ * Name of the OS
614
+ */
615
+ name?: string;
616
+ /**
617
+ * Version of the OS
618
+ */
619
+ version?: string;
620
+ [k: string]: unknown;
621
+ };
622
+ [k: string]: unknown;
623
+ };
624
+ [k: string]: unknown;
625
+ }
626
+ export interface SetTrackingConsent {
627
+ /**
628
+ * setTrackingConsent API
629
+ */
630
+ feature: 'set-tracking-consent';
631
+ /**
632
+ * The tracking consent value set by the user
633
+ */
634
+ tracking_consent: 'granted' | 'not-granted' | 'pending';
635
+ [k: string]: unknown;
636
+ }
637
+ export interface StopSession {
638
+ /**
639
+ * stopSession API
640
+ */
641
+ feature: 'stop-session';
642
+ [k: string]: unknown;
643
+ }
644
+ export interface StartView {
645
+ /**
646
+ * startView API
647
+ */
648
+ feature: 'start-view';
649
+ [k: string]: unknown;
650
+ }
651
+ export interface SetViewContext {
652
+ /**
653
+ * setViewContext API
654
+ */
655
+ feature: 'set-view-context';
656
+ [k: string]: unknown;
657
+ }
658
+ export interface SetViewContextProperty {
659
+ /**
660
+ * setViewContextProperty API
661
+ */
662
+ feature: 'set-view-context-property';
663
+ [k: string]: unknown;
664
+ }
665
+ export interface SetViewName {
666
+ /**
667
+ * setViewName API
668
+ */
669
+ feature: 'set-view-name';
670
+ [k: string]: unknown;
671
+ }
672
+ export interface GetViewContext {
673
+ /**
674
+ * getViewContext API
675
+ */
676
+ feature: 'get-view-context';
677
+ [k: string]: unknown;
678
+ }
679
+ export interface AddAction {
680
+ /**
681
+ * addAction API
682
+ */
683
+ feature: 'add-action';
684
+ [k: string]: unknown;
685
+ }
686
+ export interface AddError {
687
+ /**
688
+ * addError API
689
+ */
690
+ feature: 'add-error';
691
+ [k: string]: unknown;
692
+ }
693
+ export interface GetGlobalContext {
694
+ /**
695
+ * getGlobalContext API
696
+ */
697
+ feature: 'get-global-context';
698
+ [k: string]: unknown;
699
+ }
700
+ export interface SetGlobalContext {
701
+ /**
702
+ * setGlobalContext, addAttribute APIs
703
+ */
704
+ feature: 'set-global-context';
705
+ [k: string]: unknown;
706
+ }
707
+ export interface SetGlobalContextProperty {
708
+ /**
709
+ * setGlobalContextProperty API
710
+ */
711
+ feature: 'set-global-context-property';
712
+ [k: string]: unknown;
713
+ }
714
+ export interface RemoveGlobalContextProperty {
715
+ /**
716
+ * removeGlobalContextProperty API
717
+ */
718
+ feature: 'remove-global-context-property';
719
+ [k: string]: unknown;
720
+ }
721
+ export interface ClearGlobalContext {
722
+ /**
723
+ * clearGlobalContext API
724
+ */
725
+ feature: 'clear-global-context';
726
+ [k: string]: unknown;
727
+ }
728
+ export interface GetUser {
729
+ /**
730
+ * getUser API
731
+ */
732
+ feature: 'get-user';
733
+ [k: string]: unknown;
734
+ }
735
+ export interface SetUser {
736
+ /**
737
+ * setUser, setUserInfo APIs
738
+ */
739
+ feature: 'set-user';
740
+ [k: string]: unknown;
741
+ }
742
+ export interface SetUserProperty {
743
+ /**
744
+ * setUserProperty API
745
+ */
746
+ feature: 'set-user-property';
747
+ [k: string]: unknown;
748
+ }
749
+ export interface RemoveUserProperty {
750
+ /**
751
+ * removeUserProperty API
752
+ */
753
+ feature: 'remove-user-property';
754
+ [k: string]: unknown;
755
+ }
756
+ export interface ClearUser {
757
+ /**
758
+ * clearUser API
759
+ */
760
+ feature: 'clear-user';
761
+ [k: string]: unknown;
762
+ }
763
+ export interface GetAccount {
764
+ /**
765
+ * getAccount API
766
+ */
767
+ feature: 'get-account';
768
+ [k: string]: unknown;
769
+ }
770
+ export interface SetAccount {
771
+ /**
772
+ * setAccount, setAccountProperty APIs
773
+ */
774
+ feature: 'set-account';
775
+ [k: string]: unknown;
776
+ }
777
+ export interface SetAccountProperty {
778
+ /**
779
+ * setAccountProperty API
780
+ */
781
+ feature: 'set-account-property';
782
+ [k: string]: unknown;
783
+ }
784
+ export interface RemoveAccountProperty {
785
+ /**
786
+ * removeAccountProperty API
787
+ */
788
+ feature: 'remove-account-property';
789
+ [k: string]: unknown;
790
+ }
791
+ export interface ClearAccount {
792
+ /**
793
+ * clearAccount API
794
+ */
795
+ feature: 'clear-account';
796
+ [k: string]: unknown;
797
+ }
798
+ export interface AddFeatureFlagEvaluation {
799
+ /**
800
+ * addFeatureFlagEvaluation API
801
+ */
802
+ feature: 'add-feature-flag-evaluation';
803
+ [k: string]: unknown;
804
+ }
805
+ export interface AddOperationStepVital {
806
+ /**
807
+ * addOperationStepVital API
808
+ */
809
+ feature: 'add-operation-step-vital';
810
+ /**
811
+ * Operations step type
812
+ */
813
+ action_type: 'start' | 'succeed' | 'fail';
814
+ [k: string]: unknown;
815
+ }
816
+ export interface StartSessionReplayRecording {
817
+ /**
818
+ * startSessionReplayRecording API
819
+ */
820
+ feature: 'start-session-replay-recording';
821
+ /**
822
+ * Whether the recording is allowed to start even on sessions sampled out of replay
823
+ */
824
+ is_forced?: boolean;
825
+ [k: string]: unknown;
826
+ }
827
+ export interface StartDurationVital {
828
+ /**
829
+ * startDurationVital API
830
+ */
831
+ feature: 'start-duration-vital';
832
+ [k: string]: unknown;
833
+ }
834
+ export interface StopDurationVital {
835
+ /**
836
+ * stopDurationVital API
837
+ */
838
+ feature: 'stop-duration-vital';
839
+ [k: string]: unknown;
840
+ }
841
+ export interface AddDurationVital {
842
+ /**
843
+ * addDurationVital API
844
+ */
845
+ feature: 'add-duration-vital';
846
+ [k: string]: unknown;
847
+ }
848
+ export interface AddViewLoadingTime {
849
+ /**
850
+ * addViewLoadingTime API
851
+ */
852
+ feature: 'addViewLoadingTime';
853
+ /**
854
+ * Whether the view is not available
855
+ */
856
+ no_view: boolean;
857
+ /**
858
+ * Whether the available view is not active
859
+ */
860
+ no_active_view: boolean;
861
+ /**
862
+ * Whether the loading time was overwritten
863
+ */
864
+ overwritten: boolean;
865
+ [k: string]: unknown;
866
+ }