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

[#2450] Initialize Sentry service at application start #2470

Conversation

placek
Copy link
Contributor

@placek placek commented Dec 4, 2024

The purpose of this change is to optimize the initialization of the Sentry service in the application. Previously, the Sentry service was initialized whenever an exception occurred, which could lead to resource inefficiencies and potential performance bottlenecks. By shifting the initialization to the start of the app lifecycle, rather than initializing repeatedly during exceptions, the application ensures that the Sentry service is consistently ready to handle exceptions right from the start and throughout the entire operation of the application. This adjustment aims to align with the user story's goal of improving exception handling efficiency through centralized initialization.

The outcome of this change is an improvement in the application's performance and resource management. By initializing the Sentry service just once at the start, the application reduces unnecessary repetitive initializations, which can consume system resources and slow down operations. The update also ensures that the Sentry service is seamlessly integrated and ready for use whenever an exception needs to be handled, enhancing the overall robustness and reliability of the application's error management processes.

Updated the application to initialize the Sentry service at the
beginning of the app lifecycle rather than during each exception
occurrence. This change ensures that the Sentry service is set up once
when the application starts, saving resources and potentially increasing
the application's performance by avoiding repetitive initializations.
The Sentry service is passed to the exception handler during setup and
is used consistently throughout the application's uptime. This aligns
with the user story's requirement to optimize exception handling
efficiency by centralizing Sentry service initialization.
Copy link

github-actions bot commented Dec 4, 2024

✅ All checks succeeded

2 similar comments
Copy link

github-actions bot commented Dec 4, 2024

✅ All checks succeeded

Copy link

github-actions bot commented Dec 4, 2024

✅ All checks succeeded

@placek placek merged commit 8f32f9d into develop Dec 5, 2024
5 checks passed
@placek placek deleted the fix/2450-optimizing-sentry-integration-making-initialization-optional-and-enhancing-exception-reporting branch December 5, 2024 08:49
Copy link

github-actions bot commented Dec 5, 2024

@placek
This PR is in the tag: develop-8f32f9db656cdc2c2760d8147c4033b890c202a4 , for govtool-metadata-validation service

Copy link

github-actions bot commented Dec 5, 2024

@placek
This PR is in the tag: develop-8f32f9db656cdc2c2760d8147c4033b890c202a4 , for govtool-frontend service

Copy link

github-actions bot commented Dec 5, 2024

@placek
This PR is in the tag: develop-8f32f9db656cdc2c2760d8147c4033b890c202a4 , for govtool-backend service

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.

🐛 Optimizing Sentry Integration: Making Initialization Optional and Enhancing Exception Reporting
2 participants