관리-도구
편집 파일: middleware.cpython-311.pyc
� R�Dg� � �� � d Z ddlmZ ddlmZ ddlmZ ddlm Z ddl mZmZm Z e r'ddlmZ ddlmZ dd lmZ ed edef �� � Z ed � � Zedk rdZndZd� Zd� ZdS )z1 Create spans from Django middleware invocations � )�VERSION)�Hub)�wraps)�MYPY)� ContextVar�transaction_from_function�capture_internal_exceptions)�Any)�Callable)�TypeVar�F.)�bound�$import_string_should_wrap_middleware)� � �import_by_path� import_stringc � ��� ddl m} t | t � � ��fd�}t | t |� � | j j ��fd�}|| j _ d S )Nr )�basec �r �� �| � � }t � d � � rt || � � }|S �N)�%_import_string_should_wrap_middleware�get�_wrap_middleware)�dotted_path�rv�old_import_strings ���/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/sentry_sdk/integrations/django/middleware.py�sentry_patched_import_stringz>patch_django_middlewares.<locals>.sentry_patched_import_string'