-
Notifications
You must be signed in to change notification settings - Fork 169
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
Sentry does not send events to server in messenger context #259
Comments
Found there is already an issue open about this: getsentry/sentry-php#811 |
Although the referenced issue has been closed still I can't get the messenger errors to show up on sentry. Any update to this? |
getsentry/sentry-php#813 was released with the 2.1.2 client. You could try to call If that fixes it, I could accept a PR implementing the same, like an additional listener. Also: do you receive any message if the worker shuts down? Like, if you set it up to shut down every N messages? |
Sorry for the late reply. You mean the sentry I just tried to set messenger to shutdown after X seconds but no messages sent, I will try to debug the problem |
Ok. If no message is being sent at all, it may be that you have something else broken. I would suggest you to use the Feel free to open a different issue if you need it. |
I have found that subscribing to the Is it worth creating a pull request adding this subscriber if the application is using Messenger? |
Yes it is! |
The sentry/sentry/src/Transport/HttpTransport.php:81 will not send events while running in a worker process. Switching the statement to
$promise = $this->httpClient->sendRequest($request);
will work.One can also observer how the
$this->pendingRequests[]
is holding all the pending request. But non is getting send to the sentry server for display in the sentry frontend.Can You please advice how to continue?
The text was updated successfully, but these errors were encountered: