OwlCyberSecurity - MANAGER
Edit File: httpx.cpython-312.pyc
� G��g� � � � d dl Z d dlmZmZ d dlmZmZ d dlmZ d dl m Z mZ d dlm Z mZmZmZmZ d dlmZ erd dlmZ d d lmZ d d lmZmZmZmZ dgZ G d � de� Zd� Zd� Z d� Z!y# e$ r ed� �w xY w)� N)�OP�SPANDATA)�Integration�DidNotEnable)�BAGGAGE_HEADER_NAME)�Baggage�should_propagate_trace)�SENSITIVE_DATA_SUBSTITUTE�capture_internal_exceptions�ensure_integration_enabled�logger� parse_url)� TYPE_CHECKING)�MutableMapping)�Any)�AsyncClient�Client�Request�Responsezhttpx is not installed�HttpxIntegrationc �* � e Zd ZdZde� �Zed� � Zy)r �httpxz auto.http.c �, � t � t � y)z� httpx has its own transport layer and can be customized when needed, so patch Client.send and AsyncClient.send to support both synchronous and async interfaces. N)�_install_httpx_client�_install_httpx_async_client� � �L/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/httpx.py� setup_oncezHttpxIntegration.setup_once! s � � ��#�%r N)�__name__� __module__�__qualname__� identifier�origin�staticmethodr r r r r r s% � ��J��*�� &�F��&� �&r c �l �� t j �t t �� �fd�� } | t _ y )Nc � �� d }t � 5 t t |j � d�� }d d d � t j t j |j �d|r|j nt ��t j �� 5 }|j t j |j � |�p|j d|j � |j t j |j � |j t j"