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 #927

Merged
merged 3 commits into from
Dec 13, 2022
Merged

Add a reason field to QosException #927

merged 3 commits into from
Dec 13, 2022

Conversation

mpritham
Copy link
Contributor

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==

Note: This change has been reviewed in #925. This PR was created from a branch on the repository, instead of a fork, to enable the changelog bot.

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

changelog-app bot commented Dec 12, 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

Co-authored-by: Carter Kozak <ckozak@palantir.com>
@carterkozak
Copy link
Contributor

Good work, I'm happy with this. I'll plan to merge end of day unless other folks have concerns.

Copy link
Contributor

@carterkozak carterkozak left a comment

Choose a reason for hiding this comment

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

thanks!

@bulldozer-bot bulldozer-bot bot merged commit a62d44e into develop Dec 13, 2022
@bulldozer-bot bulldozer-bot bot deleted the qos-add-reason branch December 13, 2022 14:50
@svc-autorelease
Copy link
Collaborator

Released 2.31.0

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.

None yet

4 participants