Add Sentry error reporting
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using Sentry;
|
||||
using SmartB2B.Enova.Contracts;
|
||||
using SmartB2B.Enova.Service.Rpc;
|
||||
|
||||
@@ -73,6 +74,11 @@ public sealed class PlaceOrderHandler
|
||||
}
|
||||
catch (EnovaOperationException exception)
|
||||
{
|
||||
SentrySdk.CaptureException(exception, scope =>
|
||||
{
|
||||
scope.SetTag("rpc.procedure", "eu.smartb2b.place_order");
|
||||
scope.SetTag("wamp.error_uri", exception.ErrorUri);
|
||||
});
|
||||
throw WampErrorFactory.FromEnova(exception);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user