OwlCyberSecurity - MANAGER
Edit File: launchdarkly.cpython-312.pyc
� G��g� � �� � d dl mZ d dlZd dlmZmZ d dlZd dlmZm Z erd dlm Z d dlmZ d dlm Z d dl mZ G d � de� Z G d� d e� Zy# e$ r ed � �w xY w)� )� TYPE_CHECKINGN)�DidNotEnable�Integration)�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! r r r r r s � ��J�,�"