
    Phl                     ^    d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ 	 	 d
dZd Z	y	)    )http)wsgi)greenthread)log)api)ZipkinClientc                     t        | |      t        _        t        j                  |       t        j                          t        j                          |rt        j                          yy)a   Apply monkey patch to trace your WSGI application.

    :param host: Scribe daemon IP address (default: '127.0.0.1')
    :param port: Scribe daemon port (default: 9410)
    :param trace_app_log: A Boolean indicating if the tracer will trace
        application log together or not. This facility assume that
        your application uses python standard logging library.
        (default: False)
    :param sampling_rate: A Float value (0.0~1.0) that indicates
        the tracing frequency. If you specify 1.0, all request
        are traced (and sent to Zipkin collecotr).
        If you specify 0.1, only 1/10 requests are traced. (default: 1.0)
    N)r   r   clientr   patchr   r   r   )hostporttrace_app_logsampling_rates       bC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\eventlet/zipkin/patcher.pyenable_trace_patchr   	   sH     dD)CJ 	JJ}JJL 		     c                      t        j                          t        j                          t        j                          t	        j                          t
        j                  j                          y )N)r   unpatchr   r   r   r   r
   close r   r   disable_trace_patchr   $   s9    LLNLLNKKMJJr   N)z	127.0.0.1i$  Fg      ?)
eventlet.zipkinr   r   r   r   r   eventlet.zipkin.clientr   r   r   r   r   r   <module>r      s)        '   / /3:=6r   