Skip to content

Commit

Permalink
Rethrow exception from TracingJobDecorator
Browse files Browse the repository at this point in the history
  • Loading branch information
i-vukman committed Oct 13, 2023
1 parent f6cade6 commit 049da05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AnagramSolver/BackgroundJobs/TracingJobDecorator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Runtime.ExceptionServices;
using Sentry;

namespace AnagramSolver.BackgroundJobs;
Expand Down Expand Up @@ -53,6 +54,7 @@ public async Task ExecuteAsync(T jobData)
else
{
transaction.Finish(exception);
ExceptionDispatchInfo.Capture(exception).Throw();
}
}
}
Expand Down

0 comments on commit 049da05

Please sign in to comment.