DataDog / dogstatsd-csharp-client

A DogStatsD client for C#/.NET
datadoghq.com
Other
94 stars 62 forks source link

Add an exception handler. #183

Closed ogaca-dd closed 2 years ago

ogaca-dd commented 2 years ago

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.