raven-python icon indicating copy to clipboard operation
raven-python copied to clipboard

How to timeout captureException

Open aericson opened this issue 8 years ago • 1 comments

Maybe there is another solution to this problem.

We have a django view that in some part of the code has a:

try:
...
except Exception:
    # we want the view to log to sentry but continue since the code inside the `try` block is not essential
    sentry_client.captureException()

We had a bug that caused an exception on every new request. I might be wrong, but it seems like captureException locks until a previous captureException call is done. This causes all requests to delay and end up adding up to absurd response times.

Is there a way to set a timeout the captureException or defer that to a celery task?

We are running raven 6.0.0.

Would really appreciate some guidance on how to solve this problem.

Thanks!

aericson avatar Dec 14 '17 23:12 aericson

I ran into this problem today, it would be great if we could set a timeout. The same call can hang for hours.

kardaj avatar Jun 15 '18 14:06 kardaj