Closed nicopace closed 7 years ago
this is the code for having support of sentry in the app (extracted from https://sentry.webph.one/sentry/angular/getting-started/javascript-angular/):
import Raven = require('raven-js'); import { BrowserModule } from '@angular/platform-browser'; import { NgModule, ErrorHandler } from '@angular/core'; import { AppComponent } from './app.component'; Raven .config('https://f5e066d0fe54459e9568a70eb224734b@sentry.webph.one/2') .install(); export class RavenErrorHandler implements ErrorHandler { handleError(err:any) : void { Raven.captureException(err.originalError || err); } } @NgModule({ imports: [ BrowserModule ], declarations: [ AppComponent ], bootstrap: [ AppComponent ], providers: [ { provide: ErrorHandler, useClass: RavenErrorHandler } ] }) export class AppModule { }
Might get back to this later
this is the code for having support of sentry in the app (extracted from https://sentry.webph.one/sentry/angular/getting-started/javascript-angular/):