Releases: getsentry/sentry-dotnet
Releases · getsentry/sentry-dotnet
4.7.0
API Changes
- SentryOptions.EnableTracing has been marked as Obsolete (#3381)
Features
- Added an
SentrySdk.RunAsyncVoid
helper method that lets you capture exceptions fromasync void
methods (#3379)
Fixes
- P/Invoke warning for GetWindowThreadProcessId no longer shows when using Sentry in UWP applications (#3372)
Dependencies
4.6.2
4.6.1
Fixes
- Fixed SentryHttpMessageHandler and SentryGraphQLHttpMessageHandler not creating spans when there is no active Transaction on the scope (#3360)
- The SDK no longer (wrongly) initializes sentry-native on Blazor WASM builds with
RunAOTCompilation
enabled. (#3363) - HttpClient requests now show on the Requests dashboard in Sentry (#3357)
Dependencies
- Bump Hangfire from v1.8.7 to v1.8.12 (#3361)
4.6.0
4.5.0
Features
- Extended the SDK's CheckIn support by adding Release, Environment and Trace ID to the event. CheckIns created via the Hangfire integration now also automatically report their duration (#3320)
- The SDK's performance API now works in conjunction with OpenTelemetry's instrumentation. This means that SentrySpans and OTel spans now show up in the same span-tree. (#3288)
Fixes
HttpResponse.Content
is no longer disposed by when usingSentryHttpFailedRequestHandler
on .NET Framework, which was causing an ObjectDisposedException when using Sentry with NSwag (#3306)- Fix BackgroundWorker exiting when OperationCanceledException is not from shutdown request (3284)
- Envelopes with large attachments no longer get stuck in the queue when using
CacheDirectoryPath
(#3328)
4.4.0
4.3.0
Features
- EnableNetworkEventBreadcrumbs can now be set on the Native Android options (#3267)
- Update normalization of metrics keys, tags and values (#3271)
Fixes
- Fix missing exception StackTraces in some situations (#3215)
- Scopes now get applied to OTEL spans in ASP.NET Core (#3221)
- Fixed InvalidCastException when setting the SampleRate on Android (#3258)
- Fixed MAUI iOS build issue related to
SentryVersionNumber
andSentryVersionString
(#3278)
API changes
- Removed
SentryOptionsExtensions
class - all the public methods moved directly toSentryOptions
(#3195)
Dependencies
4.2.1
4.2.0
Features
- ASP.NET Core: Blocking call detection. An event with the stack trace of the blocking call will be captured as event. (#2709)
- IMPORTANT: Verify this in test/staging before prod! Blocking calls in hot paths could create a lot of events for your Sentry project.
- Opt-in via
options.CaptureBlockingCalls = true
- Disabled for specific code blocks with
using (new SuppressBlockingDetection())
- Doesn't detect everything. See original Caveats described by Ben Adams.
- Added Crons support via
SentrySdk.CaptureCheckIn
and an integration with Hangfire (#3128) - Common tags set automatically for metrics and metrics summaries are attached to Spans (#3191)
API changes
- Removed
ScopeExtensions
class - all the public methods moved directly toScope
(#3186)
Fixes
- The Sentry Middleware on ASP.NET Core no longer throws an exception after having been initialized multiple times (#3185)
- Empty strings are used instead of underscores to replace invalid metric tag values (#3176)
- Filtered OpenTelemetry spans are garbage collected correctly (#3198)