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

So/review sentry exception logging in the api #1498

Merged
merged 22 commits into from
Feb 5, 2025

Conversation

spanersoraferty
Copy link
Contributor

I've limited the use of the correlation ID to the teacher advisor sign-up endpoint (as discussed) to limit the potential for issues if any problems occur. I've also not been able to best the filter attribute, it is possible but I cannot mock the hangfire context because they've neglected to apply interfaces, or make class methods generic. We could use a library like Typemock but not sure if this will play nicely with the CICD pipeline out of the box.

If theses changes prove stable we can raise a second, follow-on ticket to complete the work to apply this logging behaviour across the remaining endpoints.

@github-actions github-actions bot added VisualCSharp Visual C # Test Test scripts and harnesses labels Jan 28, 2025
@@ -10,9 +10,18 @@
"WriteTo": [
{
"Name": "Console"
},
{
"Name": "File",
Copy link
Contributor

Choose a reason for hiding this comment

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

could this be a local dev setting, rather than in the main app settings? I don't think this will work on production

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, this should be removed. Thought I had, leave it with me and I'll sort.

Copy link
Contributor

@martyn-w martyn-w left a comment

Choose a reason for hiding this comment

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

👍 LGTM, tested locally 👍

@spanersoraferty spanersoraferty merged commit 061590d into master Feb 5, 2025
10 checks passed
@spanersoraferty spanersoraferty deleted the SO/review-sentry-exception-logging-in-the-API branch February 5, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Test scripts and harnesses VisualCSharp Visual C #
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants