Skip to content

Commit 3818bb1

Browse files
committed
removed Profiler from ToolStore, for span behavior
1 parent fe169a2 commit 3818bb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/screens/ToolStore.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ const ToolStore = ({navigation}) => {
110110
* The Sentry Profiler can use any higher-order component but you need redux if you want the `react.update`,
111111
* because that comes from props being passed into the Profiler (which comes from redux).
112112
* The Profiler doesn't watch the internal state of ToolStore here, and that's why `useState` won't be picked up by sentry sdk, unless you use the Profiler.
113+
* Don't use the Sentry Profiler here yet, because the profiler span was finishing so quick that the transaction would finish prematurely,
114+
* and this was causing Status:Cancelled on that span, and warning "cancelled span due to idleTransaction finishing"
113115
*/
114-
export default Sentry.withProfiler(ToolStore);
116+
export default ToolStore
115117

116118
export const selectImage = (source: string): React.ReactElement => {
117119
/**

0 commit comments

Comments
 (0)