Skip to content
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

Open
wants to merge 22 commits into
base: feat-sentry
Choose a base branch
from

Conversation

rushi-tekdi
Copy link
Collaborator

-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

  • Code is formatted as per format decided
  • Updated acceptance criteria in tracker
  • Updated test cases in test-cases-tracker
  • Updated new API endpoint if any in common postman collection
  • Updated DB changes in db-tracker if any

… 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
@@ -0,0 +1,12 @@
import { Catch, ArgumentsHost } from '@nestjs/common';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. how this is different from
    ~/src/src/common/interceptors/sentry.interceptor.ts?

  2. do we need both?

  3. if we only need this move to ~/src/src/common/filters

Copy link
Collaborator Author

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();
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@rushi-tekdi rushi-tekdi changed the title Task #200127 : Sentry Setup with Transaction, BreadCrumbs and captureException for All Cron Job Task #200127 : Sentry Setup with BreadCrumbs and captureException for All Cron Job Oct 23, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 12 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-1.5.0 to release-1.6.0 December 2, 2023 08:45
@manojLondhe manojLondhe changed the base branch from release-1.6.0 to release-1.7.0 February 1, 2024 09:35
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-1.7.0 to release-1.7.1 February 14, 2024 04:17
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-1.7.1 to release-2.0.0 February 14, 2024 11:29
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-2.0.0 to release-1.7.2 February 14, 2024 11:29
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-1.7.2 to release-1.7.6 February 19, 2024 10:04
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-1.7.6 to release-2.0.0 April 2, 2024 06:01
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-2.0.0 to release-2.1.0 April 18, 2024 12:33
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-2.1.0 to release-2.2.0 May 22, 2024 07:08
@rushi-tekdi rushi-tekdi changed the base branch from release-2.2.0 to release-2.3.0 June 21, 2024 05:05
@sagarkoshti1990 sagarkoshti1990 changed the base branch from release-2.5.0 to feat-sentry August 30, 2024 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants