First following instruction for Angular CLI worked:
https://docs.sentry.io/clients/javascript/integrations/angular/
I've added:
PHP:
import * as Raven from 'raven-js';
import { NgModule, ErrorHandler } from '@angular/core';
Raven
.config('https://<key>@sentry.io/<project>')
.install();
export class RavenErrorHandler implements ErrorHandler {
handleError(err:any) : void {
Raven.captureException(err);
}
}
providers: [ { provide: ErrorHandler, useClass: RavenErrorHandler } ]
font>
Cause everything else was there already.
Next is how to use Raven for Sentry logging:
https://docs.sentry.io/clients/javascript/usage/
Мда. Ужасно тут с подсветкой синтаксиса. Кажется, лучше я буду гисты писать, чем тут о_О