From 14fe9434f618508f5389923c5143af221e9af7e0 Mon Sep 17 00:00:00 2001 From: Rinat Arsaev <11846445+KrickRay@users.noreply.github.com> Date: Thu, 16 Sep 2021 14:16:26 +0300 Subject: [PATCH] FR-742: Fix Sentry (#283) --- package-lock.json | 14 +++++++------- package.json | 2 +- src/app/app.module.ts | 3 ++- src/app/core/core.module.ts | 3 +-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index e70db8e2..3d5e34d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "@angular/router": "~12.1.4", "@ngneat/until-destroy": "^8.0.3", "@rbkmoney/partial-fetcher": "~0.4.0", - "@rbkmoney/sentry": "^0.0.1", + "@rbkmoney/sentry": "^0.1.0", "@rbkmoney/utils": "~0.4.0", "@rbkmoney/woody_js": "^0.1.0", "angular-file": "3.0.1", @@ -3815,9 +3815,9 @@ } }, "node_modules/@rbkmoney/sentry": { - "version": "0.0.1", - "resolved": "https://npm.pkg.github.com/download/@rbkmoney/sentry/0.0.1/bcf3fd51c011f7ecde84500b6ee19341d1780958daaa91e2deaa0a72ff1a4dfd", - "integrity": "sha512-AzwQpchPyXnCch7ohZNzRdtDbfQkHlgOlcd+vPaNwzTDDryHBNcTHoflPdAxzS0UYX8BjQ+efPZHToorbRbagw==", + "version": "0.1.0", + "resolved": "https://npm.pkg.github.com/download/@rbkmoney/sentry/0.1.0/b28d2aac364f1c75675c937faa0475542695278931dae7456130bcf0e4a5ef34", + "integrity": "sha512-GlKmOpCT0AcLHiG0L8kjS5/mZYCaYMhlLCAvSETJILnOo/3CKru4Imd7GcM2gPA7V7t7stMQNLjhu/i8CFl7vw==", "dependencies": { "@sentry/angular": "^6.12.0", "@sentry/integrations": "^6.12.0", @@ -27495,9 +27495,9 @@ } }, "@rbkmoney/sentry": { - "version": "0.0.1", - "resolved": "https://npm.pkg.github.com/download/@rbkmoney/sentry/0.0.1/bcf3fd51c011f7ecde84500b6ee19341d1780958daaa91e2deaa0a72ff1a4dfd", - "integrity": "sha512-AzwQpchPyXnCch7ohZNzRdtDbfQkHlgOlcd+vPaNwzTDDryHBNcTHoflPdAxzS0UYX8BjQ+efPZHToorbRbagw==", + "version": "0.1.0", + "resolved": "https://npm.pkg.github.com/download/@rbkmoney/sentry/0.1.0/b28d2aac364f1c75675c937faa0475542695278931dae7456130bcf0e4a5ef34", + "integrity": "sha512-GlKmOpCT0AcLHiG0L8kjS5/mZYCaYMhlLCAvSETJILnOo/3CKru4Imd7GcM2gPA7V7t7stMQNLjhu/i8CFl7vw==", "requires": { "@sentry/angular": "^6.12.0", "@sentry/integrations": "^6.12.0", diff --git a/package.json b/package.json index d8c7d004..eaac44c2 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@angular/router": "~12.1.4", "@ngneat/until-destroy": "^8.0.3", "@rbkmoney/partial-fetcher": "~0.4.0", - "@rbkmoney/sentry": "^0.0.1", + "@rbkmoney/sentry": "^0.1.0", "@rbkmoney/utils": "~0.4.0", "@rbkmoney/woody_js": "^0.1.0", "angular-file": "3.0.1", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 147f1324..d1e6bb02 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -13,6 +13,7 @@ import { MatSidenavModule } from '@angular/material/sidenav'; import { MatToolbarModule } from '@angular/material/toolbar'; import { BrowserModule, DomSanitizer } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { Router } from '@angular/router'; import { createSentryProviders } from '@rbkmoney/sentry'; import * as moment from 'moment'; @@ -92,7 +93,7 @@ moment.locale('en'); { provide: SEARCH_LIMIT, useValue: DEFAULT_SEARCH_LIMIT }, { provide: SMALL_SEARCH_LIMIT, useValue: DEFAULT_SMALL_SEARCH_LIMIT }, { provide: DIALOG_CONFIG, useValue: DEFAULT_DIALOG_CONFIG }, - createSentryProviders({ logErrors: environment.production }), + ...createSentryProviders([Router], { logErrors: environment.production }), ], bootstrap: [AppComponent], }) diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index 825f94d6..c258a9f3 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -1,7 +1,6 @@ import { CommonModule } from '@angular/common'; import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { initSentry } from '@rbkmoney/sentry'; -import { TraceService } from '@sentry/angular'; +import { initSentry, TraceService } from '@rbkmoney/sentry'; import { KeycloakAngularModule, KeycloakService } from 'keycloak-angular'; import { environment } from '../../environments/environment';