Skip to content

Commit

Permalink
692 Makes the error monitoring handler a bit more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardovdheijden committed Dec 2, 2024
1 parent a5c7640 commit c117a75
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
StoreProvider,
WfoAuth,
WfoErrorBoundary,
WfoErrorMonitoring,

Check failure on line 20 in pages/_app.tsx

View workflow job for this annotation

GitHub Actions / tsc-and-linting

Module '"@orchestrator-ui/orchestrator-ui-components"' has no exported member 'WfoErrorMonitoring'.
WfoErrorMonitoringProvider,

Check failure on line 21 in pages/_app.tsx

View workflow job for this annotation

GitHub Actions / tsc-and-linting

Module '"@orchestrator-ui/orchestrator-ui-components"' has no exported member 'WfoErrorMonitoringProvider'.
WfoMenuItemLink,
WfoPageTemplate,
Expand Down Expand Up @@ -79,14 +80,21 @@ function CustomApp({
},
];

const errorMonitoringHandler: WfoErrorMonitoring | undefined = {
reportError: (error) => console.error(error),

Check failure on line 84 in pages/_app.tsx

View workflow job for this annotation

GitHub Actions / tsc-and-linting

Parameter 'error' implicitly has an 'any' type.
reportMessage: () => {},
};

return (
<WfoErrorBoundary>
<OrchestratorConfigProvider
initialOrchestratorConfig={orchestratorConfig}
>
<StoreProvider initialOrchestratorConfig={orchestratorConfig}>
<SessionProvider session={pageProps.session}>
<WfoErrorMonitoringProvider>
<WfoErrorMonitoringProvider
errorMonitoringHandler={errorMonitoringHandler}
>
<WfoAuth>
<EuiProvider
colorMode={themeMode}
Expand Down

0 comments on commit c117a75

Please sign in to comment.