o
    i                     @   s`   d Z ddlmZ dgZdd Zddd	ZddeddfddZddefddZddefddZ	dS )zZ
This is the entry point for the Error Tracking automatic reporting of handled exception.
    )configtracerc                   C      d S N r   r   r   Q/home/ubuntu/.local/lib/python3.10/site-packages/ddtrace/errortracking/product.pypost_preload      r   returnNc                  C   s"   t jrddlm}  |   d S d S Nr   HandledExceptionCollector)r   enabled3ddtrace.errortracking._handled_exceptions.collectorr   enabler   r   r   r   start      r   Fjoinc                 C   r   r   r   r   r   r   r   restart   r	   r   c                 C   s"   t jrddlm} |  d S d S r   )r   r   r   r   disable)r   r   r   r   r   stop   r   r   c                 C   s   t | d d S )Nr   )r   r   r   r   r   at_exit!   s   r   )r
   N)F)
__doc__'ddtrace.internal.settings.errortrackingr   requiresr   r   boolr   r   r   r   r   r   r   <module>   s    
