You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen some recent updated on the Laravel integration. But I still can't get my horizon process to be properly configured.
I am seeing the jobs that are being run. But I do not see the errors that are being reported there. My jobs are running successfully, but I'm using report(new Exception('')) to mark some stuff as failed internally. Using report() or throw in the fpm instance does seem to work properly.
I'm comparing the behaviour to that of Sentry. If both are exactly the same, we can see all of our important logs in a single tool. Because Laravel has its own exception handler, it may be a good idea to look into that.
I'm pretty sure I can write something that would sent all "Laravel" errors to Datadog, I'm just looking for a way to disable the general php error reporting. If there is anywrong with my configuration that could solve this, that would also be fine ofcourse.
Hi Mark 👋 Thanks for pointing this out 😃 I can indeed reproduce the issue when using the report helper function. However, I cannot reproduce it yet when using throw (whether it is manual or not, see screenshots below).
🤔 Is there anything special with your usage of throw? What I'm trying is to basically do a throw(new \Exception("")) in the handle method of my job. Does the following corresponds to your use case?
Ah you are right, I was incorrectly assuming that this would listen to the job failed event. But that isn't the case. (Those are also not in DataDog)
It's just for the report method, and for failed jobs (like timeout, or too many retries). For api endpoints both the report and throw methods work.
Bug report
I've seen some recent updated on the Laravel integration. But I still can't get my horizon process to be properly configured.
I am seeing the jobs that are being run. But I do not see the errors that are being reported there. My jobs are running successfully, but I'm using
report(new Exception(''))
to mark some stuff as failed internally. Usingreport()
orthrow
in the fpm instance does seem to work properly.I'm comparing the behaviour to that of Sentry. If both are exactly the same, we can see all of our important logs in a single tool. Because Laravel has its own exception handler, it may be a good idea to look into that.
I'm pretty sure I can write something that would sent all "Laravel" errors to Datadog, I'm just looking for a way to disable the general php error reporting. If there is anywrong with my configuration that could solve this, that would also be fine ofcourse.
Thanks in advance.
PHP version
8.2.7
Tracer or profiler version
0.90.0
Installed extensions
Output of
phpinfo()
Upgrading from
No response
The text was updated successfully, but these errors were encountered: