Include a traceback for non-strict event loop blocking detection (#118620)
This commit is contained in:
parent
e976db8443
commit
8f94205014
6 changed files with 30 additions and 14 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue