-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ABANDONED-RENOVATE chore(deps): update dependency sentry to v4 #747
Conversation
✒️ PR Title Commitlint - ✔️ Lint success! |
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
d7ef179
to
e14cb9c
Compare
fafbca4
to
64b7b27
Compare
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
3.41.0
->4.12.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
getsentry/sentry-dotnet (Sentry)
v4.12.0
Compare Source
API Changes
SentrySdk.Metrics
module is deprecated and will be removed in the next major release.Sentry will reject all metrics sent after October 7, 2024.
Learn more: https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics (#3619)
Fixes
Features
DisableFileWrite
to allow users to opt-out of all file writing operations. Note that toggling this will affect features such as offline caching and auto-session tracking and release health as these rely on some file persistency (#3614, #3641)Dependencies
e343a0c
(#3492)v4.11.0
Compare Source
Features
Sentry.SeriLog
orSentry.Extensions.Logging
integrations. (#3584)Fixes
FormatException
forProcessorFrequency
when trying to report native events (#3541)API Changes
SentrySdk.StartTransaction()
now returns aNoOpTransaction
, which avoids unnecessary memory allocations (#3581)Dependencies
v4.10.2
Compare Source
Various fixes & improvements
Hub.Dispose
(#3539) by @bitsandfoxesDependencies
v4.10.1
Compare Source
Fixes
Dependencies
v4.10.0
Compare Source
Features
Sentry.AspNetCore.Blazor.WebAssembly
now targets .NET 8 specifically, allowing for proper dependency resolution (#3501)Fixes
WPF
,WinForms
orAvalonia
withPublishAot
enabled, the SDK no longers throws aDllNotFoundException
trying to initializesentry-native
(#3411)Unable to load DLL sentry-native or one of its dependencies
FormatException
when trying to report native events (#3485)SentryMessageHandler
(#3477)Dependencies
v4.9.0
Compare Source
Fixes
Features
API Changes
v4.8.1
Compare Source
Fixes
FirstChanceException
workaround for WinUI (#3411)Dependencies
v4.8.0
Compare Source
Obsoletion
Features
Sentry.AspNetCore.Blazor.WebAssembly
. This packages provides you with an extension toWebAssemblyHostBuilder
to allow SDK configuration via the builder pattern. This package gives us an entry point and the ability to extend the SDKs support and out-of-the-box offering. You can follow the progress and leave feedback either (here) for extending the support for Blazor Server or (here) for Blazor WebAssembly support (#3386)Fixes
Scope.User.Id
now correctly defaults to the InstallationId unless it has been set otherwise (#3425)Dependencies
v4.7.0
Compare Source
API Changes
Features
SentrySdk.CaptureCheckIn
(#3330)SentrySdk.RunAsyncVoid
helper method that lets you capture exceptions fromasync void
methods (#3379)Fixes
Dependencies
v4.6.2
Compare Source
Fixes
v4.6.1
Compare Source
Fixes
RunAOTCompilation
enabled. (#3363)Dependencies
v4.6.0
Compare Source
Features
byte[]
as attachment (#3352)Fixes
Dependencies
v4.5.0
Compare Source
Features
Fixes
HttpResponse.Content
is no longer disposed by when usingSentryHttpFailedRequestHandler
on .NET Framework, which was causing an ObjectDisposedException when using Sentry with NSwag (#3306)CacheDirectoryPath
(#3328)Dependencies
v4.4.0
Compare Source
Features
Fixes
Dependencies
v4.3.0
Compare Source
Features
Fixes
SentryVersionNumber
andSentryVersionString
(#3278)API changes
SentryOptionsExtensions
class - all the public methods moved directly toSentryOptions
(#3195)Dependencies
v4.2.1
Compare Source
Fixes
v4.2.0
Compare Source
Features
options.CaptureBlockingCalls = true
using (new SuppressBlockingDetection())
SentrySdk.CaptureCheckIn
and an integration with Hangfire (#3128)API changes
ScopeExtensions
class - all the public methods moved directly toScope
(#3186)Fixes
Dependencies
v4.1.2
Compare Source
Fixes
v4.1.1
Compare Source
Fixes
options.Dsn = "";
By convention, the SDK allows the DSN set tostring.Empty
to be overwritten by the environment. (#3147)Dependencies
v4.1.0
Compare Source
Features
OpenTelemetry.Instrumentation.Runtime
(#3133)Fixes
SentrySdk.Init
(#3129)v4.0.3
Compare Source
Fixes
Sentry.Constants
has been renamed toSentry.SentryConstants
(#3125)v4.0.2
Compare Source
Fixes
Sentry.Context
has been renamed toSentry.SentryContext
(#3121)Sentry.Package
has been renamed toSentry.SentryPackage
(#3121)Sentry.Request
has been renamed toSentry.SentryRequest
(#3121)Dependencies
v4.0.1
Compare Source
Fixes
Sentry.ISession
has been renamed toSentry.ISentrySession
(#3110)Sentry.IJsonSerializable
has been renamed toSentry.ISentryJsonSerializable
(#3116)Sentry.Session
has been renamed toSentry.SentrySession
(#3110)Sentry.Attachment
has been renamed toSentry.SentryAttachment
(#3116)Sentry.Hint
has been renamed toSentry.SentryHint
(#3116)Dependencies
v4.0.0
Compare Source
This major release includes many exciting new features including support for Profiling and Metrics(preview), AOT with Native Crash Reporting, Spotlight, Screenshots on MAUI and much more. Details about these features and other changes are below.
.NET target framework changes
We're dropping support for some of the old target frameworks, please check this GitHub Discussion for details on why.
Replace support for .NET Framework 4.6.1 with 4.6.2 (#2786)
.NET Framework 4.6.1 was announced on Nov 30, 2015. And went out of support over a year ago, on Apr 26, 2022.
Drop .NET Core 3.1 and .NET 5 support (#2787)
Dropped netstandard2.0 support for Sentry.AspNetCore (#2807)
Replace support for .NET 6 on mobile (e.g:
net6.0-android
) with .NET 7 (#2624).NET 6 on mobile has been out of support since May 2023 and with .NET 8, it's no longer possible to build .NET 6 Mobile specific targets.
For that reason, we're moving the mobile-specific TFMs from
net6.0-platform
tonet7.0-platform
.Mobile apps still work on .NET 6 will pull the
Sentry
.NET 6, which offers the .NET-only features,without native/platform-specific bindings and SDKs. See this ticket for more details.
MAUI dropped Tizen support (#2734)
Sentry Self-hosted Compatibility
If you're using
sentry.io
this change does not affect you.This SDK version is compatible with a self-hosted version of Sentry
22.12.0
or higher. If you are using an older version of self-hosted Sentry (aka on-premise), you will need to upgrade.Significant change in behavior
HTTP-VERB /path
(e.g.GET /home
). Previously, the leading forward slash was missing for some endpoints. (#2808)SentryOptions.Dsn
tonull
now throwsArgumentNullException
during initialization. (#2655)CaptureFailedRequests
by default (#2688)Sentry
namespace to global usings whenImplicitUsings
is enabled (#3043)If you have conflicts, you can opt out by adding the following to your
csproj
:deadline_exceeded
by the transaction. This is now handled by the Relay.User.IpAddress
is now set to{{auto}}
by default, even when sendDefaultPII is disabled (#2981)DiagnosticLogger
signature forLogWarning
changed to take theexception
as the first parameter. That way it no longer gets mixed up with the TArgs. (#2987)API breaking Changes
If you have compilation errors you can find the affected types or overloads missing in the changelog entries below.
Changed APIs
Sentry.User
toSentry.SentryUser
(#3015)Sentry.Runtime
toSentry.SentryRuntime
(#3016)Sentry.Span
toSentry.SentrySpan
(#3021)Sentry.Transaction
toSentry.SentryTransaction
(#3023)Cocoa
toNative
(#2940)EnableCocoaSdkTracing
toEnableTracing
(#2940)Android
toNative
(#2940)EnableAndroidSdkTracing
andEnableAndroidSdkBeforeSend
toEnableTracing
andEnableBeforeSend
respectively (#2940)iOS
toCocoa
(#2929)ITransaction
has been renamed toITransactionTracer
. You will need to update any references to these interfaces in your code to use the new interface names (#2731, #2870)DebugImage
andDebugMeta
moved toSentry.Protocol
namespace. (#2815)SentryClient.Dispose
is no longer obsolete (#2842)ISentryClient.CaptureEvent
overloads have been replaced by a single method accepting optionalHint
andScope
parameters. You will need to passhint
as a named parameter from code that callsCaptureEvent
without passing ascope
argument. (#2749)TransactionContext
andSpanContext
constructors were updated. If you're constructing instances of these classes, you will need to adjust the order in which you pass parameters to these. (#2694, #2696)DiagnosticLogger
signature forLogError
andLogFatal
changed to take theexception
as the first parameter. That way it no longer gets mixed up with the TArgs. TheDiagnosticLogger
now also receives an overload forLogError
andLogFatal
that accepts a message only. (#2715)Distribution
added toIEventLike
. (#2660)StackFrame
'sImageAddress
,InstructionAddress
, andFunctionId
changed tolong?
. (#2691)DebugImage.ImageAddress
changed tolong?
. (#2725)IDictionary
rather thanConcurrentDictionary
. The specific dictionary being used is an implementation detail. (#2729)WriteTo.Sentry()
with no arguments will no longer attempt to initialize the SDK (it has optional arguments to configure the behavior of the Sink only). If you want to initialize Sentry at the same time you configure the Sentry Sink then you will need to use the overload of this method that accepts a DSN as the first parameter (e.g.WriteTo.Sentry("https://d4d82fc1c2c4032a83f3a29aa3a3aff@fake-sentry.io:65535/2147483647")
). (#2928)Removed APIs
SentrySinkExtensions.ConfigureSentrySerilogOptions is now internal. If you were using this method, please use one of the
SentrySinkExtensions.Sentry
extension methods instead. (#2902)A number of
[Obsolete]
options have been removed (#2841)BeforeSend
- useSetBeforeSend
instead.BeforeSendTransaction
- useSetBeforeSendTransaction
instead.BeforeBreadcrumb
- useSetBeforeBreadcrumb
instead.CreateHttpClientHandler
- useCreateHttpMessageHandler
instead.ReportAssemblies
- useReportAssembliesMode
instead.KeepAggregateException
- this property is no longer used and has no replacement.DisableTaskUnobservedTaskExceptionCapture
method has been renamed toDisableUnobservedTaskExceptionCapture
.DebugDiagnosticLogger
- useTraceDiagnosticLogger
instead.A number of iOS/Android-specific
[Obsolete]
options have been removed (#2856)Distribution
- useSentryOptions.Distribution
instead.EnableAutoPerformanceTracking
- useSetBeforeSendTransaction
instead.EnableCoreDataTracking
- useEnableCoreDataTracing
instead.EnableFileIOTracking
- useEnableFileIOTracing
instead.EnableOutOfMemoryTracking
- useEnableWatchdogTerminationTracking
instead.EnableUIViewControllerTracking
- useEnableUIViewControllerTracing
instead.StitchAsyncCode
- no longer available.ProfilingTracesInterval
- no longer available.ProfilingEnabled
- useProfilesSampleRate
instead.Obsolete
SystemClock
constructor removed, useSystemClock.Clock
instead. (#2856)Obsolete
Runtime.Clone()
removed, this shouldn't have been public in the past and has no replacement. (#2856)Obsolete
SentryException.Data
removed, useSentryException.Mechanism.Data
instead. (#2856)Obsolete
AssemblyExtensions
removed, this shouldn't have been public in the past and has no replacement. (#2856)Obsolete
SentryDatabaseLogging.UseBreadcrumbs()
removed, it is called automatically and has no replacement. (#2856)Obsolete
Scope.GetSpan()
removed, useSpan
property instead. (#2856)Obsolete
IUserFactory
removed, useISentryUserFactory
instead. (#2856, #2840)IHasMeasurements
has been removed, useISpanData
instead. (#2659)IHasBreadcrumbs
has been removed, useIEventLike
instead. (#2670)ISpanContext
has been removed, useITraceContext
instead. (#2668)IHasTransactionNameSource
has been removed, useITransactionContext
instead. (#2654)(#2694)
The unused
StackFrame.InstructionOffset
has been removed. (#2691)The unused
Scope.Platform
property has been removed. (#2695)The obsolete setter
Sentry.PlatformAbstractions.Runtime.Identifier
has been removed (2764)Sentry.Values<T>
is now internal as it is never exposed in the public API (#2771)The
TracePropagationTarget
class has been removed, use theSubstringOrRegexPattern
class instead. (#2763)The
WithScope
andWithScopeAsync
methods have been removed. We have discovered that these methods didn't work correctly in certain desktop contexts, especially when using a global scope. (#2717)Replace your usage of
WithScope
with overloads ofCapture*
methods:SentrySdk.CaptureEvent(SentryEvent @​event, Action<Scope> scopeCallback)
SentrySdk.CaptureMessage(string message, Action<Scope> scopeCallback)
SentrySdk.CaptureException(Exception exception, Action<Scope> scopeCallback)
Features
SentrySdk.Metrics.Set
now additionally acceptsstring
as value (#3092)SentrySdk.Metrics.StartTimer
(#3075)System.Diagnostics.Metrics
API (#3052)Sentry.Profiling
is now available as a package on nuget. Be aware that profiling is in alpha and on servers the overhead could be high. Improving the experience for ASP.NET Core is tracked on this issue (#2800)EnableSpotlight
SpotlightUrl
. Defaults tohttp://localhost:8969/stream
.MAUI
SentryMauiOptions.AttachScreenshots
(#2965)in_foreground
, indicating whether the app was in the foreground or the background. (#2983)LogCat
to the event. You can opt-in viaSentryOptions.Android.LogCatIntegration
and configureSentryOptions.Android.LogCatMaxLines
. (#2926)net7.0-android
or later, on API level 23 or later.Native AOT
Native AOT publishing support for .NET 8 has been added to Sentry for the following platforms:
There are some functional differences when publishing Native AOT:
StackTraceMode.Enhanced
is ignored because it's not available when publishing Native AOT. The mechanism to generate these enhanced stack traces relies heavily on reflection which isn't compatible with trimming.SentryOptions.AddJsonSerializerContext
to supply a serialization context for types that you'd like to send to Sentry (e.g. in theSpan.Context
). (#2732, #2793)Ben.Demystifier
is not available as it only runs in JIT mode./api/<FUNCTION_NAME>
(#2920)Fixes
WillFinishLaunching
toFinishedLaunching
. This delays the initial instantiation ofapp
. (#3057)WinUIUnhandledExceptionIntegration
on non-Windows platforms (#3055)default.profraw
in the app bundle using xcodebuild archive to build sentry-cocoa (#2960)CreateElementEventsBreadcrumbs
to the SentryMauiOptions to allow users to opt-in automatic breadcrumb creation forBindingContextChanged
,ChildAdded
,ChildRemoved
, andParentChanged
onElement
.VisualElement
,Window
,Shell
,Page
, andButton
.Sentry.Serilog
no longer throws if a disabled DSN is provided when initializing Sentry via the Serilog integration (#2883)Transactions
are now getting enriched by the client instead of the hub (#2838)1.5.0
and newer where the SDK would create transactions for itself. The fix is backward compatible. (#3001)Dependencies
Upgraded to NLog version 5. (#2697)
Integrate
sentry-native
as a static library in Native AOT builds to enable symbolication. (#2704)Bump Cocoa SDK from v8.16.1 to v8.19.0 (#2910, #2936, #2972, #3005, #3084)
Bump Java SDK from v6.34.0 to v7.3.0 (#2932, #2979, #3049, (https://github.com/getsentry/sentry-dotnet/pull/3098))
Bump Native SDK from v0.6.5 to v0.6.7 (#2914, #3029)
Bump CLI from v2.21.5 to v2.27.0 (#2901, #2915, #2956, #2985, #2999, #3012, #3030, #3059, #3062, #3073, #3099)
v3.41.4
Compare Source
Fixes
1.5.0
and newer where the SDK would create transactions for itself. The fix is backward compatible. (#3001)v3.41.3
Compare Source
Fixes
v3.41.2
Compare Source
Fixes
Dependencies
v3.41.1
Compare Source
Fixes
CaptureFailedRequests
andFailedRequestStatusCodes
are now getting respected by the Cocoa SDK. This is relevant for MAUI apps where requests are getting handled natively. (#2826)SentryOptions.AutoRegisterTracing
for users who need to control registration of Sentry's tracing middleware (#2871)Dependencies
Configuration
📅 Schedule: Branch creation - "anytime" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.