Closed petedishman closed 3 weeks ago
Hi @petedishman , thank you for putting together repo demonstrating the issue ❤
I can confirm that I can reproduce this... I'll do a bit of digging to see if I can work out why it's happening.
Excellent, thanks @jamescrosswell
Package
Other
.NET Flavor
.NET Core
.NET Version
8.0.0
OS
Any (not platform specific)
SDK Version
4.12.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
I have a minimal repo available at https://github.com/petedishman/SentryShutdownBug
This is a minimal aspnetcore app configured with Sentry & OpenTelemetry together
Can repro the issue with:
program.cs
dotnet run
http://localhost:5005
CTRL+C
It appears to be dependent on the
TracesSampleRate
setting and this needs to be discarding traces for the error to occur, otherwise if it's set to1.0
it will exit without error.Expected Result
Application should shutdown without an exception being thrown
Actual Result
This exception is logged, then app continues to shutdown