كل حِزم SDK

PHP

v4.34.0

sentry/sentry

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

التثبيت

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

composer
composer require sentry/sentry

البدء السريع

\Sentry\init([
    'dsn' => '{{DSN}}',
    'environment' => 'production',
    'release' => '[email protected]',
    'traces_sample_rate' => 1.0,
    // Off by default. Enable only if you accept sending usernames,
    // emails and IP addresses to your telemetry backend.
    'send_default_pii' => false,
]);

\Sentry\captureException(new \Exception('hello from sentry-php'));