-
-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't working
Description
Package
Sentry
.NET Flavor
.NET
.NET Version
10.0.0
OS
Any (not platform specific)
OS Version
No response
Development Environment
Other
SDK Version
5.14.1
Self-Hosted Sentry Version
No response
Workload Versions
Doesn't matter, blank test project works to showcase
UseSentry or SentrySdk.Init call
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseSentry(x => ConfigureSentry(x, builder.Environment));
static void ConfigureSentry(SentryAspNetCoreOptions options, IWebHostEnvironment env)
{
options.Dsn = "https://[email protected]/2";
options.AutoRegisterTracing = true;
}Steps to Reproduce
- Clone https://github.com/Mitch528/sentry-crash-repro
- Run
dotnet run - Open the home page
- Observe that the app crashes
Expected Result
The app shouldn't crash, the error page should be shown
Actual Result
CLI process terminates. Disabling options.AutoRegisterTracing = true; removes the issue. Not having await before the crash also removes the issue so the async pipeline might also be related.
We also believe that dotnet/runtime#121578 might be related to this issue.
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't working
Projects
Status
Done
Status
No status