Skip to content

Commit 28709f1

Browse files
committed
add comments to the span name
1 parent 21bb24f commit 28709f1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/libs/Navigation/AppNavigator/Navigators/TabNavigator.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,22 @@ const LazySearchFullscreenNavigator = lazy(() => import('./SearchFullscreenNavig
2323
const LazySettingsSplitNavigator = lazy(() => import('./SettingsSplitNavigator'));
2424
const LazyWorkspaceNavigator = lazy(() => import('./WorkspaceNavigator'));
2525

26-
type LazyFallbackProps = {tabSpanName?: string};
26+
type LazyFallbackProps = {
27+
/** Sentry span to tag when this fallback renders. */
28+
tabSpanName?: string;
29+
};
2730

2831
function LazyFallback({tabSpanName}: LazyFallbackProps) {
2932
const styles = useThemeStyles();
33+
3034
// Lets Sentry split slow tab navigations into "lazy chunk fetch" vs "screen render" buckets.
3135
useEffect(() => {
3236
if (!tabSpanName) {
3337
return;
3438
}
3539
getSpan(tabSpanName)?.setAttribute(CONST.TELEMETRY.ATTRIBUTE_LAZY_TAB_FALLBACK_SHOWN, true);
3640
}, [tabSpanName]);
41+
3742
return (
3843
<View style={[styles.flex1, styles.justifyContentCenter, styles.alignItemsCenter, styles.appBG]}>
3944
<ActivityIndicator

0 commit comments

Comments
 (0)