-
Notifications
You must be signed in to change notification settings - Fork 2
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
RWA-2607 Handle null and ServiceBusException #582
base: master
Are you sure you want to change the base?
Conversation
log.info("CCD Case Event message with id '{}' handled successfully", messageId); | ||
} catch (Exception ex) { | ||
log.error( | ||
"Error processing CCD Case Event message with id '{}' - " |
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.
thoughts on adding sampling for this exception? as well? if it's all the same do we need to log all of them to app insights? https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-sampling-overrides#getting-started
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.
Yeah I think Rafal is going to follow up at looking into that. This is the first PR since we saw lots of NPEs.
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.
I am totally not sure where to find spec for "telemetryType": "exception". If you will see one please send over. Added sampling to applicationinsights.json. Please have a look.
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.
https://learn.microsoft.com/en-us/azure/azure-monitor/app/data-model-complete#exception is the only thing I have found. But there is nothing there why request has "http.url" as a key in the examples. They just mention "url"
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/RWA-2607
Change description
Handle null gracefully and log error message on ServiceBusException instead of the whole exception.
Does this PR introduce a breaking change? (check one with "x")