📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-27 21:19:18
📂
/
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
django
/
__pycache__
✏️
Editing: asgi.cpython-312.pyc
� Yr*j.$ � � � d Z ddlZddlZddlZddlmZ ddlmZ ddlZddl m Z ddlmZ ddl mZ ddlmZ dd lmZ dd lmZmZ er/ddlmZmZmZmZ ddlmZ dd lmZ ddlmZm Z ededef �� Z! e"ed� rejF Z#ejH Z$nejF Z#dd�Z$dd�Z%dd�Z&dd�Z'dd�Z(dd�Z) dd�Z*y) z� Instrumentation for Django 3.0 Since this file contains `async def` it is conditionally imported in `sentry_sdk.integrations.django` (depending on the existence of `django.core.handlers.asgi`. � N)� TYPE_CHECKING)�WSGIRequest)�OP)�SentryAsgiMiddleware)�should_send_default_pii)�StreamedSpan)�has_span_streaming_enabled)�capture_internal_exceptions�ensure_integration_enabled)�Any�Callable�TypeVar�Union)�ASGIRequest)�HttpResponse)�Event�EventProcessor�_F.)�bound�markcoroutinefunctionc �D � t j j | _ | S �N)�asyncio� coroutines� _is_coroutine)�funcs �R/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/django/asgi.pyr r 1 s � �$�/�/�=�=����� c � � � d� fd�}|S )Nc � �� ddl m}m} ��| S t �� t k( r| S t � 5 |�� j | � d d d � t � rt � 5 |�| � d d d � | S | S # 1 sw Y �3xY w# 1 sw Y | S xY w)Nr )�DjangoRequestExtractor�_set_user_info)�sentry_sdk.integrations.djangor! r"