Pushes Craft CMS errors to Sentry using the up-to-date SDK.

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://example@sentry.io/123456789', // Set as string or use environment variable.
    'excludedCodes' => ['400', '404', '429'],
    'release'       => getenv('SENTRY_RELEASE') ?: null, // Release number/name used by sentry.
];

Credits

Based upon the sentry plugin by Luke Youell.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
755
Version
3.0.0-beta.1
License
MIT
Compatibility
Craft 3, Craft 4, Craft 5
Last release
March 29, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs