Include a traceback for non-strict event loop blocking detection (#118620)

This commit is contained in:
J. Nick Koston 2024-06-02 05:36:25 -05:00 committed by GitHub
parent e976db8443
commit 8f94205014
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 30 additions and 14 deletions

View file

@ -31,17 +31,17 @@ class IntegrationFrame:
integration: str
module: str | None
relative_filename: str
_frame: FrameType
frame: FrameType
@cached_property
def line_number(self) -> int:
"""Return the line number of the frame."""
return self._frame.f_lineno
return self.frame.f_lineno
@cached_property
def filename(self) -> str:
"""Return the filename of the frame."""
return self._frame.f_code.co_filename
return self.frame.f_code.co_filename
@cached_property
def line(self) -> str:
@ -119,7 +119,7 @@ def get_integration_frame(exclude_integrations: set | None = None) -> Integratio
integration=integration,
module=found_module,
relative_filename=found_frame.f_code.co_filename[index:],
_frame=found_frame,
frame=found_frame,
)