OwlCyberSecurity - MANAGER
Edit File: dramatiq.cpython-312.pyc
� G��g� � � � d dl Z d dlZd dlmZ d dlmZ d dlmZmZm Z d dl mZ d dlm Z d dlmZmZ d dlmZ d d lmZ erd d lmZmZmZmZmZ d dlmZmZ G d� d e� Zd� Z G d� de� Zd� Z G d� d� Z!y)� 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 �$ � e Zd ZdZdZed� � Zy)�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 � � t � y �N)�_patch_dramatiq_broker� � �O/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/dramatiq.py� setup_oncezDramatiqIntegration.setup_once&