@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,17 +1,12 @@
1
1
  export type { Breadcrumb, Request, SdkInfo, Event, Exception, StackFrame, Stacktrace, Thread, User, UserFeedback, } from '@sentry/types';
2
- export { addGlobalEventProcessor, addBreadcrumb, captureException, captureEvent, captureMessage, getHubFromCarrier, getCurrentHub, Hub, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor, metrics, } from '@sentry/core';
3
- export { Integrations as BrowserIntegrations, ErrorBoundary, withErrorBoundary, createReduxEnhancer, Profiler, useProfiler, withProfiler, } from '@sentry/react';
4
- export { lastEventId } from '@sentry/browser';
5
- import * as Integrations from './integrations';
2
+ export { addBreadcrumb, captureException, captureEvent, captureMessage, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor, metricsDefault as metrics, } from '@sentry/core';
3
+ export { ErrorBoundary, withErrorBoundary, createReduxEnhancer, Profiler, useProfiler, withProfiler, } from '@sentry/react';
6
4
  export * from './integrations/exports';
7
5
  export { SDK_NAME, SDK_VERSION } from './version';
8
6
  export type { ReactNativeOptions } from './options';
9
7
  export { ReactNativeClient } from './client';
10
- export { init, wrap, setDist, setRelease, nativeCrash, flush, close, captureUserFeedback, withScope, configureScope, } from './sdk';
8
+ export { init, wrap, nativeCrash, flush, close, captureUserFeedback, withScope } from './sdk';
11
9
  export { TouchEventBoundary, withTouchEventBoundary } from './touchevents';
12
- export { ReactNativeTracing, ReactNavigationV4Instrumentation, ReactNavigationV5Instrumentation, ReactNavigationInstrumentation, ReactNativeNavigationInstrumentation, RoutingInstrumentation, sentryTraceGesture, TimeToInitialDisplay, TimeToFullDisplay, startTimeToInitialDisplaySpan, startTimeToFullDisplaySpan, } from './tracing';
13
- export type { ReactNavigationTransactionContext, TimeToDisplayProps } from './tracing';
14
- export {
15
- /** @deprecated Import the integration function directly, e.g. `screenshotIntegration()` instead of `new Integrations.Screenshot(). */
16
- Integrations, };
10
+ export { reactNativeTracingIntegration, getCurrentReactNativeTracingIntegration, getReactNativeTracingIntegration, reactNavigationIntegration, reactNativeNavigationIntegration, sentryTraceGesture, TimeToInitialDisplay, TimeToFullDisplay, startTimeToInitialDisplaySpan, startTimeToFullDisplaySpan, startIdleNavigationSpan, startIdleSpan, getDefaultIdleNavigationSpanOptions, } from './tracing';
11
+ export type { TimeToDisplayProps } from './tracing';
17
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /**
3
3
  * React Native Error
4
4
  */
@@ -9,11 +9,5 @@ export type ReactNativeError = Error & {
9
9
  componentStack?: string;
10
10
  };
11
11
  /** Tries to symbolicate the JS stack trace on the device. */
12
- export declare const debugSymbolicatorIntegration: () => IntegrationFnResult;
13
- /**
14
- * Tries to symbolicate the JS stack trace on the device.
15
- *
16
- * @deprecated Use `debugSymbolicatorIntegration()` instead.
17
- */
18
- export declare const DebugSymbolicator: IntegrationClass<Integration>;
12
+ export declare const debugSymbolicatorIntegration: () => Integration;
19
13
  //# sourceMappingURL=debugsymbolicator.d.ts.map
@@ -1,10 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** Load device context from native. */
3
- export declare const deviceContextIntegration: () => IntegrationFnResult;
4
- /**
5
- * Load device context from native.
6
- *
7
- * @deprecated Use `deviceContextIntegration()` instead.
8
- */
9
- export declare const DeviceContext: IntegrationClass<Integration>;
3
+ export declare const deviceContextIntegration: () => Integration;
10
4
  //# sourceMappingURL=devicecontext.d.ts.map
@@ -1,10 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** Default EventOrigin instrumentation */
3
- export declare const eventOriginIntegration: () => IntegrationFnResult;
4
- /**
5
- * Default EventOrigin instrumentation
6
- *
7
- * @deprecated Use `eventOriginIntegration()` instead.
8
- */
9
- export declare const EventOrigin: IntegrationClass<Integration>;
3
+ export declare const eventOriginIntegration: () => Integration;
10
4
  //# sourceMappingURL=eventorigin.d.ts.map
@@ -1,10 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** Load device context from expo modules. */
3
- export declare const expoContextIntegration: () => IntegrationFnResult;
4
- /**
5
- * Load device context from expo modules.
6
- *
7
- * @deprecated Use `expoContextIntegration()` instead.
8
- */
9
- export declare const ExpoContext: IntegrationClass<Integration>;
3
+ export declare const expoContextIntegration: () => Integration;
10
4
  //# sourceMappingURL=expocontext.d.ts.map
@@ -13,5 +13,9 @@ export { viewHierarchyIntegration } from './viewhierarchy';
13
13
  export { expoContextIntegration } from './expocontext';
14
14
  export { spotlightIntegration } from './spotlight';
15
15
  export { mobileReplayIntegration } from '../replay/mobilereplay';
16
+ export { appStartIntegration } from '../tracing/integrations/appStart';
17
+ export { nativeFramesIntegration } from '../tracing/integrations/nativeFrames';
18
+ export { stallTrackingIntegration } from '../tracing/integrations/stalltracking';
19
+ export { userInteractionIntegration } from '../tracing/integrations/userInteraction';
16
20
  export { breadcrumbsIntegration, browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, replayIntegration as browserReplayIntegration, } from '@sentry/react';
17
21
  //# sourceMappingURL=exports.d.ts.map
@@ -1,10 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** Loads runtime JS modules from prepared file. */
3
- export declare const modulesLoaderIntegration: () => IntegrationFnResult;
4
- /**
5
- * Loads runtime JS modules from prepared file.
6
- *
7
- * @deprecated Use `modulesLoaderIntegration()` instead.
8
- */
9
- export declare const ModulesLoader: IntegrationClass<Integration>;
3
+ export declare const modulesLoaderIntegration: () => Integration;
10
4
  //# sourceMappingURL=modulesloader.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  interface LinkedErrorsOptions {
3
3
  key: string;
4
4
  limit: number;
@@ -6,12 +6,6 @@ interface LinkedErrorsOptions {
6
6
  /**
7
7
  * Processes JS and RN native linked errors.
8
8
  */
9
- export declare const nativeLinkedErrorsIntegration: (options?: Partial<LinkedErrorsOptions>) => IntegrationFnResult;
10
- /**
11
- * Processes JS and RN native linked errors.
12
- *
13
- * @deprecated Use `nativeLinkedErrorsIntegration()` instead.
14
- */
15
- export declare const NativeLinkedErrors: IntegrationClass<Integration> & (new (options?: Partial<LinkedErrorsOptions>) => Integration);
9
+ export declare const nativeLinkedErrorsIntegration: (options?: Partial<LinkedErrorsOptions>) => Integration;
16
10
  export {};
17
11
  //# sourceMappingURL=nativelinkederrors.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** ReactNativeErrorHandlers Options */
3
3
  interface ReactNativeErrorHandlersOptions {
4
4
  onerror: boolean;
@@ -6,12 +6,6 @@ interface ReactNativeErrorHandlersOptions {
6
6
  patchGlobalPromise: boolean;
7
7
  }
8
8
  /** ReactNativeErrorHandlers Integration */
9
- export declare const reactNativeErrorHandlersIntegration: (options?: Partial<ReactNativeErrorHandlersOptions>) => IntegrationFnResult;
10
- /**
11
- * ReactNativeErrorHandlers Integration
12
- *
13
- * @deprecated Use `reactNativeErrorHandlersIntegration()` instead.
14
- */
15
- export declare const ReactNativeErrorHandlers: IntegrationClass<Integration> & (new (options?: Partial<ReactNativeErrorHandlersOptions>) => Integration);
9
+ export declare const reactNativeErrorHandlersIntegration: (options?: Partial<ReactNativeErrorHandlersOptions>) => Integration;
16
10
  export {};
17
11
  //# sourceMappingURL=reactnativeerrorhandlers.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Context, Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Context, Integration } from '@sentry/types';
2
2
  export interface ReactNativeContext extends Context {
3
3
  js_engine?: string;
4
4
  turbo_module: boolean;
@@ -12,11 +12,5 @@ export interface ReactNativeContext extends Context {
12
12
  expo_sdk_version?: string;
13
13
  }
14
14
  /** Loads React Native context at runtime */
15
- export declare const reactNativeInfoIntegration: () => IntegrationFnResult;
16
- /**
17
- * Loads React Native context at runtime
18
- *
19
- * @deprecated Use `reactNativeInfoIntegration()` instead.
20
- */
21
- export declare const ReactNativeInfo: IntegrationClass<Integration>;
15
+ export declare const reactNativeInfoIntegration: () => Integration;
22
16
  //# sourceMappingURL=reactnativeinfo.d.ts.map
@@ -1,10 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** Release integration responsible to load release from file. */
3
- export declare const nativeReleaseIntegration: () => IntegrationFnResult;
4
- /**
5
- * Release integration responsible to load release from file.
6
- *
7
- * @deprecated Use `nativeReleaseIntegration()` instead.
8
- */
9
- export declare const Release: IntegrationClass<Integration>;
3
+ export declare const nativeReleaseIntegration: () => Integration;
10
4
  //# sourceMappingURL=release.d.ts.map
@@ -1,10 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** Adds screenshots to error events */
3
- export declare const screenshotIntegration: () => IntegrationFnResult;
4
- /**
5
- * Adds screenshots to error events
6
- *
7
- * @deprecated Use `screenshotIntegration()` instead.
8
- */
9
- export declare const Screenshot: IntegrationClass<Integration>;
3
+ export declare const screenshotIntegration: () => Integration;
10
4
  //# sourceMappingURL=screenshot.d.ts.map
@@ -1,13 +1,7 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult, SdkInfo as SdkInfoType } from '@sentry/types';
1
+ import type { Integration, SdkInfo as SdkInfoType } from '@sentry/types';
2
2
  type DefaultSdkInfo = Pick<Required<SdkInfoType>, 'name' | 'packages' | 'version'>;
3
3
  export declare const defaultSdkInfo: DefaultSdkInfo;
4
4
  /** Default SdkInfo instrumentation */
5
- export declare const sdkInfoIntegration: () => IntegrationFnResult;
6
- /**
7
- * Default SdkInfo instrumentation
8
- *
9
- * @deprecated Use `sdkInfoIntegration()` instead.
10
- */
11
- export declare const SdkInfo: IntegrationClass<Integration>;
5
+ export declare const sdkInfoIntegration: () => Integration;
12
6
  export {};
13
7
  //# sourceMappingURL=sdkinfo.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Integration, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  type SpotlightReactNativeIntegrationOptions = {
3
3
  /**
4
4
  * The URL of the Sidecar instance to connect and forward events to.
@@ -13,14 +13,6 @@ type SpotlightReactNativeIntegrationOptions = {
13
13
  *
14
14
  * Learn more about spotlight at https://spotlightjs.com
15
15
  */
16
- export declare function spotlightIntegration({ sidecarUrl, }?: SpotlightReactNativeIntegrationOptions): IntegrationFnResult;
17
- /**
18
- * Use this integration to send errors and transactions to Spotlight.
19
- *
20
- * Learn more about spotlight at https://spotlightjs.com
21
- *
22
- * @deprecated Use `spotlightIntegration()` instead.
23
- */
24
- export declare const Spotlight: (args_0?: SpotlightReactNativeIntegrationOptions | undefined) => Integration;
16
+ export declare function spotlightIntegration({ sidecarUrl, }?: SpotlightReactNativeIntegrationOptions): Integration;
25
17
  export {};
26
18
  //# sourceMappingURL=spotlight.d.ts.map
@@ -1,10 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  /** Adds ViewHierarchy to error events */
3
- export declare const viewHierarchyIntegration: () => IntegrationFnResult;
4
- /**
5
- * Adds ViewHierarchy to error events
6
- *
7
- * @deprecated Use `viewHierarchyIntegration()` instead.
8
- */
9
- export declare const ViewHierarchy: IntegrationClass<Integration>;
3
+ export declare const viewHierarchyIntegration: () => Integration;
10
4
  //# sourceMappingURL=viewhierarchy.d.ts.map
@@ -140,6 +140,8 @@ export interface BaseReactNativeOptions {
140
140
  * More details: https://spotlightjs.com/
141
141
  *
142
142
  * IMPORTANT: Only set this option to `true` while developing, not in production!
143
+ *
144
+ * @deprecated Use `spotlight` instead.
143
145
  */
144
146
  enableSpotlight?: boolean;
145
147
  /**
@@ -151,14 +153,55 @@ export interface BaseReactNativeOptions {
151
153
  * More details: https://spotlightjs.com/
152
154
  *
153
155
  * @default "http://localhost:8969/stream"
156
+ *
157
+ * @deprecated Use `spotlight` instead.
154
158
  */
155
159
  spotlightSidecarUrl?: string;
160
+ /**
161
+ * If you use Spotlight by Sentry during development, use
162
+ * this option to forward captured Sentry events to Spotlight.
163
+ *
164
+ * Either set it to true, or provide a specific Spotlight Sidecar URL.
165
+ *
166
+ * More details: https://spotlightjs.com/
167
+ *
168
+ * IMPORTANT: Only set this option to `true` while developing, not in production!
169
+ */
170
+ spotlight?: boolean | string;
156
171
  /**
157
172
  * Sets a callback which is executed before capturing screenshots. Only
158
173
  * relevant if `attachScreenshot` is set to true. When false is returned
159
174
  * from the function, no screenshot will be attached.
160
175
  */
161
176
  beforeScreenshot?: (event: Event, hint: EventHint) => boolean;
177
+ /**
178
+ * Track the app start time by adding measurements to the first route transaction. If there is no routing instrumentation
179
+ * an app start transaction will be started.
180
+ *
181
+ * Requires performance monitoring to be enabled.
182
+ *
183
+ * @default true
184
+ */
185
+ enableAppStartTracking?: boolean;
186
+ /**
187
+ * Track the slow and frozen frames in the application. Enabling this options will add
188
+ * slow and frozen frames measurements to all created root spans (transactions).
189
+ *
190
+ * @default true
191
+ */
192
+ enableNativeFramesTracking?: boolean;
193
+ /**
194
+ * Track when and how long the JS event loop stalls for. Adds stalls as measurements to all transactions.
195
+ *
196
+ * @default true
197
+ */
198
+ enableStallTracking?: boolean;
199
+ /**
200
+ * Trace User Interaction events like touch and gestures.
201
+ *
202
+ * @default false
203
+ */
204
+ enableUserInteractionTracing?: boolean;
162
205
  /**
163
206
  * Options which are in beta, or otherwise not guaranteed to be stable.
164
207
  */
@@ -1,6 +1,6 @@
1
1
  import type { AndroidCombinedProfileEvent, CombinedProfileEvent } from './types';
2
2
  export declare const PROFILE_QUEUE: {
3
- get: (key: string) => AndroidCombinedProfileEvent | CombinedProfileEvent | undefined;
3
+ get: (key: string) => AndroidCombinedProfileEvent | CombinedProfileEvent;
4
4
  add: (key: string, value: AndroidCombinedProfileEvent | CombinedProfileEvent) => void;
5
5
  delete: (key: string) => boolean;
6
6
  clear: () => void;
@@ -36,5 +36,5 @@ export interface Profile {
36
36
  samples: Sample[];
37
37
  stackFrames: Record<string, StackFrame>;
38
38
  }
39
- export declare const DEFAULT_BUNDLE_NAME: string | undefined;
39
+ export declare const DEFAULT_BUNDLE_NAME: string;
40
40
  //# sourceMappingURL=hermes.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Integration, IntegrationClass, IntegrationFn, ThreadCpuProfile } from '@sentry/types';
1
+ import type { IntegrationFn, ThreadCpuProfile } from '@sentry/types';
2
2
  import type { NativeAndroidProfileEvent, NativeProfileEvent } from './nativeTypes';
3
3
  import type { AndroidCombinedProfileEvent, CombinedProfileEvent, HermesProfileEvent } from './types';
4
4
  /**
@@ -7,12 +7,6 @@ import type { AndroidCombinedProfileEvent, CombinedProfileEvent, HermesProfileEv
7
7
  * @experimental
8
8
  */
9
9
  export declare const hermesProfilingIntegration: IntegrationFn;
10
- /**
11
- * Profiling integration creates a profile for each transaction and adds it to the event envelope.
12
- *
13
- * @deprecated Use `hermesProfilingIntegration()` instead.
14
- */
15
- export declare const HermesProfiling: IntegrationClass<Integration>;
16
10
  /**
17
11
  * Starts Profilers and returns the timestamp when profiling started in nanoseconds.
18
12
  */
@@ -1,4 +1,4 @@
1
- import type { IntegrationFnResult } from '@sentry/types';
1
+ import type { Integration } from '@sentry/types';
2
2
  export declare const MOBILE_REPLAY_INTEGRATION_NAME = "MobileReplay";
3
3
  export interface MobileReplayOptions {
4
4
  /**
@@ -21,7 +21,7 @@ export interface MobileReplayOptions {
21
21
  */
22
22
  maskAllVectors?: boolean;
23
23
  }
24
- type MobileReplayIntegration = IntegrationFnResult & {
24
+ type MobileReplayIntegration = Integration & {
25
25
  options: Required<MobileReplayOptions>;
26
26
  };
27
27
  /**
@@ -0,0 +1,6 @@
1
+ import type { Scope } from '@sentry/types';
2
+ /**
3
+ * Hooks into the scope set methods and sync new data added to the given scope with the native SDKs.
4
+ */
5
+ export declare function enableSyncToNative(scope: Scope): void;
6
+ //# sourceMappingURL=scopeSync.d.ts.map
@@ -1,6 +1,4 @@
1
- import type { Scope } from '@sentry/core';
2
- import { Hub } from '@sentry/core';
3
- import type { UserFeedback } from '@sentry/types';
1
+ import type { Scope, UserFeedback } from '@sentry/types';
4
2
  import * as React from 'react';
5
3
  import type { ReactNativeOptions, ReactNativeWrapperOptions } from './options';
6
4
  /**
@@ -11,18 +9,6 @@ export declare function init(passedOptions: ReactNativeOptions): void;
11
9
  * Inits the Sentry React Native SDK with automatic instrumentation and wrapped features.
12
10
  */
13
11
  export declare function wrap<P extends Record<string, unknown>>(RootComponent: React.ComponentType<P>, options?: ReactNativeWrapperOptions): React.ComponentType<P>;
14
- /**
15
- * Deprecated. Sets the release on the event.
16
- * NOTE: Does not set the release on sessions.
17
- * @deprecated
18
- */
19
- export declare function setRelease(release: string): void;
20
- /**
21
- * Deprecated. Sets the dist on the event.
22
- * NOTE: Does not set the dist on sessions.
23
- * @deprecated
24
- */
25
- export declare function setDist(dist: string): void;
26
12
  /**
27
13
  * If native client is available it will trigger a native crash.
28
14
  * Use this only for testing purposes.
@@ -55,9 +41,4 @@ export declare function captureUserFeedback(feedback: UserFeedback): void;
55
41
  * @param callback that will be enclosed into push/popScope.
56
42
  */
57
43
  export declare function withScope<T>(callback: (scope: Scope) => T): T | undefined;
58
- /**
59
- * Callback to set context information onto the scope.
60
- * @param callback Callback function that receives Scope.
61
- */
62
- export declare function configureScope(callback: (scope: Scope) => void): ReturnType<Hub['configureScope']>;
63
44
  //# sourceMappingURL=sdk.d.ts.map
@@ -38,7 +38,6 @@ declare class TouchEventBoundary extends React.Component<TouchEventBoundaryProps
38
38
  static displayName: string;
39
39
  static defaultProps: Partial<TouchEventBoundaryProps>;
40
40
  readonly name: string;
41
- private _tracingIntegration;
42
41
  /**
43
42
  * Registers the TouchEventBoundary as a Sentry Integration.
44
43
  */
@@ -1,11 +1,7 @@
1
- import type { Hub } from '@sentry/types';
2
1
  export declare const DEFAULT_BREADCRUMB_CATEGORY = "gesture";
3
2
  export declare const DEFAULT_BREADCRUMB_TYPE = "user";
4
3
  export declare const GESTURE_POSTFIX_LENGTH: number;
5
4
  export declare const ACTION_GESTURE_FALLBACK = "gesture";
6
- interface GestureTracingOptions {
7
- getCurrentHub: () => Hub;
8
- }
9
5
  /**
10
6
  * Patches React Native Gesture Handler v2 Gesture to start a transaction on gesture begin with the appropriate label.
11
7
  * Example: ShoppingCartScreen.dismissGesture
@@ -15,6 +11,5 @@ export declare function sentryTraceGesture<GestureT>(
15
11
  * Label of the gesture to be used in transaction name.
16
12
  * Example: dismissGesture
17
13
  */
18
- label: string, gesture: GestureT, options?: Partial<GestureTracingOptions>): GestureT;
19
- export {};
14
+ label: string, gesture: GestureT): GestureT;
20
15
  //# sourceMappingURL=gesturetracing.d.ts.map
@@ -1,10 +1,9 @@
1
- export { ReactNativeTracing } from './reactnativetracing';
2
- export type { RoutingInstrumentationInstance } from './routingInstrumentation';
3
- export { RoutingInstrumentation } from './routingInstrumentation';
4
- export { ReactNavigationInstrumentation, ReactNavigationV5Instrumentation, } from './reactnavigation';
5
- export { ReactNavigationV4Instrumentation } from './reactnavigationv4';
6
- export { ReactNativeNavigationInstrumentation } from './reactnativenavigation';
7
- export type { ReactNavigationCurrentRoute, ReactNavigationRoute, ReactNavigationTransactionContext } from './types';
1
+ export { reactNativeTracingIntegration, INTEGRATION_NAME as REACT_NATIVE_TRACING_INTEGRATION_NAME, getCurrentReactNativeTracingIntegration, getReactNativeTracingIntegration, } from './reactnativetracing';
2
+ export type { ReactNativeTracingIntegration } from './reactnativetracing';
3
+ export { reactNavigationIntegration } from './reactnavigation';
4
+ export { reactNativeNavigationIntegration } from './reactnativenavigation';
5
+ export { startIdleNavigationSpan, startIdleSpan, getDefaultIdleNavigationSpanOptions } from './span';
6
+ export type { ReactNavigationCurrentRoute, ReactNavigationRoute } from './types';
8
7
  export { ReactNativeProfiler } from './reactnativeprofiler';
9
8
  export { sentryTraceGesture } from './gesturetracing';
10
9
  export * from './ops';
@@ -0,0 +1,39 @@
1
+ import type { Integration } from '@sentry/types';
2
+ export type AppStartIntegration = Integration & {
3
+ captureStandaloneAppStart: () => Promise<void>;
4
+ };
5
+ /**
6
+ * Records the application start end.
7
+ * Used automatically by `Sentry.wrap` and `Sentry.ReactNativeProfiler`.
8
+ */
9
+ export declare function captureAppStart(): Promise<void>;
10
+ /**
11
+ * Sets the root component first constructor call timestamp.
12
+ * Used automatically by `Sentry.wrap` and `Sentry.ReactNativeProfiler`.
13
+ */
14
+ export declare function setRootComponentCreationTimestampMs(timestampMs: number): void;
15
+ /**
16
+ * For internal use only.
17
+ *
18
+ * @private
19
+ */
20
+ export declare const _setAppStartEndTimestampMs: (timestampMs: number) => void;
21
+ /**
22
+ * For testing purposes only.
23
+ *
24
+ * @private
25
+ */
26
+ export declare function _clearRootComponentCreationTimestampMs(): void;
27
+ /**
28
+ * Adds AppStart spans from the native layer to the transaction event.
29
+ */
30
+ export declare const appStartIntegration: ({ standalone, }?: {
31
+ /**
32
+ * Should the integration send App Start as a standalone root span (transaction)?
33
+ * If false, App Start will be added as a child span to the first transaction.
34
+ *
35
+ * @default false
36
+ */
37
+ standalone?: boolean;
38
+ }) => AppStartIntegration;
39
+ //# sourceMappingURL=appStart.d.ts.map
@@ -0,0 +1,20 @@
1
+ import type { Integration, Measurements, MeasurementUnit } from '@sentry/types';
2
+ export interface FramesMeasurements extends Measurements {
3
+ frames_total: {
4
+ value: number;
5
+ unit: MeasurementUnit;
6
+ };
7
+ frames_slow: {
8
+ value: number;
9
+ unit: MeasurementUnit;
10
+ };
11
+ frames_frozen: {
12
+ value: number;
13
+ unit: MeasurementUnit;
14
+ };
15
+ }
16
+ /**
17
+ * Instrumentation to add native slow/frozen frames measurements onto transactions.
18
+ */
19
+ export declare const nativeFramesIntegration: () => Integration;
20
+ //# sourceMappingURL=nativeFrames.d.ts.map
@@ -0,0 +1,31 @@
1
+ import type { Integration, Measurements, MeasurementUnit } from '@sentry/types';
2
+ import { STALL_COUNT, STALL_LONGEST_TIME, STALL_TOTAL_TIME } from '../../measurements';
3
+ export interface StallMeasurements extends Measurements {
4
+ [STALL_COUNT]: {
5
+ value: number;
6
+ unit: MeasurementUnit;
7
+ };
8
+ [STALL_TOTAL_TIME]: {
9
+ value: number;
10
+ unit: MeasurementUnit;
11
+ };
12
+ [STALL_LONGEST_TIME]: {
13
+ value: number;
14
+ unit: MeasurementUnit;
15
+ };
16
+ }
17
+ /**
18
+ * Stall measurement tracker inspired by the `JSEventLoopWatchdog` used internally in React Native:
19
+ * https://github.com/facebook/react-native/blob/006f5afe120c290a37cf6ff896748fbc062bf7ed/Libraries/Interaction/JSEventLoopWatchdog.js
20
+ *
21
+ * However, we modified the interval implementation to instead have a fixed loop timeout interval of `LOOP_TIMEOUT_INTERVAL_MS`.
22
+ * We then would consider that iteration a stall when the total time for that interval to run is greater than `LOOP_TIMEOUT_INTERVAL_MS + minimumStallThreshold`
23
+ */
24
+ export declare const stallTrackingIntegration: ({ minimumStallThresholdMs, }?: {
25
+ /**
26
+ * How long in milliseconds an event loop iteration can be delayed for before being considered a "stall."
27
+ * @default 50
28
+ */
29
+ minimumStallThresholdMs?: number;
30
+ }) => Integration;
31
+ //# sourceMappingURL=stalltracking.d.ts.map
@@ -0,0 +1,11 @@
1
+ import type { Integration, Span } from '@sentry/types';
2
+ export declare const userInteractionIntegration: () => Integration;
3
+ /**
4
+ * Starts a new transaction for a user interaction.
5
+ * @param userInteractionId Consists of `op` representation UI Event and `elementId` unique element identifier on current screen.
6
+ */
7
+ export declare const startUserInteractionSpan: (userInteractionId: {
8
+ elementId: string | undefined;
9
+ op: string;
10
+ }) => Span | undefined;
11
+ //# sourceMappingURL=userInteraction.d.ts.map
@@ -0,0 +1,17 @@
1
+ import type { Client, Span } from '@sentry/types';
2
+ /**
3
+ * Hooks on span end event to execute a callback when the span ends.
4
+ */
5
+ export declare function onThisSpanEnd(client: Client, span: Span, callback: (span: Span) => void): void;
6
+ export declare const adjustTransactionDuration: (client: Client, span: Span, maxDurationMs: number) => void;
7
+ export declare const ignoreEmptyBackNavigation: (client: Client | undefined, span: Span) => void;
8
+ /**
9
+ * Idle Transaction callback to only sample transactions with child spans.
10
+ * To avoid side effects of other callbacks this should be hooked as the last callback.
11
+ */
12
+ export declare const onlySampleIfChildSpans: (client: Client, span: Span) => void;
13
+ /**
14
+ * Hooks on AppState change to cancel the span if the app goes background.
15
+ */
16
+ export declare const cancelInBackground: (client: Client, span: Span) => void;
17
+ //# sourceMappingURL=onSpanEndUtils.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const SPAN_ORIGIN_AUTO_INTERACTION = "auto.interaction";
2
+ //# sourceMappingURL=origin.d.ts.map