NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #660 most downloaded on NuGet
Official Microsoft.Extensions.Logging integration for Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time.
Latest stable
6.12.1
Last release 1 months ago
13 Oct 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
127 years old
209 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Add the delegate TransactionNameProvider to allow the name definition from Unknown transactions on ASP.NET Core
<ImplicitUsings>true</ImplicitUsings>) (#1398)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add CaptureLastError as an extension method to the Server class on ASP.NET
Events no longer get dropped because of non-serializable contexts or attachments
Attaching byte arrays to the scope no longer leads to ObjectDisposedException
Dont log "Ignoring request with Size" when null
Add automatic spans to Entity Framework operations
Forward the IP of the client with whe tunnel middleware
Sentry Sessions status as Breadcrumbs
shouldQueueEventAdd additional primitive values as tags on SentryLogger
Unity Android support: check for native crashes before closing session as Abnormal
Add missing PathBase from ASP.NET Core
Exceptions from UnhandledExceptionIntegration were not marking sessions as crashed
Removed braces from tag keys on DefaultSentryScopeStateProcessor
EF Core and SQLClient performance monitoring integration
New package Sentry.Tunnel to proxy Sentry events
Add IsParentSampled to ITransactionContext (#1128
Don't log an error when attempting to recover a persisted session but none exists
ASP.NET Core: fix handled not being set for Handled exceptions
sampleRate parameter to configure the likelihood of sending an event [0.0-1.0]Integration for Google Cloud Functions
1.15.12SentryCrashExceptionApplication for macOS uncaught exception handlingIHub.ResumeSession(): don't start a new session if pause wasn't called or if there is no active session
Extended Device and GPU protocol; public IJsonSerializable
Changes since 3.5.0:
AdjustStandardEnvironmentNameCasing to opt-out from lower casing env name. #1057CaptureEvent(...) for the purpose of reporting errors in session (#1058)Report user IP address for ASP.NET Core
SentryUserSentry.EntityFramework moved to this repository
netstandard2.1 target added. Sample with .NET Core 3.1 console app.UseBreadcrumbs is called automatically by AddEntityFrameworkExpose sdk property for SentryEvent to allow users to set specific SDK information. -> mainly used in react-native
Env var to keep large envelopes if they are rejected by Sentry
boot time detection can fail in some cases
Remove stripping of __sentry extra because it breaks if the event is serialized more than once.
Don't override Span/Transaction status on Finish(...) if status was not provided explicitly (#928) @Tyrrrz
Move Description field from Transaction to Trace context (#924) @Tyrrrz
Add StartupTime and Device.BootTime (#887) @lucas-zimerman
Changed the underlying implementation of ITransaction and ISpan. IHub.CaptureTransaction now takes a Transaction instead of ITransaction. (#880) @Tyrr
ITransaction and ISpan. IHub.CaptureTransaction now takes a Transaction instead of ITransaction. (#880) @TyrrrzISpan.StartChild(...) and related methods (#900) @TyrrrzappendStacktraceToEvent function in addition to snapshotStacktrace to add stacktraces reliably.Don't add version prefix in release if it's already set (#877) @Tyrrrz
To opt out of TaskUnobservedTaskException, you can use the option:
sentryOption.DisableTaskUnobservedTaskExceptionCapture();
shouldSendEvent to make it possible to prevent the event from being sent.Add AddSentryTag and AddSentryContext Extensions for exception class (#834) @lucas-zimerman
KSCrash 1.15.9 Core subspec which only uses bare minimum for Crash reportingDon't write timezone_display_name if it's the same as the ID (#837) @Tyrrrz
Fix serialization of transactions when filesystem caching is enabled. (#815) @Tyrrrz
Fix transaction sampling (#810) @Tyrrrz
Don't add logs coming from Sentry as breadcrumbs (fixes stack overflow exception) (#797) @Tyrrrz
params string[] (#796) @TyrrrzFix DI issues in ASP.NET Core + SentryHttpMessageHandlerBuilderFilter (#789) @Tyrrrz
Evaluate error from the breadcrumb list (#790) @TyrrrzThis version has a notable change which sets Options.TracesSampleRate to 0.0 by default (used to be 1.0 by default).
If you are using tracing make sure that you explicitly configure Options.TracesSampleRate to some non-zero value:
SentrySdk.Init(options =>
{
// Send ALL traces (previous default)
options.TracesSampleRate = 1.0;
});
Bundled KSCrash into Sentry. Note that this is just for Carthage, CocoaPods knows how to link 2 dynamic frameworks together.
Add GetSpan() to IHub and SentrySdk (#782) @Tyrrrz
bump log4net 2.0.12 (#781) @bruno-garcia
Please read through all breaking changes relevant to you before upgrading.
Please read through all breaking changes relevant to you before upgrading.
The format of the stack traces were greatly improved with the help of Ben Adam's iconic library Ben.Demystifier. Frames now include details such as async, static, the actual return type, method parameters, tuples and their names, and more.
One big caveat is that this will affect grouping!. If you prefer to stay with the original stack trace format, you can opt-out of this feature with:
options.StackTraceMode = StackTraceMode.Original;
ASP.NET (not Core) users need to install an additional package:
Sentry.AspNet.
Without this, HTTP related information will not be added to events.
You can plug it in to the Init as follows:
SentrySdk.Init(o =>
{
o.AddAspNet();
});
The motivation was to remove the reference to System.Web to decouple the core of the package with any specific namespaces of the .NET Framework, which improves the experience from other environments such as game engines like Unity and Godot.
To match Sentry's default environment naming convention, unless explicitly set otherwise, the Sentry environment will be reported lowercase. That means if ASPNET_ENVIRONMENT is equal to Production, the Sentry SDK will report it as production #551
IncludeRequestPayloadThe option IncludeRequestPayload that was deprecated in the Sentry SDK 2.0 was finally removed.
The replacement has been the option MaxRequestBodySize.
IHub received two new methodsSentry's Performance product requires additive API changes to interfaces such as IHub. If you implement your own IHub, you'll need to implement two new methods:
StartTransaction and GetTraceHeader.
DiagnosticsLogger renamed to DiagnosticLoggerTo align with other SDKs, the option is now named: DiagnosticLogger
Docs PR Change: #759
Dsn is just a stringSentryOptions now take a string for Dsn:
Before: o.Dsn = new Dsn("..");
After: o.Dsn = "..";
LogEntry became MessageThe property of SentryEvent that supports a structured log entry was renamed to Message to align with the protocol and other SDKs.
This version uses the envelope endpoint. If you are using an on-premise installation it requires Sentry version >= v20.6.0 to work. If you are using sentry.io nothing will change and no action is needed.
You can optionally have events cached to disk. To do that, you must specify which directory the SDK can use to write the crash files:
options.CacheDirectoryPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData))
You can add attachments to events now. Please refer to the Attachments documentation.
You can add user feedback to events via a .NET API. Please refer to the Attachments documentation.
There are no dependencies when targeting .NET 5 or newer.
A new package was added ASP.NET Core gPRC support. With the ability to log the request payload in case of errors.
DiagnosticsLevel to DiagnosticLevel (#759) @bruno-garciaRelease to Scope (#765) @TyrrrzHttpContext.RequestPath if a route is unknown (#767 #769) @kanadaj @TyrrrzCacheFlushTimeout to InitCacheFlushTimeout (#638) @lucas-zimermanstring) on Scope and Event now is called TransactionName. (#633)BaseScope with IScope. (#590) @TyrrrzExtra where value parameter become nullable. @lucas-zimermanSentryOptions.BeforeBreadcrumb signature to accept returning nullable values.This release is a rewrite of the existing codebase, sentry-cocoa now uses Objective-C instead of Swift.
Please make sure to check out the docs since this update introduced many breaking changes.
https://docs.sentry.io/clients/cocoa/
KSCrash is now optional, you can use Sentry without it, we still recommend using KSCrash by default otherwise Sentry will not catch any crashes.
Add nullable reference types support (Sentry, Sentry.Protocol) (#509) fix: Use ASP.NET Core endpoint FQDN (#485) feat: Add integration to TaskSchedule
Add nullable reference types support (Sentry, Sentry.Protocol) (#509) fix: Use ASP.NET Core endpoint FQDN (#485) feat: Add integration to TaskScheduler.UnobservedTaskException (#481)
Apply Logger Scope to Sentry Scope on ASP.NET Core (when scope is locked) Add a hook in the Options so user can customize how to apply the state into
Apply Logger Scope to Sentry Scope on ASP.NET Core (when scope is locked)
Add a hook in the Options so user can customize how to apply the state into the Sentry scope.
#596 #598 72b4bb34b
Fix duplicate symbols in crash report
Fix duplicate symbols in crash report
1884.42s user 368.70s system 171% cpu 21:55.70 total
fix: aspnet fqdn (#485) @bruno-garcia ref: wait on test the time needed (#484) @bruno-garcia feat: Add integration to TaskScheduler.UnobservedTaskExce
fix: aspnet fqdn (#485) @bruno-garcia ref: wait on test the time needed (#484) @bruno-garcia feat: Add integration to TaskScheduler.UnobservedTaskException (#481) @lucas-zimerman build(deps): bump Serilog.AspNetCore from 3.2.0 to 3.4.0 (#477) @dependabot-preview Fix README typo (#480) @AndreasLangberg build(deps): bump coverlet.msbuild from 2.8.1 to 2.9.0 (#462) @dependabot-preview build(deps): bump Microsoft.Extensions.Logging.Debug @dependabot-preview fix some spelling (#475) @SimonCropp build(deps): bump Microsoft.Extensions.Configuration.Json (#467) @dependabot-preview
("app_identifier", bundleID)
("app_name", bundleName)
("app_build", bundleVersion)
("app_version", bundleShortVersion)
fix: MEL don't init if enabled (#460) @bruno-garcia
fix: MEL don't init if enabled (#460) @bruno-garcia
We'd love to get feedback.
NLog SentryTarget - NLogDiagnosticLogger for writing to NLog InternalLogger (#450) @snakefoot
We'd love to get feedback.
SentryScopeManager - Fixed clone of Stack so it does not reverse order (#420) @snakefoot
We'd love to get feedback.
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES back to NO since it prevents upload to iTunes ConnectFix Background worker dispose logs error message (#408) Fix sentry serilog extension method collapsing (#406) Fix Sentry.Samples.NLog so NLog.config i
Fix Background worker dispose logs error message (#408) Fix sentry serilog extension method collapsing (#406) Fix Sentry.Samples.NLog so NLog.config is valid (#404)
Thanks @snakefoot and @JimHume for the fixes
Fix Background worker dispose logs error message (#408) Fix sentry serilog extension method collapsing (#406) Fix Sentry.Samples.NLog so NLog.config is valid (#404)
Thanks @snakefoot and @JimHume for the fixes
Add MVC route data extraction to ScopeExtensions.Populate() (#401)
Add MVC route data extraction to ScopeExtensions.Populate()
Add MVC route data extraction to ScopeExtensions.Populate() (#401)
Fixed ASP.NET System.Web catch HttpException to prevent the request processor from being unable to submit #397
Fixed ASP.NET System.Web catch HttpException to prevent the request processor from being unable to submit #397 (#398)
* Ignore WCF error and capture
Serilog Sentry sink does not load all options from IConfiguration
Bug fix: Don't overwrite server name set via configuration with machine name on ASP.NET Core #372
Bug fix: Don't overwrite server name set via configuration with machine name on ASP.NET Core #372
Set score url to fully constructed url #367 Thanks @christopher-taormina-zocdoc
addTag addExtra function to SentryClient and Event
e.g.:SentryClient.shared?.addExtra("key", value: "value")
event.addTag("key", value: "value")
maxCrumbs so the maximum amount of breadcrumbs can be adjustedExpose httpHandler creation (#359) NLog: possibility to override fingerprint using AdditionalGroupingKey (#358) @Shtannikov Take ServerName from optio
Expose httpHandler creation (#359) NLog: possibility to override fingerprint using AdditionalGroupingKey (#358) @Shtannikov Take ServerName from options (#356)
Add logger and category from Serilog SourceContext. (#316) @krisztiankocsis Set DateFormatHandling.IsoDateFormat for serializer. Fixes #351 (#353) @ol
Add logger and category from Serilog SourceContext. (#316) @krisztiankocsis Set DateFormatHandling.IsoDateFormat for serializer. Fixes #351 (#353) @olsh
Removed -beta from dependencies.
Removed -beta from dependencies.
release with eventMajor version bumped due to these breaking changes:
BackgroundWorker (#293)Sentry. frames from InApp (#272)Sentry.Protocol 836fb07eSentry.PlatformAbsrtractions #226Microsoft.Extensions.Logging ConfigureScope invocation. #208, #210, #224 Thanks @dbraillonSentry.Serilog Verbose level. #213, #217. Thanks @kanadajMajor version bumped due to these breaking changes:
Sentry.Protocol version 2.0.0ContextLine #223StackTrace from Threads #222FlushAsync added to ISentryClient #214We decided to rename SentrySwift to just Sentry
Version 2.0.0 has the same features as 1.4.5.
The name of the Framework has been changed from:
import SentrySwift
to
import Sentry
Also in the Podfile you have to change to pod Sentry instead of pod SentrySwift.
Everything else stayed the same.
SentryTarget - GetTagsFromLogEvent with null check
Reading request body throws on ASP.NET Core 3
Fixes:
Features:
One column per quarter.