Add Sentry for Backend (#1403)

* - added sentry

* - renamed env var

* - logger driver

* - add breadcrumb and category

* - fix driver
This commit is contained in:
brendanlaschke
2023-09-11 22:22:30 +03:00
committed by GitHub
parent 110d5eaa9d
commit 35bcef5090
15 changed files with 356 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import bytes from 'bytes';
import { AppModule } from './app.module';
import { settings } from './constants/settings';
import { LoggerService } from './integrations/logger/logger.service';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {
@ -32,6 +33,8 @@ async function bootstrap() {
maxFiles: 10,
}),
);
const loggerService = app.get(LoggerService);
app.useLogger(loggerService);
await app.listen(3000);
}