From 9e5ace288243464fe49594987bccbb46bf36ac3d Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Mon, 12 Feb 2024 18:52:16 +0100 Subject: [PATCH] unified obsoletion/removal --- docs/platforms/dotnet/migration/index.mdx | 24 ++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/platforms/dotnet/migration/index.mdx b/docs/platforms/dotnet/migration/index.mdx index 93bf9000d8af8..f9490656dc6b4 100644 --- a/docs/platforms/dotnet/migration/index.mdx +++ b/docs/platforms/dotnet/migration/index.mdx @@ -113,17 +113,19 @@ This SDK version is compatible with a self-hosted version of Sentry `22.12.0` or - `StitchAsyncCode` - no longer available. - `ProfilingTracesInterval` - no longer available. - `ProfilingEnabled` - use `ProfilesSampleRate` instead. -- Obsolete `SystemClock` constructor removed, use `SystemClock.Clock` instead. -- Obsolete `Runtime.Clone()` removed, this shouldn't have been public in the past and has no replacement. -- Obsolete `SentryException.Data` removed, use `SentryException.Mechanism.Data` instead. -- Obsolete `AssemblyExtensions` removed, this shouldn't have been public in the past and has no replacement. -- Obsolete `SentryDatabaseLogging.UseBreadcrumbs()` removed, it is called automatically and has no replacement. -- Obsolete `Scope.GetSpan()` removed, use `Span` property instead. -- Obsolete `IUserFactory` removed, use `ISentryUserFactory` instead. -- `IHasMeasurements` has been removed. Use `ISpanData` instead. -- `IHasBreadcrumbs` has been removed. Use `IEventLike` instead. -- `ISpanContext` has been removed. Use `ITraceContext` instead. -- `IHasTransactionNameSource` has been removed. Use `ITransactionContext` instead. +- A number of obsolete types have been removed: + - `SystemClock` - use `SystemClock.Clock` instead. + - `Scope.GetSpan()` - use `Span` property instead. + - `IUserFactory` - use `ISentryUserFactory` instead. + - `SentryException.Data` - use `SentryException.Mechanism.Data` instead. + - `Runtime.Clone()` - this shouldn't have been public in the past and has no replacement. + - `AssemblyExtensions` - this shouldn't have been public in the past and has no replacement. + - `SentryDatabaseLogging.UseBreadcrumbs()` - it is called automatically and has no replacement. +- A number of interfaces have removed: + - `IHasMeasurements` - use `ISpanData` instead. + - `IHasBreadcrumbs` - use `IEventLike` instead. + - `ISpanContext` - use `ITraceContext` instead. + - `IHasTransactionNameSource` - use `ITransactionContext` instead. - The unused `StackFrame.InstructionOffset` has been removed. - The unused `Scope.Platform` property has been removed. - The obsolete setter `Sentry.PlatformAbstractions.Runtime.Identifier` has been removed.