netlogix / nxsentry
Sentry integration
Installs: 5 074
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- sentry/sentry: ^3.5
- typo3/cms-core: ^10.4 || ^11.5
Requires (Dev)
- ext-sqlite3: *
- nimut/phpunit-merger: ^1.1
- nimut/testing-framework: ^6.0
- phpunit/phpcov: ^8.2
Provides
README
Sentry integration for TYPO3
This TYPO3 extension allows you to automate reporting of errors to Sentry
Installation
The Sentry integration is installed as a composer package. For your existing project, simply include netlogix/nxsentry
into the dependencies of your TYPO3 distribution:
$ composer require netlogix/nxsentry
Configuration
The new Sentry SDK 3.x has some environment variables which can be used, for example in a .env file:
SENTRY_DSN='http://public_key@your-sentry-server.com/project-id'
SENTRY_RELEASE='1.0.7'
SENTRY_ENVIRONMENT='Staging'
Add this to your LocalConfiguration.php
return [ 'LOG' => [ 'writerConfiguration' => [ \TYPO3\CMS\Core\Log\LogLevel::ERROR => [ 'Netlogix\Nxsentry\Log\Writer\SentryBreadcrumbWriter' => [], 'Netlogix\Nxsentry\Log\Writer\SentryWriter' => [], ], ], ], ];
Overwriting default options in the LocalConfiguration.php
return [ 'EXTENSIONS' => [ 'nxsentry' => [ 'options' => [ 'dsn' => 'http://public_key@your-sentry-server.com/project-id' ] ], ], ];
Add own integration to add custom data to the event.
return [ 'EXTENSIONS' => [ 'nxsentry' => [ 'integrations' => [ new MyCustomIntegration() ] ], ], ];