-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task #200127 : Sentry Setup with BreadCrumbs and captureException for All Cron Job #402
base: feat-sentry
Are you sure you want to change the base?
Conversation
… list fetch for user create collection and AssociateFacesCommand
…, created 3 cron job, user creation, face indexing, mark attendance
…removed all success console log, added error.stack and proper return response while exception occured, solved required code smells in sonarcloud, add custom cron job timer, first cron runs for each hours 5th minute eg: 10:05am, 11::05am, 2nd cron runs for each hours 15th minute eg: 10:15am, 11::15am, 3rd cron runs for each hours 25th minute eg: 10:25am, 11::25am
…adcrumb object response
src/src/sentry.filter.ts
Outdated
@@ -0,0 +1,12 @@ | |||
import { Catch, ArgumentsHost } from '@nestjs/common'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
how this is different from
~/src/src/common/interceptors/sentry.interceptor.ts? -
do we need both?
-
if we only need this move to ~/src/src/common/filters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is working without sentry global filter so I removed sentry global filter. Also as we discussed, I also removed transactions from 3 cron job.
@@ -59,25 +61,39 @@ export class AwsRekognitionService { | |||
); | |||
//.promise(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove old commented code / console logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…e, added detail message format for breadcrumb
Kudos, SonarCloud Quality Gate passed! |
-Created SentryFilter class which extends BaseExceptionFilter
-Used this SentryFilter as app useGlobalFilters
-Created Sentry service which contain methods addBreadcrumb, startTransaction, captureException
-Added Sentry Transaction, BreadCrumbs and captureException in 3 Cron Jobs i.e., faUserIndexing.cron, faFaceIndexing.cron, faAttendanceProcessing.cron
I have ensured that following
Pull Request Checklist
is taken care of before sending this PR