The Sentry integration is installed as a composer package. For your existing project, simply include
into the dependencies of your TYPO3 distribution:
$ composer require netlogix/nxsentry
The new Sentry SDK 3.x has some environment variables which can be used, for example in a .env file:
SENTRY_DSN='http://email@example.com/project-id' SENTRY_RELEASE='1.0.7' SENTRY_ENVIRONMENT='Staging'
Add this to your
return [ 'LOG' => [ 'writerConfiguration' => [ \TYPO3\CMS\Core\Log\LogLevel::ERROR => [ 'Netlogix\Nxsentry\Log\Writer\SentryBreadcrumbWriter' => , 'Netlogix\Nxsentry\Log\Writer\SentryWriter' => , ], ], ], ];
Overwriting default options in the
return [ 'EXTENSIONS' => [ 'nxsentry' => [ 'options' => [ 'dsn' => 'http://firstname.lastname@example.org/project-id' ] ], ], ];
Add own integration to add custom data to the event.
return [ 'EXTENSIONS' => [ 'nxsentry' => [ 'integrations' => [ new MyCustomIntegration() ] ], ], ];