Skip to content

Conversation

@GenPage
Copy link
Contributor

@GenPage GenPage commented Nov 23, 2017

Ran into an issue the other day where I needed to set a custom Sentry Transport and was unable to. This is a first pass at how this might work. The implementation is a bit complex due to the need to dynamically import the transport class from raven, based on the configured transport provided by the user.

List of transports and their classes can be found here: https://docs.sentry.io/clients/python/transports/

Example config option would be:

SENTRY_TRANSPORT = ('RequestsHTTPTransport', 'raven.transport.requests')

@ghost ghost added the in progress label Nov 23, 2017
@GenPage
Copy link
Contributor Author

GenPage commented Dec 7, 2017

@zoni @gbin Any thoughts on this? Is this a viable solution?

@andrewthetechie
Copy link
Contributor

+1 on needing this. We'll have to fork errbot to work with our internal sentry without this change

@gbin
Copy link
Member

gbin commented Jan 22, 2018

Awesome, can you add it to the config sample and the doc at the same time so people can discover that more easily? Thanks

@GenPage
Copy link
Contributor Author

GenPage commented Jan 22, 2018

@gbin Totally! Will get on that. Thanks!

@GenPage
Copy link
Contributor Author

GenPage commented Jan 24, 2018

@gbin Added docs and config-sample for your approval/merge.

@GenPage
Copy link
Contributor Author

GenPage commented Jan 29, 2018

@gbin-argo I am unable to merge, not sure if that is intentional or if you were just staging changes for a release

Only those with write access to this repository can merge pull requests.

@gbin gbin merged commit 5a64d9e into errbotio:master Feb 24, 2018
@ghost ghost removed the in progress label Feb 24, 2018
@GenPage GenPage deleted the sentry-transports branch February 27, 2018 20:58
gbin-argo pushed a commit that referenced this pull request May 15, 2018
* Add config option to set a custom Sentry Transport

* Document new config option for custom Sentry Transport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants