From e309df5fe05abc4769d0b86ce23b4c6143175681 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Tue, 22 Apr 2025 11:24:03 +0200 Subject: [PATCH 1/2] make visible to tests --- src/Sentry/Sentry.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Sentry/Sentry.csproj b/src/Sentry/Sentry.csproj index 49632a39aa..a1b36eec9b 100644 --- a/src/Sentry/Sentry.csproj +++ b/src/Sentry/Sentry.csproj @@ -22,6 +22,7 @@ + From 5ae3d67cc20757661c61e6ae7af0feac928ea99d Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Tue, 22 Apr 2025 13:46:41 +0200 Subject: [PATCH 2/2] removed redundant internal settrace --- src/Sentry/SentrySdk.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Sentry/SentrySdk.cs b/src/Sentry/SentrySdk.cs index 8c5efbd967..401a0fa6f0 100644 --- a/src/Sentry/SentrySdk.cs +++ b/src/Sentry/SentrySdk.cs @@ -209,13 +209,6 @@ internal static IDisposable UseHub(IHub hub) return new DisposeHandle(hub); } - /// - /// Allows to set the trace - /// - internal static void SetTrace(SentryId traceId, SpanId parentSpanId) => - CurrentHub.ConfigureScope(scope => - scope.SetPropagationContext(new SentryPropagationContext(traceId, parentSpanId))); - /// /// Flushes the queue of captured events until the timeout set in /// is reached.