Skip to content

Add an exception handler.#183

Merged
ogaca-dd merged 6 commits intomasterfrom
olivierg/exception-handler
Oct 20, 2022
Merged

Add an exception handler.#183
ogaca-dd merged 6 commits intomasterfrom
olivierg/exception-handler

Conversation

@ogaca-dd
Copy link
Copy Markdown
Contributor

@ogaca-dd ogaca-dd commented Oct 5, 2022

DogStatsdService.Configure now takes an optional exception handler which is called when an error occurs. Previously, exceptions were logged using Debug.WriteLine. In addition, DogStatsdService.Configure doesn't throw an exception when an error occurs but returns false and the error is reported to the error handler.

Note: This an API breaking changes.

Comment thread src/StatsdClient/DogStatsdService.cs Outdated
Comment thread src/StatsdClient/IDogStatsd.cs Outdated
Comment thread src/StatsdClient/DogStatsdService.cs
Copy link
Copy Markdown
Member

@gh123man gh123man left a comment

Choose a reason for hiding this comment

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

Just some clarifying questions - not blocking.
Otherwise LGTM 👍

@ogaca-dd ogaca-dd merged commit cbf8540 into master Oct 20, 2022
@ogaca-dd ogaca-dd deleted the olivierg/exception-handler branch October 20, 2022 13:52
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.

2 participants