📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-27 13:44:27
📂
/
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
✏️
Editing: launchdarkly.cpython-312.pyc
� Yr*j~ � �� � d dl mZ d dlmZ d dlmZmZ d dlZd dlm Z m Z erd dl mZ d dlmZ d dl mZ d d lmZ G d� de� Z G d � de � Zy# e$ r ed � �w xY w)� )� TYPE_CHECKING)�add_feature_flag)�DidNotEnable�IntegrationN)�Hook�Metadata)�Any)�LDClient)�EvaluationDetail)�EvaluationSeriesContextzLaunchDarkly is not installedc �, � e Zd ZdZddd�Zedd�� 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'