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
trytond.cpython-312.pyc
� w�/is � �b � d dl Z d dlmZ d dlmZ d dlmZmZ d dlm Z d dl mZ G d� de� Zy) � N)�Integration)�SentryWsgiMiddleware)�ensure_integration_enabled�event_from_exception)�TrytonException)�appc �0 � e Zd ZdZde� �Zd� Zed� � Zy)�TrytondWSGIIntegration�trytond_wsgiz auto.http.c � � y �N� )�selfs �N/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/trytond.py�__init__zTrytondWSGIIntegration.__init__ s � �� c �$ �� t t j t j �� t _ t t � d� � �t t d� rt j �fd�� } y t j j �� y )N)�span_originc � � t | t � ry t j � }t | |j ddd��� \ }}t j ||�� y )N�trytondF)�type�handled)�client_options� mechanism)�hint)� isinstancer � sentry_sdk� get_clientr �options� capture_event)�e�client�eventr s r � error_handlerz8TrytondWSGIIntegration.setup_once.<locals>.error_handler sO � ��!�_�-��#�.�.�0��2��#)�>�>�'0�U�C����t� �(�(��T�:r r$ c � �� �|� y r r )r �requestr! r$ s �r �_z,TrytondWSGIIntegration.setup_once.<locals>._- s �� ��a� r ) r r �wsgi_appr �originr �hasattrr$ �error_handlers�append)r'