This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Controller, Get, UseInterceptors, InternalServerErrorException } from '@nestjs/common'; | |
| import { AppService } from './app.service'; | |
| import { SentryInterceptor } from './sentry.interceptor'; | |
| @UseInterceptors(SentryInterceptor) | |
| @Controller() | |
| export class AppController { | |
| constructor(private readonly appService: AppService) {} | |
| @Get() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Controller, Get, UseInterceptors } from '@nestjs/common'; | |
| import { AppService } from './app.service'; | |
| import { SentryInterceptor } from './sentry.interceptor'; | |
| @UseInterceptors(SentryInterceptor) | |
| @Controller() | |
| export class AppController { | |
| constructor(private readonly appService: AppService) {} | |
| @Get() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| ExecutionContext, | |
| Injectable, | |
| NestInterceptor, | |
| CallHandler, | |
| } from '@nestjs/common'; | |
| import { Observable } from 'rxjs'; | |
| import { tap } from 'rxjs/operators'; | |
| import * as Sentry from '@sentry/minimal'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NestFactory } from '@nestjs/core'; | |
| import { AppModule } from './app.module'; | |
| import * as Sentry from '@sentry/node'; | |
| async function bootstrap() { | |
| const app = await NestFactory.create(AppModule); | |
| Sentry.init({ | |
| dsn: 'https://4e98de50242247eebc5512b55bc558a3@sentry.io/1837145', | |
| }); | |
| await app.listen(3000); |