You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/). This means that besides the MAUI related features, through this package you'll also get access to all the framework's logging integration and also the features available in the main [Sentry](/platforms/dotnet/) SDK.
@@ -48,18 +37,35 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens
48
37
49
38
In your `MauiProgram.cs` file, call `UseSentry` on your `MauiAppBuilder`, and include any options you would like to set. The `Dsn` is the only required parameter.
50
39
51
-
For example:
52
-
53
40
```csharp
54
-
publicstaticMauiAppCreateMauiApp() =>
55
-
MauiApp.CreateBuilder()
41
+
publicstaticMauiAppCreateMauiApp()
42
+
{
43
+
varbuilder=MauiApp.CreateBuilder();
44
+
builder
56
45
.UseMauiApp<App>()
46
+
47
+
// Add this section anywhere on the builder:
57
48
.UseSentry(options=>
58
49
{
50
+
// The DSN is the only required setting.
59
51
options.Dsn="___PUBLIC_DSN___";
52
+
53
+
// Use debug mode if you want to see what the SDK is doing.
54
+
// Debug messages are written to stdout with Console.Writeline,
55
+
// and are viewable in your IDE's debug console or with 'adb logcat', etc.
56
+
// This option is not recommended when deploying your application.
57
+
options.Debug=true;
58
+
59
+
// Set TracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
60
+
// We recommend adjusting this value in production.
0 commit comments