관리-도구
편집 파일: tracing_utils_py3.cpython-311.pyc
� �܋fb � �l � d dl Z d dlmZ d dlZd dlmZ d dlmZ d dlmZ d dl m Z mZ erd dlm Z d� ZdS ) � N)�wraps)�get_current_span)� TYPE_CHECKING)�OP)�logger�qualname_from_function)�Anyc � � � t j � � � rt � � � � fd�� � }nt � � � � fd�� � }|S )a Decorator to add child spans for functions. This is the Python 3 compatible version of the decorator. For Python 2 there is duplicated code here: ``sentry_sdk.tracing_utils_python2.start_child_span_decorator()``. See also ``sentry_sdk.tracing.trace()``. c � �T �K � t t j j � � }|�0t j dt �� � � � �| i |��� d {V ��S |� t j t �� � �� � 5 �| i |��� d {V ��cd d d � � S # 1 swxY w Y d S �NzcCan not create a child span for %s. Please start a Sentry transaction before calling this function.)�op�description� r � sentry_sdk�Hub�currentr �warningr �start_childr �FUNCTION��args�kwargs�span�funcs ��m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/tracing_utils_py3.py�func_with_tracingz5start_child_span_decorator.<locals>.func_with_tracing s# �� � � � $�J�N�$:�;�;�D��|���V�*�4�0�0�� � � "�T�4�2�6�2�2�2�2�2�2�2�2�2��!�!��;�2�4�8�8� "� � � 3� 3� "�T�4�2�6�2�2�2�2�2�2�2�2� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3���� 3� 3� 3� 3� 3� 3s �B�B!�$B!c �8 �� t t j j � � }|�*t j dt �� � � � �| i |��S |� t j t �� � �� � 5 �| i |��cd d d � � S # 1 swxY w Y d S r r r s �r r z5start_child_span_decorator.<locals>.func_with_tracing4 s� �� � $�J�N�$:�;�;�D��|���V�*�4�0�0�� � � �t�T�,�V�,�,�,��!�!��;�2�4�8�8� "� � � -� -� �t�T�,�V�,�,� -� -� -� -� -� -� -� -� -� -� -� -���� -� -� -� -� -� -s �:B�B�B)�inspect�iscoroutinefunctionr )r r s ` r �start_child_span_decoratorr sy �� � �"�4�(�(� +-� �t��� 3� 3� 3� 3� �� 3� 3�, �t��� -� -� -� -� �� -�&