Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
[ HOME ]
Exec
Submit
dramatiq.cpython-312.pyc
� w�/i � �x � d dl Z d dlZd dlmZmZ d dlmZmZmZ d dl m Z mZ d dlm Z d dlmZmZmZ d dlmZmZmZ d dlmZ ed � Z d d lmZ d dlmZmZ d dlmZ d d l m!Z! d dlm#Z# e#rd dlm$Z$m%Z%m&Z&m'Z'm(Z( d dl)m*Z*m+Z+ G d� de � Z,d� Z- G d� de� Z.d� Z/ G d� d� Z0y# e"$ r ed� �w xY w)� N)�OP� SPANSTATUS)�continue_trace�get_baggage�get_traceparent)�Integration�DidNotEnable)�request_body_within_bounds)�BAGGAGE_HEADER_NAME�SENTRY_TRACE_HEADER_NAME�TransactionSource)�AnnotatedValue�capture_internal_exceptions�event_from_exception)�TypeVar�R)�Broker)� Middleware�default_middleware)�Retry)�MessagezDramatiq is not installed)� TYPE_CHECKING)�Any�Callable�Dict�Optional�Union)�Event�Hintc �. � e Zd ZdZdZde� �Zed� � 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. �dramatiqzauto.queue.c � � t � y �N)�_patch_dramatiq_broker� � �O/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/dramatiq.py� setup_oncezDramatiqIntegration.setup_once4 s � � � r'