Skip to content

Commit

Permalink
Update SentryInstrumentation.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrosswell committed Oct 3, 2024
1 parent 4333bb6 commit 12bff0b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

namespace Sentry.Maui.Device.TestApp;

/// <summary>
/// Decorating this class with the Instrumentation attribute means we can specify it as our instrumentation entry point
/// when launching from XHarness. We can then intercept the OnStart event to set environment variables on Android from
/// arguments passed to the instrumentation. Note that AndroidEnableMarshalMethods also has to be set in the csproj file
/// for this to work.
/// </summary>
[Instrumentation(Name = "Sentry.Maui.Device.TestApp.SentryInstrumentation")]
public class SentryInstrumentation : XHarnessInstrumentation
{
Expand Down

0 comments on commit 12bff0b

Please sign in to comment.