Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
redis
/
modules
/
__pycache__
[ HOME ]
Exec
Submit
File Name : queries.cpython-312.pyc
� w�/i� � � � d Z ddlmZmZ ddlmZ ddlmZ ddlm Z e rddl mZ ddlm Z ddlmZ dd lmZ d � Zd� Zd� Zd � Zy)z, Code used for the Queries module in Sentry � )�OP�SPANDATA)�_get_safe_command)�capture_internal_exceptions)� TYPE_CHECKING)�Redis)�RedisIntegration)�Span)�Anyc �F � t | ||� }t j |d�}|S )N)�op�description)�_get_db_span_descriptionr �DB_REDIS)�integration� redis_command�argsr � propertiess �\/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/redis/modules/queries.py�_compile_db_span_propertiesr s+ � �*�;� �t�L�K� �k�k�"��J� �� c �� � |}t � 5 t ||� }d d d � | j r6t |� | j kD r|d | j t d� z dz }|S # 1 sw Y �MxY w)Nz...)r r � max_data_size�len)r �command_namer r s r r r sk � ��K� $� &�'��d�;�� '� � � �S��%5��8Q�8Q�%Q�!�"J�K�$=�$=��E� �$J�K�e�S���� '� &�s � A&�&A/c � � | j t j d� |j d� }|�)| j t j t |� � |j d� }|� | j t j |� |j d� }|�!| j t j |� y y )N�redis�db�host�port)�set_datar � DB_SYSTEM�get�DB_NAME�str�SERVER_ADDRESS�SERVER_PORT)�span�connection_paramsr r r s r �_set_db_data_on_spanr* + s� � ��M�M�(�$�$�g�.� � � �t� $�B� �~�� � �h�&�&��B��0�� � ��(�D���� � �h�-�-�t�4�� � ��(�D���� � �h�*�*�D�1� r c �d � t | |j j � y # t $ r Y y w xY w)N)r* �connection_pool�connection_kwargs�AttributeError)r( �redis_instances r �_set_db_datar0 <