관리-도구
편집 파일: gql.cpython-38.pyc
U �Mg � @ s* d dl Z d dlmZmZmZ d dlmZmZ d dlm Z z@d dl Z d dlmZm Z mZmZ d dlmZmZ d dlmZ W n ek r� ed��Y nX d d lmZ er�d d lmZmZmZmZ d dlmZmZ eeeeeedf f f Z d Z!G dd� de�Z"dd� Z#dd� Z$dd� Z%dd� Z&dd� Z'dS )� N)�event_from_exception�ensure_integration_enabled� parse_version)�DidNotEnable�Integration)�should_send_default_pii)� print_ast�get_operation_ast�DocumentNode�VariableDefinitionNode)� Transport�AsyncTransport)�TransportQueryErrorzgql is not installed)� TYPE_CHECKING)�Any�Dict�Tuple�Union)�Event�EventProcessor.)� � � c @ s e Zd ZdZedd� �ZdS )�GQLIntegration�gqlc C s@ t tj�} | d ks| tk r6tdd�dd� tD �� ��t� d S )Nz?GQLIntegration is only supported for GQL versions %s and above.�.c s s | ]}t |�V qd S )N)�str)�.0�num� r �I/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/integrations/gql.py� <genexpr>( s z,GQLIntegration.setup_once.<locals>.<genexpr>)r r �__version__�MIN_GQL_VERSIONr �join�_patch_execute)Zgql_versionr r r � setup_once! s ��zGQLIntegration.setup_onceN)�__name__� __module__�__qualname__� identifier�staticmethodr&