OwlCyberSecurity - MANAGER
Edit File: sessions.cpython-312.pyc
� G��g�# � �4 � d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlZd dl m Z d dlmZ d dl mZ d dlmZ er*d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ d d lmZ d dlmZ dd�Zedd�� Zd� Zd� Zedd�� Zedd�� ZdZdZd� Z G d� d� Z!y)� N)�Thread�Lock)�contextmanager)�Envelope)�Session)�format_timestamp)� TYPE_CHECKING)�Any)�Callable)�Dict)� Generator)�List)�Optional)�Unionc � � t j dt d�� | �t j j } | j j }|�6| j r| j j ni }|j dd� }|S )zHDEPRECATED: Utility function to find out if session tracking is enabled.�nThis function is deprecated and will be removed in the next major release. There is no public API replacement.� �� stacklevel�auto_session_trackingF)�warnings�warn�DeprecationWarning� sentry_sdk�Hub�current�scope�_force_auto_session_tracking�client�options�get)�hub�should_track�client_optionss �B/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/sessions.py� is_auto_session_tracking_enabledr&