remove sentry

This commit is contained in:
Peter Maquiran
2022-12-23 12:23:16 +01:00
parent d8ac3d3b3d
commit b83fff6fbd
72 changed files with 2059 additions and 5260 deletions
+23 -23
View File
@@ -69,35 +69,35 @@ import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx';
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
import * as SentrySibling from '@sentry/angular';
import * as Sentry from '@sentry/capacitor';
/////import * as SentrySibling from '@sentry/angular';
/////import * as Sentry from '@sentry/capacitor';
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
// For automatic instrumentation (highly recommended)
import { Integration } from '@sentry/types';
import { BrowserTracing } from '@sentry/tracing';
/////import { Integration } from '@sentry/types';
/////import { BrowserTracing } from '@sentry/tracing';
/* import { FCM } from '@ionic-native/fcm/ngx';
import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
//import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx';
Sentry.init(
{
dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
// To set your release and dist versions
release: 'gabinetedigital@1.0.0',
dist: '1',
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
tracesSampleRate: 1.0,
integrations: [
new BrowserTracing({
tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
}) as Integration,
]
},
// Forward the init method to the sibling Framework.
SentrySibling.init
);
///// Sentry.init(
///// {
///// dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
///// // To set your release and dist versions
///// release: 'gabinetedigital@1.0.0',
///// dist: '1',
///// // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
///// // We recommend adjusting this value in production.
///// tracesSampleRate: 1.0,
///// integrations: [
///// new BrowserTracing({
///// tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
///// }) as Integration,
///// ]
///// },
///// // Forward the init method to the sibling Framework.
///// SentrySibling.init
/////);
@NgModule({
declarations: [AppComponent],
entryComponents: [],
@@ -145,7 +145,7 @@ Sentry.init(
{
provide: ErrorHandler,
// Attach the Sentry ErrorHandler
useValue: SentrySibling.createErrorHandler(),
/////useValue: SentrySibling.createErrorHandler(),
},
StatusBar,
//SplashScreen,