Feature Request: Better details on Django models in scope #3712

Closed
0xCMP opened this Issue Jul 13, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@0xCMP

0xCMP commented Jul 13, 2016

When we get an exception in a Django project often times we get the repr() version of the class.

Sometimes the data we need to see is what that current django model had so we can track back what happened.

It'd be nice if there were a way to provide a __method__() or property that sentry looked at for custom classes that would reveal that extra information we want.

@dcramer

This comment has been minimized.

Show comment
Hide comment
@dcramer

dcramer Jul 13, 2016

Member

@cmpis we should be showing repr() of classes with the Python SDK unless its a specific type that we handle, which a Model is not.

You can provide __sentry__ to override the repr which is shown.

Member

dcramer commented Jul 13, 2016

@cmpis we should be showing repr() of classes with the Python SDK unless its a specific type that we handle, which a Model is not.

You can provide __sentry__ to override the repr which is shown.

@dcramer dcramer closed this Jul 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment