PHP code example of noone-silent / phalcon-sentry

1. Go to this page and download the library: Download noone-silent/phalcon-sentry library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

noone-silent / phalcon-sentry example snippets


$di->set('eventsManager', new \Phalcon\Events\Manager(), true);

$di->register(
    new Phalcon\Sentry\ServiceProvider(
        $pathTo . '/config/sentry.php'
    )
);

// Add this between your <head></head>
{{ sentryHelper.getMetaTag() }}

// Add this right before your </body>
{{ sentryHelper.getScript() }}

{{ sentryHelper.getScript(
    [
        'Sentry.browserTracingIntegration()',
        'Sentry.replayIntegration()',
        'Sentry.feedbackIntegration()'
    ],
    static_url('/js/bundle.tracing.replay.feedback.min.js')
) }}