PATH:
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
� o0i� � �t � d dl Z d dlZd dlmZmZ d dlmZ d dlmZ erd dlm Z d dlm Z G d� de� Zd � Zy) � N)�capture_internal_exceptions�event_from_exception)�Integration)� TYPE_CHECKING)�Callable)�Anyc � � e Zd ZdZed� � Zy)�UnraisablehookIntegration�unraisablehookc �H � t t j � t _ y )N)�_make_unraisable�sysr � � �U/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/unraisablehook.py� setup_oncez$UnraisablehookIntegration.setup_once s � � .�c�.@�.@�A��r N)�__name__� __module__�__qualname__� identifier�staticmethodr r r r r r s � �!�J��B� �Br r c � � � � fd�}|S )Nc � �� t j � j t � }|� �| � S | j r�| j r{t � 5 t | j | j | j ft j � j ddd��� \ }}t j ||�� d d d � �| � S # 1 sw Y �xY w)Nr F)�type�handled)�client_options� mechanism)�hint)� sentry_sdk� get_client�get_integrationr � exc_value� exc_tracebackr r �exc_type�options� capture_event)� unraisable�integration�eventr �old_unraisablehooks �r �sentry_sdk_unraisablehookz3_make_unraisable.<locals>.sentry_sdk_unraisablehook s� �� � �+�+�-�=�=�>W�X�� ��%�j�1�1����J�$<�$<�,�.�2�"�+�+�"�,�,�"�0�0�� $.�#8�#8�#:�#B�#B�'7�E�J����t� �(�(��T�:� /� "�*�-�-� /�.�s �A)C�Cr )r* r+ s ` r r r s �� �.�2 %�$r ) r r �sentry_sdk.utilsr r �sentry_sdk.integrationsr �typingr r r r r r r r �<module>r/ s4 �� � �� 0� ����B�� B�%r
[-] sanic.cpython-312.pyc
[edit]
[-] asyncpg.cpython-312.pyc
[edit]
[-] serverless.cpython-312.pyc
[edit]
[-] huggingface_hub.cpython-312.pyc
[edit]
[-] litestar.cpython-312.pyc
[edit]
[-] asyncio.cpython-312.pyc
[edit]
[-] logging.cpython-312.pyc
[edit]
[-] excepthook.cpython-312.pyc
[edit]
[-] aws_lambda.cpython-312.pyc
[edit]
[-] cloud_resource_context.cpython-312.pyc
[edit]
[-] cohere.cpython-312.pyc
[edit]
[-] loguru.cpython-312.pyc
[edit]
[-] starlette.cpython-312.pyc
[edit]
[-] litellm.cpython-312.pyc
[edit]
[-] fastapi.cpython-312.pyc
[edit]
[-] typer.cpython-312.pyc
[edit]
[-] beam.cpython-312.pyc
[edit]
[-] anthropic.cpython-312.pyc
[edit]
[-] stdlib.cpython-312.pyc
[edit]
[-] huey.cpython-312.pyc
[edit]
[-] openai.cpython-312.pyc
[edit]
[-] pure_eval.cpython-312.pyc
[edit]
[-] arq.cpython-312.pyc
[edit]
[-] wsgi.cpython-312.pyc
[edit]
[-] graphene.cpython-312.pyc
[edit]
[-] starlite.cpython-312.pyc
[edit]
[-] sqlalchemy.cpython-312.pyc
[edit]
[-] rq.cpython-312.pyc
[edit]
[-] statsig.cpython-312.pyc
[edit]
[-] launchdarkly.cpython-312.pyc
[edit]
[-] asgi.cpython-312.pyc
[edit]
[+]
..
[-] dramatiq.cpython-312.pyc
[edit]
[-] rust_tracing.cpython-312.pyc
[edit]
[-] gnu_backtrace.cpython-312.pyc
[edit]
[-] quart.cpython-312.pyc
[edit]
[-] ray.cpython-312.pyc
[edit]
[-] trytond.cpython-312.pyc
[edit]
[-] clickhouse_driver.cpython-312.pyc
[edit]
[-] socket.cpython-312.pyc
[edit]
[-] mcp.cpython-312.pyc
[edit]
[-] otlp.cpython-312.pyc
[edit]
[-] dedupe.cpython-312.pyc
[edit]
[-] gql.cpython-312.pyc
[edit]
[-] _wsgi_common.cpython-312.pyc
[edit]
[-] pymongo.cpython-312.pyc
[edit]
[-] tornado.cpython-312.pyc
[edit]
[-] modules.cpython-312.pyc
[edit]
[-] atexit.cpython-312.pyc
[edit]
[-] unraisablehook.cpython-312.pyc
[edit]
[-] gcp.cpython-312.pyc
[edit]
[-] chalice.cpython-312.pyc
[edit]
[-] threading.cpython-312.pyc
[edit]
[-] ariadne.cpython-312.pyc
[edit]
[-] __init__.cpython-312.pyc
[edit]
[-] bottle.cpython-312.pyc
[edit]
[-] aiohttp.cpython-312.pyc
[edit]
[-] unleash.cpython-312.pyc
[edit]
[-] openfeature.cpython-312.pyc
[edit]
[-] executing.cpython-312.pyc
[edit]
[-] langgraph.cpython-312.pyc
[edit]
[-] langchain.cpython-312.pyc
[edit]
[-] sys_exit.cpython-312.pyc
[edit]
[-] argv.cpython-312.pyc
[edit]
[-] falcon.cpython-312.pyc
[edit]
[-] pyramid.cpython-312.pyc
[edit]
[-] flask.cpython-312.pyc
[edit]
[-] httpx.cpython-312.pyc
[edit]
[-] _asgi_common.cpython-312.pyc
[edit]
[-] boto3.cpython-312.pyc
[edit]
[-] strawberry.cpython-312.pyc
[edit]