-
Notifications
You must be signed in to change notification settings - Fork 11
Fix: Optional Flow exception dump files for SentryStorage (storageLogging) #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -132,7 +132,7 @@ public function initializeObject(): void | |||||
| 'release' => $this->release, | ||||||
| 'sample_rate' => $this->sampleRate, | ||||||
| 'traces_sample_rate' => $this->tracesSampleRate, | ||||||
| 'ignore_exceptions' => array_keys(array_filter($this->excludeExceptionTypes)), | ||||||
| 'ignore_exceptions' => array_map('strval', array_keys(array_filter($this->excludeExceptionTypes))), | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wrong, the exclusion configuration has changed with https://github.com/flownative/flow-sentry/releases/tag/v3.0.0
Suggested change
|
||||||
| 'in_app_exclude' => [ | ||||||
| FLOW_PATH_ROOT . '/Packages/Application/Flownative.Sentry/Classes/', | ||||||
| FLOW_PATH_ROOT . '/Packages/Framework/Neos.Flow/Classes/Aop/', | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,7 @@ Flownative: | |||||
| sampleRate: 1.0 | ||||||
| tracesSampleRate: 0 | ||||||
| errorLevel: null | ||||||
| storageLogging: false | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
… because the README and the code comments say it writes those files by default, and I think this is expected behaviour. |
||||||
| capture: | ||||||
| excludeExceptionTypes: | ||||||
| 'Neos\Flow\Mvc\Controller\Exception\InvalidControllerException': true | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,6 +82,16 @@ The default is `null`, that makes Sentry use the value returned by the | |
| `error_reporting()` function. The available error levels are documented at | ||
| [PHP error constants](https://www.php.net/manual/en/errorfunc.constants.php). | ||
|
|
||
| By default, this package also keeps Flow's exception dump files in | ||
| `Data/Logs/Exceptions/*.txt` (so the Neos/Flow message "For a full stacktrace, open …" | ||
| still works). You can disable writing those dump files with: | ||
|
|
||
| ```yaml | ||
| Flownative: | ||
| Sentry: | ||
| storageLogging: false | ||
| ``` | ||
|
|
||
|
Comment on lines
+85
to
+94
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should come after the nect paragraph ("Beware: …"), as that logically belongs to the preceding paragraph. |
||
| **Beware:** a low error log level can lead to your application not loading | ||
| anymore and your Sentry account being flooded with error messages. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why both ways?