Sentry for Nette framework
Nette integration for Sentry
The recommended installation is using composer.
If you are not still using composer, you should check it out. It's 2016(+) afterall.
composer require nofutur3/nette-sentry
Alternative way - in case you are not able to use composer. Download the source code (ie clone git repo) into your project and require it some way. For nette framework like this in your bootstrap file:
$configurator
->createRobotLoader()
->addDirectory(__DIR__ . 'path/to/library/');
extensions:
sentry: Nofutur3\Sentry\DI\SentryExtension
sentry:
dsn: (your dsn from sentry)
sentry:
dsn: (your dsn from sentry)
debug: false
user:
email: email # email property in IIdentity
username: username # username property in IIDentity
skip_capture:
- 'Nette\Neon\Exception' # will not report these exceptions
options: # check: https://docs.sentry.io/clients/php/config/