Simple Glitchtip Settings

DSN
$dsn]); function handle_exception($exception) { Sentry\captureException($exception); } set_exception_handler('handle_exception'); function handle_error($errno, $errstr, $errfile, $errline) { Sentry\captureMessage("$errstr in $errfile on line $errline"); } set_error_handler('handle_error'); } // Initialize the plugin function sg_initialize_plugin() { $dsn = getenv('SENTRY_DSN') ?: getenv('GLITCHTIP_DSN') ?: get_option('sg_dsn'); if ($dsn) { sg_initialize_error_handler($dsn); } } add_action('plugins_loaded', 'sg_initialize_plugin');