[deps] Billing: Update Sentry.Serilog to v5 #5182
Open
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.41.4
->5.0.0
Release Notes
getsentry/sentry-dotnet (Sentry.Serilog)
v5.0.0
Compare Source
API Changes
SentryOptions.EnableTracing
has been removed. Instead, tracing should be enabled or disabled by setting theSentryOptions.TracesSampleRate
or by usingSentryOptions.TracesSampler
to configure a sampling function (#3569)AndroidContext
as an argument toSentrySdk.Init
(#3562)SentryUser.Segment
property has been deprecated. Consider sending this as a tag or additional data instead (#3563)Device.BatteryLevel
andDevice.ProcessorFrequency
are now stored as floats rather than ints, to align with the Cocoa and Java SDKs (#3567)FailedRequestTargets
,TagFilters
andTracePropagationTargets
options have all been changed fromSubstringOrRegexPattern
toIList<StringOrRegex>
(#3566)Scope.Transaction
is now always stored as anAsyncLocal
also in Global Mode, to prevent auto-instrumented spans from the UI ending up parented to transactions from a background task (or vice versa). (#3596)Features
.NET 9
(#3699)SentryOptions
extension for profiling:options.AddProfilingIntegration()
(#3660)Fixes
Dependencies
v4.13.0
Compare Source
Features
Fixes
Dependencies
v4.12.2
Compare Source
Features
SetBeforeScreenshotCapture
callback to the options: allowing the user to set an action before the screenshot is taken (#3661)Sentry.AspNetCore.Blazor.WebAssembly
generally available. (#3674)Fixes
sentry.native.android.dotnet
(#3682)Dependencies
System.Text.Json
from v6.0.8 to v6.0.10 (#3704)v4.12.1
Compare Source
Fixes
Dependencies
v4.12.0
Compare Source
Support for Xcode 16.0 (BREAKING CHANGE)
If you are using Xcode 16.0, you will need to update the SDK to version
4.12.0
or later.If you are still using Xcode 15.4 or earlier, you need to continue to use version
4.11.0
or earlier.Using Xcode 16 to build .NET applications targeting iOS and Mac Catalyst requires .NET workload for iOS SDK version 18.0.8303. We built the SDK version 4.12.0 using Xcode 16 in order to support this scenario. That, unfortunately, breaks folks using older version of Xcode.
As such, if you are using SDK version
4.12.x
and targeting iOS or Mac Catalyst, you will need to install and use Xcode 16 andworkload iOS SDK 18.0.8303
Note that .NET 9 will also support Xcode 16, when it is released next month (Nov 2024).
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://[email protected]:65535/2147483647")
). (#2928)Removed APIs
SentrySinkExtensions.Sentry
extension methods instead. (#2902)[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.[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.SystemClock
constructor removed, useSystemClock.Clock
instead. (#2856)Runtime.Clone()
removed, this shouldn't have been public in the past and has no replacement. (#2856)SentryException.Data
removed, useSentryException.Mechanism.Data
instead. (#2856)AssemblyExtensions
removed, this shouldn't have been public in the past and has no replacement. (#2856)SentryDatabaseLogging.UseBreadcrumbs()
removed, it is called automatically and has no replacement. (#2856)Scope.GetSpan()
removed, useSpan
property instead. (#2856)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
insteadConfiguration
📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.