Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/piotrpress/wordpress-sentry-async/archive/refs/heads/master.zipOn Packagist as piotrpress/wp-sentry-async:
composer require piotrpress/wp-sentry-asyncNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress Sentry Async
This plugin allows you to send Sentry events asynchronously by writing them to a log file, which is then processed by a wp-cron job.
Installation
1. Install and activate WordPress Sentry plugin.
2. Upload and activate WordPress Sentry Async plugin files to the wp-content/plugins/wp-sentry-async directory.
3. Add the following lines to your wp-config.php file, after the ABSPATH definition and before the wp-settings.php inclusion:
Customization
To specify the path for the Sentry log file (default: wp-content/sentry.log), add the following line to your wp-config.php file before including the transport.php file:
NOTE: Replace /path/to/your/sentry.log with the actual path where you want to store the log file.
Rotation
To enable log rotation, you can define the log file path with a date suffix. This will create a new log file for each day, allowing you to manage logs more easily. Add the following line to your wp-config.php file:
Requirements
Ensure that the web server has write permissions to log file and the file with the same name but with a .pos extension.
PHP = 8.2 version.
License
GPL v3 or later