�
u��gx � �| � d dl Z d dlZ ej e� � ZdZdZdZd ZdZ dZ
dZdZd Z
d
� Z G d� de� � ZdS )
� Nzclient-request-idzx-client-current-telemetryzx-client-last-telemetry� � � � � c �B � t t j � � � � S )N)�str�uuid�uuid4� � �^/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/msal/telemetry.py�_get_new_correlation_idr s � ��t�z�|�|���r
c �F � e Zd ZdZdZdZdZdZdZd
d�Z d � Z
d
� Zd� Zd� Z
dS )�_TelemetryContextzLIt is used for handling the telemetry context for current OAuth2 "exchange".� succeeded�failed�failure_size�d i^ Nc � � || _ || _ || _ |p
t � � | _ |pt
| _ t � d| j � � d S )Nz$Generate or reuse correlation_id: %s) �_buffer�_lock�_api_idr �_correlation_id�NON_SILENT_CALL�_refresh_reason�logger�debug)�self�buffer�lock�api_id�correlation_id�refresh_reasons r �__init__z_TelemetryContext.__init__ sV � ������
����-�J�1H�1J�1J���-�@�������;�T�=Q�R�R�R�R�Rr
c �n � | j 5 d� | j | j �� � }t |� � | j k r2t � d� | j � � � � | j � | j
g � � }t | j t |t d� | j � | j d� � d� d� |D � � � � d� d� |D � � � � � � � icd d d � � S # 1 swxY w Y d S )
Nz4|{api_id},{cache_refresh}|)r"