chore: Expose Sentry object globally (#8957)
This commit is contained in:
parent
e944d005c1
commit
dda55f38cc
|
|
@ -50,6 +50,7 @@ declare global {
|
|||
interface Window {
|
||||
APPSMITH_FEATURE_CONFIGS: INJECTED_CONFIGS;
|
||||
Intercom: any;
|
||||
Sentry: any;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ export const appInitializer = () => {
|
|||
const appsmithConfigs = getAppsmithConfigs();
|
||||
|
||||
if (appsmithConfigs.sentry.enabled) {
|
||||
window.Sentry = Sentry;
|
||||
Sentry.init({
|
||||
...appsmithConfigs.sentry,
|
||||
beforeBreadcrumb(breadcrumb) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user