fixed sentry performance monitoring
This commit is contained in:
parent
040af14de6
commit
4ab6632fdc
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ export type AppsmithUIConfigs = {
|
|||
dsn: string;
|
||||
release: string;
|
||||
environment: string;
|
||||
integrations: any[];
|
||||
tracesSampleRate: number;
|
||||
};
|
||||
smartLook: {
|
||||
enabled: boolean;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user