getsentry / raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
https://sentry.io
BSD 3-Clause "New" or "Revised" License
1.68k stars 657 forks source link

Raven proxy usage #852

Open vierja opened 8 years ago

vierja commented 8 years ago

I'm trying to integrate Sentry with some apps that are deployed in an environment that doesn't allow non-proxied requests to the outside world. I can't use the HTTP(S)_PROXY environment variables because I still need to make requests without any proxy.

Any suggestions? I am willing to dive into the code and make a PR if necessary. Any pointers are helpful.

ghost commented 7 years ago

@vierja use requests transport https://github.com/getsentry/raven-python/blob/master/raven/transport/requests.py you can modify it to support proxy http://docs.python-requests.org/en/master/user/advanced/#proxies

it will be good if raven adds this feature into itself