Comments (5)
Fixed in 1.5.1. Thanks for participating!
from yii2-sentry.
Hi! I checked with provided config but could not reproduce (always it was 1 event in sentry)
Can you check whole Yii config, please? May be there are have 2 target for sentry
from yii2-sentry.
(Me and @rainerCH are work colleagues and we work on the same problem)
I further investigated this Issue. In my opinion it is more than likely that the Issue is related to this change: 3d26767#diff-6c9daa1dd1ea6db50b80e139ed98b740R46
For some reason Sentry is initiated as soon as the constructor of notamedia\sentry\SentryTarget
is called. When Sentry is initiated it registers an exception handler which is called upon the occurrence of any PHP Exception. When a PHP-Exception occurrs, first the exception handler of Sentry is called and it pushes the exception to the sentry server. Then the Yii2 Logging mechanism triggers which in turn uses this package as a target. That is why all exceptions are pushed two times to Sentry.
Before we used Version 1.5.0 and this problem did not occurr. This fact further increases my confidence that the problem is related to the said change.
Why is Sentry initiated when the constructor of notamedia\sentry\SentryTarget
is called? Is there a way to disable this behaviour?
Thanks in advance!
from yii2-sentry.
Thank you for paying attention to this!
Init Sentry in construct is needed to configure Sentry Scope before error was handled (for example, add to all error some additional data in global config)
This problem was caused because Sentry has it's own integration (https://docs.sentry.io/platforms/php/default-integrations/) to catch PHP errors
Can you check please this issue with fix in #42 ?
from yii2-sentry.
seems to work for me :)
thanks!
Rainer
from yii2-sentry.
Related Issues (20)
- Troubles with installing through Composer HOT 1
- except doesn't work for SentryTarget configuration HOT 1
- ALARM 1.5.1 HOT 4
- Argument 1 passed to Sentry\Options::setIntegrations() must be of the type array HOT 3
- Ability to include performance monitoring HOT 7
- Out of Memory Exceptions (Fatal Errors) are not being send to sentry HOT 2
- How collect js error? HOT 2
- Silently die on PHP < 7.2 HOT 3
- Event exclusion ("except" parameter) not working HOT 3
- Performance monitoring HOT 1
- Yii not reporting user informations HOT 1
- Performace Monitoring Issue HOT 1
- Unusable stack trace (crashed in non-app)
- Ignore certain error classes HOT 1
- Perfomance Transactions
- Introduce a way to configure ClientBuilder
- Is sentry-trace header supported?
- How to ignore yii\web\NotFoundHttpException HOT 5
- git commit hash in release tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-sentry.