관리-도구
편집 파일: redis.cpython-38.pyc
U �Mg� � @ sT d Z ddlmZmZ ddlmZ ddlmZ er@ddlmZm Z dd� Z dd � Zd S )z> Instrumentation for Redis https://github.com/redis/redis-py � )�patch_redis_client�patch_redis_pipeline)�_set_db_data)� TYPE_CHECKING)�Any�Sequencec C s | d S )Nr � )�commandr r �Q/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/integrations/redis/redis.py�_get_redis_command_args s r c C s� t | dtd� t|jdttd� z |j}W n tk r> Y nX t|dttd� zdd l}W n tk rp Y n<X ddl m }m} ||jj jdtd� ||jj jdttd� d S )NF)� is_cluster�set_db_data_fn)r Zget_command_args_fnr r )�patch_redis_async_client�patch_redis_async_pipeline)r )r r r ZPipeliner ZStrictPipeline�AttributeErrorZ redis.asyncio�ImportErrorZ+sentry_sdk.integrations.redis._async_commonr r Zasyncio�client�StrictRedis)r r Zstrict_pipelineZredisr r r r r �_patch_redis sJ �� ���r N)�__doc__Z*sentry_sdk.integrations.redis._sync_commonr r Z-sentry_sdk.integrations.redis.modules.queriesr �typingr r r r r r r r r �<module> s