andersundsehr/sentry-bridge

Brings together networkteam/sentry-client with further features

Package info

github.com/andersundsehr/sentry-bridge

Type:typo3-cms-extension

pkg:composer/andersundsehr/sentry-bridge

Statistics

Installs: 2 424

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

1.0.2 2025-08-20 06:19 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

GPL-2.0-or-later c06bc3bf6a832df7175dd1b0cd58a9d60f762597

This package is auto-updated.

Last update: 2026-06-20 08:31:50 UTC


README

👁 TYPO3 Version
👁 PHP Version

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/