Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
/ craft-sentry-1 Public archive
forked from born05/craft-sentry

Pushes Craft CMS errors to Sentry.

License

Notifications You must be signed in to change notification settings

onedesign/craft-sentry-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentry plugin for Craft CMS 3

Pushes Craft CMS errors to Sentry.

Installation

Plugin Store

  1. Search for 'Sentry SDK'.
  2. Hit install
  3. Create a config file as explained below.

Composer

  1. Run: composer require born05/craft-sentry
  2. Hit install in Admin > Settings > Plugins
  3. Create a config file as explained below.

Requirements

  • Craft 3.1 or later
  • PHP 7.1 at least

Configuring Sentry

Create a config/sentry-sdk.php config file with the following contents:

<?php

return [
    '*' => [
        'enabled'        => true,
        'anonymous'      => false, // Determines to log user info or not
        'clientDsn'      => getenv('SENTRY_DSN') ?: 'https://[email protected]/123456789', // Set as string or use environment variable.
        'excludedCodes'  => ['400', '404', '429'],
        'release'        => getenv('SENTRY_RELEASE') ?: null, // Release number/name used by sentry.
        'reportJsErrors' => false
    ],
];

Credits

Based upon the sentry plugin by Luke Youell.

License

Copyright © Born05

See license

About

Pushes Craft CMS errors to Sentry.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%