reddit / baseplate.py

reddit's python service framework
https://baseplate.readthedocs.io
BSD 3-Clause "New" or "Revised" License
539 stars 173 forks source link

Initialize tracing export code to run earlier in the startup process. #983

Closed trevorriles closed 2 weeks ago

trevorriles commented 2 weeks ago

This avoids a race-condition with our gevent patching.

Resolves the error that looks like:

Traceback (most recent call last):
  File "src/gevent/_abstract_linkable.py", line 287, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links
  File "src/gevent/_abstract_linkable.py", line 333, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links
AssertionError: (None, <callback at 0x7f72a5936040 args=([],)>)
2024-05-01T14:26:07Z <callback at 0x7f72a5936040 args=([],)> failed with AssertionError

Closes #

๐Ÿ’ธ TL;DR

๐Ÿ“œ Details

[Design Doc]()

[Jira]()

๐Ÿงช Testing Steps / Validation

โœ… Checks