📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-27 17:47:59
📂
/
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
✏️
Editing: strawberry.cpython-312.pyc
� Yr*j�E � �Z � d dl Z d dlZd dlZd dlmZ d dlZd dlmZ d dlm Z m Z mZ d dlm Z d dlmZ d dlmZ d dlmZmZ d d lmZmZ d d lmZmZmZmZ d dl mZ d d lm Z d dl!m"Z" d dl#m$Z% d dl&m'Z'm(Z( d dl)m*Z+ d dl)m,Z- d dl.m/Z/ e/r*d dl.m0Z0m1Z1m2Z2m3Z3m4Z4 d dl5m6Z6m7Z7 d dl&m8Z8 d dl9m:Z: d dl;m<Z<m=Z= e d� G d� de � Z>d&d�Z? G d� de"� Z@ G d � d!e@� ZAd&d"�ZB d'd#�ZC d(d$�ZDd)d%�ZEy# e$ r e d� �w xY w# e$ r e d� �w xY w# e$ r dZ+dZ-Y ��w xY w)*� N��isawaitable)�OP)�DidNotEnable�Integration�_check_minimum_version)� ignore_logger)�should_send_default_pii)� SegmentSource)�Span�TransactionSource)�StreamedSpan�has_span_streaming_enabled)�capture_internal_exceptions�ensure_integration_enabled�event_from_exception�package_version)�cached_propertyz;strawberry-graphql integration requires Python 3.8 or newer)�Schema)�SchemaExtension)�should_skip_tracing)�async_base_view�sync_base_viewz#strawberry-graphql is not installed)�SentryTracingExtension)�SentryTracingExtensionSync)� TYPE_CHECKING)�Any�Callable� Generator�List�Optional)�GraphQLError�GraphQLResolveInfo)�GraphQLHTTPResponse)�ExecutionContext)�Event�EventProcessorzstrawberry.executionc �6 � e Zd ZdZde� �Zddd�Zedd�� Zy) �StrawberryIntegration� strawberryz auto.graphql.Nc �N � |dvrt dj |� � �|| _ y )N)NFTz6Invalid value for async_execution: "{}" (must be bool))� ValueError�format�async_execution)�selfr. s �Q/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/strawberry.py�__init__zStrawberryIntegration.__init__F s3 � ��"5�5��H�O�O�#��� � /��� c �d � t d� } t t | d� t � t � y )Nzstrawberry-graphql)r r r) �_patch_schema_init�_patch_views)�versions r0 � setup_oncez StrawberryIntegration.setup_onceO s&