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

Add a reason field to QosException #925

Closed
wants to merge 7 commits into from

Conversation

mpritham
Copy link
Contributor

@mpritham mpritham commented Dec 8, 2022

Before this PR

Services throw QosExceptions to protect themselves from becoming overloaded. It's useful to know why a service responded with a QosException for better observability. However, the exceptions are currently logged at the debug level, which is disabled by default. It would be costly to log the exceptions at an info (or higher) level.

This PR introduces new QosException factory methods which allow users to store a reason (an object of newly defined type QosReason) for throwing an exception.

After this PR

==COMMIT_MSG==
Add a reason field to QosException
==COMMIT_MSG==

@mpritham mpritham self-assigned this Dec 8, 2022
@changelog-app
Copy link

changelog-app bot commented Dec 8, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Add a reason field to QosException

Check the box to generate changelog(s)

  • Generate changelog entry

@mpritham
Copy link
Contributor Author

Closing this PR. Opened #927 with the diff from this PR, on a branch of the target repository so that the changelog bot can run.

@mpritham mpritham closed this Dec 12, 2022
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.

None yet

3 participants