fixed sentry performance monitoring

This commit is contained in:
Nikhil Nandagopal 2020-08-28 19:41:16 +05:30
parent 040af14de6
commit 4ab6632fdc
3 changed files with 5 additions and 5 deletions

View File

@ -6,8 +6,6 @@ type INJECTED_CONFIGS = {
dsn: string;
release: string;
environment: string;
integrations: any[];
tracesSampleRate: number;
};
smartLook: {
id: string;
@ -55,8 +53,6 @@ const getConfigsFromEnvVars = (): INJECTED_CONFIGS => {
environment:
process.env.REACT_APP_SENTRY_ENVIRONMENT ||
capitalizeText(process.env.NODE_ENV),
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
},
smartLook: {
id: process.env.REACT_APP_SMART_LOOK_ID || "",
@ -172,6 +168,8 @@ export const getAppsmithConfigs = (): AppsmithUIConfigs => {
dsn: sentryDSN.value,
release: sentryRelease.value,
environment: sentryENV.value,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
},
smartLook: {
enabled: smartLook.enabled,

View File

@ -24,6 +24,8 @@ export type AppsmithUIConfigs = {
dsn: string;
release: string;
environment: string;
integrations: any[];
tracesSampleRate: number;
};
smartLook: {
enabled: boolean;

View File

@ -31,7 +31,7 @@ export const appInitializer = () => {
if (appsmithConfigs.sentry.enabled) {
Sentry.init(appsmithConfigs.sentry);
Sentry.captureMessage("App Initialised");
Sentry.captureEvent({ message: "Initalised" });
}
if (appsmithConfigs.smartLook.enabled) {
const { id } = appsmithConfigs.smartLook;