§
WèÄjB ã óÊ — d Z ddlZddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ d d
l
mZ d dlmZ d dlmZmZ d d
lmZ d dlmZmZmZmZmZmZ d dlmZ G d„ de
¦ « ZdS )z>
This module contains X Ray continuous tracing implementation
é N)Údefaultdict)ÚList)Úgettexté )ÚContinuousCommon)ÚMaileré )Ú
get_client)Úregex)Ú XRayErrorÚXRayAPIError)Ú url_split)Úread_sys_idÚ prev_dateÚdate_of_timestampÚget_formatted_dateÚget_html_formatted_linksÚget_text_formatted_links)Úinitialize_managerc ó¤ ‡ — e Zd ZdZˆ fd„Zd„ Zdefd„Zdd„Ze de
de
fd „¦ « Zde
ddfd
„Zde
e fd„Zdefd„Zdefd
„Zdd„Zˆ xZS )ÚContinuousTracingz+
Continuous tracing implementation
c óò •— t ¦ « ¦ « t ¦ « }t d¦ « } ||¬¦ « | _ t |¦ « | _ t ¦ « | _ d S )NÚ
auto_tasks)Ú system_id) ÚsuperÚ__init__r r
Úclientr Úmanager_instancer Úmail_sender)Úselfr Ú
client_objectÚ __class__s €úN/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/continuous/tracing.pyr zContinuousTracing.__init__ se ø€ Ý
‰Œ×ÒÑÔÐÝ‘M”Mˆ Ý" <Ñ0Ô0ˆ
Ø#�m¨iÐ8Ñ8Ô8ˆŒÝ 2°9Ñ =Ô =ˆÔÝ!™8œ8ˆÔÐÐó c ó~ — | ¦ « | ¦ « | ¦ « d S )N)Úclear_zombie_auto_tasksÚ
start_tracingÚ
generate_mail)r s r# Ú__call__zContinuousTracing.__call__( s> € Ø×$Ò$Ñ&Ô&Ð&Ø×ÒÑÔÐØ×ÒÑÔÐÐÐr$ Úreturnc óÜ — | j ¦ « }nP# t $ rC}| j ddt |¦ « i¬¦ « t
¦ « }Y d}~nd}~ww xY w|S )z%
Get auto tasks list
zFailed to get auto tasksÚerr©ÚextraN)r Ú get_tasksr
ÚloggerÚerrorÚstrÚlist)r ÚtasksÚes r# Úcurrent_auto_tasksz$ContinuousTracing.current_auto_tasks- s„ € ð Ø”K×)Ò)Ñ+Ô+ˆEˆEøÝð ð ð ØŒK×ÒÐ8Ø%*C°©F¬F Oð
ñ
5ô
5ð
5å‘F”FˆEˆEˆEˆEˆEˆEøøøøð øøøð ˆs ‚ œ
A)¦9A$Á$A)Nc óL — d„ | ¦ « D ¦ « }|D ]‚} || dk r| j |¦ « | j |¦ « ŒD# t $ r2}| j dt |¦ « ¦ « Y d}~Œ{d}~ww xY wdS )z6
Stop and complete running auto tasks
c ób — i | ],}|j r#|j d k r|j dk ¯|j |j “Œ-S )Ú completedz
*autotracing*)Ú auto_taskÚstatusÚuserÚtask_id)Ú.0Úts r# ú