Viewing File: /opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/__pycache__/ray.cpython-312.pyc
�
_�*j� � � � d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZm Z m
Z
d dlmZ d dl
mZmZmZmZmZ d dlZd dlmZ d dlmZ erd d lmZ d d
lmZmZ d dl
mZ dd�Zdd
�Zdd�Zdd�Z G d� de � Z!y# e$ r ed� �w xY w)� N)�OP�
SPANSTATUS)�DidNotEnable�Integration�_check_minimum_version)�TransactionSource)�event_from_exception�logger�package_version�qualname_from_function�reraise)�remotezRay not installed.)�
TYPE_CHECKING)�Callable)�Any�Optional)�ExcInfoc �t � t j � j � ry t j d� y )Nz[[Tracing] Sentry not initialized in ray cluster worker, performance data will be discarded.)�
sentry_sdk�
get_client� is_activer
�debug� � �J/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/ray.py�_check_sentry_initializedr s) � �����(�(�*��
�L�L�e�r c � � t j | � }t |j j � � }t j
dt j
j d �� }|r<|d j t j
j u r|j d|� n|j |� |j |�� | _ y )N�_sentry_tracing)�kind�default���)�
parameters)
�inspect� signature�listr"