bugsnag / bugsnag-symfony

BugSnag notifier for the Symfony PHP framework. Monitor and report errors in your Symfony apps.
https://docs.bugsnag.com/platforms/php/symfony
MIT License
43 stars 21 forks source link

Configurable timeout on Guzzle connection #100

Closed potibm closed 3 years ago

potibm commented 4 years ago

As we are sometimes experiencing longer response times from our Bugsnag servers it would be great to configure a timeout on the used Guzzle Connection.

Currently this does not seem to be possible.

abigailbramble commented 4 years ago

Hi @potibm - are you using the on-premise version of Bugsnag?

potibm commented 4 years ago

Indeed we are using an on-premise version of Bugsnag. We would like to prevent latency issues with Bugsnag to affect our production perfomance.

abigailbramble commented 4 years ago

Hi @potibm we would like to understand what latency issues you are having and why you are having them. Can you please write to support@bugsnag.com with some additional information about your use case?

potibm commented 4 years ago

As I do not run our Bugsnag servers I think this is beyond this ticket. But I will ask my colleagues to contact your support, of course.

Other than that: latency can happen for whatever reasons (may it be network), so I still would like to set a timeout for the communication with the Bugsnag servers.

GrahamCampbell commented 4 years ago

By default, Bugsnag's PHP notifiers don't actually have a connection timeout or a socket timeout when making HTTP requests. It is certainly possible to set a timeout, using the native PHP library (by providing a Guzzle client configured with the timeouts you want), but the current Symfony library doesn't support this, unless you construct the client yourself.

yousif-bugsnag commented 3 years ago

Now released in v1.8.0