o
    ÖÝ+iÕ  ã                   @  s0   d dl mZ d dlmZ ddd„Zdd	d
„ZdS )é    )Úannotations)ÚUUIDÚuuid_valr   ÚreturnÚintc                 C  s   | j }t|dƒS )z¥Get OpenTelemetry trace ID as integer from UUID.

    Args:
        uuid_val: The UUID to convert.

    Returns:
        Integer representation of the trace ID.
    é   )Úhexr   )r   Útrace_id_hex© r
   ú\/var/www/html/psymed-ai/venv/lib/python3.10/site-packages/langsmith/_internal/_otel_utils.pyÚget_otel_trace_id_from_uuid   s   	
r   c                 C  s$   | j }|dd… }| ¡ }t|dƒS )z£Get OpenTelemetry span ID as integer from UUID.

    Args:
        uuid_val: The UUID to convert.

    Returns:
        Integer representation of the span ID.
    Né   r   )Úbytesr   r   )r   Ú
uuid_bytesÚspan_id_bytesÚspan_id_hexr
   r
   r   Úget_otel_span_id_from_uuid   s   	
r   N)r   r   r   r   )Ú
__future__r   Úuuidr   r   r   r
   r
   r
   r   Ú<module>   s    
