[Breaking]
The exception catched during IMessageHandler was changed to FailedToProcessMessageException
Original exception is stored in the inner exception if you are using IExceptionHandler use this to get original message
public class CustomExceptionHandler : IExceptionHandler
{
public Task HandleExceptionAsync(ProcessErrorEventArgs args)
{
var original = exceptionEvent.Exception is FailedToProcessMessageException wrapperException
? wrapperException.InnerException!
: exceptionEvent.Exception!;
return Task.CompletedTask;
}
}
To use OpenTelemetry
To use Elastic APM you can use the new method UseApm
[Breaking]
The exception catched during IMessageHandler was changed to FailedToProcessMessageException Original exception is stored in the inner exception if you are using IExceptionHandler use this to get original message