Ë
    S>{iÜ  ã                   ób   — d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
 erd dlmZ d„ Zy)	é    ©ÚwrapsN)Úget_current_span)ÚTYPE_CHECKING)ÚOP)ÚloggerÚqualname_from_function)ÚAnyc                 ó.   ‡ — t        ‰ «      ˆ fd„«       }|S )zü
    Decorator to add child spans for functions.

    This is the Python 2 compatible version of the decorator.
    Duplicated code from ``sentry_sdk.tracing_utils_python3.start_child_span_decorator``.

    See also ``sentry_sdk.tracing.trace()``.
    c                  ó,  •— t        t        j                  j                  «      }|€'t	        j
                  dt        ‰«      «        ‰| i |¤ŽS |j                  t        j                  t        ‰«      ¬«      5   ‰| i |¤Žcd d d «       S # 1 sw Y   y xY w)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      €úZ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/sentry_sdk/tracing_utils_py2.pyÚfunc_with_tracingz5start_child_span_decorator.<locals>.func_with_tracing   s�   ø€ ô  ¤
§¡× 6Ñ 6Ó7ˆàˆ<Ü�N‰NðRä& tÓ,ôñ
 ˜Ð( Ñ(Ð(à×ÑÜ�{‰{Ü.¨tÓ4ð ó 
ñ 	)ñ ˜Ð( Ñ(÷		)÷ 	)ò 	)ús   Á8B
Â
Br   )r   r   s   ` r   Ústart_child_span_decoratorr      s#   ø€ ô ˆ4ƒ[ó)ó ð)ð& Ðó    )Ú	functoolsr   r   r   Úsentry_sdk._typesr   Úsentry_sdk.constsr   Úsentry_sdk.utilsr   r	   Útypingr
   r   © r   r   ú<module>r#      s$   ðÝ ã Ý 'Ý +Ý  ß ;ñ Ýór   