mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix Sentry integration bugs (#3325)
This commit is contained in:
5 files changed
+45
-66
No files matched your search
@@ -87,11 +87,7 @@ export async function bootstrap(App: AppComponent) {
|
||||
|
||||
UserStore.createInstance();
|
||||
|
||||
/**
|
||||
* There is no point setting up sentry before UserStore is initialized as
|
||||
* `allowErrorReporting` will always be falsy.
|
||||
*/
|
||||
await SentryInit();
|
||||
SentryInit();
|
||||
|
||||
await ClusterStore.createInstance().loadInitialOnRenderer();
|
||||
HotbarStore.createInstance();
|
||||
|
||||
@@ -41,7 +41,7 @@ import { FormSwitch, Switcher } from "../switch";
|
||||
import { KubeconfigSyncs } from "./kubeconfig-syncs";
|
||||
import { SettingLayout } from "../layout/setting-layout";
|
||||
import { Checkbox } from "../checkbox";
|
||||
import { sentryIsInitialized } from "../../../common/sentry";
|
||||
import { sentryDsn } from "../../../common/vars";
|
||||
|
||||
enum Pages {
|
||||
Application = "application",
|
||||
@@ -259,7 +259,7 @@ export class Preferences extends React.Component {
|
||||
<section id="telemetry">
|
||||
<h2 data-testid="telemetry-header">Telemetry</h2>
|
||||
{telemetryExtensions.map(this.renderExtension)}
|
||||
{sentryIsInitialized ? (
|
||||
{sentryDsn ? (
|
||||
<React.Fragment key='sentry'>
|
||||
<section id='sentry' className="small">
|
||||
<SubTitle title='Automatic Error Reporting' />
|
||||
|
||||
Reference in new issue
Block a user