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
/
lib64
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
[ HOME ]
Exec
Submit
File Name : launchdarkly.cpython-312.pyc
� w�/i� � �� � d dl mZ d dlmZ d dlmZmZ d dlZd dlm Z m Z erd dlmZ d dlmZ d dl mZ d d l mZ G d� de� Z G d � de � Zy# e$ r ed � �w xY w)� )� TYPE_CHECKING)�add_feature_flag)�DidNotEnable�IntegrationN)�Hook�Metadata)�LDClient)�EvaluationSeriesContext)�EvaluationDetail)�AnyzLaunchDarkly is not installedc �( � e Zd ZdZdd�Zed� � Zy)�LaunchDarklyIntegration�launchdarklyNc �� � |xs t j � }|j � st d� �|j t � � y# t $ r}t dt |� z � �d}~ww xY w)z� :param client: An initialized LDClient instance. If a client is not provided, this integration will attempt to use the shared global instance. z#Error getting LaunchDarkly client. Nz'LaunchDarkly client is not initialized.)�ldclient�get� Exceptionr �repr�is_initialized�add_hook�LaunchDarklyHook)�self� ld_client�client�excs �S/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/launchdarkly.py�__init__z LaunchDarklyIntegration.__init__ sm � � R��0�(�,�,�.�F� �$�$�&��H�I�I� ���(�*�+�� � R��D�t�C�y�P�Q�Q�� R�s �A � A4�A/�/A4c � � y �N� r � r � setup_oncez"LaunchDarklyIntegration.setup_once( s � � r! r )�__name__� __module__�__qualname__� identifierr �staticmethodr"