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

Why CeleryHandler's handle_task_postrun() clears Raven client context? #1271

Open uhbif19 opened 6 years ago

uhbif19 commented 6 years ago

https://github.com/getsentry/raven-python/blob/master/raven/contrib/celery/__init__.py#L96

I do not understand, what is the purpose of this line. Also, what is proper way to set custom context not to be erased by this line?