mati-core / sentry
Sentry for MatiCore
v1.0.2
2021-05-05 10:12 UTC
Requires
- php: >=8.0
- baraja-core/package-manager: ~2.0
- mati-core/user: ^1.0
- nette/di: ^3.0
- nette/http: ^3.0
- nette/schema: ^1.0
- nette/security: ^3.0
- nette/utils: ^3.0
- sentry/sdk: ^3.0
- tracy/tracy: ^2.8
Requires (Dev)
- nette/tester: ~2.0
- phpstan/phpstan: ^0.12
- phpstan/phpstan-nette: ^0.12.6
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-12-05 18:12:25 UTC
README
Install
Composer command:
composer require mati-core/sentry
Configuration:
sentry: dsn: null # required DNS from sentry.io environment: local # optional <local | production> release: 'project-name@version' user_fields: [] # optional values <website id> priority_mapping: [] #custom priorities mapping customeName: debug|info|warning|error|fatal
Browser setup
create JS file in your assets directory with name: sentry.js
Sentry.init({ dsn: "your-dsn.sentry.io", release: "project-name@version", integrations: [new Sentry.Integrations.BrowserTracing()], tracesSampleRate: 1.0, });
Include files in you layout:
<script src="https://browser.sentry-cdn.com/6.3.5/bundle.tracing.min.js" integrity="sha384-0RpBr4PNjUAqckh8BtmPUuFGNC082TAztkL1VE2ttmtsYJBUvqcZbThnfE5On6h1" crossOrigin="anonymous"></script> <script src="{$basePath}/assets/js/sentry.js"></script>
Using
HaHa, It's simple! Every exception caught with Tracy or user browser will be sent automatically into issues in sentry.io.
More info: https://sentry.io