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

Undocumented django.raven_compat.middleware.SentryLogMiddleware #787

Open adamchainz opened 8 years ago

adamchainz commented 8 years ago

It's not in the Django docs but it seems useful for finding the request in every call to raven rather than just those in the top level django exception handler.

Should it be documented, or is it an unsupported/experimental/custom feature?

medmunds commented 8 years ago

FWIW, @dcramer mentioned SentryLogMiddleware last year as a way to "magically" send request data "without having to manually bind the request."

It looks like it was introduced way back in Sentry 1.6.2.

(It looks really useful; I'd also be interested in seeing it documented if it's not problematic.)