U
    @f                     @   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 )NzSince current Python thrift release         doesn't support Python 3, eventlet.zipkin.http         doesn't also support Python 3 (http.client))warningswarn r   r   N/var/www/html/chatgpt/venv/lib/python3.8/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   