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

RWA-2607 Handle null and ServiceBusException #582

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Conversation

rafalkalita
Copy link
Contributor

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")

[ ] Yes
[ x] No

timja
timja previously approved these changes Jun 15, 2023
log.info("CCD Case Event message with id '{}' handled successfully", messageId);
} catch (Exception ex) {
log.error(
"Error processing CCD Case Event message with id '{}' - "
Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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"

raghera
raghera previously approved these changes Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants