Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

692 error monitoring #60

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 13 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@elastic/eui": "^97.3.0",
"@emotion/css": "^11.11.2",
"@emotion/react": "^11.11.1",
"@orchestrator-ui/orchestrator-ui-components": "^2.8.2",
"@orchestrator-ui/orchestrator-ui-components": "*",
"@reduxjs/toolkit": "^2.0.1",
"eslint": "^8.57.0",
"moment": "^2.29.4",
Expand Down
94 changes: 57 additions & 37 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import {
StoreProvider,
WfoAuth,
WfoErrorBoundary,
WfoErrorMonitoring,
WfoErrorMonitoringProvider,
WfoMenuItemLink,
WfoPageTemplate,
WfoToastsList,
Expand Down Expand Up @@ -78,51 +80,69 @@ function CustomApp({
},
];

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

return (
<WfoErrorBoundary>
<OrchestratorConfigProvider
initialOrchestratorConfig={orchestratorConfig}
>
<StoreProvider initialOrchestratorConfig={orchestratorConfig}>
<SessionProvider session={pageProps.session}>
<WfoAuth>
<EuiProvider
colorMode={themeMode}
modify={defaultOrchestratorTheme}
>
<TranslationsProvider>
<Head>
<link rel="icon" href="/favicon.png" />
<title>
Welcome to example-orchestrator-ui!
</title>
</Head>
<main className="app">
<ConfirmationDialogContextWrapper>
<WfoPageTemplate
getAppLogo={getAppLogo}
onThemeSwitch={
handleThemeSwitch
}
overrideMenuItems={addMenuItems}
>
<QueryParamProvider
adapter={NextAdapter}
options={{
removeDefaultsFromUrl:
false,
enableBatching: true,
}}
<WfoErrorMonitoringProvider
errorMonitoringHandler={errorMonitoringHandler}
>
<WfoAuth>
<EuiProvider
colorMode={themeMode}
modify={defaultOrchestratorTheme}
>
<TranslationsProvider>
<Head>
<link
rel="icon"
href="/favicon.png"
/>
<title>
Welcome to
example-orchestrator-ui!
</title>
</Head>
<main className="app">
<ConfirmationDialogContextWrapper>
<WfoPageTemplate
getAppLogo={getAppLogo}
onThemeSwitch={
handleThemeSwitch
}
overrideMenuItems={
addMenuItems
}
>
<Component {...pageProps} />
</QueryParamProvider>
</WfoPageTemplate>
<WfoToastsList />
</ConfirmationDialogContextWrapper>
</main>
</TranslationsProvider>
</EuiProvider>
</WfoAuth>
<QueryParamProvider
adapter={NextAdapter}
options={{
removeDefaultsFromUrl:
false,
enableBatching:
true,
}}
>
<Component
{...pageProps}
/>
</QueryParamProvider>
</WfoPageTemplate>
<WfoToastsList />
</ConfirmationDialogContextWrapper>
</main>
</TranslationsProvider>
</EuiProvider>
</WfoAuth>
</WfoErrorMonitoringProvider>
</SessionProvider>
</StoreProvider>
</OrchestratorConfigProvider>
Expand Down
Loading