
    !ni                     F    d dl Z d dlmZ d dlmZ dZdZdZdZd Z	d	 Z
d
 Zy)    N)httplib)apizX-B3-TraceIdzX-B3-SpanIdzX-B3-ParentSpanIdzX-B3-Sampledc                  .    t        j                  d       y )NzSince current Python thrift release         doesn't support Python 3, eventlet.zipkin.http         doesn't also support Python 3 (http.client))warningswarn     T/home/homepc/tiktok-worker/venv/lib/python3.12/site-packages/eventlet/zipkin/http.pypatchr      s    MM 5 6r	   c                       y )Nr   r   r	   r
   unpatchr      s    r	   c                     d| fz  S )z
    Thrift uses a binary representation of trace and span ids
    HTTP headers use a hexadecimal representation of the same
    z%0.16xr   )ns    r
   hex_strr      s    
 qd?r	   )r   eventlet.greenr   eventlet.zipkinr   HDR_TRACE_IDHDR_SPAN_IDHDR_PARENT_SPAN_IDHDR_SAMPLEDr   r   r   r   r	   r
   <module>r      s4     "  ( 6	r	   