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
/
__pycache__
[ HOME ]
Exec
Submit
starlite.cpython-312.pyc
� w�/i?) � �� � d dl mZ d dlZd dlmZ d dlmZmZ d dlm Z d dl mZ d dlm Z mZ d dlmZmZmZ d d lmZmZmZ d d lmZ d dlmZ d dlmZ d d lmZ d dlm Z m!Z!m"Z" d dl#m$Z$ d dl&m'Z' e'r.d dl&m(Z(m)Z)m*Z* d dl+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z4m5Z5m6Z6 d dlm7Z7 d dl8m9Z9 dZ: G d� de� Z; G d� de � Z<d� Z=d� Z>d� Z?d� Z@d� ZA ee;� d � � ZBy# e%$ r ed� �w xY w)!� )�deepcopyN)�OP)�DidNotEnable�Integration)�SentryAsgiMiddleware)�should_send_default_pii)�SOURCE_FOR_STYLE�TransactionSource)�ensure_integration_enabled�event_from_exception�transaction_from_function)�Request�Starlite�State)�BaseRouteHandler)�DefineMiddleware)�get_plugin_for_value)� HTTPRoute)�ConnectionDataExtractor�is_async_callable�Ref)� BaseModelzStarlite is not installed)� TYPE_CHECKING)�Any�Optional�Union) �ASGIApp�Hint�HTTPReceiveMessage� HTTPScope�Message� Middleware�Receive�Scope�Send�WebSocketReceiveMessage)�MiddlewareProtocol)�Eventzgeneric Starlite requestc �* � e Zd ZdZde� �Zed� � Zy)�StarliteIntegration�starlitez auto.http.c �@ � t � t � t � y �N)�patch_app_init�patch_middlewares�patch_http_route_handle� � �O/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/starlite.py� setup_oncezStarliteIntegration.setup_once5 s � � �����!r2 N)�__name__� __module__�__qualname__� identifier�origin�staticmethodr4 r1 r2 r3 r* r* 1 s% � ��J��*�� &�F��"� �"r2 r* c �6 � � e Zd Zej f� fd� Z� xZS )�SentryStarliteASGIMiddlewarec �0 �� t �| � |ddd|d�� y )NF�endpoint�asgi� )�app�unsafe_context_data�transaction_style�mechanism_type�span_origin�asgi_version)�super�__init__)�selfrA rE � __class__s �r3 rH z%SentryStarliteASGIMiddleware.__init__>