...
Code Block |
---|
composer require "creativestyle/magesuite-sentry-io" ^1^2.0.0 |
Admin settings
The extension can be configured under:
Stores -> Configuration -> MageSuite -> SentryIO
...
Settings:
Name | Options | Note |
---|---|---|
Enabled | ||
Data Source NameURL | See screenshot below | |
Custom configuration | Custom sentry.io configuration object which keys will overwrite provided default ones. |
Getting DSN (Data Source Name / URL)
DSNs for projects are located under Project’s settings in Sentrt.io platform:
...
Frontend
At the bottom of the page, the sentry script is added, which gathers javascript errorsScript is added to the additional head blocks to initialize as soon as possible. (Use wisely on Production).
What counts as an error varies by platform, but in general, if there's something that looks like an exception, it can be captured as an error in Sentry. Sentry automatically captures errors, uncaught exceptions, and unhandled rejections, as well as other types of errors, depending on platform.
https://docs.sentry.io/product/sentry-basics/key-terms/Additionally, if the session is for a logged-in user, anonymized customer data is sent along with the error report. Also, cart content is attached for potential easier reproduction.
Some errors and URLs are ignored, the list is based on https://gist.github.com/1878283
Note |
---|
Deprecated version of JavaScript SDK is used in this module. Version update is needed or the whole module should be marked as deprecated. |
TODO - review of this documentation is needed Note