o
    iL                     @   sN   d dl mZ d dlmZ d dlmZ eeZdd Z	dd Z
ejr%e	ZdS dS )	    wraps)config)
get_loggerc                 C   s   | S )N funcr   r   V/home/ubuntu/.local/lib/python3.10/site-packages/ddtrace/ext/test_visibility/_utils.py_noop_decorator
   s   r
   c                    s   t   fdd}|S )a  This decorator is meant to be used around all methods of the Test Visibility classes.
    It accepts an optional parameter to allow it to be used on functions and methods.
    No uncaught errors should ever reach the integration-side, and potentially cause crashes.
    c                     s8   z | i |W S  t y   tjd jdd Y d S w )Nz,Uncaught exception occurred while calling %sT)exc_info)	Exceptionlogerror__name__)argskwargsr   r   r	   wrapper   s
   z*_catch_and_log_exceptions.<locals>.wrapperr   )r   r   r   r   r	   _catch_and_log_exceptions   s   r   N)	functoolsr   ddtracer   ddconfigddtrace.internal.loggerr   r   r   r
   r   _raise_catch_and_log_decoratorr   r   r   r	   <module>   s    