OwlCyberSecurity - MANAGER
Edit File: fastapi.cpython-312.pyc
� ��/i� � � � d dl Z d dlmZ d dlmZ d dlZd dlmZ d dlm Z d dl mZmZ d dl mZ d dlmZ erd d lmZmZmZ d d lmZ d dlmZmZ d dlZdZ G d� de� Zd� Zd� Zy# e$ r ed� �w xY w# e$ r ed � �w xY w)� N)�deepcopy)�wraps)�DidNotEnable)�should_send_default_pii)�SOURCE_FOR_STYLE�TransactionSource)�transaction_from_function)� TYPE_CHECKING)�Any�Callable�Dict)�Event)�StarletteIntegration�StarletteRequestExtractorzStarlette is not installedzFastAPI is not installedzgeneric FastAPI requestc � � e Zd ZdZed� � Zy)�FastApiIntegration�fastapic � � t � y �N)�patch_get_request_handler� � �N/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/fastapi.py� setup_oncezFastApiIntegration.setup_once% s � � "�#r N)�__name__� __module__�__qualname__� identifier�staticmethodr r r r r r "