SentryJames Crosswell, Ricardo OliveiraAnnouncement
Sentry's .NET SDK 7.0 is ready for .NET 11
Summary
Sentry’s .NET SDK 7.0 fully supports .NET 11 and introduces breaking changes that consolidate SDK initialization to prevent duplicate errors. Logging integrations no longer start the SDK; instead, developers initialize Sentry in one place with SentrySdk.Init or UseSentry(). New packages add UseSentry() for generic host apps and Sentry.Quartz for monitoring Quartz.NET jobs with cron check-ins. The release drops .NET 9 support for Android, iOS, Mac Catalyst, and MAUI Windows targets, requiring .NET 10 or later for those platforms. Requests ending in 301, 305–399, or 401–404 are no longer traced by default to reduce noise in performance data.
Context
Sentry’s .NET SDK 7.0 is a major release that fully supports .NET 11 and introduces breaking changes. It consolidates SDK initialization to prevent duplicate errors, adds new packages for generic hosts and Quartz.NET integrations, and changes how logging integrations work. The release also drops support for .NET 9 on Android, iOS, Mac Catalyst, and MAUI Windows targets.
Approach / What changed
Install the Sentry.Extensions.Hosting package and call UseSentry() on the builder for worker services, console apps, Azure Functions (isolated), and Windows services. For Quartz.NET 4.x, install Sentry.Quartz and call AddSentry() in the Quartz configuration. Remove DSN settings from logging integrations and initialize Sentry in one place with SentrySdk.Init or UseSentry().
Takeaways
In 7.0, logging integrations (Serilog, NLog, log4net) only capture logs, breadcrumbs, and events; they no longer start the SDK. Initialize Sentry in one place with SentrySdk.Init or UseSentry().
The new Sentry.Extensions.Hosting package adds UseSentry() to Host.CreateApplicationBuilder and IHostBuilder for worker services, console apps, Azure Functions (isolated), and Windows services.
Sentry.Quartz runs each Quartz.NET 4.x job in its own scope and trace, tags it with the job key, and captures exceptions. Jobs with [SentryMonitorSlug] send cron check-ins automatically.
FAQ
How do I migrate from logging integrations starting the SDK?
In 7.0, logging integrations (Serilog, NLog, log4net) no longer start the SDK. You must initialize Sentry in one place with SentrySdk.Init or UseSentry(). If a logging integration still sets a DSN, the SDK produces a build error or startup warning to alert you.
How do I monitor Quartz.NET jobs with Sentry?
Install the Sentry.Quartz package and call AddSentry() in your Quartz configuration. Jobs with [SentryMonitorSlug] send cron check-ins automatically. For Quartz.NET 3.x, use Sentry.Quartz3, which registers as a job listener but does not run each job in its own scope.
Why are more logs being sent after upgrading to 7.0?
In 7.0, adding a logging integration sends logs to Sentry without needing the EnableLogs flag. Check your logging framework's minimum level before upgrading, as Debug and Information logs may contain personal data. Use SetBeforeSendLog to filter logs, or return null to turn logs off.
Source and freshness
- Source
- blog.sentry.io
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.