관리-도구
편집 파일: asyncio.cpython-311.pyc
� �܋f� � �� � d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl m Z mZ d dlm Z d dlmZ d dlZd d lmZ n# e$ r ed � � �w xY we rd dlmZ d dlmZ d � Zd� Zd� Z G d� de � � ZdS )� )�absolute_importN)�reraise)�OP)�Hub)�Integration�DidNotEnable)� TYPE_CHECKING)�event_from_exception)�Taskzasyncio not available)�Any)�ExcInfoc �J � t | dd � � pt | dd � � pdS )N�__qualname__�__name__zcoroutine without __name__)�getattr)�coros �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/asyncio.py�get_namer s4 � � ��n�d�+�+� (��4��T�*�*� (�'�� c � �� d � t j � � } | � � � ��fd�}| � |� � d S # t $ r Y d S w xY w)Nc � ��� �fd�}�r �| |� � � � S t |� � | �� � }|j r|j d= |S )Nc � �b �K � t t j � � } d }| 5 | � t j t �� � �� � 5 �� d {V ��}n&# t $ r t t | � � � Y nw xY wd d d � � n# 1 swxY w Y d d d � � n# 1 swxY w Y |S )N)�op�description) r �current� start_spanr �FUNCTIONr � Exceptionr �_capture_exception)�hub�resultr s �r �_coro_creating_hub_and_spanzPpatch_asyncio.<locals>._sentry_task_factory.<locals>._coro_creating_hub_and_span+ s= �� � � ��#�+�&�&����� >� >����2�;�H�T�N�N��S�S� >� >�>�+/�Z�Z�Z�Z�Z�Z�F�F��(� >� >� >�#�%7��%<�%<�=�=�=�=�>����>� >� >� >� >� >� >� >� >� >� >���� >� >� >� >�>� >� >� >� >� >� >� >� >� >� >���� >� >� >� >� � sY �/B$�B �A�B � A>�;B �=A>�>B �B$� B �B$�B �B$�$B(�+B()�loop���)r �_source_traceback)r# r r"