Skip to content

Commit e21831e

Browse files
committed
Remove metric from the MacOS app
1 parent 616db8c commit e21831e

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

samples/react-native-macos/src/Screens/ErrorsScreen.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,12 @@ import { setScopeProperties } from '../setScopeProperties';
1515
import { StackNavigationProp } from '@react-navigation/stack';
1616
import { UserFeedbackModal } from '../components/UserFeedbackModal';
1717
import { FallbackRender } from '@sentry/react';
18-
import { timestampInSeconds } from '@sentry/utils';
1918

2019
interface Props {
2120
navigation: StackNavigationProp<any, 'HomeScreen'>;
2221
}
2322

2423
const ErrorsScreen = (_props: Props) => {
25-
const [componentMountStartTimestamp] = React.useState<number>(() => {
26-
return timestampInSeconds();
27-
});
28-
29-
React.useEffect(() => {
30-
if (componentMountStartTimestamp) {
31-
// Distributions help you get the most insights from your data by allowing you to obtain aggregations such as p90, min, max, and avg.
32-
Sentry.metrics.distribution(
33-
'home_mount_time',
34-
timestampInSeconds() - componentMountStartTimestamp,
35-
{
36-
unit: 'seconds',
37-
},
38-
);
39-
}
40-
// We only want this to run once.
41-
// eslint-disable-next-line react-hooks/exhaustive-deps
42-
}, []);
43-
4424
// Show bad code inside error boundary to trigger it.
4525
const [showBadCode, setShowBadCode] = React.useState(false);
4626
const [isFeedbackVisible, setFeedbackVisible] = React.useState(false);

samples/react-native-macos/src/Screens/TrackerScreen.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ const TrackerScreen = () => {
5353
};
5454

5555
const onRefreshButtonPress = () => {
56-
Sentry.metrics.increment('tracker_screen.refresh_button_press', 1, {
57-
tags: { graph: 'none', public_data: true },
58-
});
5956
loadData();
6057
};
6158

0 commit comments

Comments
 (0)