Viewing File: /opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/__pycache__/gcp.cpython-312.pyc
�
_�*jH* � � � d dl Z d dlZd dlmZ d dlmZmZmZ d dlmZ d dl m
Z
d dlZd dlm
Z
d dlmZ d dlmZ d d lmZ d d
lmZ d dlmZmZ d dlmZ d d
lmZ d dlmZ d dlm Z m!Z!m"Z"m#Z#m$Z$m%Z% dZ&dZ'e
r%d dl m(Z(m)Z)m*Z*m+Z+ d dl,m-Z-m.Z.m/Z/ e+de)de(f �� Z0dd�Z1 G d� de� Z2 d d�Z3ddde4fd�Z5y)!� N)�deepcopy)�datetime� timedelta�timezone)�environ)�
TYPE_CHECKING)�continue_trace)�OP)�Integration)�_filter_headers)�CLOUD_PROVIDER)�Scope�should_send_default_pii)�
SegmentSource)�TransactionSource)�has_span_streaming_enabled)�AnnotatedValue�
TimeoutThread�capture_internal_exceptions�event_from_exception�logger�reraiseg �?g @�@)�Any�Callable�Optional�TypeVar)�Event�EventProcessor�Hint�F.)�bound�returnc �X � � t j � � d� fd�� }|S )Nc �
�� t j � }|j t � }|�
�| |g|��i |��S t j
d� }|s"t
j d� �| |g|��i |��S t |� }t j t j � }t j � 5 }t � 5 |j � |j! t# |||� � |j% dt j
d� � d } |j&