o
    ¨Ýjš  ã                   @   sL   d dl Z d dlmZ d dlmZ dZdZdZdZdd	„ Z	d
d„ Z
dd„ ZdS )é    N)Úhttplib)ÚapizX-B3-TraceIdzX-B3-SpanIdzX-B3-ParentSpanIdzX-B3-Sampledc                   C   s   t  d¡ d S )NzŽSince current Python thrift release         doesn't support Python 3, eventlet.zipkin.http         doesn't also support Python 3 (http.client))ÚwarningsÚwarn© r   r   úO/var/www/html/chatgpt/venv/lib/python3.10/site-packages/eventlet/zipkin/http.pyÚpatch   s   r   c                   C   s   d S )Nr   r   r   r   r   Úunpatch   s   r	   c                 C   s
   d| f S )z�
    Thrift uses a binary representation of trace and span ids
    HTTP headers use a hexadecimal representation of the same
    z%0.16xr   )Únr   r   r   Úhex_str   s   
r   )r   Zeventlet.greenr   Zeventlet.zipkinr   ZHDR_TRACE_IDZHDR_SPAN_IDZHDR_PARENT_SPAN_IDZHDR_SAMPLEDr   r	   r   r   r   r   r   Ú<module>   s    