📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-27 20:25:32
📂
/
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
grpc
/
__pycache__
✏️
Editing: client.cpython-312.pyc
� Yr*j` � � � d dl mZ d dlZd dlmZmZ d dlmZ d dlm Z d dl mZ erd dl mZm Z mZmZmZ d dlZd dlmZ d d lmZmZ d d lmZ d dlmZ G d � dej6 ej8 � Zy# e$ r ed� �w xY w)� )� TYPE_CHECKINGN)�OP�SPANDATA)�DidNotEnable)�SPAN_ORIGIN)�has_span_streaming_enabled)�Any�Callable�Iterable�Iterator�Union)�Message)�Call�ClientCallDetails)� _UnaryOutcome)�UnaryStreamCallzgrpcio is not installedc �^ � e Zd Z dd�Z dd�Ze dd�� Zy)�ClientInterceptorc �. � |j }t t j � j � }|r�t j j d|z dt j dt t j |i�� 5 }| j |� } |||� }|j t j |j � j � |cd d d � S t j t j d|z t �� 5 }|j# dd� |j# d|� | j |� } |||� }|j# d |j � j � |cd d d � S # 1 sw Y y xY w# 1 sw Y y xY w) Nzunary unary call to %s� sentry.op� sentry.origin��name� attributes��opr �origin�typezunary unary�method�code)r r � sentry_sdk� get_client�options�traces� start_spanr �GRPC_CLIENTr r � RPC_METHOD�/_update_client_call_details_metadata_from_scope� set_attribute�RPC_RESPONSE_STATUS_CODEr r �set_data��self�continuation�client_call_details�requestr �span_streaming�span�responses �R/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/grpc/client.py�intercept_unary_unaryz'ClientInterceptor.intercept_unary_unary so � � %�+�+��3�J�4I�4I�4K�4S�4S�T����"�"�-�-�-��6�����#�[��'�'��� .� � ��H�H�+�� $� (�(;�W�E���"�"��5�5�x�}�}��7K�7K�� �'� �* �&�&��>�>�-��6�"�� �� � �f�m�4�� � �h��/� �H�H�+�� $� (�(;�W�E��� � �f�h�m�m�o�&:�&:�;��#� �+� ��*� �s � AE?�A*F�?F�Fc �j � |j }t t j � j � }|rpt j j d|z dt j dt t j |i�� 5 }| j |� } |||� }|cd d d � S t j t j d|z t �� 5 }|j dd� |j d|� | j |� } |||� }|cd d d � S # 1 sw Y y xY w# 1 sw Y y xY w) Nzunary stream call to %sr r r r r zunary streamr )r r r! r"