Skip to content

Support for HTTP proxying of event emissions? #176

@jszwedko

Description

@jszwedko

It looks like support existed at one point (#1), but the code has changed a lot since then, and it doesn't currently seem to be supported. It seems like it would support could be added by passing a proxy here: https://github.com/getsentry/raven-java/blob/fd5a44c11d851180909ab7fe8c23cc3dc7773617/raven/src/main/java/net/kencochrane/raven/connection/HttpConnection.java#L101 via https://docs.oracle.com/javase/7/docs/api/java/net/URL.html#openConnection(java.net.Proxy).

I'm envisioning that the proxy settings could be set as additional GET params on the DSN, e.g.: https://public:private@host:port/1?http_proxy_host=127.0.01&http_proxy_port=1234, but wanted to get feedback on this approach before submitting a pull request (which I am more than happy to do). Another approach could be modifying RavenFactory to add another constructor accepting the proxy arguments.

Please let me know if I'm missing something and that this is already supported.

/cc @mnussbaum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions