File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1616
1717 <PropertyGroup Condition =" '$(SolutionName)' == 'Sentry.Unity'" >
1818 <TargetFrameworks >netstandard2.0;netstandard2.1</TargetFrameworks >
19+ <!-- To be able to make the internals visible, since we're not signing the assembly for Unity -->
20+ <SignAssembly >false</SignAssembly >
1921 </PropertyGroup >
2022
23+ <ItemGroup Condition =" '$(SolutionName)' == 'Sentry.Unity'" >
24+ <InternalsVisibleTo Include =" Sentry.Unity" />
25+ </ItemGroup >
26+
2127 <!-- Platform-specific props included here -->
2228 <Import Project =" Platforms\Android\Sentry.Android.props" Condition =" '$(TargetPlatformIdentifier)' == 'android'" />
2329 <Import Project =" Platforms\Cocoa\Sentry.Cocoa.props" Condition =" '$(TargetPlatformIdentifier)' == 'ios' Or '$(TargetPlatformIdentifier)' == 'maccatalyst'" />
Original file line number Diff line number Diff line change @@ -209,6 +209,13 @@ internal static IDisposable UseHub(IHub hub)
209209 return new DisposeHandle ( hub ) ;
210210 }
211211
212+ /// <summary>
213+ /// Allows to set the trace
214+ /// </summary>
215+ internal static void SetTrace ( SentryId traceId , SpanId parentSpanId ) =>
216+ CurrentHub . ConfigureScope ( scope =>
217+ scope . SetPropagationContext ( new SentryPropagationContext ( traceId , parentSpanId ) ) ) ;
218+
212219 /// <summary>
213220 /// Flushes the queue of captured events until the timeout set in <see cref="SentryOptions.FlushTimeout"/>
214221 /// is reached.
You can’t perform that action at this time.
0 commit comments