관리-도구
편집 파일: ariadne.cpython-38.pyc
U �MgB � @ s" d dl mZ d dlZd dlmZmZ d dlmZmZ d dlm Z d dl mZ d dlm Z d dlmZmZmZmZ zed �ZW n ek r� ed ��Y nX d dlmZ er�d dlmZmZmZmZ d d lmZmZmZmZ d dl m!Z! d dl"m#Z#m$Z$ G dd� de�Z%dd� Z&dd� Z'dd� Z(dS )� )� import_moduleN)� get_client� capture_event)�DidNotEnable�Integration)� ignore_logger)�request_body_within_bounds)�should_send_default_pii)�capture_internal_exceptions�ensure_integration_enabled�event_from_exception�package_versionzariadne.graphqlzariadne is not installed)� TYPE_CHECKING)�Any�Dict�List�Optional)�GraphQLError� GraphQLResult� GraphQLSchema�QueryParser)�DocumentNode)�Event�EventProcessorc @ s e Zd ZdZedd� �ZdS )�AriadneIntegration�ariadnec C s: t d�} | d krtd��| dk r(td��td� t� d S )Nr zUnparsable ariadne version.)r � zariadne 0.20 or newer required.)r r r �_patch_graphql)�version� r �M/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/integrations/ariadne.py� setup_once# s zAriadneIntegration.setup_onceN)�__name__� __module__�__qualname__� identifier�staticmethodr! r r r r r s r c sj t j�t j� t j�tt���fdd��} tt� �� fdd��}tt���fdd��}| t _|t _|t _d S )Nc s&