You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Controller, Get } from '@nestjs/common';
import { InjectSentry, SentryService } from '@ntegral/nestjs-sentry';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(
@InjectSentry() private readonly client: SentryService,
private readonly appService: AppService,
) {}
@Get()
getHello(): string {
this.client.error('error reported via this.client.error') // <-- this is being reported to Sentry
throw Error('thrown error from the example'); // <-- this is not being reported to Sentry
return this.appService.getHello();
}
}
I don't see unexpected errors (emulated here by throw Error()) reported to Sentry. Is this intentional? How am I supposed to hook up the library to have those errors reported?
The text was updated successfully, but these errors were encountered:
If I rewrite
app.controller.ts
intoI don't see unexpected errors (emulated here by
throw Error()
) reported to Sentry. Is this intentional? How am I supposed to hook up the library to have those errors reported?The text was updated successfully, but these errors were encountered: