nameko / nameko-sentry

Apache License 2.0
28 stars 9 forks source link

Memory leak when breadcrumbs contain worker thread references #12

Closed mattbennett closed 7 years ago

mattbennett commented 7 years ago

By default, Raven will monkey patch all loggers and transmit logged messages as breadcrumbs.

Breadcrumbs are stored in a thread-local buffer which should be released when the thread exits. But if you log anything inside the worker thread (e.g. a traceback object) that holds a reference to its thread, the thread's refcount never goes to zero and the thread-locals are not garbage collected.

mattbennett commented 7 years ago

Fixed by #13