Hi guys, recently we started to migrate all our exception handling over to Sentry.
However we’ve got a cluster of servers which have restricted internet connection, so the only way they can contact the internet is via a proxy.
E.g. when we use curl
on the project we have a set up similar to
$proxy = '147.128.9.224:8080';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
try {
$file_contents = curl_exec($ch);
}
catch(Exception $e){
$file_contents = false;
}
curl_close($ch);
So we just pass in the proxy to the curl request - how can we apply this same logic to the Sentry/Raven handler within laravel and within the standard php package?
Thanks