@sentry/react-native 5.29.0 → 6.0.0-alpha.0

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 (280) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/dist/js/client.d.ts +5 -9
  3. package/dist/js/client.d.ts.map +1 -1
  4. package/dist/js/client.js +11 -42
  5. package/dist/js/client.js.map +1 -1
  6. package/dist/js/index.d.ts +5 -10
  7. package/dist/js/index.d.ts.map +1 -1
  8. package/dist/js/index.js +4 -21
  9. package/dist/js/index.js.map +1 -1
  10. package/dist/js/integrations/debugsymbolicator.d.ts +2 -8
  11. package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
  12. package/dist/js/integrations/debugsymbolicator.js +1 -9
  13. package/dist/js/integrations/debugsymbolicator.js.map +1 -1
  14. package/dist/js/integrations/default.d.ts.map +1 -1
  15. package/dist/js/integrations/default.js +18 -7
  16. package/dist/js/integrations/default.js.map +1 -1
  17. package/dist/js/integrations/devicecontext.d.ts +2 -8
  18. package/dist/js/integrations/devicecontext.d.ts.map +1 -1
  19. package/dist/js/integrations/devicecontext.js +0 -9
  20. package/dist/js/integrations/devicecontext.js.map +1 -1
  21. package/dist/js/integrations/eventorigin.d.ts +2 -8
  22. package/dist/js/integrations/eventorigin.d.ts.map +1 -1
  23. package/dist/js/integrations/eventorigin.js +0 -8
  24. package/dist/js/integrations/eventorigin.js.map +1 -1
  25. package/dist/js/integrations/expocontext.d.ts +2 -8
  26. package/dist/js/integrations/expocontext.d.ts.map +1 -1
  27. package/dist/js/integrations/expocontext.js +0 -8
  28. package/dist/js/integrations/expocontext.js.map +1 -1
  29. package/dist/js/integrations/exports.d.ts +4 -0
  30. package/dist/js/integrations/exports.d.ts.map +1 -1
  31. package/dist/js/integrations/exports.js +4 -0
  32. package/dist/js/integrations/exports.js.map +1 -1
  33. package/dist/js/integrations/modulesloader.d.ts +2 -8
  34. package/dist/js/integrations/modulesloader.d.ts.map +1 -1
  35. package/dist/js/integrations/modulesloader.js +0 -8
  36. package/dist/js/integrations/modulesloader.js.map +1 -1
  37. package/dist/js/integrations/nativelinkederrors.d.ts +2 -8
  38. package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
  39. package/dist/js/integrations/nativelinkederrors.js +0 -8
  40. package/dist/js/integrations/nativelinkederrors.js.map +1 -1
  41. package/dist/js/integrations/reactnativeerrorhandlers.d.ts +2 -8
  42. package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
  43. package/dist/js/integrations/reactnativeerrorhandlers.js +1 -8
  44. package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
  45. package/dist/js/integrations/reactnativeinfo.d.ts +2 -8
  46. package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
  47. package/dist/js/integrations/reactnativeinfo.js +0 -8
  48. package/dist/js/integrations/reactnativeinfo.js.map +1 -1
  49. package/dist/js/integrations/release.d.ts +2 -8
  50. package/dist/js/integrations/release.d.ts.map +1 -1
  51. package/dist/js/integrations/release.js +0 -8
  52. package/dist/js/integrations/release.js.map +1 -1
  53. package/dist/js/integrations/rewriteframes.js +1 -1
  54. package/dist/js/integrations/rewriteframes.js.map +1 -1
  55. package/dist/js/integrations/screenshot.d.ts +2 -8
  56. package/dist/js/integrations/screenshot.d.ts.map +1 -1
  57. package/dist/js/integrations/screenshot.js +2 -11
  58. package/dist/js/integrations/screenshot.js.map +1 -1
  59. package/dist/js/integrations/sdkinfo.d.ts +2 -8
  60. package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
  61. package/dist/js/integrations/sdkinfo.js +0 -8
  62. package/dist/js/integrations/sdkinfo.js.map +1 -1
  63. package/dist/js/integrations/spotlight.d.ts +2 -10
  64. package/dist/js/integrations/spotlight.d.ts.map +1 -1
  65. package/dist/js/integrations/spotlight.js +1 -10
  66. package/dist/js/integrations/spotlight.js.map +1 -1
  67. package/dist/js/integrations/viewhierarchy.d.ts +2 -8
  68. package/dist/js/integrations/viewhierarchy.d.ts.map +1 -1
  69. package/dist/js/integrations/viewhierarchy.js +0 -8
  70. package/dist/js/integrations/viewhierarchy.js.map +1 -1
  71. package/dist/js/options.d.ts +43 -0
  72. package/dist/js/options.d.ts.map +1 -1
  73. package/dist/js/options.js.map +1 -1
  74. package/dist/js/profiling/cache.d.ts +1 -1
  75. package/dist/js/profiling/hermes.d.ts +1 -1
  76. package/dist/js/profiling/hermes.d.ts.map +1 -1
  77. package/dist/js/profiling/integration.d.ts +1 -7
  78. package/dist/js/profiling/integration.d.ts.map +1 -1
  79. package/dist/js/profiling/integration.js +39 -25
  80. package/dist/js/profiling/integration.js.map +1 -1
  81. package/dist/js/profiling/utils.js +2 -1
  82. package/dist/js/profiling/utils.js.map +1 -1
  83. package/dist/js/replay/mobilereplay.d.ts +2 -2
  84. package/dist/js/replay/mobilereplay.d.ts.map +1 -1
  85. package/dist/js/replay/mobilereplay.js.map +1 -1
  86. package/dist/js/scopeSync.d.ts +6 -0
  87. package/dist/js/scopeSync.d.ts.map +1 -0
  88. package/dist/js/scopeSync.js +60 -0
  89. package/dist/js/scopeSync.js.map +1 -0
  90. package/dist/js/sdk.d.ts +1 -20
  91. package/dist/js/sdk.d.ts.map +1 -1
  92. package/dist/js/sdk.js +20 -53
  93. package/dist/js/sdk.js.map +1 -1
  94. package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
  95. package/dist/js/touchevents.d.ts +0 -1
  96. package/dist/js/touchevents.d.ts.map +1 -1
  97. package/dist/js/touchevents.js +5 -9
  98. package/dist/js/touchevents.js.map +1 -1
  99. package/dist/js/tracing/gesturetracing.d.ts +1 -6
  100. package/dist/js/tracing/gesturetracing.d.ts.map +1 -1
  101. package/dist/js/tracing/gesturetracing.js +8 -12
  102. package/dist/js/tracing/gesturetracing.js.map +1 -1
  103. package/dist/js/tracing/index.d.ts +6 -7
  104. package/dist/js/tracing/index.d.ts.map +1 -1
  105. package/dist/js/tracing/index.js +4 -7
  106. package/dist/js/tracing/index.js.map +1 -1
  107. package/dist/js/tracing/integrations/appStart.d.ts +39 -0
  108. package/dist/js/tracing/integrations/appStart.d.ts.map +1 -0
  109. package/dist/js/tracing/integrations/appStart.js +301 -0
  110. package/dist/js/tracing/integrations/appStart.js.map +1 -0
  111. package/dist/js/tracing/integrations/nativeFrames.d.ts +20 -0
  112. package/dist/js/tracing/integrations/nativeFrames.d.ts.map +1 -0
  113. package/dist/js/tracing/integrations/nativeFrames.js +256 -0
  114. package/dist/js/tracing/integrations/nativeFrames.js.map +1 -0
  115. package/dist/js/tracing/integrations/stalltracking.d.ts +31 -0
  116. package/dist/js/tracing/integrations/stalltracking.d.ts.map +1 -0
  117. package/dist/js/tracing/integrations/stalltracking.js +236 -0
  118. package/dist/js/tracing/integrations/stalltracking.js.map +1 -0
  119. package/dist/js/tracing/integrations/userInteraction.d.ts +11 -0
  120. package/dist/js/tracing/integrations/userInteraction.d.ts.map +1 -0
  121. package/dist/js/tracing/integrations/userInteraction.js +70 -0
  122. package/dist/js/tracing/integrations/userInteraction.js.map +1 -0
  123. package/dist/js/tracing/onSpanEndUtils.d.ts +17 -0
  124. package/dist/js/tracing/onSpanEndUtils.d.ts.map +1 -0
  125. package/dist/js/tracing/onSpanEndUtils.js +112 -0
  126. package/dist/js/tracing/onSpanEndUtils.js.map +1 -0
  127. package/dist/js/tracing/origin.d.ts +2 -0
  128. package/dist/js/tracing/origin.d.ts.map +1 -0
  129. package/dist/js/tracing/origin.js +2 -0
  130. package/dist/js/tracing/origin.js.map +1 -0
  131. package/dist/js/tracing/reactnativenavigation.d.ts +21 -39
  132. package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
  133. package/dist/js/tracing/reactnativenavigation.js +98 -87
  134. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  135. package/dist/js/tracing/reactnativeprofiler.d.ts.map +1 -1
  136. package/dist/js/tracing/reactnativeprofiler.js +6 -13
  137. package/dist/js/tracing/reactnativeprofiler.js.map +1 -1
  138. package/dist/js/tracing/reactnativetracing.d.ts +44 -160
  139. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  140. package/dist/js/tracing/reactnativetracing.js +51 -481
  141. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  142. package/dist/js/tracing/reactnavigation.d.ts +18 -63
  143. package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
  144. package/dist/js/tracing/reactnavigation.js +200 -205
  145. package/dist/js/tracing/reactnavigation.js.map +1 -1
  146. package/dist/js/tracing/semanticAttributes.d.ts +12 -0
  147. package/dist/js/tracing/semanticAttributes.d.ts.map +1 -0
  148. package/dist/js/tracing/semanticAttributes.js +12 -0
  149. package/dist/js/tracing/semanticAttributes.js.map +1 -0
  150. package/dist/js/tracing/span.d.ts +52 -0
  151. package/dist/js/tracing/span.d.ts.map +1 -0
  152. package/dist/js/tracing/span.js +82 -0
  153. package/dist/js/tracing/span.js.map +1 -0
  154. package/dist/js/tracing/timetodisplay.d.ts.map +1 -1
  155. package/dist/js/tracing/timetodisplay.js +14 -29
  156. package/dist/js/tracing/timetodisplay.js.map +1 -1
  157. package/dist/js/tracing/types.d.ts +2 -9
  158. package/dist/js/tracing/types.d.ts.map +1 -1
  159. package/dist/js/tracing/types.js.map +1 -1
  160. package/dist/js/tracing/utils.d.ts +19 -14
  161. package/dist/js/tracing/utils.d.ts.map +1 -1
  162. package/dist/js/tracing/utils.js +38 -52
  163. package/dist/js/tracing/utils.js.map +1 -1
  164. package/dist/js/transports/encodePolyfill.d.ts +3 -0
  165. package/dist/js/transports/encodePolyfill.d.ts.map +1 -0
  166. package/dist/js/transports/encodePolyfill.js +13 -0
  167. package/dist/js/transports/encodePolyfill.js.map +1 -0
  168. package/dist/js/transports/native.d.ts +2 -2
  169. package/dist/js/transports/native.d.ts.map +1 -1
  170. package/dist/js/transports/native.js +2 -1
  171. package/dist/js/transports/native.js.map +1 -1
  172. package/dist/js/utils/fill.d.ts +7 -0
  173. package/dist/js/utils/fill.d.ts.map +1 -0
  174. package/dist/js/utils/fill.js +9 -0
  175. package/dist/js/utils/fill.js.map +1 -0
  176. package/dist/js/utils/span.d.ts +19 -0
  177. package/dist/js/utils/span.d.ts.map +1 -0
  178. package/dist/js/utils/span.js +29 -0
  179. package/dist/js/utils/span.js.map +1 -0
  180. package/dist/js/vendor/react-native/index.d.ts +1 -1
  181. package/dist/js/vendor/react-native/index.d.ts.map +1 -1
  182. package/dist/js/vendor/react-native/index.js.map +1 -1
  183. package/dist/js/version.d.ts +1 -1
  184. package/dist/js/version.d.ts.map +1 -1
  185. package/dist/js/version.js +1 -1
  186. package/dist/js/version.js.map +1 -1
  187. package/dist/js/wrapper.d.ts.map +1 -1
  188. package/dist/js/wrapper.js +1 -0
  189. package/dist/js/wrapper.js.map +1 -1
  190. package/package.json +10 -12
  191. package/ts3.8/dist/js/client.d.ts +5 -9
  192. package/ts3.8/dist/js/index.d.ts +5 -10
  193. package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +2 -8
  194. package/ts3.8/dist/js/integrations/devicecontext.d.ts +2 -8
  195. package/ts3.8/dist/js/integrations/eventorigin.d.ts +2 -8
  196. package/ts3.8/dist/js/integrations/expocontext.d.ts +2 -8
  197. package/ts3.8/dist/js/integrations/exports.d.ts +4 -0
  198. package/ts3.8/dist/js/integrations/modulesloader.d.ts +2 -8
  199. package/ts3.8/dist/js/integrations/nativelinkederrors.d.ts +2 -8
  200. package/ts3.8/dist/js/integrations/reactnativeerrorhandlers.d.ts +2 -8
  201. package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +2 -8
  202. package/ts3.8/dist/js/integrations/release.d.ts +2 -8
  203. package/ts3.8/dist/js/integrations/screenshot.d.ts +2 -8
  204. package/ts3.8/dist/js/integrations/sdkinfo.d.ts +2 -8
  205. package/ts3.8/dist/js/integrations/spotlight.d.ts +2 -10
  206. package/ts3.8/dist/js/integrations/viewhierarchy.d.ts +2 -8
  207. package/ts3.8/dist/js/options.d.ts +43 -0
  208. package/ts3.8/dist/js/profiling/cache.d.ts +1 -1
  209. package/ts3.8/dist/js/profiling/hermes.d.ts +1 -1
  210. package/ts3.8/dist/js/profiling/integration.d.ts +1 -7
  211. package/ts3.8/dist/js/replay/mobilereplay.d.ts +2 -2
  212. package/ts3.8/dist/js/scopeSync.d.ts +6 -0
  213. package/ts3.8/dist/js/sdk.d.ts +1 -20
  214. package/ts3.8/dist/js/touchevents.d.ts +0 -1
  215. package/ts3.8/dist/js/tracing/gesturetracing.d.ts +1 -6
  216. package/ts3.8/dist/js/tracing/index.d.ts +6 -7
  217. package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +39 -0
  218. package/ts3.8/dist/js/tracing/integrations/nativeFrames.d.ts +20 -0
  219. package/ts3.8/dist/js/tracing/integrations/stalltracking.d.ts +31 -0
  220. package/ts3.8/dist/js/tracing/integrations/userInteraction.d.ts +11 -0
  221. package/ts3.8/dist/js/tracing/onSpanEndUtils.d.ts +17 -0
  222. package/ts3.8/dist/js/tracing/origin.d.ts +2 -0
  223. package/ts3.8/dist/js/tracing/reactnativenavigation.d.ts +21 -39
  224. package/ts3.8/dist/js/tracing/reactnativetracing.d.ts +44 -160
  225. package/ts3.8/dist/js/tracing/reactnavigation.d.ts +18 -63
  226. package/ts3.8/dist/js/tracing/semanticAttributes.d.ts +12 -0
  227. package/ts3.8/dist/js/tracing/span.d.ts +52 -0
  228. package/ts3.8/dist/js/tracing/types.d.ts +2 -9
  229. package/ts3.8/dist/js/tracing/utils.d.ts +19 -14
  230. package/ts3.8/dist/js/transports/encodePolyfill.d.ts +3 -0
  231. package/ts3.8/dist/js/transports/native.d.ts +2 -2
  232. package/ts3.8/dist/js/utils/fill.d.ts +7 -0
  233. package/ts3.8/dist/js/utils/span.d.ts +19 -0
  234. package/ts3.8/dist/js/vendor/react-native/index.d.ts +1 -1
  235. package/ts3.8/dist/js/version.d.ts +1 -1
  236. package/dist/js/integrations/index.d.ts +0 -16
  237. package/dist/js/integrations/index.d.ts.map +0 -1
  238. package/dist/js/integrations/index.js +0 -17
  239. package/dist/js/integrations/index.js.map +0 -1
  240. package/dist/js/scope.d.ts +0 -54
  241. package/dist/js/scope.d.ts.map +0 -1
  242. package/dist/js/scope.js +0 -89
  243. package/dist/js/scope.js.map +0 -1
  244. package/dist/js/tracing/addTracingExtensions.d.ts +0 -8
  245. package/dist/js/tracing/addTracingExtensions.d.ts.map +0 -1
  246. package/dist/js/tracing/addTracingExtensions.js +0 -66
  247. package/dist/js/tracing/addTracingExtensions.js.map +0 -1
  248. package/dist/js/tracing/nativeframes.d.ts +0 -60
  249. package/dist/js/tracing/nativeframes.d.ts.map +0 -1
  250. package/dist/js/tracing/nativeframes.js +0 -210
  251. package/dist/js/tracing/nativeframes.js.map +0 -1
  252. package/dist/js/tracing/reactnavigationv4.d.ts +0 -92
  253. package/dist/js/tracing/reactnavigationv4.d.ts.map +0 -1
  254. package/dist/js/tracing/reactnavigationv4.js +0 -229
  255. package/dist/js/tracing/reactnavigationv4.js.map +0 -1
  256. package/dist/js/tracing/routingInstrumentation.d.ts +0 -52
  257. package/dist/js/tracing/routingInstrumentation.d.ts.map +0 -1
  258. package/dist/js/tracing/routingInstrumentation.js +0 -36
  259. package/dist/js/tracing/routingInstrumentation.js.map +0 -1
  260. package/dist/js/tracing/stalltracking.d.ts +0 -99
  261. package/dist/js/tracing/stalltracking.d.ts.map +0 -1
  262. package/dist/js/tracing/stalltracking.js +0 -286
  263. package/dist/js/tracing/stalltracking.js.map +0 -1
  264. package/dist/js/tracing/transaction.d.ts +0 -11
  265. package/dist/js/tracing/transaction.d.ts.map +0 -1
  266. package/dist/js/tracing/transaction.js +0 -37
  267. package/dist/js/tracing/transaction.js.map +0 -1
  268. package/dist/js/transports/TextEncoder.d.ts +0 -3
  269. package/dist/js/transports/TextEncoder.d.ts.map +0 -1
  270. package/dist/js/transports/TextEncoder.js +0 -12
  271. package/dist/js/transports/TextEncoder.js.map +0 -1
  272. package/ts3.8/dist/js/integrations/index.d.ts +0 -16
  273. package/ts3.8/dist/js/scope.d.ts +0 -54
  274. package/ts3.8/dist/js/tracing/addTracingExtensions.d.ts +0 -8
  275. package/ts3.8/dist/js/tracing/nativeframes.d.ts +0 -60
  276. package/ts3.8/dist/js/tracing/reactnavigationv4.d.ts +0 -92
  277. package/ts3.8/dist/js/tracing/routingInstrumentation.d.ts +0 -52
  278. package/ts3.8/dist/js/tracing/stalltracking.d.ts +0 -99
  279. package/ts3.8/dist/js/tracing/transaction.d.ts +0 -11
  280. package/ts3.8/dist/js/transports/TextEncoder.d.ts +0 -3
@@ -1,23 +1,35 @@
1
+ import type { Integration } from '@sentry/types';
1
2
  import type { EmitterSubscription } from '../utils/rnlibrariesinterface';
2
- import type { OnConfirmRoute, TransactionCreator } from './routingInstrumentation';
3
- import { InternalRoutingInstrumentation } from './routingInstrumentation';
4
- import type { BeforeNavigate } from './types';
3
+ export declare const INTEGRATION_NAME = "ReactNativeNavigation";
5
4
  interface ReactNativeNavigationOptions {
6
5
  /**
7
6
  * How long the instrumentation will wait for the route to mount after a change has been initiated,
8
7
  * before the transaction is discarded.
9
- * Time is in ms.
10
8
  *
11
- * Default: 1000
9
+ * @default 1_000 (ms)
12
10
  */
13
- routeChangeTimeoutMs: number;
11
+ routeChangeTimeoutMs?: number;
14
12
  /**
15
13
  * Instrumentation will create a transaction on tab change.
16
14
  * By default only navigation commands create transactions.
17
15
  *
18
- * Default: true
16
+ * @default false
19
17
  */
20
- enableTabsInstrumentation: boolean;
18
+ enableTabsInstrumentation?: boolean;
19
+ /**
20
+ * Does not sample transactions that are from routes that have been seen any more and don't have any spans.
21
+ * This removes a lot of the clutter as most back navigation transactions are now ignored.
22
+ *
23
+ * @default true
24
+ */
25
+ ignoreEmptyBackNavigationTransactions?: boolean;
26
+ /** The React Native Navigation `NavigationDelegate`.
27
+ *
28
+ * ```js
29
+ * import { Navigation } from 'react-native-navigation';
30
+ * ```
31
+ */
32
+ navigation: unknown;
21
33
  }
22
34
  interface ComponentEvent {
23
35
  componentId: string;
@@ -50,36 +62,6 @@ export interface NavigationDelegate {
50
62
  * - `_onComponentWillAppear` is then called AFTER the state change happens due to a dispatch and sets the route context onto the active transaction.
51
63
  * - If `_onComponentWillAppear` isn't called within `options.routeChangeTimeoutMs` of the dispatch, then the transaction is not sampled and finished.
52
64
  */
53
- export declare class ReactNativeNavigationInstrumentation extends InternalRoutingInstrumentation {
54
- static instrumentationName: string;
55
- readonly name: string;
56
- private _navigation;
57
- private _options;
58
- private _prevComponentEvent;
59
- private _latestTransaction?;
60
- private _recentComponentIds;
61
- private _stateChangeTimeout?;
62
- constructor(
63
- /** The react native navigation `NavigationDelegate`. This is usually the import named `Navigation`. */
64
- navigation: unknown, options?: Partial<ReactNativeNavigationOptions>);
65
- /**
66
- * Registers the event listeners for React Native Navigation
67
- */
68
- registerRoutingInstrumentation(listener: TransactionCreator, beforeNavigate: BeforeNavigate, onConfirmRoute: OnConfirmRoute): void;
69
- /**
70
- * To be called when a navigation is initiated. (Command, BottomTabSelected, etc.)
71
- */
72
- private _onNavigation;
73
- /**
74
- * To be called AFTER the state has been changed to populate the transaction with the current route.
75
- */
76
- private _onComponentWillAppear;
77
- /** Creates final transaction context before confirmation */
78
- private _prepareFinalContext;
79
- /** Cancels the latest transaction so it does not get sent to Sentry. */
80
- private _discardLatestTransaction;
81
- /** Cancels the latest transaction so it does not get sent to Sentry. */
82
- private _clearStateChangeTimeout;
83
- }
65
+ export declare const reactNativeNavigationIntegration: ({ navigation: optionsNavigation, routeChangeTimeoutMs, enableTabsInstrumentation, ignoreEmptyBackNavigationTransactions, }: ReactNativeNavigationOptions) => Integration;
84
66
  export {};
85
67
  //# sourceMappingURL=reactnativenavigation.d.ts.map
@@ -1,183 +1,67 @@
1
- import type { RequestInstrumentationOptions } from '@sentry/browser';
2
- import type { Hub, Transaction } from '@sentry/core';
3
- import type { EventProcessor, Integration, Transaction as TransactionType } from '@sentry/types';
4
- import type { RoutingInstrumentationInstance } from '../tracing/routingInstrumentation';
5
- import { NativeFramesInstrumentation } from './nativeframes';
6
- import { StallTrackingInstrumentation } from './stalltracking';
7
- import type { BeforeNavigate } from './types';
8
- export interface ReactNativeTracingOptions extends RequestInstrumentationOptions {
1
+ import type { Client, Integration, StartSpanOptions } from '@sentry/types';
2
+ export declare const INTEGRATION_NAME = "ReactNativeTracing";
3
+ export interface ReactNativeTracingOptions {
9
4
  /**
10
- * @deprecated Replaced by idleTimeoutMs
11
- */
12
- idleTimeout: number;
13
- /**
14
- * @deprecated Replaced by maxTransactionDurationMs
15
- */
16
- maxTransactionDuration: number;
17
- /**
18
- * The time to wait in ms until the transaction will be finished. The transaction will use the end timestamp of
19
- * the last finished span as the endtime for the transaction.
20
- * Time is in ms.
5
+ * The time that has to pass without any span being created.
6
+ * If this time is exceeded, the idle span will finish.
21
7
  *
22
- * Default: 1000
8
+ * @default 1_000 (ms)
23
9
  */
24
- idleTimeoutMs: number;
10
+ idleTimeoutMs?: number;
25
11
  /**
26
- * The maximum duration (transaction duration + idle timeout) of a transaction
27
- * before it will be marked as "deadline_exceeded".
28
- * If you never want to mark a transaction set it to 0.
29
- * Time is in ms.
12
+ * The max. time an idle span may run.
13
+ * If this time is exceeded, the idle span will finish no matter what.
30
14
  *
31
- * Default: 600000
15
+ * @default 60_0000 (ms)
32
16
  */
33
- finalTimeoutMs: number;
17
+ finalTimeoutMs?: number;
34
18
  /**
35
- * The routing instrumentation to be used with the tracing integration.
36
- * There is no routing instrumentation if nothing is passed.
37
- */
38
- routingInstrumentation?: RoutingInstrumentationInstance;
39
- /**
40
- * Does not sample transactions that are from routes that have been seen any more and don't have any spans.
41
- * This removes a lot of the clutter as most back navigation transactions are now ignored.
19
+ * Flag to disable patching all together for fetch requests.
42
20
  *
43
- * Default: true
21
+ * @default true
44
22
  */
45
- ignoreEmptyBackNavigationTransactions: boolean;
23
+ traceFetch: boolean;
46
24
  /**
47
- * beforeNavigate is called before a navigation transaction is created and allows users to modify transaction
48
- * context data, or drop the transaction entirely (by setting `sampled = false` in the context).
49
- *
50
- * @param context: The context data which will be passed to `startTransaction` by default
25
+ * Flag to disable patching all together for xhr requests.
51
26
  *
52
- * @returns A (potentially) modified context object, with `sampled = false` if the transaction should be dropped.
27
+ * @default true
53
28
  */
54
- beforeNavigate: BeforeNavigate;
29
+ traceXHR: boolean;
55
30
  /**
56
- * Track the app start time by adding measurements to the first route transaction. If there is no routing instrumentation
57
- * an app start transaction will be started.
31
+ * If true, Sentry will capture http timings and add them to the corresponding http spans.
58
32
  *
59
- * Default: true
33
+ * @default true
60
34
  */
61
- enableAppStartTracking: boolean;
35
+ enableHTTPTimings: boolean;
62
36
  /**
63
- * Track slow/frozen frames from the native layer and adds them as measurements to all transactions.
37
+ * A callback which is called before a span for a navigation is started.
38
+ * It receives the options passed to `startSpan`, and expects to return an updated options object.
64
39
  */
65
- enableNativeFramesTracking: boolean;
40
+ beforeStartSpan?: (options: StartSpanOptions) => StartSpanOptions;
66
41
  /**
67
- * Track when and how long the JS event loop stalls for. Adds stalls as measurements to all transactions.
68
- */
69
- enableStallTracking: boolean;
70
- /**
71
- * Trace User Interaction events like touch and gestures.
42
+ * This function will be called before creating a span for a request with the given url.
43
+ * Return false if you don't want a span for the given url.
44
+ *
45
+ * @default (url: string) => true
72
46
  */
73
- enableUserInteractionTracing: boolean;
47
+ shouldCreateSpanForRequest?(this: void, url: string): boolean;
74
48
  }
49
+ export declare const defaultReactNativeTracingOptions: ReactNativeTracingOptions;
50
+ export type ReactNativeTracingState = {
51
+ currentRoute: string | undefined;
52
+ };
53
+ export declare const reactNativeTracingIntegration: (options?: Partial<ReactNativeTracingOptions>) => Integration & {
54
+ options: ReactNativeTracingOptions;
55
+ state: ReactNativeTracingState;
56
+ setCurrentRoute: (route: string) => void;
57
+ };
58
+ export type ReactNativeTracingIntegration = ReturnType<typeof reactNativeTracingIntegration>;
75
59
  /**
76
- * Tracing integration for React Native.
60
+ * Returns the current React Native Tracing integration.
77
61
  */
78
- export declare class ReactNativeTracing implements Integration {
79
- /**
80
- * @inheritDoc
81
- */
82
- static id: string;
83
- /** We filter out App starts more than 60s */
84
- private static _maxAppStart;
85
- /** We filter out App starts which timestamp is 60s and more before the transaction start */
86
- private static _maxAppStartBeforeTransactionMs;
87
- /**
88
- * @inheritDoc
89
- */
90
- name: string;
91
- /** ReactNativeTracing options */
92
- options: ReactNativeTracingOptions;
93
- nativeFramesInstrumentation?: NativeFramesInstrumentation;
94
- stallTrackingInstrumentation?: StallTrackingInstrumentation;
95
- useAppStartWithProfiler: boolean;
96
- private _inflightInteractionTransaction?;
97
- private _getCurrentHub?;
98
- private _awaitingAppStartData?;
99
- private _appStartFinishTimestamp?;
100
- private _currentRoute?;
101
- private _hasSetTracePropagationTargets;
102
- private _hasSetTracingOrigins;
103
- private _currentViewName;
104
- private _firstConstructorCallTimestampMs;
105
- constructor(options?: Partial<ReactNativeTracingOptions>);
106
- /**
107
- * Registers routing and request instrumentation.
108
- */
109
- setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): Promise<void>;
110
- /**
111
- * To be called on a transaction start. Can have async methods
112
- */
113
- onTransactionStart(transaction: Transaction): void;
114
- /**
115
- * To be called on a transaction finish. Cannot have async methods.
116
- */
117
- onTransactionFinish(transaction: Transaction, endTimestamp?: number): void;
118
- /**
119
- * Called by the ReactNativeProfiler component on first component mount.
120
- */
121
- onAppStartFinish(endTimestamp: number): void;
122
- /**
123
- * Sets the root component first constructor call timestamp.
124
- */
125
- setRootComponentFirstConstructorCallTimestampMs(timestamp: number): void;
126
- /**
127
- * Starts a new transaction for a user interaction.
128
- * @param userInteractionId Consists of `op` representation UI Event and `elementId` unique element identifier on current screen.
129
- */
130
- startUserInteractionTransaction(userInteractionId: {
131
- elementId: string | undefined;
132
- op: string;
133
- }): TransactionType | undefined;
134
- /**
135
- * Enables or disables native frames tracking based on the `enableNativeFramesTracking` option.
136
- */
137
- private _enableNativeFramesTracking;
138
- /**
139
- * Sets the current view name into the app context.
140
- * @param event Le event.
141
- */
142
- private _getCurrentViewEventProcessor;
143
- /**
144
- * Returns the App Start Duration in Milliseconds. Also returns undefined if not able do
145
- * define the duration.
146
- */
147
- private _getAppStartDurationMilliseconds;
148
- /**
149
- * Instruments the app start measurements on the first route transaction.
150
- * Starts a route transaction if there isn't routing instrumentation.
151
- */
152
- private _instrumentAppStart;
153
- /**
154
- * Adds app start measurements and starts a child span on a transaction.
155
- */
156
- private _addAppStartData;
157
- /**
158
- * Adds JS Execution before React Root. If `Sentry.wrap` is not used, create a span for the start of JS Bundle execution.
159
- */
160
- private _addJSExecutionBeforeRoot;
161
- /**
162
- * Adds native spans to the app start span.
163
- */
164
- private _addNativeSpansTo;
165
- /**
166
- * UIKit init is measured by the native layers till the native SDK start
167
- * RN initializes the native SDK later, the end timestamp would be wrong
168
- */
169
- private _createUIKitSpan;
170
- /** To be called when the route changes, but BEFORE the components of the new route mount. */
171
- private _onRouteWillChange;
172
- /**
173
- * Creates a breadcrumb and sets the current route as a tag.
174
- */
175
- private _onConfirmRoute;
176
- /** Create routing idle transaction. */
177
- private _createRouteTransaction;
178
- /**
179
- * Start app state aware idle transaction on the scope.
180
- */
181
- private _startIdleTransaction;
182
- }
62
+ export declare function getCurrentReactNativeTracingIntegration(): ReactNativeTracingIntegration | undefined;
63
+ /**
64
+ * Returns React Native Tracing integration of given client.
65
+ */
66
+ export declare function getReactNativeTracingIntegration(client: Client): ReactNativeTracingIntegration | undefined;
183
67
  //# sourceMappingURL=reactnativetracing.d.ts.map
@@ -1,18 +1,11 @@
1
- import type { OnConfirmRoute, TransactionCreator } from './routingInstrumentation';
2
- import { InternalRoutingInstrumentation } from './routingInstrumentation';
3
- import type { BeforeNavigate } from './types';
4
- export interface NavigationRoute {
5
- name: string;
6
- key: string;
7
- params?: Record<string, any>;
8
- }
9
- interface ReactNavigationOptions {
1
+ import type { Integration } from '@sentry/types';
2
+ export declare const INTEGRATION_NAME = "ReactNavigation";
3
+ interface ReactNavigationIntegrationOptions {
10
4
  /**
11
5
  * How long the instrumentation will wait for the route to mount after a change has been initiated,
12
6
  * before the transaction is discarded.
13
- * Time is in ms.
14
7
  *
15
- * @default 1000
8
+ * @default 1_000 (ms)
16
9
  */
17
10
  routeChangeTimeoutMs: number;
18
11
  /**
@@ -22,6 +15,13 @@ interface ReactNavigationOptions {
22
15
  * @default false
23
16
  */
24
17
  enableTimeToInitialDisplay: boolean;
18
+ /**
19
+ * Does not sample transactions that are from routes that have been seen any more and don't have any spans.
20
+ * This removes a lot of the clutter as most back navigation transactions are now ignored.
21
+ *
22
+ * @default true
23
+ */
24
+ ignoreEmptyBackNavigationTransactions: boolean;
25
25
  }
26
26
  /**
27
27
  * Instrumentation for React-Navigation V5 and above. See docs or sample app for usage.
@@ -31,62 +31,17 @@ interface ReactNavigationOptions {
31
31
  * - `_onStateChange` is then called AFTER the state change happens due to a dispatch and sets the route context onto the active transaction.
32
32
  * - If `_onStateChange` isn't called within `STATE_CHANGE_TIMEOUT_DURATION` of the dispatch, then the transaction is not sampled and finished.
33
33
  */
34
- export declare class ReactNavigationInstrumentation extends InternalRoutingInstrumentation {
35
- static instrumentationName: string;
36
- readonly name: string;
37
- private _navigationContainer;
38
- private _newScreenFrameEventEmitter;
39
- private readonly _maxRecentRouteLen;
40
- private _latestRoute?;
41
- private _latestTransaction?;
42
- private _navigationProcessingSpan?;
43
- private _initialStateHandled;
44
- private _stateChangeTimeout?;
45
- private _recentRouteKeys;
46
- private _options;
47
- constructor(options?: Partial<ReactNavigationOptions>);
48
- /**
49
- * Extends by calling _handleInitialState at the end.
50
- */
51
- registerRoutingInstrumentation(listener: TransactionCreator, beforeNavigate: BeforeNavigate, onConfirmRoute: OnConfirmRoute): void;
34
+ export declare const reactNavigationIntegration: ({ routeChangeTimeoutMs, enableTimeToInitialDisplay, ignoreEmptyBackNavigationTransactions, }?: Partial<ReactNavigationIntegrationOptions>) => Integration & {
52
35
  /**
53
36
  * Pass the ref to the navigation container to register it to the instrumentation
54
37
  * @param navigationContainerRef Ref to a `NavigationContainer`
55
38
  */
56
- registerNavigationContainer(navigationContainerRef: any): void;
57
- /**
58
- * To be called on every React-Navigation action dispatch.
59
- * It does not name the transaction or populate it with route information. Instead, it waits for the state to fully change
60
- * and gets the route information from there, @see _onStateChange
61
- */
62
- private _onDispatch;
63
- /**
64
- * To be called AFTER the state has been changed to populate the transaction with the current route.
65
- */
66
- private _onStateChange;
67
- /** Creates final transaction context before confirmation */
68
- private _prepareFinalContext;
69
- /** Pushes a recent route key, and removes earlier routes when there is greater than the max length */
70
- private _pushRecentRouteKey;
71
- /** Cancels the latest transaction so it does not get sent to Sentry. */
72
- private _discardLatestTransaction;
73
- /**
74
- *
75
- */
76
- private _clearStateChangeTimeout;
77
- }
78
- /**
79
- * Backwards compatibility alias for ReactNavigationInstrumentation
80
- * @deprecated Use ReactNavigationInstrumentation
81
- */
82
- export declare const ReactNavigationV5Instrumentation: typeof ReactNavigationInstrumentation;
83
- export declare const BLANK_TRANSACTION_CONTEXT: {
84
- name: string;
85
- op: string;
86
- tags: {
87
- 'routing.instrumentation': string;
88
- };
89
- data: {};
39
+ registerNavigationContainer: (navigationContainerRef: unknown) => void;
90
40
  };
41
+ export interface NavigationRoute {
42
+ name: string;
43
+ key: string;
44
+ params?: Record<string, any>;
45
+ }
91
46
  export {};
92
47
  //# sourceMappingURL=reactnavigation.d.ts.map
@@ -0,0 +1,12 @@
1
+ export { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON, } from '@sentry/core';
2
+ export declare const SEMANTIC_ATTRIBUTE_ROUTING_INSTRUMENTATION = "routing.instrumentation";
3
+ export declare const SEMANTIC_ATTRIBUTE_ROUTE_NAME = "route.name";
4
+ export declare const SEMANTIC_ATTRIBUTE_ROUTE_KEY = "route.key";
5
+ export declare const SEMANTIC_ATTRIBUTE_ROUTE_COMPONENT_ID = "route.component_id";
6
+ export declare const SEMANTIC_ATTRIBUTE_ROUTE_COMPONENT_TYPE = "route.component_type";
7
+ export declare const SEMANTIC_ATTRIBUTE_ROUTE_HAS_BEEN_SEEN = "route.has_been_seen";
8
+ export declare const SEMANTIC_ATTRIBUTE_PREVIOUS_ROUTE_NAME = "previous_route.name";
9
+ export declare const SEMANTIC_ATTRIBUTE_PREVIOUS_ROUTE_KEY = "previous_route.key";
10
+ export declare const SEMANTIC_ATTRIBUTE_PREVIOUS_ROUTE_COMPONENT_ID = "previous_route.component_id";
11
+ export declare const SEMANTIC_ATTRIBUTE_PREVIOUS_ROUTE_COMPONENT_TYPE = "previous_route.component_type";
12
+ //# sourceMappingURL=semanticAttributes.d.ts.map
@@ -0,0 +1,52 @@
1
+ import type { Client, Scope, Span, StartSpanOptions } from '@sentry/types';
2
+ export declare const DEFAULT_NAVIGATION_SPAN_NAME = "Route Change";
3
+ export declare const defaultIdleOptions: {
4
+ /**
5
+ * The time that has to pass without any span being created.
6
+ * If this time is exceeded, the idle span will finish.
7
+ *
8
+ * @default 1_000 (ms)
9
+ */
10
+ finalTimeout: number;
11
+ /**
12
+ * The max. time an idle span may run.
13
+ * If this time is exceeded, the idle span will finish no matter what.
14
+ *
15
+ * @default 60_0000 (ms)
16
+ */
17
+ idleTimeout: number;
18
+ };
19
+ export declare const startIdleNavigationSpan: (startSpanOption: StartSpanOptions, { finalTimeout, idleTimeout, }?: Partial<typeof defaultIdleOptions>) => Span | undefined;
20
+ /**
21
+ * Starts an idle span from `@sentry/core` with React Native application
22
+ * context awareness.
23
+ *
24
+ * - Span will be started with new propagation context.
25
+ * - Span will be canceled if the app goes to background.
26
+ */
27
+ export declare const startIdleSpan: (startSpanOption: StartSpanOptions, { finalTimeout, idleTimeout }: {
28
+ finalTimeout: number | undefined;
29
+ idleTimeout: number | undefined;
30
+ }) => Span;
31
+ /**
32
+ * Returns the default options for the idle navigation span.
33
+ */
34
+ export declare function getDefaultIdleNavigationSpanOptions(): StartSpanOptions;
35
+ /**
36
+ * Checks if the span is a Sentry User Interaction span.
37
+ */
38
+ export declare function isSentryInteractionSpan(span: Span): boolean;
39
+ declare const SCOPE_SPAN_FIELD = "_sentrySpan";
40
+ type ScopeWithMaybeSpan = Scope & {
41
+ [SCOPE_SPAN_FIELD]?: Span;
42
+ };
43
+ /**
44
+ * Removes the active span from the scope.
45
+ */
46
+ export declare function clearActiveSpanFromScope(scope: ScopeWithMaybeSpan): void;
47
+ /**
48
+ * Ensures that all created spans have an operation name.
49
+ */
50
+ export declare function addDefaultOpForSpanFrom(client: Client): void;
51
+ export {};
52
+ //# sourceMappingURL=span.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { TransactionContext } from '@sentry/types';
1
+ import type { Span } from '@sentry/types';
2
2
  export interface ReactNavigationRoute {
3
3
  name: string;
4
4
  key: string;
@@ -18,12 +18,5 @@ export type RouteChangeContextData = {
18
18
  hasBeenSeen: boolean;
19
19
  };
20
20
  };
21
- export interface ReactNavigationTransactionContext extends TransactionContext {
22
- tags: {
23
- 'routing.instrumentation': string;
24
- 'routing.route.name': string;
25
- };
26
- data: RouteChangeContextData;
27
- }
28
- export type BeforeNavigate = (context: TransactionContext) => TransactionContext;
21
+ export type BeforeNavigate = (context: Span) => void;
29
22
  //# sourceMappingURL=types.d.ts.map
@@ -1,30 +1,19 @@
1
- import type { Transaction } from '@sentry/core';
2
- import type { IdleTransaction, Span as SpanClass } from '@sentry/core';
3
- import type { Span, Transaction as TransactionType, TransactionContext, TransactionSource } from '@sentry/types';
1
+ import type { MeasurementUnit, Span, SpanJSON, TransactionSource } from '@sentry/types';
4
2
  export declare const defaultTransactionSource: TransactionSource;
5
3
  export declare const customTransactionSource: TransactionSource;
6
- export declare const getBlankTransactionContext: (name: string) => TransactionContext;
7
4
  /**
8
5
  * A margin of error of 50ms is allowed for the async native bridge call.
9
6
  * Anything larger would reduce the accuracy of our frames measurements.
10
7
  */
11
8
  export declare const MARGIN_OF_ERROR_SECONDS = 0.05;
12
- /**
13
- *
14
- */
15
- export declare function adjustTransactionDuration(maxDurationMs: number, transaction: IdleTransaction, endTimestamp: number): void;
16
9
  /**
17
10
  * Returns the timestamp where the JS global scope was initialized.
18
11
  */
19
12
  export declare function getTimeOriginMilliseconds(): number;
20
- /**
21
- * Calls the callback every time a child span of the transaction is finished.
22
- */
23
- export declare function instrumentChildSpanFinish(transaction: Transaction, callback: (span: SpanClass, endTimestamp?: number) => void): void;
24
13
  /**
25
14
  * Determines if the timestamp is now or within the specified margin of error from now.
26
15
  */
27
- export declare function isNearToNow(timestamp: number): boolean;
16
+ export declare function isNearToNow(timestamp: number | undefined): boolean;
28
17
  /**
29
18
  * Sets the duration of the span as a measurement.
30
19
  * Uses `setMeasurement` function from @sentry/core.
@@ -34,11 +23,27 @@ export declare function setSpanDurationAsMeasurement(name: string, span: Span):
34
23
  * Sets the duration of the span as a measurement.
35
24
  * Uses `setMeasurement` function from @sentry/core.
36
25
  */
37
- export declare function setSpanDurationAsMeasurementOnTransaction(transaction: TransactionType, name: string, span: Span): void;
26
+ export declare function setSpanDurationAsMeasurementOnSpan(name: string, span: Span, on: Span): void;
27
+ /**
28
+ * Sets measurement on the give span.
29
+ */
30
+ export declare function setSpanMeasurement(span: Span, key: string, value: number, unit: MeasurementUnit): void;
31
+ /**
32
+ * Returns the latest end timestamp of the child spans of the given span.
33
+ */
34
+ export declare function getLatestChildSpanEndTimestamp(span: Span): number | undefined;
38
35
  /**
39
36
  * Returns unix timestamp in ms of the bundle start time.
40
37
  *
41
38
  * If not available, returns undefined.
42
39
  */
43
40
  export declare function getBundleStartTimestampMs(): number | undefined;
41
+ /**
42
+ * Creates valid span JSON object from the given data.
43
+ */
44
+ export declare function createSpanJSON(from: Partial<SpanJSON> & Pick<Required<SpanJSON>, 'description' | 'start_timestamp' | 'timestamp' | 'origin'>): SpanJSON;
45
+ /**
46
+ *
47
+ */
48
+ export declare function createChildSpanJSON(parent: SpanJSON, from: Partial<SpanJSON> & Pick<Required<SpanJSON>, 'description' | 'start_timestamp' | 'timestamp'>): SpanJSON;
44
49
  //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,3 @@
1
+ export declare const useEncodePolyfill: () => void;
2
+ export declare const encodePolyfill: (text: string) => Uint8Array;
3
+ //# sourceMappingURL=encodePolyfill.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { BaseTransportOptions, Envelope, Transport } from '@sentry/types';
1
+ import type { BaseTransportOptions, Envelope, Transport, TransportMakeRequestResponse } from '@sentry/types';
2
2
  import type { PromiseBuffer } from '@sentry/utils';
3
3
  export declare const DEFAULT_BUFFER_SIZE = 30;
4
4
  export type BaseNativeTransport = BaseTransportOptions;
@@ -15,7 +15,7 @@ export declare class NativeTransport implements Transport {
15
15
  *
16
16
  * @param envelope Envelope that should be sent to Sentry.
17
17
  */
18
- send(envelope: Envelope): PromiseLike<void>;
18
+ send(envelope: Envelope): PromiseLike<TransportMakeRequestResponse>;
19
19
  /**
20
20
  * Wait for all envelopes to be sent or the timeout to expire, whichever comes first.
21
21
  *
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The same as `import { fill } from '@sentry/utils';` but with explicit types.
3
+ */
4
+ export declare function fillTyped<Source extends {
5
+ [key: string]: any;
6
+ }, Name extends keyof Source & string>(source: Source, name: Name, replacement: (original: Source[Name]) => Source[Name]): void;
7
+ //# sourceMappingURL=fill.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { SentrySpan } from '@sentry/core';
2
+ import type { Span, TransactionEvent } from '@sentry/types';
3
+ /**
4
+ *
5
+ */
6
+ export declare function isSentrySpan(span: Span): span is SentrySpan;
7
+ /**
8
+ *
9
+ */
10
+ export declare function isRootSpan(span: Span): boolean;
11
+ /**
12
+ *
13
+ */
14
+ export declare function setEndTimeValue(span: Span, endTimestamp: number): void;
15
+ /**
16
+ *
17
+ */
18
+ export declare function convertSpanToTransaction(span: Span): TransactionEvent | undefined;
19
+ //# sourceMappingURL=span.d.ts.map
@@ -18,7 +18,7 @@ export type CodeFrame = Readonly<{
18
18
  export type SymbolicatedStackTrace = Readonly<{
19
19
  stack: Array<StackFrame>;
20
20
  codeFrame?: CodeFrame;
21
- }>;
21
+ }> | Array<StackFrame>;
22
22
  export type DevServerInfo = {
23
23
  [key: string]: unknown;
24
24
  url: string;
@@ -1,4 +1,4 @@
1
1
  export declare const SDK_PACKAGE_NAME = "npm:@sentry/react-native";
2
2
  export declare const SDK_NAME = "sentry.javascript.react-native";
3
- export declare const SDK_VERSION = "5.29.0";
3
+ export declare const SDK_VERSION = "6.0.0-alpha.0";
4
4
  //# sourceMappingURL=version.d.ts.map
@@ -1,16 +0,0 @@
1
- export { DebugSymbolicator } from './debugsymbolicator';
2
- export { DeviceContext } from './devicecontext';
3
- export { ReactNativeErrorHandlers } from './reactnativeerrorhandlers';
4
- export { NativeLinkedErrors } from './nativelinkederrors';
5
- export { Release } from './release';
6
- export { EventOrigin } from './eventorigin';
7
- export { SdkInfo } from './sdkinfo';
8
- export { ReactNativeInfo } from './reactnativeinfo';
9
- export { ModulesLoader } from './modulesloader';
10
- export { HermesProfiling } from '../profiling/integration';
11
- export { Screenshot } from './screenshot';
12
- export { ViewHierarchy } from './viewhierarchy';
13
- export { ExpoContext } from './expocontext';
14
- export { Spotlight } from './spotlight';
15
- export { mobileReplayIntegration } from '../replay/mobilereplay';
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC"}