كل حِزم SDK

Microsoft.Extensions.Logging

v

Sentry.Extensions.Logging

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

التثبيت

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

nuget
Install-Package Sentry.Extensions.Logging
dotnet
dotnet add package Sentry.Extensions.Logging

البدء السريع

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"));