Advanced client configuration

Advanced BugSnag client usage for additional control over how and when BugSnag sends notifications.

Customizing transport

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. BugSnag will use the Guzzle instance bound to bugsnag.guzzle, if one exists.

// Customizable HTTP client
$this->app->singleton('bugsnag.guzzle', function () {
    return new GuzzleHttp\Client([
        'timeout' => 30,
        'proxy' => 'tcp://localhost:8125',
    ]);
});