§
<ˆjÝ ã ór — d dl Z d dlZd dlmZmZ d dlZd dlmZ d dlm Z e rd dl
mZ G d„ de¦ « Z
dS )é N)ÚThreadÚLock)Úlogger)Ú
TYPE_CHECKING)ÚOptionalc ó^ — e Zd ZdZdZdd„Zd„ Zd„ Zd„ Zd„ Z d „ Z
ed
„ ¦ « Zd„ Z
d„ Zd
S )ÚMonitorzº
Performs health checks in a separate thread once every interval seconds
and updates the internal state. Other parts of the SDK only read this state
and act accordingly.
zsentry.monitoré
c óŽ — || _ || _ d| _ d| _ d | _ t ¦ « | _ d | _ d| _ d S )NTé ) Ú transportÚintervalÚ_healthyÚ_downsample_factorÚ_threadr Ú_thread_lockÚ_thread_for_pidÚ_running)Úselfr
r s úI/opt/cloudlinux/venv/lib64/python3.11/site-packages/sentry_sdk/monitor.pyÚ__init__zMonitor.__init__ sE € à"ˆŒØ ˆŒ
àˆŒ
Ø"#ˆÔàˆŒÝ ™FœFˆÔØ#ˆÔ؈Œ
ˆ
ˆ
ó c óœ ‡ — ‰ j t j ¦ « k r ‰ j �d S ‰ j 5 ‰ j t j ¦ « k r‰ j � d d d ¦ « d S ˆ fd„}t ‰ j |¬¦ « }d|_ | ¦ « |‰ _ t j ¦ « ‰ _ d d d ¦ « n# 1 swxY w Y d S )Nc ó� •— ‰ j r=t j ‰ j ¦ « ‰ j r‰ ¦ « ‰ j °;d S d S ©N)r ÚtimeÚsleepr Úrun©r s €r r z(Monitor._ensure_running.