Advanced Bugsnag client usage for additional control over how and when Bugsnag sends notifications.
If you require using a proxy or a custom timeout length when sending error reports to Bugsnag, you can provide a customized HTTP client via Guzzle. First create a service definition for a Guzzle client, for example:
custom_guzzle:
class: GuzzleHttp\Client
arguments:
- { timeout: 5 }
Then add this service to your Bugsnag configuration:
bugsnag:
guzzle: custom_guzzle
You can also register your service as bugsnag.guzzle
to avoid having to tell
Bugsnag about it explicitly:
bugsnag.guzzle:
class: GuzzleHttp\Client
arguments:
- { timeout: 5 }