Add Sentry error reporting

This commit is contained in:
2026-08-26 17:08:50 +00:00
parent a92293eefa
commit 1b42150ed6
20 changed files with 86 additions and 3 deletions

View File

@@ -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);
}