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

Pva/evsrestapi 538 add error tracking audits #325

Merged
merged 19 commits into from
Feb 10, 2025

Conversation

peter-va
Copy link
Collaborator

@peter-va peter-va commented Feb 6, 2025

EVSRESTAPI-538: Add error tracking audits

https://tracker.nci.nih.gov/browse/EVSRESTAPI-538

draft for now to more easily review code changes

@peter-va peter-va requested a review from bcarlsenca February 6, 2025 22:22
@peter-va peter-va marked this pull request as draft February 6, 2025 22:23
if (e instanceof ResponseStatusException) {
throw e;
}

logger.error("Unexpected error", e);
String functionName =
StackWalker.getInstance().walk(s -> s.skip(1).findFirst()).get().getMethodName();
final Terminology term = termUtils.getIndexedTerminology(terminology, elasticQueryService);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would back off of this. Just using the terminology string is probably good here. If we've had an error, then trying to do these lookups might themselves fail. All we really want to do is get the best info we have into the index as soon as possible. So don't inject termUtils or the elasticQueryService. Like let's start simple and work up to this if we need it at some point.

@peter-va peter-va marked this pull request as ready for review February 7, 2025 21:37
@peter-va peter-va requested a review from bcarlsenca February 7, 2025 21:37
Copy link
Collaborator

@bcarlsenca bcarlsenca left a comment

Choose a reason for hiding this comment

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

ok, some comments. they're repetitive so find the pattern and just look for those things and fix them.

@peter-va peter-va requested a review from bcarlsenca February 8, 2025 01:15
Copy link
Collaborator

@bcarlsenca bcarlsenca left a comment

Choose a reason for hiding this comment

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

I made a few minor changes just around a few things I found but nothing significant. I think this is ready to merge.

@peter-va peter-va merged commit d1316f1 into develop Feb 10, 2025
2 checks passed
@peter-va peter-va deleted the PVA/EVSRESTAPI-542-add-error-tracking-audits branch February 10, 2025 17:33
@peter-va peter-va restored the PVA/EVSRESTAPI-542-add-error-tracking-audits branch February 13, 2025 19:08
@peter-va peter-va deleted the PVA/EVSRESTAPI-542-add-error-tracking-audits branch February 13, 2025 19:11
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