📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-29 01:15:08
📂
/ (Root)
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
django
/
__pycache__
📍 /opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/django/__pycache__
🔄 Refresh
✏️
Editing: signals_handlers.cpython-312.pyc
Read Only
� |�*j� � � � d dl mZ d dlmZ d dlmZ d dlZd dlmZm Z d dl mZ d dlm Z erd dlmZ d d lmZmZ d ddefd �Zdd�Zy)� ��wraps)� TYPE_CHECKING)�SignalN)�OP�SPANDATA)�DJANGO_VERSION)�has_span_streaming_enabled)�Callable)�Any�Union�receiver�Callable[..., Any]�returnc �^ � d}t | d� r | j }nct | d� r | j }nJt | d� r>t | d� r2t | j d� rd| j j z dz }|dk( rt | � S t | d� r| j dz |z }|S ) N� �__qualname__�__name__�funczpartial(<function z>)� __module__�.)�hasattrr r r �strr )r �names �^/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/django/signals_handlers.py�_get_receiver_namer s� � � �D��x��(��$�$�� ��:� &�� � �� ��&� � �8�V�$����� �)K�'�(�-�-�*@�*@�@�4�G�D� �� ��8�}���x��&��"�"�S�(�4�/���K� c �d ��� ddl m� t j � d��fd�} | t _ y)z� Patch django signal receivers to create a span. This only wraps sync receivers. Django>=5.0 introduced async receivers, but since we don't create transactions for ASGI Django, we don't wrap them. r )�DjangoIntegrationc �2 �� t dk\ r � | |� \ }}n � | |� }g } d�fd�}t j � j �� }|r8|j r,| |j vrt |� D ] \ }} ||� ||<