Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sentry support #124

Merged
merged 4 commits into from
Aug 22, 2019
Merged

Add Sentry support #124

merged 4 commits into from
Aug 22, 2019

Conversation

tschorr
Copy link
Contributor

@tschorr tschorr commented Aug 22, 2019

This PR adds basic Sentry support using the Python Sentry SDK as documented in https://docs.sentry.io/platforms/python/logging/.

@mister-roboto

This comment has been minimized.

@tschorr
Copy link
Contributor Author

tschorr commented Aug 22, 2019

@jenkins-plone-org please run jobs

@zopyx
Copy link
Member

zopyx commented Aug 22, 2019

@tschorr I have an alternative implementation here:

https://github.com/collective/collective.sentry

How would you log the Zope specific request information as it is present in the standard error_log?

https://github.com/collective/collective.sentry/blob/master/collective/sentry/error_handler.py#L57-L74

@zopyx zopyx self-assigned this Aug 22, 2019
@tschorr tschorr requested review from pbauer and icemac August 22, 2019 12:45
@tschorr
Copy link
Contributor Author

tschorr commented Aug 22, 2019

@zopyx thanks for the pointer, I didn't know about collective.sentry. As mentionned above, this PR is adding basic logging support, nothing Zope specific yet. I agree adding information from the Zope Request would be a plus. But I also think sentry configuration should go into the wsgi.ini, since this is the place were all the other logging is configured. And I like the idea of offering basic Sentry support with p.r.zope2instance.

@zopyx
Copy link
Member

zopyx commented Aug 22, 2019

collective.sentry is less than a week old...I will check out PR.

@tschorr tschorr changed the title WIP: Add Sentry support Add Sentry support Aug 22, 2019
@zopyx zopyx requested review from zopyx and removed request for icemac and pbauer August 22, 2019 15:27
@zopyx zopyx merged commit c76e817 into master Aug 22, 2019
@gforcada gforcada deleted the wsgi_sentry_support branch August 22, 2019 20:40
@ale-rt ale-rt mentioned this pull request Jun 26, 2020
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.

3 participants