كل حِزم SDK

Xamarin

v

Sentry.Xamarin

استخدم حِزمة Sentry الرسمية مع DSN الظاهر في إعداد مشروع AllStak. لا تحتاج إلى حِزمة SDK خاصة بـ AllStak.

التثبيت

تأتي أوامر Sentry الرسمية هذه من سجل حِزم SDK المُدار في AllStak.

nuget
Install-Package Sentry.Xamarin
dotnet
dotnet add package Sentry.Xamarin

البدء السريع

using Sentry;

SentrySdk.Init(options =>
{
    options.Dsn = "{{DSN}}";
    options.Environment = "production";
    options.Release = "[email protected]";
    options.TracesSampleRate = 1.0;
    // Off by default. Enable only if you accept sending usernames,
    // emails and IP addresses to your telemetry backend.
    options.SendDefaultPii = false;
});

SentrySdk.CaptureException(new Exception("hello from Sentry .NET"));