andersundsehr / sentry-bridge
Brings together networkteam/sentry-client with further features
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ~8.2.0 || ~8.3.0 || ~8.4.0
- andersundsehr/sentry-async: ^3.0.0
- networkteam/sentry-client: ^5.2.1
- typo3/cms-core: ^12.4 || ^13.4
Requires (Dev)
- helhum/typo3-console: ^8.2
- phpunit/phpunit: ^10 || ^12.3
- pluswerk/grumphp-config: ^7.2.0 || ^10.1.1
- pluswerk/sentry_test_extension: @dev
- saschaegerer/phpstan-typo3: ^1.10.2 || ^2.1.1
- ssch/typo3-rector: ^2.13.1 || ^3.6.2
- typo3/cms-composer-installers: ^4.0-rc || ^5.0
- typo3/cms-lowlevel: *
- typo3/cms-tstemplate: *
- typo3/minimal: ^13
Replaces
This package is auto-updated.
Last update: 2025-08-20 06:20:12 UTC
README
Install
composer require andersundsehr/sentry-bridge
- Set your DSN in the config for
sentry_client
. - Add Async Transport to your
systems/additional.php
file (see below) - add Cronjob to run
typo3 andersundsehr:sentry-async:flush
every minute or as needed
Features
- Async transport to sentry
- TYPO3 Log as Sentry Breadcrumbs
- Link to Sentry (even with Queue enabled) for ContentObjectProductionExceptionHandler
- Bugfix: Console command exceptions are captured again.
Requirements
Sentry is initialized very early in the TYPO3 bootstrap process, so it is important to ensure that the configuration is set up correctly before any other extensions or TYPO3 core code is executed.
put this line in your systems/additional.php
file:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['productionExceptionHandler'] = \Networkteam\SentryClient\ProductionExceptionHandler::class; $GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler'] = \Networkteam\SentryClient\DebugExceptionHandler::class; $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sentry_client']['release'] = trim((string)exec('git rev-parse --verify HEAD')); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sentry_client']['options']['transport'] ??= (new \AUS\SentryBridge\Factory\QueueTransportFactory())(); $GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = [ \TYPO3\CMS\Core\Log\LogLevel::WARNING => [ \Networkteam\SentryClient\SentryLogWriter::class => [], ], ];
with ♥️ from anders und sehr GmbH
If something did not work 😮
or you appreciate this Extension 🥰 let us know.
We are always looking for great people to join our team! https://www.andersundsehr.com/karriere/