fixed sentry performance monitoring
This commit is contained in:
parent
040af14de6
commit
4ab6632fdc
|
|
@ -6,8 +6,6 @@ type INJECTED_CONFIGS = {
|
||||||
dsn: string;
|
dsn: string;
|
||||||
release: string;
|
release: string;
|
||||||
environment: string;
|
environment: string;
|
||||||
integrations: any[];
|
|
||||||
tracesSampleRate: number;
|
|
||||||
};
|
};
|
||||||
smartLook: {
|
smartLook: {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -55,8 +53,6 @@ const getConfigsFromEnvVars = (): INJECTED_CONFIGS => {
|
||||||
environment:
|
environment:
|
||||||
process.env.REACT_APP_SENTRY_ENVIRONMENT ||
|
process.env.REACT_APP_SENTRY_ENVIRONMENT ||
|
||||||
capitalizeText(process.env.NODE_ENV),
|
capitalizeText(process.env.NODE_ENV),
|
||||||
integrations: [new Integrations.BrowserTracing()],
|
|
||||||
tracesSampleRate: 1.0,
|
|
||||||
},
|
},
|
||||||
smartLook: {
|
smartLook: {
|
||||||
id: process.env.REACT_APP_SMART_LOOK_ID || "",
|
id: process.env.REACT_APP_SMART_LOOK_ID || "",
|
||||||
|
|
@ -172,6 +168,8 @@ export const getAppsmithConfigs = (): AppsmithUIConfigs => {
|
||||||
dsn: sentryDSN.value,
|
dsn: sentryDSN.value,
|
||||||
release: sentryRelease.value,
|
release: sentryRelease.value,
|
||||||
environment: sentryENV.value,
|
environment: sentryENV.value,
|
||||||
|
integrations: [new Integrations.BrowserTracing()],
|
||||||
|
tracesSampleRate: 1.0,
|
||||||
},
|
},
|
||||||
smartLook: {
|
smartLook: {
|
||||||
enabled: smartLook.enabled,
|
enabled: smartLook.enabled,
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ export type AppsmithUIConfigs = {
|
||||||
dsn: string;
|
dsn: string;
|
||||||
release: string;
|
release: string;
|
||||||
environment: string;
|
environment: string;
|
||||||
|
integrations: any[];
|
||||||
|
tracesSampleRate: number;
|
||||||
};
|
};
|
||||||
smartLook: {
|
smartLook: {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export const appInitializer = () => {
|
||||||
|
|
||||||
if (appsmithConfigs.sentry.enabled) {
|
if (appsmithConfigs.sentry.enabled) {
|
||||||
Sentry.init(appsmithConfigs.sentry);
|
Sentry.init(appsmithConfigs.sentry);
|
||||||
Sentry.captureMessage("App Initialised");
|
Sentry.captureEvent({ message: "Initalised" });
|
||||||
}
|
}
|
||||||
if (appsmithConfigs.smartLook.enabled) {
|
if (appsmithConfigs.smartLook.enabled) {
|
||||||
const { id } = appsmithConfigs.smartLook;
|
const { id } = appsmithConfigs.smartLook;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user