관리-도구
편집 파일: dramatiq.cpython-38.pyc
U �Mg� � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZmZm Z d dl mZ d dlm Z d dlmZmZ d dlmZ d d lmZ er�d d lmZmZmZmZmZ d dlmZmZ G dd � d e�Zdd� ZG dd� de�Zdd� Z G dd� d�Z!dS )� N)�Integration)�request_body_within_bounds)�AnnotatedValue�capture_internal_exceptions�event_from_exception)�Broker)�Message)� Middleware�default_middleware)�Retry)� TYPE_CHECKING)�Any�Callable�Dict�Optional�Union)�Event�Hintc @ s e Zd ZdZdZedd� �ZdS )�DramatiqIntegrationa? Dramatiq integration for Sentry Please make sure that you call `sentry_sdk.init` *before* initializing your broker, as it monkey patches `Broker.__init__`. This integration was originally developed and maintained by https://github.com/jacobsvante and later donated to the Sentry project. �dramatiqc C s t � d S �N)�_patch_dramatiq_broker� r r �N/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/integrations/dramatiq.py� setup_once&